platform/core/uifw/libds-tizen.git
23 months agotinyds-tdm: clean up devicemgr related code 14/279814/1
duna.oh [Fri, 12 Aug 2022 08:13:32 +0000 (17:13 +0900)]
tinyds-tdm: clean up devicemgr related code

Change-Id: I92d3142f98f26c8d21dca7f3abd82a7698ca7c5f

23 months agotdm: the return value from read() should be checked 13/279813/1
duna.oh [Fri, 12 Aug 2022 06:32:37 +0000 (15:32 +0900)]
tdm: the return value from read() should be checked

Change-Id: I53526cb576f16eca858a900394f77d6af70544db

23 months agotinyds-tdm: free() an allocated object to prevent a memory leak 12/279812/1
duna.oh [Fri, 12 Aug 2022 05:41:38 +0000 (14:41 +0900)]
tinyds-tdm: free() an allocated object to prevent a memory leak

Change-Id: I8b3a6f9ebe22d50a5489a8a28757a5e7df395cb2

23 months agodevicemgr: null-checking to prevent null pointer dereference 11/279811/1
duna.oh [Fri, 12 Aug 2022 05:22:56 +0000 (14:22 +0900)]
devicemgr: null-checking to prevent null pointer dereference

Change-Id: Id40d4e7fde37d963bde2071d0def3fc4cc80c4d9

23 months agomerge tinyds-tdm-hwc code to tinyds-tdm 57/279757/1
Changyeon Lee [Tue, 16 Aug 2022 07:34:36 +0000 (16:34 +0900)]
merge tinyds-tdm-hwc code to tinyds-tdm

Change-Id: I15e9fd39f646b8fd7fd75ae4b957504a42b69c88

23 months agoexport ds_tdm_output_hwc_set_client_target_buffer 44/279744/2
Changyeon Lee [Tue, 16 Aug 2022 07:33:47 +0000 (16:33 +0900)]
export ds_tdm_output_hwc_set_client_target_buffer

Change-Id: Ifb7fe17bb2b57357c059c716eb7593237039d61a

23 months agolaunch: merge header files in one (launch.h) 58/279458/1
duna.oh [Tue, 9 Aug 2022 04:18:00 +0000 (13:18 +0900)]
launch: merge header files in one (launch.h)

Change-Id: I37f92da33205a3d8c457483be68f1c2519b3c682

23 months agoadd test cases for ds_tizen_embedded_compositor 02/279402/1
SooChan Lim [Mon, 8 Aug 2022 02:35:53 +0000 (11:35 +0900)]
add test cases for ds_tizen_embedded_compositor

Change-Id: Ic9a11417dfde46aec23bfc21164b4d7f1d39fbc5

23 months agoimplement ds_tizen_embedded_compsitor 01/279401/1
SooChan Lim [Mon, 8 Aug 2022 01:40:04 +0000 (10:40 +0900)]
implement ds_tizen_embedded_compsitor

This implement the server impelmentation for tizen_embedded_compositor
interface.

Change-Id: Icd0c42ad490397616bd91c023a3ca0661f0a3e5a

23 months agomerge tizends-tdm-libinput code to tinyds-tdm 82/279382/1
SooChan Lim [Mon, 8 Aug 2022 06:55:50 +0000 (15:55 +0900)]
merge tizends-tdm-libinput code to tinyds-tdm

Change-Id: Iac7a17b98776e88eb1a434f7318ed69c7cf839c8

23 months agomerge tizends-tdm-dpms code to tinyds-tdm 81/279381/1
SooChan Lim [Mon, 8 Aug 2022 06:46:33 +0000 (15:46 +0900)]
merge tizends-tdm-dpms code to tinyds-tdm

Change-Id: I647578cf6321fceb28ff15a4313f027a303e0241

23 months agolaunch: implement tizen_launch_effect, tizen_launch_splash 98/279198/1 accepted/tizen/unified/20220808.135412 submit/tizen/20220805.072229
duna.oh [Thu, 28 Jul 2022 05:54:09 +0000 (14:54 +0900)]
launch: implement tizen_launch_effect, tizen_launch_splash

Change-Id: I58c4c5e3b56237d370f56d0b7b96a5e8b058bfcc

23 months agofix the typo 38/278638/1
SooChan Lim [Fri, 22 Jul 2022 06:47:45 +0000 (15:47 +0900)]
fix the typo

Change-Id: Iab7a6a560047d7ae545515a3cfefff960c56e013

