platform/core/appfw/screen-connector.git
7 years agoFix memory leak 33/122533/2 accepted/tizen/3.0/common/20170406.142248 accepted/tizen/3.0/ivi/20170406.041536 accepted/tizen/3.0/mobile/20170406.041341 accepted/tizen/3.0/tv/20170406.041450 accepted/tizen/3.0/wearable/20170406.041510 submit/tizen_3.0/20170403.015747 submit/tizen_3.0/20170405.011715
Hyunho Kang [Mon, 3 Apr 2017 01:27:59 +0000 (10:27 +0900)]
Fix memory leak

Change-Id: Ie3ff7bcbb7340b1e6336e19ad5b2e1ab667dda0e
Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
(cherry picked from commit 0b07eb5a3e067f73857aae585ac369433ad8e1fa)

7 years agoFix memory leak 32/122532/1
seungha.son [Mon, 3 Apr 2017 00:39:45 +0000 (09:39 +0900)]
Fix memory leak

Signed-off-by: seungha.son <seungha.son@samsung.com>
Change-Id: I81669725500ecf915feca52bbb303aa8cb55bea1
(cherry picked from commit 7dc3034997783c336c8fcaab761d4cfffa93a0e9)

7 years agoAdd tbm buffer destroy logic 14/122114/2 accepted/tizen/3.0/common/20170331.152145 accepted/tizen/3.0/ivi/20170331.101605 accepted/tizen/3.0/mobile/20170331.101443 accepted/tizen/3.0/tv/20170331.101510 accepted/tizen/3.0/wearable/20170331.101538 submit/tizen_3.0/20170330.081512
Hyunho Kang [Thu, 16 Mar 2017 01:56:31 +0000 (10:56 +0900)]
Add tbm buffer destroy logic

tbm buffer should be handled by viewer side.
If not, tbm_surface fd will be remained after widget is deleted.

Change-Id: Ia6abc17c53af08c24d7d080378c121879e1a291d
Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
(cherry picked from commit 2d09ccf2a1b73ef116d700b1de5a0dbcbc901a89)

7 years agoFix destroy handle bug 13/122113/1
Hyunho Kang [Mon, 13 Mar 2017 13:19:24 +0000 (22:19 +0900)]
Fix destroy handle bug

Change-Id: Ifc796724e8db62557fab4c80e6e912dbe022f169
Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
(cherry picked from commit 505fb90a88d192f7a2311c49fc3693a4c2e82415)

7 years agoFix callback disapeared bug 89/120989/1 submit/tizen_3.0/20170330.025246
Hyunho Kang [Fri, 24 Mar 2017 08:39:29 +0000 (17:39 +0900)]
Fix callback disapeared bug

For locally declared callback function,
screen_connector_toolkit_add should copy and store callback functions.

Change-Id: I14ac550d5f062e03315046bedd0b69649972255f
Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
7 years agoRefactor screen-connector 23/120623/3
Hyunho Kang [Mon, 20 Feb 2017 13:22:45 +0000 (22:22 +0900)]
Refactor screen-connector

Old version screen connecotor handle UI app and widget
exactly same way. So viewer have to know running app list
to watch other app screen. It's not a good design and make
problems like timing issue. Old design also make troubles
with widgets because it is watching app with appid so,
in multi instance senario sometimes timing issue was occured.

To solve those problems we divide screen connector into two
API sets. For watching UI apps, we provide
screen_connector_watcher* API set.
For widget/watch apps, we provide
screen_connector_toolkit* API set.

Change-Id: Ifdff15e80d36945747fcc37b90a760fc2e5df561
Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
(cherry picked from commit dde5ccecdbb88c1dfc7b344872b8811a2b007347)

7 years agoRemove handle from watcher list when watcher destroyed 24/117924/1 accepted/tizen/3.0/common/20170316.121716 accepted/tizen/3.0/ivi/20170316.083343 accepted/tizen/3.0/mobile/20170316.083306 accepted/tizen/3.0/tv/20170316.083324 accepted/tizen/3.0/wearable/20170316.083332 submit/tizen_3.0/20170308.052548 submit/tizen_3.0/20170316.021307
Hyunho Kang [Thu, 2 Mar 2017 12:28:24 +0000 (21:28 +0900)]
Remove handle from watcher list when watcher destroyed

If viewer try to remove handle without removing evas object,
handle remain in watcher list.

