platform/core/uifw/libtdm.git
6 years agopackage version up to 1.8.4 submit/tizen/20171124.015442
Boram Park [Fri, 24 Nov 2017 01:54:24 +0000 (10:54 +0900)]
package version up to 1.8.4

Change-Id: Ic1b66478ff6342e1212a2e2e730da3cc1a7c2de7

6 years agoadd -Werror to CXXFLAGS 25/161525/1
Boram Park [Fri, 24 Nov 2017 01:37:48 +0000 (10:37 +0900)]
add -Werror to CXXFLAGS

Change-Id: I98d88aa39b9d46f517f2cbf44366044909111253

6 years agoutest: Fix warning of incorrect type casting 04/161404/2
Andrii Sokolenko [Thu, 23 Nov 2017 07:46:54 +0000 (09:46 +0200)]
utest: Fix warning of incorrect type casting

Change-Id: I8f8654f2f1e170ae539e417649b7c5b3dc035786
Signed-off-by: Andrii Sokolenko <a.sokolenko@samsung.com>
6 years agottrace: enhance -ttrace_vblank option 91/161391/1
Boram Park [Thu, 23 Nov 2017 06:45:16 +0000 (15:45 +0900)]
ttrace: enhance -ttrace_vblank option

Change-Id: Ic3afb55d3b7cf06e8962bea0ee0f71322fc06d27

6 years agoserver: correct wrong freeing 90/161390/1
Boram Park [Thu, 23 Nov 2017 05:39:47 +0000 (14:39 +0900)]
server: correct wrong freeing

Change-Id: I60595fa61f80ada4c4f2586eef8537cf38c04446

6 years agoutest: rework output init func 39/161239/1
Andrii Sokolenko [Wed, 22 Nov 2017 08:12:20 +0000 (10:12 +0200)]
utest: rework output init func

Change-Id: Ib1f07e1235ed654cf73d346730f94692dabf7438
Signed-off-by: Andrii Sokolenko <a.sokolenko@samsung.com>
6 years agoadd excluding coverage comments for tdm_hwc_window.c 59/161059/3
Roman Marchenko [Tue, 21 Nov 2017 08:07:26 +0000 (10:07 +0200)]
add excluding coverage comments for tdm_hwc_window.c

add excluding coverage comments for tdm_hwc_window.c for folowing code:
- fail if the backend's function don't exist;
- dump;
- calloc fail.

Change-Id: I885ba709fd7407cd5ebb454fcf17f4487a646ad7
Signed-off-by: Roman Marchenko <r.marchenko@samsung.com>
6 years agoutest: Add 16 tests cases for tdm_buffer 15/161115/4
Roman Marchenko [Tue, 21 Nov 2017 13:53:05 +0000 (15:53 +0200)]
utest: Add 16 tests cases for tdm_buffer

Change-Id: I75caad5e4236a7b5189d43832a10a6429c4c0ac9
Signed-off-by: Roman Marchenko <r.marchenko@samsung.com>
6 years agoadd excluding coverage comments for tdm_display.c 85/161085/1
Konstantin Drabeniuk [Tue, 21 Nov 2017 10:26:17 +0000 (12:26 +0200)]
add excluding coverage comments for tdm_display.c

add excluding coverage comments for tdm_display.c for folowing code:
- fail if there is not capability;
- poll fail.

Change-Id: I02b2bcb11058adc148057fd9a5e5d638751eab15
Signed-off-by: Konstantin Drabeniuk <k.drabeniuk@samsung.com>
6 years agoadd excluding coverage comments for tdm_capture.c 78/161078/1
Konstantin Drabeniuk [Tue, 21 Nov 2017 09:35:59 +0000 (11:35 +0200)]
add excluding coverage comments for tdm_capture.c

add excluding coverage comments for tdm_capture.c for folowing code:
- fail if the backend's function don't exist;
- fail if there is not capability;
- dump;
- calloc fail;
- check_module_abi fail;
- tdm_capture_create_layer_internal.

Change-Id: Icb04f5ab1cd7738d8216bb47cb80211c0821978d
Signed-off-by: Konstantin Drabeniuk <k.drabeniuk@samsung.com>
6 years agoutest: add 28 test cases 52/161052/4
Konstantin Drabeniuk [Tue, 21 Nov 2017 06:57:41 +0000 (08:57 +0200)]
utest: add 28 test cases

Covered API funcs. from the tdm_capture.c file.

Change-Id: I1e4a2426247a6b0fb0e07b4b6840f94f6f172e95
Signed-off-by: Konstantin Drabeniuk <k.drabeniuk@samsung.com>
6 years agocorrect ttrace debug information for vblank 62/161062/1
Boram Park [Tue, 21 Nov 2017 07:56:58 +0000 (16:56 +0900)]
correct ttrace debug information for vblank

Change-Id: Ie465ef620bc2f91b23c85a7321e7ba39de777c02

6 years agoremove unused event 61/161061/1
Boram Park [Tue, 21 Nov 2017 07:35:02 +0000 (16:35 +0900)]
remove unused event

Change-Id: Ia88e9468eb8ca36f0c6902d76d1eb9d9424d7cd5

6 years agoadd stamp to vblank objects 60/161060/1
Boram Park [Tue, 21 Nov 2017 07:31:35 +0000 (16:31 +0900)]
add stamp to vblank objects

To distinguish among vblank objects

Change-Id: Id419092118542442fa719824204e495c48e32d40