23 months agoadd test cases for ds_tizen_global_resource 37/278637/1
SooChan Lim [Fri, 22 Jul 2022 06:24:01 +0000 (15:24 +0900)]
add test cases for ds_tizen_global_resource

Change-Id: I5ee07c9a598c6470f5703aef3d71a1cd564cd7a2

23 months agoimpelement libds-tizen-global-resource 36/278636/1
SooChan Lim [Thu, 21 Jul 2022 11:54:26 +0000 (20:54 +0900)]
impelement libds-tizen-global-resource

This is the server implementation for tizen_surface protocol.

Change-Id: I40e97d4fedabe68e364ff9c9a95791311646216a

23 months agoadd test cases for ds_tizen_screen_rotation 35/278635/1
SooChan Lim [Fri, 22 Jul 2022 05:31:13 +0000 (14:31 +0900)]
add test cases for ds_tizen_screen_rotation

Change-Id: I35a3d6f5519d7c4f0f93d66bd71788415e8a83ef

23 months agoimpelement libds-tizen-screen-rotation 34/278634/1
SooChan Lim [Thu, 21 Jul 2022 08:19:58 +0000 (17:19 +0900)]
impelement libds-tizen-screen-rotation

This is the server implementation for tizen_screen_rotation protocol.

Change-Id: I5c7a71543edf8e6e12c6616cfaef8e7dec43fc01

23 months agoadd test cases for ds_tizen_renderer 33/278633/1
SooChan Lim [Fri, 22 Jul 2022 02:15:18 +0000 (11:15 +0900)]
add test cases for ds_tizen_renderer

Change-Id: I4f669d3fcf727c7109f0b8a81d14a12c55d3edbe

23 months agoimpelement libds-tizen-renderer 32/278632/1
SooChan Lim [Thu, 21 Jul 2022 07:43:21 +0000 (16:43 +0900)]
impelement libds-tizen-renderer

This is the server implementation for tizen_renderer protocol.

Change-Id: Id7d91034cf43e0ee201cc9ea3e92eb05305e2787

23 months agoadd test cases for ds_tizen_memory_flusher 31/278631/1
SooChan Lim [Fri, 22 Jul 2022 01:51:10 +0000 (10:51 +0900)]
add test cases for ds_tizen_memory_flusher

Change-Id: I3ca0315e7c90f357079d46fc8cb8bd55cd22fa1b

23 months agoimpelement libds-tizen-memory-flusher 30/278630/1
SooChan Lim [Thu, 21 Jul 2022 06:41:35 +0000 (15:41 +0900)]
impelement libds-tizen-memory-flusher

This is the server implementation for
tizen_surface_shm/tizen_surface_shm_flusher protocol.

Change-Id: I0731be582066cd3085fb03da9000b6a1697e093b

23 months agoadd test cases for ds_tizen_display_policy 29/278629/1
SooChan Lim [Thu, 21 Jul 2022 23:45:13 +0000 (08:45 +0900)]
add test cases for ds_tizen_display_policy

Change-Id: I8a140320dbe5547b65c214f44095dae2bf0d1283

23 months agoimpelement libds-tizen-display-policy 28/278628/1
SooChan Lim [Thu, 21 Jul 2022 04:54:34 +0000 (13:54 +0900)]
impelement libds-tizen-display-policy

This is the server implementation for tizen_display_policy protocol.

Change-Id: Idfa58ce16a1e6183cd3f44b5ac31d5a94e78233c

23 months agolaunch: implement appinfo interface 27/278627/1
duna.oh [Thu, 21 Jul 2022 17:41:29 +0000 (02:41 +0900)]
launch: implement appinfo interface

Change-Id: I6afd36726e16ed967bffc6f9b24c772c1740bab8

23 months agoindicator: create and bind global resource with version info 62/278462/1
SooChan Lim [Wed, 20 Jul 2022 23:30:20 +0000 (08:30 +0900)]
indicator: create and bind global resource with version info

Change-Id: Iaa20162c9a2d6a918e72e5071f7f7d809902f33e

23 months agofix the typo 61/278461/1
SooChan Lim [Wed, 20 Jul 2022 23:27:35 +0000 (08:27 +0900)]
fix the typo

Change-Id: I8a9325b59e7f6cf4e372554bde71386ca9d15514

23 months agoadd test cases for ds_tizen_clipboard 60/278460/1
SooChan Lim [Wed, 20 Jul 2022 08:13:47 +0000 (17:13 +0900)]
add test cases for ds_tizen_clipboard

These are unit testcases.

Change-Id: I17d0d392c3c8af7041fe93752b5facb6be7e41b5