Change-Id: I88f04d69ad56aa6b380e430d94b733c86d07f2f2
Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
(cherry picked from commit de30a1b347eeb91c75de828647f65f6b7b89bd45)

7 years agoAdd an exception handling about destroying the watcher handle 15/116615/1 accepted/tizen/3.0/common/20170228.061409 accepted/tizen/3.0/ivi/20170228.001447 accepted/tizen/3.0/mobile/20170228.001152 accepted/tizen/3.0/tv/20170228.001256 accepted/tizen/3.0/wearable/20170228.001357 submit/tizen_3.0/20170227.084431
Hwankyu Jhun [Mon, 27 Feb 2017 08:29:33 +0000 (17:29 +0900)]
Add an exception handling about destroying the watcher handle

We should check whether the surface handle is NULL or NOT.

Change-Id: Idca2b162a2e08a68f913118206f655f6336555b7
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
7 years agoFix screen_connector_watcher_remove API bug 82/115282/1 accepted/tizen/3.0/common/20170220.125929 accepted/tizen/3.0/ivi/20170220.064759 accepted/tizen/3.0/mobile/20170220.064712 accepted/tizen/3.0/tv/20170220.064732 accepted/tizen/3.0/wearable/20170220.064746 submit/tizen_3.0/20170217.075150
Hyunho Kang [Fri, 17 Feb 2017 06:26:32 +0000 (15:26 +0900)]
Fix screen_connector_watcher_remove API bug

Widget app died after screen watcher handle freed,
viewer crashed because of freed data.

Change-Id: I7aef5e6b6b2dcf09cb2bdd04c7d38d016dedc936
Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
(cherry picked from commit 53c7ae3a7c9570341c5b22f0b65fa572422eeac4)

7 years agoApply tizen remote surface v4, add event filter 32/114532/1 accepted/tizen/3.0/common/20170214.180934 accepted/tizen/3.0/ivi/20170214.092212 accepted/tizen/3.0/mobile/20170214.091935 accepted/tizen/3.0/tv/20170214.092005 accepted/tizen/3.0/wearable/20170214.092050 submit/tizen_3.0/20170214.043331
Daehyeon Jung [Fri, 13 Jan 2017 10:22:37 +0000 (19:22 +0900)]
Apply tizen remote surface v4, add event filter

 - Some remote surface enabled applications are need to ignore some
 input events.
 - When provider applications set some input event filter, the value
 will be passed to the watcher application. In this case, watcher
 applications should  check input event filter before send the input
 events.

Change-Id: Ifd065fd2bc9ee467cdcbd7e30131a5a22ab15254
Signed-off-by: Daehyeon Jung <darrenh.jung@samsung.com>
7 years agoFix screen_connector_watcher_evas_add_by_rid bug 89/114289/1 submit/tizen_3.0/20170213.011824
Hyunho Kang [Fri, 10 Feb 2017 05:18:28 +0000 (14:18 +0900)]
Fix screen_connector_watcher_evas_add_by_rid bug

This API was designed for other viewer but implementation
was for main viewer

Change-Id: I1292fb070d5a1c298e0bc8750ae864ee9407cda5
Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
(cherry picked from commit 7dcac60b2b98387af463681e012998be9278ef64)

7 years agoAdd error return logic to watcher_evas_get_pid 87/114287/2
Hyunho Kang [Fri, 10 Feb 2017 05:47:53 +0000 (14:47 +0900)]
Add error return logic to watcher_evas_get_pid

Sub viewer should not get pid using screen image object.

Change-Id: I4f12cb2c1f8f96575a81f1e8a5665ff7f52fba09
Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
(cherry picked from commit 29c85c12a9d6c42860fe64abf485c5beb67b6cdc)

7 years agoFix memory leaks 86/114286/2
Hyunho Kang [Wed, 8 Feb 2017 12:36:51 +0000 (21:36 +0900)]
Fix memory leaks

Change-Id: Idb56464495739c44b1735fea75d56a1901718d13
Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
(cherry picked from commit e262f6dbb8bb12f2a537b620a9e90a0929f833b5)

7 years agoAdd an exception handling 85/114285/1
Hwankyu Jhun [Thu, 9 Feb 2017 23:46:28 +0000 (08:46 +0900)]
Add an exception handling

The tizen_remote_surface_manager_create_surface() API returns
a NULL porinter if the resource id is invalid.

Change-Id: I5d3b084db876061d4f2a02254e8905db4ff52d68
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
(cherry picked from commit d88dd0de0d418c42ed4465a2c76de2cef677401b)