6 years agoutest: Add 37 tests cases for tdm_hwc_window 27/160527/6
Roman Marchenko [Thu, 16 Nov 2017 14:16:56 +0000 (16:16 +0200)]
utest: Add 37 tests cases for tdm_hwc_window

Change-Id: I292f3384828ae428e79cb3081cbcf23a709fbb83
Signed-off-by: Roman Marchenko <r.marchenko@samsung.com>
7 years agoturn on the utests bulding and fix svace issues 21/160621/4
Konstantin Drabeniuk [Fri, 17 Nov 2017 10:56:10 +0000 (12:56 +0200)]
turn on the utests bulding and fix svace issues

Change-Id: I1c8288cb962725462cc71b6621740dc81075274d
Signed-off-by: Konstantin Drabeniuk <k.drabeniuk@samsung.com>
7 years agoutest: fix warnings 20/160620/1
Konstantin Drabeniuk [Fri, 17 Nov 2017 07:01:38 +0000 (09:01 +0200)]
utest: fix warnings

Change-Id: I5bdb832d6074481723a7ddd14a4b1028f7701188
Signed-off-by: Konstantin Drabeniuk <k.drabeniuk@samsung.com>
7 years agooutput: add debugging logs 14/160614/2
Boram Park [Fri, 17 Nov 2017 06:47:22 +0000 (15:47 +0900)]
output: add debugging logs

Change-Id: I716746908d47b15757772ebc71cf714a0e0a5771

7 years agoadd excluding coverage comments for tdm_pp.c 33/160533/1
Konstantin Drabeniuk [Thu, 16 Nov 2017 15:21:57 +0000 (17:21 +0200)]
add excluding coverage comments for tdm_pp.c

add excluding coverage comments for tdm_pp.c for folowing code:
- fail if the backend's function don't exist;
- dump;
- calloc fail;
- check_module_abi fail.

Change-Id: Ie4dd5dfbd086b858f9235afd72ab7b6518714dc9

7 years agoutest: Add 26 test cases 32/160532/1
Konstantin Drabeniuk [Thu, 16 Nov 2017 15:17:12 +0000 (17:17 +0200)]
utest: Add 26 test cases

Covered API funcs. from the tdm_pp.c file.

Change-Id: I3c0c123d90fdde0929b88cdccb56a456b3d6853a
Signed-off-by: Konstantin Drabeniuk <k.drabeniuk@samsung.com>
7 years agovblank: using tdm_output function to get DPMS status. 14/160414/1
Boram Park [Thu, 16 Nov 2017 04:56:37 +0000 (13:56 +0900)]
vblank: using tdm_output function to get DPMS status.

Storing DPMS value made inconsistency with output's DPMS value

Change-Id: I303486cda38c2d8c9c01346facf1e7848b9c63e3

7 years agooutput: return current_dpms_value if commit_per_vblank is false 13/160413/1
Boram Park [Thu, 16 Nov 2017 04:53:25 +0000 (13:53 +0900)]
output: return current_dpms_value if commit_per_vblank is false

To use the stored value to reduce the interaction between frontend and backend.
If commit_per_vblank is true, tdm_output_get_dpms_internal calls backend's
output_get_dpms always function to get dpms status. Some backends doesn't
work properly for DPMS.

In future, we'd better use new env instead of using commit_per_vblank variable
to distinguish whether we use the stored value or backend's output_get_dpms.

Change-Id: I464e5d0dee98985e657f6db636b4386258ffaa8e

7 years agoadd excluding coverage comments for tdm_layer.c 47/160347/1
Konstantin Drabeniuk [Wed, 15 Nov 2017 12:29:24 +0000 (14:29 +0200)]
add excluding coverage comments for tdm_layer.c

add excluding coverage comments for tdm_layer.c for folowing code:
- fail if the backend's function don't exist;
- dump;
- print fps;
- calloc fail;
- fail in the TBM.

Change-Id: I9e1046f32315147d97930f786047878daca21690
Signed-off-by: Konstantin Drabeniuk <k.drabeniuk@samsung.com>
7 years agoutests: Add 83 test cases 42/160342/2
Konstantin Drabeniuk [Wed, 15 Nov 2017 12:09:02 +0000 (14:09 +0200)]
utests: Add 83 test cases

Covered API funcs. from the tdm_layer.c file.

Change-Id: I27317f987320ee40d1e03ecb98a8e6eac6e28008
Signed-off-by: Konstantin Drabeniuk <k.drabeniuk@samsung.com>
7 years agopackage version up to 1.8.3 13/160113/1 accepted/tizen/unified/20171115.174122 submit/tizen/20171115.084759
SooChan Lim [Tue, 14 Nov 2017 11:32:07 +0000 (20:32 +0900)]
package version up to 1.8.3

Change-Id: I2d6461dfd3f65790f7aa5c00a7f19a4a3978e81b

7 years agochange the version of hwc_window. 12/160112/1
SooChan Lim [Tue, 14 Nov 2017 11:31:02 +0000 (20:31 +0900)]
change the version of hwc_window.

this version change is for the developement temporarily

Change-Id: I4a64f37ef1f9b85f412e200ec2c1542dcfb0cfe5

7 years agoutests: fix errors in the vblank's test cases 42/160042/3
Konstantin Drabeniuk [Tue, 14 Nov 2017 08:15:41 +0000 (10:15 +0200)]
utests: fix errors in the vblank's test cases