23 months agoimpelement libds-tizen-clipboard 59/278459/1
SooChan Lim [Wed, 20 Jul 2022 07:11:22 +0000 (16:11 +0900)]
impelement libds-tizen-clipboard

This is the server implementation for tizen_clipboard protocol.

Change-Id: Idb03da717fd867bb9fd31e8bf9878e1006553ada

23 months agoadd indicator test cases 91/278391/1
SooChan Lim [Sun, 10 Jul 2022 04:48:27 +0000 (13:48 +0900)]
add indicator test cases

Change-Id: I6c755aff6ca1764b73289b64991544b26bed08fb

23 months agoadd mock client/compositor 90/278390/1
SooChan Lim [Sun, 10 Jul 2022 04:46:59 +0000 (13:46 +0900)]
add mock client/compositor

This is the mock classes for testing request/event interaction between
client and server.

Change-Id: Ide1366d47f3cae83944520c8459a62bf4d737a1f

23 months agoimpelement libds-tizen-indicator 89/278389/1
SooChan Lim [Thu, 7 Jul 2022 10:28:26 +0000 (19:28 +0900)]
impelement libds-tizen-indicator

This is the server implementation for tizen_indicator protocol.

Change-Id: I97efef30d5f9e5c540d51b92bcac43808b53951a

2 years agodevicemgr: implement pointer_warp 47/278247/1 accepted/tizen/unified/20220720.034120 submit/tizen/20220720.024540
duna.oh [Mon, 11 Jul 2022 16:26:50 +0000 (01:26 +0900)]
devicemgr: implement pointer_warp

Change-Id: Ia3054efdedc15b04b93f4b3e089fa1491c87f981

2 years agoadd libds-tizen-allocator-tbm tests 46/278246/1
SooChan Lim [Thu, 7 Jul 2022 23:11:23 +0000 (08:11 +0900)]
add libds-tizen-allocator-tbm tests

Change-Id: I305f0b527ff2b2408f7ce5017cfa8f5107d057fb

2 years agoadd .clang-format file 45/278245/1
SooChan Lim [Thu, 7 Jul 2022 23:09:51 +0000 (08:09 +0900)]
add .clang-format file

Change-Id: I988a24843b381135d65b53cb78bd8dfc4d11ce0a

2 years agoadd gtest files 44/278244/1
SooChan Lim [Thu, 7 Jul 2022 23:08:36 +0000 (08:08 +0900)]
add gtest files

Change-Id: I2d2c87aee0a1c842467d04d907f249ce4bd6b57b

2 years agoremove the test files. 43/278243/1
SooChan Lim [Thu, 7 Jul 2022 10:57:35 +0000 (19:57 +0900)]
remove the test files.

This test files are useless.

Change-Id: I0528e80430c947e1dfcf92f8b71860188d9d0ec5

2 years agokeyrouter: Replace get_keyroutes() with notify_key() 42/278242/1
Seunghun Lee [Wed, 6 Jul 2022 01:54:44 +0000 (10:54 +0900)]
keyrouter: Replace get_keyroutes() with notify_key()

Instead of returning key routes list to the compositor, it will deal
with keyboard key events on the behalf of the compositor according to
keyrouter extension protocol.

Change-Id: I6b7085402c6bb5cad0160f356c327af1467f9726

2 years agoadd missing files 41/278241/1
SooChan Lim [Wed, 6 Jul 2022 05:10:33 +0000 (14:10 +0900)]
add missing files

Change-Id: Ifd75994c3ae705441947e2b225adfb08bacc0466

2 years agofix the typo 40/278240/1
SooChan Lim [Mon, 4 Jul 2022 10:33:18 +0000 (19:33 +0900)]
fix the typo

Change-Id: Ie2407006a7d008b8a1c5d32413cf9a64669693e5

2 years agochange file names and folder names 39/278239/1
SooChan Lim [Mon, 4 Jul 2022 10:23:19 +0000 (19:23 +0900)]
change file names and folder names

use the underbar instead of a hyphen when you name files and folders.

Change-Id: I72c903fef3f5e2dc4fbc4df09524b7215c211685

2 years agochange the name of base_deps into deps_base 38/278238/1
SooChan Lim [Thu, 30 Jun 2022 00:48:07 +0000 (09:48 +0900)]
change the name of base_deps into deps_base

Change-Id: Ifb6fe3f03cc1d8d9e86341f54c000f7f03f9f1ef

