aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2018-09-07Remove wm_layer_name in wm_clientKazumasa Mitsunari6-36/+35
Change-Id: I6b146ca41f9be311d0d21163e5fe23aeabbfe3fc Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-09-07Remove json.hppKazumasa Mitsunari1-13003/+0
Change-Id: Iae61b204456c31f6815c507af32239870fc2c4b8 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-08-31Fix a little : wm_layer_controlKazumasa Mitsunari1-1/+3
Change-Id: I2b360fc578a0d41c206ccf44474b243fd55879d2 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-08-31Remove test codeKazumasa Mitsunari2-2/+0
Change-Id: If77e17efbe64da9d838c0991da3f6d5967e70928 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-08-31Change struct WMActionKazumasa Mitsunari5-26/+32
Change-Id: I46ce99ef4222018cbcaf371e7348040ebb992387 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-08-31Fix CRLFKazumasa Mitsunari2-99/+99
Change-Id: I1456949615b6a0a710f288e2dc46df1a69c3fa41 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-08-31Emit syncDrawKazumasa Mitsunari1-3/+7
Change-Id: Ib50673f88d8dd86b2f94f84ec02192a3780159c4 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-08-31Add initialize codeKazumasa Mitsunari1-0/+5
Change-Id: I3854f91eab6c56f92bf1fdb75a61f587bc6a47c4 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-08-31Bug Fix : wm_layerKazumasa Mitsunari3-8/+22
Change-Id: I6048e6e5b98fcea167e5a0bc03e7f0e9761ff8af Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-08-31Copy not layers.json but layers_setting.jsonKazumasa Mitsunari1-1/+1
This name is temporary Change-Id: I3ba07eb01fd4751f012c1245d4dcb51570e9d125 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-08-31[PolicyManager]Include util.cppKazumasa Mitsunari2-95/+96
Change-Id: I3fc51042d93909773ae46be2e5d6f596d3fbc55e Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-08-31Update windowmanagerKazumasa Mitsunari2-11/+7
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-08-31Update wm_layerKazumasa Mitsunari4-600/+653
* Set Area when layoutChange * Implement hasRole Change-Id: I684f3bce700d0bb6f4d4a6ef1a3e5242856c192b Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-08-31Update wm_clientKazumasa Mitsunari2-0/+12
Change-Id: I76854f8a452c582d9bb3f795f6e779106304ad7a Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-08-31Merge branch 'sandbox/knimitz/layer_with_pm_tmp' into ↵Kazumasa Mitsunari5-12/+127
sandbox/knimitz/layer_with_pm Fix build error Change-Id: I951b531440aee655c8be77d82971f1c1bffe81a8
2018-08-31Fix build errorKazumasa Mitsunari3-8/+11
Change-Id: Ifa4052b2d076a3b05bf937a6e2aaf2a7d79ebc13 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-08-30temporary changeKazumasa Mitsunari5-12/+124
Change-Id: I48618fd00e607176c95b4e3950fca7dbb058a3b1 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-08-30Hide variable into privateKazumasa Mitsunari1-23/+19
Change-Id: I372504c030cd69f6f6e667e2370860020431b900 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-08-28Remove lookup_id and lookup_nameKazumasa Mitsunari2-18/+7
No need to wrap object Change-Id: I2cb403aabd6d55d7b06024e1535c26c48fe74ac7 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-08-27Update windowmanagerKazumasa Mitsunari1-38/+59
Change-Id: I2b50eb89aefb4a1f5abd3c26055f4cd8961ec21d Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-08-27Update wm_client and applistKazumasa Mitsunari4-21/+39
Change-Id: I76a58f431b894f2db1a8864f620c48311807befc Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-08-27Update wm_layerKazumasa Mitsunari4-90/+72
Change-Id: Ia8277ba20a97a0a5b3617ae14a447e0e962afafd Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-08-27Implement setup/getAreaKazumasa Mitsunari2-2/+44
Move from layers.cpp Change-Id: I3fba732b09272b45d1cb7ca7f9457777dd53fdad Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-08-27Update wm_layerKazumasa Mitsunari4-32/+304
Change-Id: Id4b9fe2ec6603e8ab0ad5cfa9b0af6dce3b1d149 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-08-27Fix mistake of comparisonKazumasa Mitsunari1-1/+1
Change-Id: Ifab9782c204c523df33bfb2d82939f30243672f7 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-08-22Append role to settingKazumasa Mitsunari1-0/+1
Change-Id: I0c51005a03625a9e42b87b96b0b74fb57cb20f0d Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-08-22Add loadLayerSettingKazumasa Mitsunari3-2/+55
Change-Id: I08be64a3b0194175db4b3b7ef259254c10ad038b Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-08-22Add loadAreaDbKazumasa Mitsunari2-2/+79
Change-Id: Iccbb3730395832b1f0d3301f3866337211cf5907 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-08-22Start to rework using ilmControlKazumasa Mitsunari13-372/+210
Change-Id: Icfffea4c0587828f4dd863e9000e8aadb135c048 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-08-22Remove struct unieque_fdKazumasa Mitsunari2-28/+0
Any code doesn't use it anymore. Change-Id: I64a3d518d12d33e399261678f715aa466d6df6a3 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-08-22Remove useless definiitionKazumasa Mitsunari1-16/+0
Change-Id: I52eb2ec72e05191c88343eb16e6d12a00ad5667f Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-08-22Fix util function HMI_*Kazumasa Mitsunari10-159/+162
To reduce coding, change HMI_* Change-Id: Ib28b6a3c2756253e665498e459f5e1e165095941 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-08-22Remove hmi-debug.hKazumasa Mitsunari14-261/+128
To reduce warning message, integrates hmi-debug into util. Change-Id: Ibb83db196be8c0d6ff0a8d503978b3bef7b1e870 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-08-22Move declaration to source codeKazumasa Mitsunari2-1/+2
Change-Id: I41e93a5bfe7d926b44201f08cf21fdd11b387bf5 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-08-22Rename class name LayerManager to LayerControlKazumasa Mitsunari5-28/+41
Change-Id: I60315e2a71af60b2a8e7576bc4313983330b5b3d Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-08-22Forgot adding new filesKazumasa Mitsunari4-0/+324
Change-Id: I9f05c8ac369890403710214522c2faa3deb129fb Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-08-20Add initialize of Layout ManagerKazumasa Mitsunari4-57/+12
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>
2018-08-20Omit std::string to stringKazumasa Mitsunari1-41/+44
Change-Id: I2da511300922859383c9eb30222813cdb0a910e1 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-08-20Add setRoleKazumasa Mitsunari7-21/+269
Change-Id: I6ddf6e1b3b3667493c5a0dd68047d1b72c8b0da9 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-08-20get callback of surface_stats_receivedKazumasa Mitsunari5-3/+51
Change-Id: I2318752ba00f58c197ba42166c2ab91ea4c15bce Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-08-20Add new classKazumasa Mitsunari1-0/+48
Change-Id: I6bebfb030879b1bb2c7521bcd1d23d18d8174b36 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-08-20Proposal: New layer settingsKazumasa Mitsunari3-2/+87
Change-Id: I860f8dea4eee340fd8ab3dba3bbaee1661c584bf Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-08-15Readd policy table generated by ZIPC for EXAMPLEflounder_5.99.4flounder_5.99.3flounder/5.99.4flounder/5.99.35.99.45.99.3Yuta Doi38-1/+5787
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>
2018-08-15Readd Policy Manager as pluginYuta Doi20-466/+2846
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>
2018-08-09Fix multiple erase of surface informationYuta Doi1-2/+0
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>
2018-08-03Fix mistakeKazumasa Mitsunari2-2/+2
Currently, the code is not usable currently. Change-Id: I2de1c0f04df411f085faacc1ab71203ba9b5e0b1 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-08-02Merge changes from topic '15921'Jan-Simon Moeller4-9/+16
* changes: Fix WM attach layers to different screen. Fix source rectangle changes every state change
2018-08-02Fix WM attach layers to different screen.Kazumasa Mitsunari1-3/+3
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>
2018-08-02Improve output of multiple screen resolutionTadao Tanikawa7-9/+141
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>
2018-08-02Revert "Enable scaling to fit various screen resolutions"Tadao Tanikawa10-220/+22
Abandon scaling support by AGL window manager 2017 Bug-AGL: SPEC-1611 This reverts commit 8ab10aaafc6fb3dc7bbad755dce9b4bdaa41f287. Change-Id: Id6afb263a6dc30929b922e469d906e2e5190f7b0