- set mode and dpms only for the TDMVblankWait's test cases
- make commit for primary layer

Change-Id: I3953fbdec743e7177b2a7725f223601bb1f5b47b
Signed-off-by: Konstantin Drabeniuk <k.drabeniuk@samsung.com>
7 years agodump layer buffer when calling tdm_layer_set_buffer 73/159773/2
Changyeon Lee [Mon, 13 Nov 2017 04:48:13 +0000 (13:48 +0900)]
dump layer buffer when calling tdm_layer_set_buffer

Change-Id: Id0fdf736a3590a2251d59f1fb32f3d7beb692e62

7 years ago[hwc] adopt COMMIT_PER_VBLANK functionality for each ouptut 13/159513/4 accepted/tizen/unified/20171113.161439 submit/tizen/20171113.023250
Sergey Sizonov [Thu, 9 Nov 2017 09:04:24 +0000 (12:04 +0300)]
[hwc] adopt COMMIT_PER_VBLANK functionality for each ouptut

The new TDM HWC API made us to provide the COMMIT_PER_VBLANK
functionality for each output independently.

An output tdm-backend provides the hwc capability for isn't
intended to be managed by tdm_layer_xxx functions, so there's
no need to have the COMMIT_PER_VBLANK functionality turned on
for such output, in contrast to outputs tdm-backend doesn't
provide the hwc capability for.

So now the COMMIT_PER_VBLANK functionality for the outputs
which don't support hwc behaves depend on a TDM_COMMIT_PER_VBLANK
env variable while outputs which support are always have this
functionality turned off (like they read TDM_COMMIT_PER_VBLANK as '0')

Change-Id: I8454915d635016edfcb2dca3ac4bd455c48f4c44
Signed-off-by: Sergey Sizonov <s.sizonov@samsung.com>
7 years ago[utest] Add 108 test cases 94/159694/2
Konstantin Drabeniuk [Fri, 10 Nov 2017 15:39:07 +0000 (17:39 +0200)]
[utest] Add 108 test cases

Covered API funcs. from the tdm_vblank.c file.

Change-Id: I7bc8557863c088fd9623a12bb83fa2415e4351b8
Signed-off-by: Konstantin Drabeniuk <k.drabeniuk@samsung.com>
7 years ago[utest] Add 34 test cases 93/159693/1
Andrii Sokolenko [Fri, 10 Nov 2017 15:29:44 +0000 (17:29 +0200)]
[utest] Add 34 test cases

Change-Id: I688da85318260b6a3ba342eb7b28ce0d1a99b04d
Signed-off-by: Andrii Sokolenko <a.sokolenko@samsung.com>
7 years ago[utest] Add 9 test cases. Fix Init/Deinit behavior. 65/159565/1
Andrii Sokolenko [Thu, 9 Nov 2017 16:35:50 +0000 (18:35 +0200)]
[utest] Add 9 test cases. Fix Init/Deinit behavior.

Change-Id: Ib77379ef55ecc145e9b87702ca2b99969718c677
Signed-off-by: Andrii Sokolenko <a.sokolenko@samsung.com>
7 years ago[utest] Add 25 test cases. 05/159405/2
Andrii Sokolenko [Wed, 8 Nov 2017 16:21:57 +0000 (18:21 +0200)]
[utest] Add 25 test cases.

Change-Id: I98437b4ad61706df1c9548e178f04035f91562d3
Signed-off-by: Andrii Sokolenko <a.sokolenko@samsung.com>
7 years agotdm_display_deinit: use tbm_drm_helper_unset_tbm_master_fd() for unset tbm_master_fd 32/159332/1
Konstantin Drabeniuk [Wed, 8 Nov 2017 07:41:04 +0000 (09:41 +0200)]
tdm_display_deinit: use tbm_drm_helper_unset_tbm_master_fd() for unset tbm_master_fd

It is wrong to use tdm_helper_set_fd() func. to unset TDM_DRM_MASTER_FD.
tdm_helper_set_fd() call tbm_drm_helper_set_tbm_master_fd() which fails
when we pass -1.

The error was found as result of utests.

Change-Id: I5d67b5841a5fafde6424890d32ae480be7c1808a
Signed-off-by: Konstantin Drabeniuk <k.drabeniuk@samsung.com>
7 years ago[utest] Rework unit-test based on blackbox method. Removed stubs, wrappers. Added... 54/159054/4
Andrii Sokolenko [Mon, 6 Nov 2017 16:44:55 +0000 (18:44 +0200)]
[utest] Rework unit-test based on blackbox method. Removed stubs, wrappers. Added 35 tests

Change-Id: Id5b1e9f90a47ec55f985416057acc1e338971714
Signed-off-by: Andrii Sokolenko <a.sokolenko@samsung.com>
7 years agooutput: change error value & add logs for debugging 90/159090/2
Boram Park [Tue, 7 Nov 2017 02:40:50 +0000 (11:40 +0900)]
output: change error value & add logs for debugging

Change-Id: Icbdd17b5ad65af3c4ca273641825463e7fc2aab3

7 years ago[hwc] use TDM_OUTPUT_CAPABILITY_HWC instead of TDM_DISPLAY_CAPABILITY_HWC 10/158510/1 accepted/tizen/unified/20171102.061517 submit/tizen/20171101.104829
Roman Marchenko [Wed, 1 Nov 2017 09:47:14 +0000 (11:47 +0200)]
[hwc] use TDM_OUTPUT_CAPABILITY_HWC instead of TDM_DISPLAY_CAPABILITY_HWC