2 years agoremove xkbcommon from base_dep 37/278237/1
SooChan Lim [Thu, 30 Jun 2022 00:47:07 +0000 (09:47 +0900)]
remove xkbcommon from base_dep

Change-Id: I43f6bea638488d1c066a984ee1623285405e8f58

2 years agochange the var name 36/278236/1
SooChan Lim [Thu, 30 Jun 2022 00:40:29 +0000 (09:40 +0900)]
change the var name

Change-Id: I9b4cdb7b7d86f4abb05c1e5840aaf9be94d690f1

2 years agoDonot make libds-tizen package 35/278235/1
SooChan Lim [Thu, 30 Jun 2022 00:39:21 +0000 (09:39 +0900)]
Donot make libds-tizen package

Remove libds-tizen/libds-tizen-devel packages and libds-tizen library

Change-Id: Id66b15da9fe591eb7dc249c7e9faa78205458aae

2 years agoseperate security to util 34/278234/1
SooChan Lim [Thu, 30 Jun 2022 00:29:41 +0000 (09:29 +0900)]
seperate security to util

keyrouter and input-device only depends on security.
dpms does not need to depends on security.

Change-Id: I84f319dce5d7fb8f8a4c7e1c0d92ce871aeb7986

2 years agomake libds-tizen-tbm-server 33/278233/1
SooChan Lim [Wed, 29 Jun 2022 10:16:14 +0000 (19:16 +0900)]
make libds-tizen-tbm-server

change the build script for libds-tizen-tbm-server

Change-Id: I3bfa4f72ea9298d847f72d1246d0d04f575f162c

2 years agomake libds-tizen-dpms 32/278232/1
SooChan Lim [Wed, 29 Jun 2022 09:50:51 +0000 (18:50 +0900)]
make libds-tizen-dpms

change the build script for libds-tizen-dpms

Change-Id: I8b0c2827ff715962302807875aee119b04ac8029

2 years agoadd comments at spec file 31/278231/1
SooChan Lim [Wed, 29 Jun 2022 09:45:23 +0000 (18:45 +0900)]
add comments at spec file

Change-Id: Ib6548d595ccc18899ac1be40b485070ff987e951

2 years agomake libds-tizen-allocator-tbm 30/278230/1
SooChan Lim [Wed, 29 Jun 2022 09:27:21 +0000 (18:27 +0900)]
make libds-tizen-allocator-tbm

change the build script for libds-tizen-allocator-tbm

Change-Id: I7dd36d43879e2708f4ead2545849954355f721d2

2 years agomake libds-tizen-backend-tdm 29/278229/1
SooChan Lim [Wed, 29 Jun 2022 08:36:40 +0000 (17:36 +0900)]
make libds-tizen-backend-tdm

change the build script and change tdm.h to tdm_internal.h for libds-tizen-backend-tdm.

Change-Id: I7c1db1ae8acdb81bd1ce4fc01edd121782ef1f2d

2 years agodevicemgr: use seat_destroy listener in seat_handle_destoy() func. 28/278228/1
duna.oh [Wed, 29 Jun 2022 01:46:54 +0000 (10:46 +0900)]
devicemgr: use seat_destroy listener in seat_handle_destoy() func.

Change-Id: If5556f8ec94836470981691efa5d9d40742f23fa

2 years agodevicemgr: implement input generator (pointer & touch) 27/278227/1
duna.oh [Tue, 28 Jun 2022 04:59:10 +0000 (13:59 +0900)]
devicemgr: implement input generator (pointer & touch)

Change-Id: Ia27ed1fd2baa29db0df19ee2b3e18cb7d020cad7

2 years agokeyrouter: Refactor out ds_tizen_keyrouter 26/278226/1
Seunghun Lee [Fri, 10 Jun 2022 05:42:22 +0000 (14:42 +0900)]
keyrouter: Refactor out ds_tizen_keyrouter

Change-Id: I35add1ab1c81c8589789708b8ef38f4693cc1ee2

2 years agokeyrouter: Drop unnecessary NULL check for wl_container_of() 25/278225/1
Seunghun Lee [Fri, 10 Jun 2022 05:55:24 +0000 (14:55 +0900)]
keyrouter: Drop unnecessary NULL check for wl_container_of()

If wl_container_of() returned null, it's not something that we treat
as an exception case, but is something that we'd better fail
immediately. The result of wl_container_of() is never null.

Change-Id: I1812a2f148888cbd64441a2a39916c13f2f68a27

2 years agokeyrouter: Rename keyrouter_grab for shorter name 24/278224/1
Seunghun Lee [Fri, 10 Jun 2022 02:07:32 +0000 (11:07 +0900)]
keyrouter: Rename keyrouter_grab for shorter name

