Kazumasa Mitsunari [Fri, 28 Sep 2018 09:47:47 +0000 (18:47 +0900)]
Fix the size of chromium using setRole is not set
Change-Id: Iad8a58685a52df9d0ae98fc0b8951a81412b58b9
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Fri, 28 Sep 2018 08:16:11 +0000 (17:16 +0900)]
Fix the bug of searching Application
Change-Id: I7e79caa6133cda8a3c7677283cc01bf8abf6764c
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Tue, 25 Sep 2018 10:30:10 +0000 (19:30 +0900)]
Merge branch 'sandbox/knimitz/fix_set_role'
Change-Id: Ia53eb039ef5dd6a1eac3bb333d5fe67b4d906ef9
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Tue, 25 Sep 2018 04:30:07 +0000 (13:30 +0900)]
Remove service surface in WMClient if service surface vanishes
Change-Id: I3c12a8313c6aaa411001fec260d09106f897664e
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Tue, 25 Sep 2018 03:19:14 +0000 (12:19 +0900)]
Implement attachApp
Change-Id: I4082fd400fd2f82fcb6cbbcc66d584fb0a572827
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Tue, 18 Sep 2018 07:18:19 +0000 (16:18 +0900)]
On the way to adding attach service surface
Change-Id: Ief7fe7ecbe2022b9b6b70e4f3df1c2e7a074075a
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Tue, 18 Sep 2018 03:24:58 +0000 (12:24 +0900)]
Add setRenderOrder into WMClient
Implement finishes but not tested
Change-Id: I59929038c163c445b562e9d9f28516da57516339
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Fri, 14 Sep 2018 12:42:26 +0000 (21:42 +0900)]
Remove unnecessary functions
Change-Id: Ia66c5358572a1a6ea03c6f1e713b187f60979e8c
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Fri, 14 Sep 2018 12:23:57 +0000 (21:23 +0900)]
New API: setRenderOrder
Add stub function in windowmanager
Change-Id: I2e3f5ebe6318443bdcdfd21a14eadef2d69d8e4d
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Fri, 14 Sep 2018 11:41:56 +0000 (20:41 +0900)]
Fix setRole
Change-Id: If45fb7ab91146cd5e36a2d7c40d2e3533b3a84a1
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Fri, 14 Sep 2018 11:05:11 +0000 (20:05 +0900)]
Fix memory leak of return value of afb_req_get_application_id
Change-Id: I522e6e77ee76d44136c4398a1d67ce66a5b71638
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Fri, 14 Sep 2018 10:26:21 +0000 (19:26 +0900)]
Remove pid in args in setRole
Change-Id: Ic5d1610a3ac7b67764c4d1987abdd2790e482ff2
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Fri, 14 Sep 2018 09:51:33 +0000 (18:51 +0900)]
Fix requestSurfaceXDG
Change-Id: Ieb3d46e03e6b7894cb3175ee5c48a725f86c3426
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Fri, 14 Sep 2018 08:44:24 +0000 (17:44 +0900)]
Enable afm-main runners command
Change-Id: I12691897dfcb8e6bc2c732b4b306888c89c6b88b
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Fri, 14 Sep 2018 07:36:55 +0000 (16:36 +0900)]
Rename dispatchPropertyChangeEvent API
Stop overload and devide 2 APIs
* dispatchSurfacePropChangeEvent
* dispatchLayerPropChangeEvent
Change-Id: Ibe5fb58d0dd06bcc0aa4e5e6063b57d05715656e
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Wed, 12 Sep 2018 12:12:30 +0000 (21:12 +0900)]
Implement set_role
TODO: Test
* register_surface_xdg
* set_role
Next:
* attachApp
* setRenderOrder
* moveSurface
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Wed, 12 Sep 2018 08:47:23 +0000 (17:47 +0900)]
Use camelCase for verbs
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Wed, 12 Sep 2018 08:46:01 +0000 (17:46 +0900)]
Fix requestSurfaceXDG
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Wed, 12 Sep 2018 07:18:32 +0000 (16:18 +0900)]
Emit active/inactive
Change-Id: I95fab49ce6fa63a2f849fc896a0fd1a19c2c14cd
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Wed, 12 Sep 2018 05:05:08 +0000 (14:05 +0900)]
Remove wayland part from Window Manager [1/2]
Change-Id: Icc3c0d3460ee88620e4c2f910536d66928085cbb
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Wed, 12 Sep 2018 04:37:18 +0000 (13:37 +0900)]
Fix the manipulation of surface/layer
* Set offset when creating new layer
* Set surface size not layer when layoutChange
Change-Id: I335e8afa83d2874076d9138d473ce07399aa2e4b
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Wed, 12 Sep 2018 02:26:08 +0000 (11:26 +0900)]
Fix event dispatcher of surface and layer
Change-Id: I0bb83298a1750e4363d59ddf30ceb13402d76e0f
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Tue, 11 Sep 2018 11:02:44 +0000 (20:02 +0900)]
Fix double adding to render_order
Change-Id: I47a10f70b3e07b0bdb1339bf171c76cc8780c8e6
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Tue, 11 Sep 2018 04:56:24 +0000 (13:56 +0900)]
Add terminate process for layer_control
Change-Id: I583bfa1da8fa88e15b13417de15d7d2b9e79f7f2
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Thu, 30 Aug 2018 05:30:16 +0000 (14:30 +0900)]
Fix Window Manager crush when application terminated
Fix Window Manager crush when applicaiton terminated
caused by wrong handling of sd_event_source.
v2. Add error check just in case
conflict : window_manager.cpp
Fix build error
Bug-AGL: SPEC-1696
Change-Id: I639a60015cde46fca6bc5a3f6e8037afd8d79330
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Tue, 11 Sep 2018 03:15:28 +0000 (12:15 +0900)]
Change API in wm_layer
* commitChange -> update
* add undo
Change-Id: I81a10fe5fcaa802f224af75457869dadc7a83f25
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Tue, 11 Sep 2018 03:03:05 +0000 (12:03 +0900)]
Fix output debug message
Change-Id: I4ada8c5630666accf15b94312282b67a748b1c70
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Mon, 10 Sep 2018 09:22:15 +0000 (18:22 +0900)]
Enable policy manager for debug
Change-Id: I48771b1a2a2773543c0fbf94f8bed40f5468eaf7
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Mon, 10 Sep 2018 09:09:49 +0000 (18:09 +0900)]
Update wm_layer: Set Area to state
Change-Id: I039ac972ff2a10300938e50aae0ed57ea8606902
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Mon, 10 Sep 2018 08:48:15 +0000 (17:48 +0900)]
Remove sample
Change-Id: I8b4b96d3d73956bd515d91d66fd5490846b6f12a
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Mon, 10 Sep 2018 08:44:57 +0000 (17:44 +0900)]
LayerController::commitChange -> renderLayers
Change-Id: Ib0735e592f610a7b238a941db6b7bcb842410ce7
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Mon, 10 Sep 2018 08:42:44 +0000 (17:42 +0900)]
Update wm_layer* : Render order change
Change-Id: I3e417785d36e113a2b97076774d80c46defd3be4
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Mon, 10 Sep 2018 08:42:19 +0000 (17:42 +0900)]
Add application which goes to background
Change-Id: I2693829d3abb7e15fa7d2a767c4b069e65e35b62
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Mon, 10 Sep 2018 02:52:09 +0000 (11:52 +0900)]
Add commit_change after layer size changed
Change-Id: I93b931e2371939cda5a3977a1a4859658e302795
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Mon, 10 Sep 2018 00:57:58 +0000 (09:57 +0900)]
Fix the set property of layer source rectangle
source x,y should be 0,0 and then set destination
sets offset and scaling
Change-Id: I8e503e49ac7d186a7736b0e675838e5559deb7fd
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Sat, 8 Sep 2018 11:59:51 +0000 (20:59 +0900)]
Add callback function when surface dead
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Sat, 8 Sep 2018 11:06:45 +0000 (20:06 +0900)]
Watch the contents of TaskVisible
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Sat, 8 Sep 2018 10:19:48 +0000 (19:19 +0900)]
Change layer size when layoutChange()
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Sat, 8 Sep 2018 10:12:23 +0000 (19:12 +0900)]
Fix layer can't go to center
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Sat, 8 Sep 2018 09:18:50 +0000 (18:18 +0900)]
Change size (0, 0) if layer turns invisible
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Sat, 8 Sep 2018 07:54:08 +0000 (16:54 +0900)]
Fix window_manager.cpp used old_role
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Sat, 8 Sep 2018 07:43:22 +0000 (16:43 +0900)]
Fix the mistake of generating new layerID
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Sat, 8 Sep 2018 07:14:44 +0000 (16:14 +0900)]
Update wm_layer_control.cpp
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Sat, 8 Sep 2018 06:34:33 +0000 (15:34 +0900)]
Temporary fix of windowmanager
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Sat, 8 Sep 2018 06:33:48 +0000 (15:33 +0900)]
Return WMError instead of bool
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Sat, 8 Sep 2018 06:33:27 +0000 (15:33 +0900)]
Add .gitignore
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Sat, 8 Sep 2018 06:30:55 +0000 (15:30 +0900)]
Return nullptr if client is not found
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Sat, 8 Sep 2018 06:28:36 +0000 (15:28 +0900)]
Update wm_layer
* add getUuid
* add getWMLayer
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Sat, 8 Sep 2018 04:14:24 +0000 (13:14 +0900)]
Change local variable name
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Fri, 7 Sep 2018 06:12:53 +0000 (15:12 +0900)]
Modify getAppID
Change-Id: I3454b5013e59cd46be081dd30a295dda792deff8
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Fri, 7 Sep 2018 05:09:19 +0000 (14:09 +0900)]
addSurface to client
Change-Id: I2f09a94893699fc73bc82ac2caad5a9e282405b3
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Fri, 7 Sep 2018 02:27:06 +0000 (11:27 +0900)]
Remove wm_layer_name in wm_client
Change-Id: I6b146ca41f9be311d0d21163e5fe23aeabbfe3fc
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Fri, 7 Sep 2018 02:19:30 +0000 (11:19 +0900)]
Remove json.hpp
Change-Id: Iae61b204456c31f6815c507af32239870fc2c4b8
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Fri, 31 Aug 2018 12:24:55 +0000 (21:24 +0900)]
Fix a little : wm_layer_control
Change-Id: I2b360fc578a0d41c206ccf44474b243fd55879d2
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Fri, 31 Aug 2018 11:50:54 +0000 (20:50 +0900)]
Remove test code
Change-Id: If77e17efbe64da9d838c0991da3f6d5967e70928
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Fri, 31 Aug 2018 11:50:28 +0000 (20:50 +0900)]
Change struct WMAction
Change-Id: I46ce99ef4222018cbcaf371e7348040ebb992387
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Fri, 31 Aug 2018 10:30:33 +0000 (19:30 +0900)]
Fix CRLF
Change-Id: I1456949615b6a0a710f288e2dc46df1a69c3fa41
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Fri, 31 Aug 2018 10:29:32 +0000 (19:29 +0900)]
Emit syncDraw
Change-Id: Ib50673f88d8dd86b2f94f84ec02192a3780159c4
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Fri, 31 Aug 2018 09:39:43 +0000 (18:39 +0900)]
Add initialize code
Change-Id: I3854f91eab6c56f92bf1fdb75a61f587bc6a47c4
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Fri, 31 Aug 2018 09:35:31 +0000 (18:35 +0900)]
Bug Fix : wm_layer
Change-Id: I6048e6e5b98fcea167e5a0bc03e7f0e9761ff8af
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Fri, 31 Aug 2018 04:58:03 +0000 (13:58 +0900)]
Copy not layers.json but layers_setting.json
This name is temporary
Change-Id: I3ba07eb01fd4751f012c1245d4dcb51570e9d125
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Fri, 31 Aug 2018 04:57:04 +0000 (13:57 +0900)]
[PolicyManager]Include util.cpp
Change-Id: I3fc51042d93909773ae46be2e5d6f596d3fbc55e
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Fri, 31 Aug 2018 03:17:03 +0000 (12:17 +0900)]
Update windowmanager
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Fri, 31 Aug 2018 02:42:33 +0000 (11:42 +0900)]
Update wm_layer
* Set Area when layoutChange
* Implement hasRole
Change-Id: I684f3bce700d0bb6f4d4a6ef1a3e5242856c192b
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Fri, 31 Aug 2018 02:42:20 +0000 (11:42 +0900)]
Update wm_client
Change-Id: I76854f8a452c582d9bb3f795f6e779106304ad7a
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Fri, 31 Aug 2018 00:27:22 +0000 (09:27 +0900)]
Merge branch 'sandbox/knimitz/layer_with_pm_tmp' into sandbox/knimitz/layer_with_pm
Fix build error
Change-Id: I951b531440aee655c8be77d82971f1c1bffe81a8
Kazumasa Mitsunari [Fri, 31 Aug 2018 00:26:45 +0000 (09:26 +0900)]
Fix build error
Change-Id: Ifa4052b2d076a3b05bf937a6e2aaf2a7d79ebc13
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Thu, 30 Aug 2018 12:00:53 +0000 (21:00 +0900)]
temporary change
Change-Id: I48618fd00e607176c95b4e3950fca7dbb058a3b1
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Thu, 30 Aug 2018 06:48:53 +0000 (15:48 +0900)]
Hide variable into private
Change-Id: I372504c030cd69f6f6e667e2370860020431b900
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Tue, 28 Aug 2018 07:13:13 +0000 (16:13 +0900)]
Remove lookup_id and lookup_name
No need to wrap object
Change-Id: I2cb403aabd6d55d7b06024e1535c26c48fe74ac7
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Mon, 27 Aug 2018 10:15:45 +0000 (19:15 +0900)]
Update windowmanager
Change-Id: I2b50eb89aefb4a1f5abd3c26055f4cd8961ec21d
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Mon, 27 Aug 2018 10:15:30 +0000 (19:15 +0900)]
Update wm_client and applist
Change-Id: I76a58f431b894f2db1a8864f620c48311807befc
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Mon, 27 Aug 2018 06:28:00 +0000 (15:28 +0900)]
Update wm_layer
Change-Id: Ia8277ba20a97a0a5b3617ae14a447e0e962afafd
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Mon, 27 Aug 2018 05:36:41 +0000 (14:36 +0900)]
Implement setup/getArea
Move from layers.cpp
Change-Id: I3fba732b09272b45d1cb7ca7f9457777dd53fdad
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Mon, 27 Aug 2018 02:13:14 +0000 (11:13 +0900)]
Update wm_layer
Change-Id: Id4b9fe2ec6603e8ab0ad5cfa9b0af6dce3b1d149
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Sun, 26 Aug 2018 23:31:22 +0000 (08:31 +0900)]
Fix mistake of comparison
Change-Id: Ifab9782c204c523df33bfb2d82939f30243672f7
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Wed, 22 Aug 2018 12:19:21 +0000 (21:19 +0900)]
Append role to setting
Change-Id: I0c51005a03625a9e42b87b96b0b74fb57cb20f0d
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Wed, 22 Aug 2018 12:13:48 +0000 (21:13 +0900)]
Add loadLayerSetting
Change-Id: I08be64a3b0194175db4b3b7ef259254c10ad038b
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Wed, 22 Aug 2018 11:16:16 +0000 (20:16 +0900)]
Add loadAreaDb
Change-Id: Iccbb3730395832b1f0d3301f3866337211cf5907
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Wed, 22 Aug 2018 10:57:51 +0000 (19:57 +0900)]
Start to rework using ilmControl
Change-Id: Icfffea4c0587828f4dd863e9000e8aadb135c048
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Wed, 22 Aug 2018 04:49:31 +0000 (13:49 +0900)]
Remove struct unieque_fd
Any code doesn't use it anymore.
Change-Id: I64a3d518d12d33e399261678f715aa466d6df6a3
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Wed, 22 Aug 2018 04:44:31 +0000 (13:44 +0900)]
Remove useless definiition
Change-Id: I52eb2ec72e05191c88343eb16e6d12a00ad5667f
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Wed, 22 Aug 2018 04:43:42 +0000 (13:43 +0900)]
Fix util function HMI_*
To reduce coding, change HMI_*
Change-Id: Ib28b6a3c2756253e665498e459f5e1e165095941
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Wed, 22 Aug 2018 04:20:17 +0000 (13:20 +0900)]
Remove hmi-debug.h
To reduce warning message,
integrates hmi-debug into util.
Change-Id: Ibb83db196be8c0d6ff0a8d503978b3bef7b1e870
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Wed, 22 Aug 2018 00:56:01 +0000 (09:56 +0900)]
Move declaration to source code
Change-Id: I41e93a5bfe7d926b44201f08cf21fdd11b387bf5
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Wed, 22 Aug 2018 00:53:15 +0000 (09:53 +0900)]
Rename class name LayerManager to LayerControl
Change-Id: I60315e2a71af60b2a8e7576bc4313983330b5b3d
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Wed, 22 Aug 2018 00:05:52 +0000 (09:05 +0900)]
Forgot adding new files
Change-Id: I9f05c8ac369890403710214522c2faa3deb129fb
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Mon, 20 Aug 2018 09:35:53 +0000 (18:35 +0900)]
Add initialize of Layout Manager
Layout Manager is not suitable in this case... but this name is set be architecture...
Change-Id: Ia1612f243dcae2af229357cc982918b2b5ea7d7d
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Mon, 20 Aug 2018 06:03:57 +0000 (15:03 +0900)]
Omit std::string to string
Change-Id: I2da511300922859383c9eb30222813cdb0a910e1
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Mon, 20 Aug 2018 05:44:55 +0000 (14:44 +0900)]
Add setRole
Change-Id: I6ddf6e1b3b3667493c5a0dd68047d1b72c8b0da9
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Mon, 20 Aug 2018 05:24:54 +0000 (14:24 +0900)]
get callback of surface_stats_received
Change-Id: I2318752ba00f58c197ba42166c2ab91ea4c15bce
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Wed, 8 Aug 2018 09:32:27 +0000 (18:32 +0900)]
Add new class
Change-Id: I6bebfb030879b1bb2c7521bcd1d23d18d8174b36
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Wed, 8 Aug 2018 07:15:46 +0000 (16:15 +0900)]
Proposal: New layer settings
Change-Id: I860f8dea4eee340fd8ab3dba3bbaee1661c584bf
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Yuta Doi [Wed, 11 Jul 2018 07:21:37 +0000 (16:21 +0900)]
Readd policy table generated by ZIPC for EXAMPLE
This patch reverts commit
e4222ca8da3b02afca5625fa2cef6832aa8ce90e
and update it.
To Policy Manager, add the source code of policy table
which is generated by ZIPC for EXAMPLE.
If use this example,
please comment out line 22 and uncomment line 23
in policy_manager/CMakeLists.txt as follows:
#set(STM_DIR stub)
set(STM_DIR zipc)
If try to show split layout,
please set bool value "ON" to TRY_SPLIT_LAYOUT at line 28
in policy_manager/CMakeLists.txt as follows:
set(TRY_SPLIT_LAYOUT OFF CACHE BOOL "Enable to show split layout")
The generated source codes by ZIPC are
"Common" and "StateTransitionor" in policy_manager/stm/zipc/.
Bug-AGL: SPEC-1537
Change-Id: I1f91cf728eab79c229c5b4b12b9e1bdd338f64aa
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Yuta Doi [Mon, 9 Jul 2018 08:23:31 +0000 (17:23 +0900)]
Readd Policy Manager as plugin
This patch reverts commit
c6f9a9b8468b3746a3dec7ee2a0b7d84ec9fb44a
and update it.
Policy Manager decides next layout by inputed event and current state
based on the policy table.
And Policy Manager is plugin for Window Manager.
Therefore the OEMs can replace it.
This patch provides Policy Manager I/F as reference implementation
and does not have policy table.
Therefore Policy Manager updates each layers
to draw the applications in requested area
in accordance with just like activate/deactivate request.
[APIs of Policy Manager class]
- int initialize(void)
Initialize Policy Manger.
in: none
out: 0(success), -1(error)
- void registerCallback(CallbackTable callback_table)
Register callback functions.
in: the pointers of callback handlers
out: none
"CallbackTable" type is as follows:
typedef struct
{
Handler onStateTransitioned;
Handler onError;
} CallbackTable;
"Handler" type is as follows:
using Handler = std::function<void(json_object *)>;
- int setInputEventData(json_object *json_in)
Set input event data for the policy table.
in: input event data as json_object
out: 0(success), -1(error)
- int executeStateTransition(void)
Execute state transition by using set input event data.
in: none
out: 0(success), -1(error)
- void undoState(void)
Undo state only once per once state transition.
in: none
out: none
[Callbacks of Policy Manager class]
- void onStateTransitioned(json_object *json_out)
When state transition succeeds, this callback is called.
The argument json_out has the state after transition.
- void onError(json_object *json_out)
When state transition fails, this callback is called.
The argument json_out has the error information
like message, inputed event datas and etc..
Bug-AGL: SPEC-1537
Change-Id: Ib8c71f2e544cb90b6763d07fad56dc1c453e9a97
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Yuta Doi [Thu, 9 Aug 2018 09:53:06 +0000 (18:53 +0900)]
Fix multiple erase of surface information
When application is killed and the surface is destroyed,
the surface informations is erased twice.
Therefore remove the one eracing process.
Change-Id: I707febf5b5003058bcf847f635c16fb0d68e01d0
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Kazumasa Mitsunari [Fri, 3 Aug 2018 00:25:19 +0000 (09:25 +0900)]
Fix mistake
Currently, the code is not usable currently.
Change-Id: I2de1c0f04df411f085faacc1ab71203ba9b5e0b1
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Jan-Simon Moeller [Thu, 2 Aug 2018 16:14:39 +0000 (16:14 +0000)]
Merge changes from topic '15921'
* changes:
Fix WM attach layers to different screen.
Fix source rectangle changes every state change
Kazumasa Mitsunari [Thu, 2 Aug 2018 09:37:45 +0000 (18:37 +0900)]
Fix WM attach layers to different screen.
If setting 2 display from 1 Soc,
Window Manager attaches layers to different screen
since corresponding to upgrade of wayland-ivi-extension.
Fix the issue.
Bug-AGL: SPEC-1577
Change-Id: Ib6eb4a19dc892348271762f236cc0650a83a8f70
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Tadao Tanikawa [Wed, 1 Aug 2018 06:43:02 +0000 (06:43 +0000)]
Improve output of multiple screen resolution
To improve output on various monitor with various resolution,
the following items are introduced.
* Abandon scaling by Weston/IVI-SHELL
This is cause of huge memory consumption on AGL CES2018 Demo
because all contents are designed and rendered with FullHD
resolution.
* Add parameter of 'scale' to WM API (getDisplayInfo)
WM calculate scale factor from screen resolution from wayland
compositor and parameter of layout from WM's configuration,
area.db.
Bug-AGL: SPEC-1568, SPEC-1569, SPEC-1611
Change-Id: I5eac2da0106228c296550135c5200b2653864fdf
Signed-off-by: Tadao Tanikawa <tanikawa.tadao@jp.panasonic.com>