When tdm backend does not want the control hwc policy on one of the outputs
(eg HDMI output), it don't set this capability flag and e20 should use layers

Change-Id: I3a21f094e72ca92fc4a545590ceff4e2228feb19
Signed-off-by: Roman Marchenko <r.marchenko@samsung.com>
7 years agotdm: remove unncessary code
Boram Park [Wed, 1 Nov 2017 03:02:11 +0000 (12:02 +0900)]
tdm: remove unncessary code

Change-Id: I38863ae2f9572b4b347216f2d804b281d1f8d70f

7 years agoutest: rename the ut to the utests 86/158286/1
SooChan Lim [Tue, 31 Oct 2017 00:21:40 +0000 (09:21 +0900)]
utest: rename the ut to the utests

Change-Id: Id22d254e82d3451535a7a665d35afee52a238941

7 years agout: remove gtest codes 34/158234/4
SooChan Lim [Mon, 30 Oct 2017 10:49:25 +0000 (19:49 +0900)]
ut: remove gtest codes

use the gtest-devel package to build the ut test cases.
gtest packages has uploaded to the tizen repository.

Change-Id: Ib35f7180c3591d84acff3ae82f553fbe40d18909
Signed-off-by: SooChan Lim <sc1.lim@samsung.com>
7 years agout: sync with gtest branch 33/158233/3
SooChan Lim [Mon, 30 Oct 2017 10:47:09 +0000 (19:47 +0900)]
ut: sync with gtest branch

Change-Id: I17eb7b6efb2e54d3af5945457f7a8696c5ebdf6a

7 years agout: improve code coverage of tdm_event_loop.c 32/158232/4
Roman Peresipkyn [Fri, 16 Dec 2016 09:20:37 +0000 (11:20 +0200)]
ut: improve code coverage of tdm_event_loop.c

Change-Id: Ieee69447250e8ebef15b8abda58731dd56b2b79a
Signed-off-by: Roman Peresipkyn <r.peresipkyn@samsung.com>
Signed-off-by: SooChan Lim <sc1.lim@samsung.com>
7 years agout: improve code coverage of tdm_capture.c 31/158231/4
Konstantin Drabeniuk [Thu, 15 Dec 2016 14:41:00 +0000 (16:41 +0200)]
ut: improve code coverage of tdm_capture.c

Change-Id: I1c3a3899d03e4f32df5dff77fe6b631f38e8e4ee
Signed-off-by: Konstantin Drabeniuk <k.drabeniuk@samsung.com>
Signed-off-by: SooChan Lim <sc1.lim@samsung.com>
7 years agout: improve code coverage of tdm_buffer.c 30/158230/4
Konstantin Drabeniuk [Wed, 14 Dec 2016 14:30:15 +0000 (16:30 +0200)]
ut: improve code coverage of tdm_buffer.c

Change-Id: Ie003d457b800029c280952303c8a0d4b1a97edd6
Signed-off-by: Konstantin Drabeniuk <k.drabeniuk@samsung.com>
Signed-off-by: SooChan Lim <sc1.lim@samsung.com>
7 years agout: improve code coverage of tdm_pp.c 29/158229/4
Konstantin Drabeniuk [Wed, 14 Dec 2016 11:50:25 +0000 (13:50 +0200)]
ut: improve code coverage of tdm_pp.c

Change-Id: I764c211fce9bb0111de124a8235696c06cc47c55
Signed-off-by: Roman Marchenko <r.marchenko@samsung.com>
Signed-off-by: SooChan Lim <sc1.lim@samsung.com>
7 years agout: improve code coverage of tdm_helper.c 28/158228/4
Roman Marchenko [Fri, 9 Dec 2016 12:32:43 +0000 (14:32 +0200)]
ut: improve code coverage of tdm_helper.c

Change-Id: I40ed5e701b721fb792562e33a75c371da144e6c5
Signed-off-by: Roman Marchenko <r.marchenko@samsung.com>
Signed-off-by: SooChan Lim <sc1.lim@samsung.com>
7 years agout: improve code coverage for tdm_display.c 27/158227/2
Konstantin Drabeniuk [Thu, 8 Dec 2016 15:43:34 +0000 (17:43 +0200)]
ut: improve code coverage for tdm_display.c

Change-Id: Ice4662e9b5a5bababb2e4bc7f0df6ab3227dd82b
Signed-off-by: Konstantin Drabeniuk <k.drabeniuk@samsung.com>
Signed-off-by: SooChan Lim <sc1.lim@samsung.com>
7 years agout: write unit tests for tdm_vblank.c file 26/158226/2
Konstantin Drabeniuk [Tue, 6 Dec 2016 12:41:19 +0000 (14:41 +0200)]
ut: write unit tests for tdm_vblank.c file

Change-Id: I5638c538aeb4749857164fa9ae25942f13909856
Signed-off-by: Konstantin Drabeniuk <k.drabeniuk@samsung.com>
Signed-off-by: SooChan Lim <sc1.lim@samsung.com>
7 years agout: improve code coverage of tdm.c 25/158225/2
Roman Marchenko [Mon, 5 Dec 2016 13:03:33 +0000 (15:03 +0200)]
ut: improve code coverage of tdm.c