Change-Id: I30b62158ede60976ac760d39bafb894f274acf21

2 years agokeyrouter: Rename keyrouter_client to client for shorter name 23/278223/1
Seunghun Lee [Fri, 10 Jun 2022 01:52:34 +0000 (10:52 +0900)]
keyrouter: Rename keyrouter_client to client for shorter name

Change-Id: Ic4e1397f3fee212d4dff9e3d433384b964e0a47a

2 years agokeyrouter: Use macro for a string of privilege 22/278222/1
Seunghun Lee [Fri, 10 Jun 2022 01:46:04 +0000 (10:46 +0900)]
keyrouter: Use macro for a string of privilege

Change-Id: I586bada8424050ee660c59fc17b56b474e3ab637

2 years agokeyrouter: Rename grabbed for more suitable name 21/278221/1
Seunghun Lee [Fri, 10 Jun 2022 01:42:34 +0000 (10:42 +0900)]
keyrouter: Rename grabbed for more suitable name

The variable 'grabbed' was only used to check to see if the associated
client has been privileged. So, it's better to rename 'grabbed' to
'privileged'. Plus, it should be determined when checking privilege.

Change-Id: Ibc3956b6ab6e21bf8fd3d58d9a1c4fbcce1aec67

2 years agokeyrouter: Remove unused included headers 20/278220/1
Seunghun Lee [Fri, 10 Jun 2022 01:15:19 +0000 (10:15 +0900)]
keyrouter: Remove unused included headers

Change-Id: I3ef89c2a8ce9266e093445538ef9c4b23ec4d1f1

2 years agokeyrouter: Use macro for keyrouter version 19/278219/1
Seunghun Lee [Fri, 10 Jun 2022 01:14:06 +0000 (10:14 +0900)]
keyrouter: Use macro for keyrouter version

Change-Id: Ifb199c1e5cf7e64d5e9f7cc7c4687093639c0cfc

2 years agoexample: Add tinyds-tdm-hwc 18/278218/1
Changyeon Lee [Thu, 16 Jun 2022 02:53:26 +0000 (11:53 +0900)]
example: Add tinyds-tdm-hwc

example ds_tdm_output_hwc

Change-Id: I5a6f9f0a6055eaf52f0d6456896d5e65c4a746ee

2 years agobackend/tdm: Add ds_tdm_output_hwc 17/278217/1
Changyeon Lee [Thu, 16 Jun 2022 02:52:13 +0000 (11:52 +0900)]
backend/tdm: Add ds_tdm_output_hwc

ds_tdm_output_hwc composites surface or buffer if hardware layer of output
can use direct scan-out(bypass compositing at output buffer).

ds_tdm_output_hwc has is consists of ds_tdm_output_hwc_window.
for using hardware compositing, display-server should set compositing
infomation of ds_tdm_output_hwc_window

it would be nice to ds_tdm_output_hwc can display all ds_tdm_output_hwc_window
by direct scan-out but it has restrictions.
output has limited number of hardware layer and hardware layer has
hw restrictions(buffer size, transform, format, etc).
if ds_tdm_output_hwc_window can not be display by direct scan-out,
display-server should composite it at output buffer.

ds_tdm_output_hwc_window is updated at output when ds_output_hwc_validate and
ds_output_commit is called because ds_tdm_output_hwc is component of ds_output.

Change-Id: If78e862e4acbcc1ae465fe8315fc478f888657b3

2 years agoinput-devicemgr: add input-devicemgr in build scripts 16/278216/1
duna.oh [Wed, 8 Jun 2022 08:07:24 +0000 (17:07 +0900)]
input-devicemgr: add input-devicemgr in build scripts

Change-Id: I5fde58ecbf1187b561349f593521a25961535b7e

2 years agokeyrouter: Add missing assignment 15/278215/1
Seunghun Lee [Wed, 8 Jun 2022 07:53:16 +0000 (16:53 +0900)]
keyrouter: Add missing assignment

The member variable 'keyrouter' of ds_tizen_keyrouter_client is referred
throughout the file, but it's never been assigned.

Change-Id: I7db736c88c89026433da5c1621f249593b402125

2 years agokeyrouter: Fix illegally finishing tizen_security 14/278214/1
Seunghun Lee [Wed, 8 Jun 2022 07:43:12 +0000 (16:43 +0900)]
keyrouter: Fix illegally finishing tizen_security

Do not finish tizen_security if the initialization's been failed.