7 years agoFix screen_connector_watcher_evas_get_rid bug 80/113580/2 accepted/tizen/3.0/common/20170210.071233 accepted/tizen/3.0/ivi/20170210.002015 accepted/tizen/3.0/mobile/20170210.001914 accepted/tizen/3.0/tv/20170210.001944 accepted/tizen/3.0/wearable/20170210.001955 submit/tizen_3.0/20170208.110217
Hyunho Kang [Wed, 8 Feb 2017 09:13:49 +0000 (18:13 +0900)]
Fix screen_connector_watcher_evas_get_rid bug

Change-Id: If3086b6a1984ceb6a1864a57b5fba238ad04ee81
Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
7 years agoRelease version 1.1.1 06/112406/1
Hyunho Kang [Wed, 1 Feb 2017 01:15:58 +0000 (10:15 +0900)]
Release version 1.1.1

Changes:
- Fix tbm buffer and file fd management logic

Change-Id: I17058cd8dc7016bcf0ae4106f489cd0f04c44965
Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
7 years agoFix tbm buffer and file fd management logic 82/111782/1 tizen_3.0_tv accepted/tizen/3.0/common/20170201.164602 accepted/tizen/3.0/ivi/20170201.091710 accepted/tizen/3.0/mobile/20170201.091536 accepted/tizen/3.0/tv/20170201.091608 accepted/tizen/3.0/wearable/20170201.091631 submit/tizen_3.0/20170201.003016
Hyunho Kang [Tue, 24 Jan 2017 02:59:16 +0000 (11:59 +0900)]
Fix tbm buffer and file fd management logic

Change-Id: I8bb5c15ea0a247c33e9450698d0529926a1a0f86
Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
7 years agoRelease version 1.1.0 16/110516/2 accepted/tizen/3.0/common/20170119.105554 accepted/tizen/3.0/ivi/20170118.225947 accepted/tizen/3.0/mobile/20170118.225901 accepted/tizen/3.0/tv/20170118.225917 accepted/tizen/3.0/wearable/20170118.225932 accepted/tizen/common/20170119.171532 accepted/tizen/common/20170125.113237 accepted/tizen/ivi/20170119.222202 accepted/tizen/mobile/20170119.221801 accepted/tizen/tv/20170119.221954 accepted/tizen/wearable/20170119.222054 submit/tizen/20170117.053142 submit/tizen/20170119.070147 submit/tizen_3.0/20170117.054147
Hyunho Kang [Tue, 17 Jan 2017 01:18:14 +0000 (10:18 +0900)]
Release version 1.1.0

Changes:
- Add tizen remote surface buffer changed callback

Change-Id: I87c2c4d15db825b050fa5545276057f6f4fced7c
Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
7 years agoAdd tizen remote surface buffer changed callback 11/110511/1
Hyunho Kang [Tue, 17 Jan 2017 01:00:29 +0000 (10:00 +0900)]
Add tizen remote surface buffer changed callback

tizen remote surface version up to 3.

Change-Id: I1e4b5fab125903ac7b63c8a1a97314accb576380
Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
7 years agoAdd Null Check logic 74/108774/1 accepted/tizen/3.0/common/20170109.200250 accepted/tizen/3.0/ivi/20170106.095107 accepted/tizen/3.0/mobile/20170106.095047 accepted/tizen/3.0/tv/20170106.095053 accepted/tizen/3.0/wearable/20170106.095059 accepted/tizen/common/20170113.184612 accepted/tizen/ivi/20170112.223126 accepted/tizen/mobile/20170112.223035 accepted/tizen/tv/20170112.223051 accepted/tizen/wearable/20170112.223109 submit/tizen/20170112.062902 submit/tizen_3.0/20170106.041843 submit/tizen_common/20170112.224201
Hyunho Kang [Thu, 5 Jan 2017 13:32:10 +0000 (22:32 +0900)]
Add Null Check logic

__watcher_tbl can be already destroyed by
screen_connector_watcher_evas_fini call