Change-Id: I6660783c6f2c21255fe343a40ff955150622a72d
Signed-off-by: Roman Marchenko <r.marchenko@samsung.com>
Signed-off-by: SooChan Lim <sc1.lim@samsung.com>
7 years agout: improve code coverage 24/158224/2
Konstantin Drabeniuk [Fri, 2 Dec 2016 12:46:48 +0000 (14:46 +0200)]
ut: improve code coverage

- write test for tdm_thread.c
- fix broken test
- refactoring stubs

Change-Id: I5c9be1d39dc1cc68b865a89698d94fc7ed52b463
Signed-off-by: Konstantin Drabeniuk <k.drabeniuk@samsung.com>
Signed-off-by: SooChan Lim <sc1.lim@samsung.com>
7 years agout: fixed warnings in unit test's sources 23/158223/1
Konstantin Drabeniuk [Tue, 11 Oct 2016 13:34:37 +0000 (16:34 +0300)]
ut: fixed warnings in unit test's sources

Change-Id: I400ef62625c48455caadf54369841b3db8742d1c
Signed-off-by: Konstantin Drabeniuk <k.drabeniuk@samsung.com>
7 years agoRevert "Revert "put gtest framework source code"" 22/158222/1
SooChan Lim [Mon, 30 Oct 2017 10:28:29 +0000 (19:28 +0900)]
Revert "Revert "put gtest framework source code""

This reverts commit 63d89e081baf1a1a79c5fb72e249b382427ebbf9.

Change-Id: Ie5582e4022298fb6816d6922939e84eecbc2b591
Signed-off-by: SooChan Lim <sc1.lim@samsung.com>
7 years ago[hwc] add impl of HWC API 92/157392/9 accepted/tizen/unified/20171030.161648 submit/tizen/20171030.021003
Roman Marchenko [Fri, 26 May 2017 09:54:14 +0000 (12:54 +0300)]
[hwc] add impl of HWC API

  add the output functions for a backend module:
     - output_hwc_window_create;
     - output_hwc_window_destroy;
     - output_hwc_validate;
     - output_hwc_get_changed_composition_types;
     - output_hwc_accept_changes;
     - output_hwc_get_target_surface_queue;
     - output_hwc_set_client_target_buffer;

  create the window functions for a backend module
     - hwc_window_get_tbm_surface_queue;
     - hwc_window_set_buffer;
     - hwc_window_set_composition_type;
     - hwc_window_set_info;
     - hwc_window_set_surface_damage;
     - hwc_window_set_zpos;
     - hwc_window_set_flags;
     - hwc_window_unset_flags;
     - hwc_window_video_get_capability;
     - hwc_window_video_get_supported_format;

Change-Id: I464fd37e5ce6e2f1548b210e935e98d3541b43cd
Signed-off-by: Roman Marchenko <r.marchenko@samsung.com>
7 years agopackage version up to 1.8.2 accepted/tizen/4.0/unified/20171011.071310 accepted/tizen/unified/20171011.065816 submit/tizen/20171010.082430 submit/tizen_4.0/20171010.082423 tizen_4.0.IoT.p1_release tizen_4.0.m2_release
Boram Park [Tue, 10 Oct 2017 08:23:51 +0000 (17:23 +0900)]
package version up to 1.8.2

Change-Id: I540bc9a7eb324f344b1bbaa913b1c2c61921008a

7 years agouse strncpy, strncat instead of snprintf for getenv 44/154444/1
Boram Park [Tue, 10 Oct 2017 08:12:26 +0000 (17:12 +0900)]
use strncpy, strncat instead of snprintf for getenv

Change-Id: Ia83f826590de742b5469163e9c38bdc51deff372

7 years agoremove link before calling the user handler 52/153652/1
Boram Park [Fri, 29 Sep 2017 05:08:45 +0000 (14:08 +0900)]
remove link before calling the user handler

Inside of the user handler, list can be changed. And it could make crash.

Change-Id: Ib49bc110e826ff7b34b6c8bc2224b5006b1972ba

7 years agotest: set enviroment for testing 14/153614/1
Boram Park [Fri, 29 Sep 2017 02:39:40 +0000 (11:39 +0900)]
test: set enviroment for testing

Change-Id: I0fdd86a9c15e33b25eaf1fa0482c94472f4b025b

7 years agoRevert "implementation for SCREEN_PREROTATION_HINT" 13/153613/1
Boram Park [Fri, 29 Sep 2017 02:28:54 +0000 (11:28 +0900)]
Revert "implementation for SCREEN_PREROTATION_HINT"

This reverts commit f4aa0253c0f401b86bf1769e200b216cd2d8b66d.

Change-Id: Ic15d3a1815bbf9eab57240cc50514c9937bcf662

7 years agoset drm_fd to tbm accepted/tizen/4.0/unified/20170929.075518 accepted/tizen/unified/20170928.072113 submit/tizen/20170927.064133 submit/tizen_4.0/20170927.064121
Boram Park [Wed, 27 Sep 2017 08:37:21 +0000 (17:37 +0900)]
set drm_fd to tbm

Change-Id: If4e231b807744f14621dfb4ccc710191b6d09aab

7 years agopackage version up to 1.8.1
Boram Park [Wed, 27 Sep 2017 06:39:30 +0000 (15:39 +0900)]
package version up to 1.8.1

Change-Id: I7744c6b4582f0e5f3dde7a09bcb15ea0ec8d1d3e