Change-Id: Iee1a6eb973a8513c97aaf27a5b40e2d60c8f1f32

2 years agokeyrouter: Properly test for allocation failure 13/278213/1
Seunghun Lee [Wed, 8 Jun 2022 07:25:42 +0000 (16:25 +0900)]
keyrouter: Properly test for allocation failure

Instead of testing the return of the function just called, it was
testing something already checked earlier.

Change-Id: Ibaa7884360afaa195d843bc90588e3af85caf0d0

2 years agorearrange the directories of git repository 12/278212/1
SooChan Lim [Wed, 8 Jun 2022 01:33:48 +0000 (10:33 +0900)]
rearrange the directories of git repository

and fix some build break.

Change-Id: I723cb9e5f13f05f5761d668737f6e2c9c84f9cac

2 years agoremove libds stuffs 11/278211/1
SooChan Lim [Sat, 4 Jun 2022 01:36:16 +0000 (10:36 +0900)]
remove libds stuffs

It remains libds-tizen sources here and it depends on libds

Change-Id: I63661dd7ff67db7e1cbb218798908006de2a7c81

2 years agokeyrouter: Fix wrong validity check 10/278210/1
Seunghun Lee [Tue, 7 Jun 2022 23:30:48 +0000 (08:30 +0900)]
keyrouter: Fix wrong validity check

Change-Id: I4339bc6ffb8c111679e00276fdfdd1f3500ffb1e

2 years agodevicemgr: implement libds-tizen-input-devicemgr 09/278209/1
duna.oh [Tue, 7 Jun 2022 10:38:39 +0000 (19:38 +0900)]
devicemgr: implement libds-tizen-input-devicemgr

Change-Id: I3e0451c47fea0c5dac467d45143d594f36161907

2 years agodpms: set ds_tizen_dpms enum value by tizen dpms protocol enum value 08/278208/1
Junkyeong Kim [Tue, 7 Jun 2022 04:35:51 +0000 (13:35 +0900)]
dpms: set ds_tizen_dpms enum value by tizen dpms protocol enum value

Change-Id: I1f02952b83bfcedfa60cfb045d710b0edb354492
Signed-off-by: Junkyeong Kim <jk0430.kim@samsung.com>
2 years agoclient: add simple-dpms 07/278207/1
Junkyeong Kim [Tue, 7 Jun 2022 04:34:43 +0000 (13:34 +0900)]
client: add simple-dpms

Change-Id: Idf32c869b660f568ab6514d542396c40f32dc6c6
Signed-off-by: Junkyeong Kim <jk0430.kim@samsung.com>
2 years agoexample: add tinyds-tdm-dpms 06/278206/1
Junkyeong Kim [Tue, 7 Jun 2022 04:31:32 +0000 (13:31 +0900)]
example: add tinyds-tdm-dpms

Change-Id: I6845876ee8240eba2d8569bdef5c799bd56ee0ce
Signed-off-by: Junkyeong Kim <jk0430.kim@samsung.com>
2 years agodpms: fix build error 05/278205/1
Junkyeong Kim [Tue, 7 Jun 2022 04:29:44 +0000 (13:29 +0900)]
dpms: fix build error

Change-Id: I1190b3d14494921bc657ba8d6dd37bc42fd215f9
Signed-off-by: Junkyeong Kim <jk0430.kim@samsung.com>
2 years agokeyrouter: Return an appropriate value 04/278204/1
Seunghun Lee [Fri, 3 Jun 2022 09:12:29 +0000 (18:12 +0900)]
keyrouter: Return an appropriate value

The return value of keyrouter_grab_check_grabbed() is boolean. So let's
make it right.

Change-Id: Ic3c5b7fc16cb571633bd8a299cb12a2c3fee1797

2 years agokeyrouter: Fix wrong return value 03/278203/1
Seunghun Lee [Fri, 3 Jun 2022 09:05:12 +0000 (18:05 +0900)]
keyrouter: Fix wrong return value

According to implementation of pepper keyrouter which is a reference of
libds keyrouter, keyrouter_grab_check_grabbed() is supposed to return
true if a list of MODE_EXCLUSIVE is not empty.

This error seems to have been introduced by mistake during the
migration from pepper.

Change-Id: Ibc0d35bb4b7ba2c6381c248ddc0c861c83f6c8c1

2 years agosecurity: Enable cynara to be built 02/278202/1
Seunghun Lee [Thu, 2 Jun 2022 05:22:55 +0000 (14:22 +0900)]
security: Enable cynara to be built