Change-Id: I783c4bcdea20d02ced1910a066d0d1652f0d5d9a
Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
7 years agoCall visibility update in show,resize callback 30/107430/1 accepted/tizen_3.0.m2_mobile accepted/tizen_3.0.m2_tv accepted/tizen_3.0.m2_wearable tizen_3.0.m2 accepted/tizen/3.0.m2/mobile/20170104.122245 accepted/tizen/3.0.m2/tv/20170104.122628 accepted/tizen/3.0.m2/wearable/20170104.122951 accepted/tizen/3.0/common/20161229.112720 accepted/tizen/3.0/ivi/20161229.054114 accepted/tizen/3.0/mobile/20161229.054027 accepted/tizen/3.0/tv/20161229.054047 accepted/tizen/3.0/wearable/20161229.054102 accepted/tizen/common/20170109.202237 accepted/tizen/ivi/20170105.223142 accepted/tizen/mobile/20170105.223032 accepted/tizen/tv/20170105.223102 accepted/tizen/wearable/20170105.223122 submit/tizen/20170105.005252 submit/tizen_3.0.m2/20170104.093749 submit/tizen_3.0/20161228.051438
Semun Lee [Wed, 28 Dec 2016 05:01:47 +0000 (14:01 +0900)]
Call visibility update in show,resize callback

We need to update initial visibility value for the
object when it is shown or resized.
If we skip it, the display server sets its own visibility
state value for the object as invisible one.

Change-Id: I75782a77f1cabadafabf560965e34e634816d702
Signed-off-by: Semun Lee <sm79.lee@samsung.com>
7 years agoFix fail to get object pid 49/106749/2 accepted/tizen/3.0/common/20161228.071553 accepted/tizen/3.0/ivi/20161226.030311 accepted/tizen/3.0/mobile/20161226.030148 accepted/tizen/3.0/tv/20161226.030216 accepted/tizen/3.0/wearable/20161226.030242 submit/tizen_3.0/20161223.043050
Hyunho Kang [Fri, 23 Dec 2016 00:21:19 +0000 (09:21 +0900)]
Fix fail to get object pid

Change-Id: I4cfff44f1628e9bd4467d437a446e3445de9c51f
Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
7 years agoAdjust coding style 21/105921/1
Hwankyu Jhun [Tue, 20 Dec 2016 05:01:54 +0000 (14:01 +0900)]
Adjust coding style

Change-Id: Ia8eae134aac2f04a82e8402f93b194bfbe43b932
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
7 years agotizen_remote_surface version up 87/105687/2 accepted/tizen/3.0/common/20161221.181006 accepted/tizen/3.0/ivi/20161221.010045 accepted/tizen/3.0/mobile/20161221.010230 accepted/tizen/3.0/tv/20161221.005900 accepted/tizen/3.0/wearable/20161221.005956 submit/tizen_3.0/20161220.014437
Hyunho Kang [Mon, 19 Dec 2016 07:37:05 +0000 (16:37 +0900)]
tizen_remote_surface version up

tizen_remote_surface manager version 1 has bug.
tizen_remote_surface_release protocol is added.

Change-Id: I23e4d6533451b78e2c88e0ab330d2af3485581f4
Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
7 years agoAdd APIs and divide Evas dependant APIs 94/104494/3 submit/tizen_3.0/20161219.021901
Hyunho Kang [Tue, 13 Dec 2016 11:03:06 +0000 (20:03 +0900)]
Add APIs and divide Evas dependant APIs

Added APIs
- _compositor_set_handler_by_rid -> screen_connector_watcher_evas_add_by_rid
- _compositor_get_rid -> screen_connector_watcher_evas_get_rid
- _compositor_get_pid -> screen_connector_watcher_evas_get_pid

Evas dependant APIs should be devided for none evas APIs like dali.

Change-Id: I5806013d68262becc1b6d69bbccdffea757cfaf0
Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
7 years agoFix remove callback 69/104169/2 accepted/tizen/3.0/common/20161213.164023 submit/tizen_3.0/20161212.123626
Hyunho Kang [Mon, 12 Dec 2016 12:36:56 +0000 (21:36 +0900)]
Fix remove callback

remove callback have to pass object to keep
consistancy of old version.

Change-Id: I40001484188a983092d1bcd6e10f658249c38420
Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
7 years agoInitial commit 97/100597/9 submit/tizen_3.0/20161212.043612
Hyunho Kang [Mon, 28 Nov 2016 12:56:24 +0000 (21:56 +0900)]
Initial commit

- screen_connector_watcher
- screen_connector_watcher_evas

Change-Id: I884dcd1139825dc67a5b3a18e7cbe18d92cc150d
Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
7 years agoInitial empty repository master
Jong Jeong Kim [Wed, 23 Nov 2016 02:00:07 +0000 (18:00 -0800)]
Initial empty repository