7 years agoadd validation check for getenv 08/152708/1
Boram Park [Wed, 27 Sep 2017 01:32:30 +0000 (10:32 +0900)]
add validation check for getenv

Change-Id: I88df5bdfeb5049b0ba3c84fb841a9d062a9c01d9

7 years agoremove unnecessary condition 07/152707/1
Boram Park [Wed, 27 Sep 2017 01:31:16 +0000 (10:31 +0900)]
remove unnecessary condition

Change-Id: Ib27a298da0b3194c1f42feca95739f53f4e05bb1

7 years agopackage version up to 1.8.0 accepted/tizen/4.0/unified/20170925.071809 accepted/tizen/unified/20170925.071314 submit/tizen/20170922.080343 submit/tizen_4.0/20170922.080338
Boram Park [Fri, 22 Sep 2017 07:57:01 +0000 (16:57 +0900)]
package version up to 1.8.0

Change-Id: Ib8fb6088111712c0e36e685dd351aeb2d1771488

7 years agolayer: pending layer's data until committed 55/151755/1
Boram Park [Fri, 22 Sep 2017 01:46:16 +0000 (10:46 +0900)]
layer: pending layer's data until committed

The layer's info and buffer information should be applied when tdm_layer_commit
called. Otherwise, when we call tdm_layer_commit for A layer, the changes of B
layer can be applied to backend unintentionally.

Change-Id: I5cfdde9ed9f918174aa5a0785bad48c93c4b2091

7 years agonot using setenv, getenv for drm fd 16/150716/1
Boram Park [Fri, 15 Sep 2017 09:54:52 +0000 (18:54 +0900)]
not using setenv, getenv for drm fd

Change-Id: I2557864152f310fc10b4bd9f0d26032720dba396

7 years agodo not execute wl_resource_get_client 41/150641/1 accepted/tizen/4.0/unified/20170920.081351 accepted/tizen/unified/20170920.065440 submit/tizen/20170918.074227 submit/tizen_4.0/20170918.074318
Junkyeong Kim [Mon, 18 Sep 2017 06:39:48 +0000 (15:39 +0900)]
do not execute wl_resource_get_client

Change-Id: If9f9f636c9b1206943d4f6644d65ada660f64397
Signed-off-by: Junkyeong Kim <jk0430.kim@samsung.com>
7 years agobackend: add dummy backend. 25/149825/7
Boram Park [Wed, 13 Sep 2017 03:41:19 +0000 (12:41 +0900)]
backend: add dummy backend.

Change-Id: I5829d55e3f14d531c55adab3fde9bcaf145464cd

7 years agoload a dummy module if failed to load a default module 26/149826/5
Boram Park [Wed, 13 Sep 2017 07:12:54 +0000 (16:12 +0900)]
load a dummy module if failed to load a default module

Change-Id: I29efec59122b4e6b4a9666b901edf214fd09221b

7 years agopackage vesion up to 1.7.8 accepted/tizen/4.0/unified/20170911.154640 accepted/tizen/unified/20170911.155746 submit/tizen/20170908.074504 submit/tizen_4.0/20170908.074604
Boram Park [Fri, 8 Sep 2017 07:43:44 +0000 (16:43 +0900)]
package vesion up to 1.7.8

Change-Id: Iaeeff325761e15d591326dbf73ce63be53bedb9f

7 years agoadd debugging logs 92/148592/3
Boram Park [Fri, 8 Sep 2017 06:24:28 +0000 (15:24 +0900)]
add debugging logs

Change-Id: I3aae4e23b3d6b24f8638ea58673a63e844acb5fa

7 years agouse SW timer when output disconnected 91/148591/1
Boram Park [Fri, 8 Sep 2017 05:35:40 +0000 (14:35 +0900)]
use SW timer when output disconnected

If enable_fake == 1, use SW timer when output disconnected as well as DPMS off.

Change-Id: I9e528b6eb6749d099c6b8f7ff765ce46a7728f5a

7 years agoadd error information to protocol 90/148590/1
Boram Park [Fri, 8 Sep 2017 02:58:28 +0000 (11:58 +0900)]
add error information to protocol

Change-Id: Ieba9ce9235eb815528228b6b656d12531af7e746

7 years agoadd error type for output disconnection 89/148589/1
Boram Park [Fri, 8 Sep 2017 02:57:25 +0000 (11:57 +0900)]
add error type for output disconnection

Change-Id: I7450a453217d138cb73e8be289e72682a13bf768

7 years agoadd get_dpms, get_connection, get_mode request 88/148588/1
Boram Park [Fri, 8 Sep 2017 02:07:43 +0000 (11:07 +0900)]
add get_dpms, get_connection, get_mode request

If a client adds the change_handler, we might be able to guess that
the client will watch the tdm client's fd and handle tdm events in
event loop. Otherwise, we CAN'T make sure if a client has event loop
which handles tdm events.

Change-Id: I49685d7eb3b88cda59b167f5ae66a7e9501a2315

7 years agotdm-monitor: fix big message issue 36/147136/1
Boram Park [Thu, 31 Aug 2017 05:31:56 +0000 (14:31 +0900)]
tdm-monitor: fix big message issue

Wayland has the 4096 message size restriction. So if tdm debug message
is bigger than that, the message will be devided.

Change-Id: I3ba57801bb149c489577ad1adff2c8befc69e69f