This patch also removes conditional compilation for cynara. This should
be considered again if it gets needed.

Change-Id: I7f7447a0f9a0c51b39bd454180b543f9d2b420e2

2 years agotizen-util: Include an appropriate header 01/278201/1
Seunghun Lee [Thu, 2 Jun 2022 04:53:14 +0000 (13:53 +0900)]
tizen-util: Include an appropriate header

Change-Id: I7794e38a4ad2b02116a5a7fe3b02bcf339bbd3a9

2 years agosecurity: Refactor implementation for cynara 00/278200/1
Seunghun Lee [Thu, 2 Jun 2022 04:50:54 +0000 (13:50 +0900)]
security: Refactor implementation for cynara

No functional changes

Change-Id: If95362c31dae167d7d11eef1b1b2847747e0636a

2 years agosecurity: Remove meaningless double check 99/278199/1
Seunghun Lee [Thu, 2 Jun 2022 04:14:29 +0000 (13:14 +0900)]
security: Remove meaningless double check

In the function tizen_security_check_privilege(), it double-checks
a g_cynara to see if it exists and then return different value if it
doesn't exist which is contradictory.

Let's just return false if initializing the cynara has been failed
or not been initialized.

Change-Id: I24755e5b86c5e1f4bf5cf6333a4d4686a880e942

2 years agoadd review-bot as a reviewer 98/278198/1
SooChan Lim [Fri, 27 May 2022 02:39:45 +0000 (11:39 +0900)]
add review-bot as a reviewer

Change-Id: Id353d4198b4dfd5a06daf33b2580110161aa405a

2 years agoclient: add simple-shm-shell sample 97/278197/1
SooChan Lim [Thu, 19 May 2022 01:38:44 +0000 (10:38 +0900)]
client: add simple-shm-shell sample

This is a simple wayland-client which use wl_shm and wl_shell interface.

Change-Id: I3d27d37d56097ab84e46d7c59fc52329b5c9605e

2 years agoshell: implement wl_shell_interface 96/278196/1
SooChan Lim [Mon, 16 May 2022 08:39:29 +0000 (17:39 +0900)]
shell: implement wl_shell_interface

ds_shell and ds_shell_surface are resources which implement the
wl_shell_interface and wl_shell_surface_interface.

Change-Id: I551324b8f14a3aa77c920cece19e15a12e8d9981

2 years agofix the build warning 95/278195/1
SooChan Lim [Wed, 18 May 2022 05:32:31 +0000 (14:32 +0900)]
fix the build warning

Change-Id: I43f5101b85b807abef226169940d4cba5955caa9

2 years agokeyrouter: change the prefix of the internal functions 94/278194/1
SooChan Lim [Thu, 19 May 2022 10:34:06 +0000 (19:34 +0900)]
keyrouter: change the prefix of the internal functions

remove the tizen prefix.

Change-Id: I060071ea4593d2dca366965b9ad9e94dc9d0c98f

2 years agolibinput: get event time from libinput_event 93/278193/1
duna.oh [Thu, 19 May 2022 01:03:25 +0000 (10:03 +0900)]
libinput: get event time from libinput_event

Change-Id: I51c5ef5ca3d3a7b1bd27172617e484303205c46c

2 years agoexample: add an executable 'tinyds-tdm-libinput' and handle ds_seat 92/278192/1
duna.oh [Wed, 18 May 2022 09:39:54 +0000 (18:39 +0900)]
example: add an executable 'tinyds-tdm-libinput' and handle ds_seat

Change-Id: I965563b0f783c2f0ef685d9db34236e985edf9eb

2 years agoseat: fix the typo. should handle a proper device type 91/278191/1
duna.oh [Wed, 18 May 2022 09:37:26 +0000 (18:37 +0900)]
seat: fix the typo. should handle a proper device type

Change-Id: Ifd7196e8f2a803973e1083b3baba7cff07428b20

2 years agotinyds: Handle ds_seat 90/278190/1
Seunghun Lee [Wed, 4 May 2022 06:34:19 +0000 (15:34 +0900)]
tinyds: Handle ds_seat

tinyds now handles ds_seat, but only for pointer.

Change-Id: I2b48841e8dcbbe0845d5cb2facd46b78b48eafd7

2 years agoAdd ds_seat 89/278189/1
Seunghun Lee [Wed, 20 Apr 2022 01:11:12 +0000 (10:11 +0900)]
Add ds_seat

ds_seat abstracts wl_seat protocol of server implementation.

Change-Id: Ic3dcf2c9c374af762c2fbeccbe0f2174b9b1be3d