7 years agopackage version up to 1.7.7 accepted/tizen_3.0_common accepted/tizen_3.0_ivi accepted/tizen_3.0_mobile accepted/tizen_3.0_tv accepted/tizen_3.0_wearable tizen_3.0 accepted/tizen/3.0/common/20170824.151037 accepted/tizen/3.0/ivi/20170823.221705 accepted/tizen/3.0/mobile/20170823.221653 accepted/tizen/3.0/tv/20170823.221649 accepted/tizen/3.0/wearable/20170823.221657 accepted/tizen/4.0/unified/20170829.020334 accepted/tizen/unified/20170823.031646 submit/tizen/20170822.061509 submit/tizen_3.0/20170822.061503 submit/tizen_4.0/20170828.100004
Boram Park [Tue, 22 Aug 2017 06:14:06 +0000 (15:14 +0900)]
package version up to 1.7.7

Change-Id: I523415f93746816f933806d07f6c1d2f03088895

7 years agodump layer when calling tdm_layer_set_buffer 93/145293/1
Boram Park [Tue, 22 Aug 2017 04:25:48 +0000 (13:25 +0900)]
dump layer when calling tdm_layer_set_buffer

To dump all buffers of a layer, set_buffer function is much better than
layer_committed function.

Change-Id: I51c3daf926490a23764067e4a75fa6a12cab5f18

7 years agoadd tdm_helper_clear_buffer_color function 92/145292/1
Boram Park [Tue, 22 Aug 2017 04:24:19 +0000 (13:24 +0900)]
add tdm_helper_clear_buffer_color function

Change-Id: I033f2212eb057b9896cb5d37e0d6eacb059994a5

7 years agocorrect wrong description 91/145291/1
Boram Park [Tue, 22 Aug 2017 04:23:35 +0000 (13:23 +0900)]
correct wrong description

Change-Id: I2b5110d70a8ae81ac805d557c0b6715256947cbc

7 years agolayer: dump layer buffers when showing 50/145050/2
Boram Park [Sat, 19 Aug 2017 07:41:33 +0000 (16:41 +0900)]
layer: dump layer buffers when showing

Change-Id: I157ff0b26fdbbb71cea08d5c65a99691dffbbae2

7 years agopackage version up to 1.7.6 accepted/tizen/3.0/common/20170818.111940 accepted/tizen/3.0/ivi/20170818.001216 accepted/tizen/3.0/mobile/20170818.001200 accepted/tizen/3.0/tv/20170818.001204 accepted/tizen/3.0/wearable/20170818.001208 accepted/tizen/unified/20170818.000006 submit/tizen/20170816.052422 submit/tizen_3.0/20170816.052416
Boram Park [Wed, 16 Aug 2017 05:23:43 +0000 (14:23 +0900)]
package version up to 1.7.6

Change-Id: I8598c7f16df9c651f79f53aabf6bc7009e691b21

7 years agoclient: change log level
Boram Park [Wed, 16 Aug 2017 05:23:05 +0000 (14:23 +0900)]
client: change log level

Change-Id: I7e3cdf1e0104cc556da6b0407d1dc403c36f75e5

7 years agovblank: correct the client request time 48/144248/1
Boram Park [Wed, 16 Aug 2017 05:06:44 +0000 (14:06 +0900)]
vblank: correct the client request time

The client request time SHOULD be bigger than the last vblank time. To make
sure it, we forcely set the last vblank time to the client request time when
the req_time is smaller than the last_time.

Change-Id: Ib1dbec907fa04693d6df05b8260e300f6032563e

7 years agoclient: enhance vblank logs 47/144247/1
Boram Park [Wed, 16 Aug 2017 05:04:00 +0000 (14:04 +0900)]
client: enhance vblank logs

Change-Id: I6b12bc6aa56a1d4cdd2c319d7172dc46945fbd20

7 years agopackage version up to 1.7.5 accepted/tizen/3.0/common/20170808.135630 accepted/tizen/3.0/ivi/20170808.070924 accepted/tizen/3.0/mobile/20170808.070909 accepted/tizen/3.0/tv/20170808.070913 accepted/tizen/unified/20170808.171305 submit/tizen/20170807.103032 submit/tizen_3.0/20170807.103117
Boram Park [Mon, 7 Aug 2017 10:30:08 +0000 (19:30 +0900)]
package version up to 1.7.5

Change-Id: Id40ac9c7d9193125051433a0603f0abbf3a01871

7 years agoadapt ASLR for tdm-monitor and tools 34/142734/3
SooChan Lim [Mon, 7 Aug 2017 06:27:41 +0000 (15:27 +0900)]
adapt ASLR for tdm-monitor and tools

Change-Id: I14544a6fa5f4a9d4ded753ec12f031a7e09309ef

7 years agoremove buffers from commit_buffer_list when commit failed. 76/142776/1
Boram Park [Mon, 7 Aug 2017 07:57:16 +0000 (16:57 +0900)]
remove buffers from commit_buffer_list when commit failed.

When pp, commit is the sync operation, cb_done() will be called at the line of
commit(). In this case, buffers will be freed in cb_done() before
LIST_FOR_EACH_ENTRY_SAFE(b, bb, &commit_buffer_list, commit_link) line done.
So commit_link should be deleted when freed.

When commit() successed, commit_link will be deleted twice. So we need to use
LIST_DELINIT instead of LIST_DEL

Change-Id: I6a09878e1eae49d31eb3f3626e005a3ae10841d8

7 years agofix memory leak 75/142775/1
Boram Park [Mon, 7 Aug 2017 07:53:34 +0000 (16:53 +0900)]
fix memory leak

Change-Id: I3e259c314d069bc76884b96dba2b08d975060716

7 years agopackage version up to 1.7.4 38/141038/1 accepted/tizen/3.0/common/20170731.131807 accepted/tizen/3.0/mobile/20170731.012938 accepted/tizen/3.0/wearable/20170731.012951 accepted/tizen/4.0/unified/20170816.013707 accepted/tizen/4.0/unified/20170816.020122 accepted/tizen/unified/20170731.020751 submit/tizen/20170728.020557 submit/tizen/20170730.030247 submit/tizen_3.0/20170728.020613 submit/tizen_3.0/20170730.030330 submit/tizen_4.0/20170811.094300 submit/tizen_4.0/20170814.115522 submit/tizen_4.0_unified/20170814.115522
SooChan Lim [Fri, 28 Jul 2017 01:59:31 +0000 (10:59 +0900)]
package version up to 1.7.4

Change-Id: I30ad6821660e110bf9b51dc80352a6e3092cfb98

7 years agodeinit the event loop after all resources are destroyed. 55/140555/2
Boram Park [Tue, 25 Jul 2017 10:05:18 +0000 (19:05 +0900)]
deinit the event loop after all resources are destroyed.

The event loop should be deinited after all event sources are removed. The
event sources can be removed in _tdm_display_destroy_private_display and
_tdm_display_unload_module function. So we make the tdm thread join to the
main thread and remove all resources. And finally we deinit the event loop.

Change-Id: I32f3b5429b40b0711ef50215d05e0eda1c8b1814

7 years agocorrect the wrong condition 54/140554/2
Boram Park [Tue, 25 Jul 2017 09:58:56 +0000 (18:58 +0900)]
correct the wrong condition

Change-Id: Ie7a60db49527b1f1e71067d10eda4327d0492603

7 years agopackage version up to 1.7.3 submit/tizen/20170724.083827 submit/tizen/20170725.002544 submit/tizen_3.0/20170724.083818
Boram Park [Mon, 24 Jul 2017 08:37:43 +0000 (17:37 +0900)]
package version up to 1.7.3

Change-Id: I16d73e08975905546d71fe413e8395de75eba99d

7 years agolayer: check always commit handler list when checking commit possible 24/140224/2
Changyeon Lee [Mon, 24 Jul 2017 07:30:30 +0000 (16:30 +0900)]
layer: check always commit handler list when checking commit possible

Change-Id: I3a121f7a90e3ff68a473f473fbc6b4c864a0d859
Signed-off-by: Boram Park <boram1288.park@samsung.com>
7 years agopackage version up to 1.7.2 92/140092/1 accepted/tizen/3.0/common/20170724.093001 accepted/tizen/3.0/ivi/20170724.075559 accepted/tizen/3.0/mobile/20170724.075529 accepted/tizen/3.0/tv/20170724.075525 accepted/tizen/3.0/wearable/20170724.075622 submit/tizen/20170724.003539 submit/tizen_3.0/20170724.003534
Boram Park [Mon, 24 Jul 2017 00:34:15 +0000 (09:34 +0900)]
package version up to 1.7.2

Change-Id: I1131954ba752ae4d6d2fc9e5bb79483e99015e63

7 years agodump: add function to check whether file is link or not 12/139912/4
Sangjin Lee [Fri, 21 Jul 2017 04:44:23 +0000 (13:44 +0900)]
dump: add function to check whether file is link or not

According to security code guide, before open the file for write it
should be check the file is symbolic link.

Change-Id: I11e5be6898640995669c470cec703aef93869bfd

7 years agolock/unlock outside of the helper function 70/139970/1
Boram Park [Fri, 21 Jul 2017 07:09:57 +0000 (16:09 +0900)]
lock/unlock outside of the helper function

Change-Id: I58ffefedb39143391a62a3f9526dea09256f647b

7 years agolock/unlock when calling a tdm_output internal function 97/139497/1 accepted/tizen/3.0/common/20170721.115114 accepted/tizen/3.0/ivi/20170721.023843 accepted/tizen/3.0/mobile/20170721.023759 accepted/tizen/3.0/tv/20170721.023813 accepted/tizen/3.0/wearable/20170721.023829 accepted/tizen/unified/20170720.164852 submit/tizen/20170719.053735 submit/tizen_3.0/20170719.053725
Boram Park [Wed, 19 Jul 2017 06:10:06 +0000 (15:10 +0900)]
lock/unlock when calling a tdm_output internal function

Change-Id: I0b3e4023f79309fd276142a9706e6ade564e001c

7 years agopackage version up to 1.7.1
Boram Park [Wed, 19 Jul 2017 05:36:16 +0000 (14:36 +0900)]
package version up to 1.7.1

Change-Id: Ie7163eaa657b052afe4be96e7e46ad02b54fb295

7 years agofix invariant result 58/139458/3
Boram Park [Wed, 19 Jul 2017 05:06:34 +0000 (14:06 +0900)]
fix invariant result

Change-Id: Iecb805dfda52036b6bf9a37bb9af994dbe2979d8

7 years agoadd tdm_output_set_dpms_async 40/139440/1
Boram Park [Wed, 19 Jul 2017 03:23:44 +0000 (12:23 +0900)]
add tdm_output_set_dpms_async

Change-Id: I9775ea2e5e78e8a4b11ec85b2b7481b670959b13