2 years agods_dpms: Init ds_dpms 88/278188/1
Junkyeong Kim [Wed, 11 May 2022 07:30:21 +0000 (16:30 +0900)]
ds_dpms: Init ds_dpms

Ds_dpms is wayland-server implemantation of tizen_dpms protocol.

Change-Id: I774a743de26bd8c516ae0991daf28c3e20f50ec5
Signed-off-by: Junkyeong Kim <jk0430.kim@samsung.com>
2 years agobackend/libinput: Support libinput backend 87/278187/1
duna.oh [Thu, 12 May 2022 06:52:31 +0000 (15:52 +0900)]
backend/libinput: Support libinput backend

add struct ds_libinput_backend, ds_libinput_input_device, etc.
add an executable 'libinput-backend' to test libinput events

Change-Id: I7134f91f14f7a1bbd65f1216c63a4c3b59cd15ee

2 years agoimplement the libds-tizen-keyrouter 86/278186/1
SooChan Lim [Wed, 11 May 2022 07:48:55 +0000 (16:48 +0900)]
implement the libds-tizen-keyrouter

libds-tizen-keyrouter supports the tizen_keyrouter extension.
This is the first impelemtaion for it. It can be added the additional
apis onward.

Change-Id: I9c819b03e38c5a1d7f8abb0257040502608e9131

2 years agoadd security api which uses cynara 85/278185/1
SooChan Lim [Wed, 11 May 2022 07:45:58 +0000 (16:45 +0900)]
add security api which uses cynara

The keyrouter and devicemgr has to check the privilege when display
server gets the requests from these extensions. For this, security api
support the previlege check with cynara.

Change-Id: I6086e60e9d611de219b05856da6668bd7510cdc4

2 years agods_output: Add ds_output_set_custom_mode 84/278184/1
Seunghun Lee [Wed, 4 May 2022 06:37:27 +0000 (15:37 +0900)]
ds_output: Add ds_output_set_custom_mode

Change-Id: Ie55a79f11a1450bae3ff6d83bb735c854459f050

2 years agotinyds: Fix passing wrong arg to wl_container_of 83/278183/1
Seunghun Lee [Wed, 4 May 2022 06:31:58 +0000 (15:31 +0900)]
tinyds: Fix passing wrong arg to wl_container_of

This led segfault illegally accessing wrong pointer.

Change-Id: I28e64be8c0d0abd5ee8e164353a5c038a2c7ce52

2 years agotinyds-tdm: Fix build break 82/278182/1
Seunghun Lee [Tue, 26 Apr 2022 00:22:06 +0000 (09:22 +0900)]
tinyds-tdm: Fix build break

Change-Id: I75ab91d3d8195592b3aa661297cd8fa8f80d73f7

2 years agobackend/wayland: Implement start() interface of ds_backend 81/278181/1
Seunghun Lee [Fri, 22 Apr 2022 00:17:57 +0000 (09:17 +0900)]
backend/wayland: Implement start() interface of ds_backend

The wayland backend defers creating new outputs until a user calls
ds_backend_start() even though a user requests creation of output before
ds_backend_start().

The wayland backend now emits a signal of new_output if a user calls
ds_backend_start(), which is for the behavior of ds_backend_start() to
be consistent regardless of the actual running backend.

Change-Id: I8d102ee90773c65634e7e360990abf995a156c29

2 years agotinyds: Use WAYLAND_DISPLAY and WAYLAND_SOCKET for wl backend 80/278180/1
Seunghun Lee [Mon, 25 Apr 2022 07:06:21 +0000 (16:06 +0900)]
tinyds: Use WAYLAND_DISPLAY and WAYLAND_SOCKET for wl backend

Instead of assuming the name of wayland display server by iterating
arbitrary number of names, it uses values of WAYLAND_DISPLAY and
WAYLAND_SOCKET environments.

The library of wayland-client uses these values when trying to connect
to wayland server.

Change-Id: Ieea1e2e55755ec10b6743568abf274e6a64aaf28

2 years agobackend/wayland: Remove writable flag from event source 79/278179/1
Seunghun Lee [Thu, 21 Apr 2022 07:56:48 +0000 (16:56 +0900)]
backend/wayland: Remove writable flag from event source

Instead of having a writable flag on event source, it just marks
wayland event source as needing a post-dispatch check. The event loop
will call dispatch function again after all dispatching is done, with
mask = 0.

Change-Id: Iefdff50e2fa06d244f1ca3bffd0faa70da6ef364