apps/agl-service-windowmanager-2017.git
5 years agoUpdate wm_layer
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>
5 years agoChange local variable name
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>
5 years agoModify getAppID
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>
5 years agoaddSurface to client
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>
5 years agoRemove wm_layer_name in wm_client
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>
5 years agoRemove json.hpp
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>
5 years agoFix a little : wm_layer_control
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>
5 years agoRemove test code
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>
5 years agoChange struct WMAction
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>
5 years agoFix CRLF
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>
5 years agoEmit syncDraw
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>
5 years agoAdd initialize code
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>
5 years agoBug Fix : wm_layer
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>
5 years agoCopy not layers.json but layers_setting.json
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>
5 years ago[PolicyManager]Include util.cpp
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>
5 years agoUpdate windowmanager
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>
5 years agoUpdate wm_layer
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>
5 years agoUpdate wm_client
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>
5 years agoMerge branch 'sandbox/knimitz/layer_with_pm_tmp' into sandbox/knimitz/layer_with_pm
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

5 years agoFix build error
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>
5 years agotemporary change
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>
5 years agoHide variable into private
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>
5 years agoRemove lookup_id and lookup_name
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>
5 years agoUpdate windowmanager
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>
5 years agoUpdate wm_client and applist
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>
5 years agoUpdate wm_layer
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>
5 years agoImplement setup/getArea
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>
5 years agoUpdate wm_layer
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>
5 years agoFix mistake of comparison
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>
5 years agoAppend role to setting
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>
5 years agoAdd loadLayerSetting
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>
5 years agoAdd loadAreaDb
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>
5 years agoStart to rework using ilmControl
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>
5 years agoRemove struct unieque_fd
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>
5 years agoRemove useless definiition
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>
5 years agoFix util function HMI_*
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>
5 years agoRemove hmi-debug.h
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>
5 years agoMove declaration to source code
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>
5 years agoRename class name LayerManager to LayerControl
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>
5 years agoForgot adding new files
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>
5 years agoAdd initialize of Layout Manager
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>
5 years agoOmit std::string to string
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>
5 years agoAdd setRole
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>
5 years agoget callback of surface_stats_received
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>
5 years agoAdd new class
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>
5 years agoProposal: New layer settings
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>
5 years agoReadd policy table generated by ZIPC for EXAMPLE 05/16105/2 5.99.3 5.99.4 flounder/5.99.3 flounder/5.99.4 flounder_5.99.3 flounder_5.99.4
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>
5 years agoReadd Policy Manager as plugin 01/16101/2
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>
5 years agoFix multiple erase of surface information 85/16085/1
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>
5 years agoFix mistake 71/15971/1
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>
5 years agoMerge changes from topic '15921'
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

5 years agoFix WM attach layers to different screen. 37/15937/1
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>
5 years agoImprove output of multiple screen resolution 29/15929/1
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>
5 years agoRevert "Enable scaling to fit various screen resolutions" 27/15927/2
Tadao Tanikawa [Thu, 2 Aug 2018 07:24:38 +0000 (07:24 +0000)]
Revert "Enable scaling to fit various screen resolutions"

Abandon scaling support by AGL window manager 2017

Bug-AGL: SPEC-1611

This reverts commit 8ab10aaafc6fb3dc7bbad755dce9b4bdaa41f287.

Change-Id: Id6afb263a6dc30929b922e469d906e2e5190f7b0

5 years agoFix source rectangle changes every state change 21/15921/1
Kazumasa Mitsunari [Thu, 2 Aug 2018 06:34:24 +0000 (15:34 +0900)]
Fix source rectangle changes every state change

Window Manager changes source rectangle size every state change.
This patch changes it to set source rectangle first
when the surface is created.

Related commit: https://gerrit.automotivelinux.org/gerrit/#/c/15595/

Bug-AGL: SPEC-1584

Change-Id: Ia7429956053cfa18e6e82060f84f3b6fe755c0b1
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
5 years agoFix crashed application can re-launch 99/15799/5
Kazumasa Mitsunari [Fri, 27 Jul 2018 01:02:47 +0000 (10:02 +0900)]
Fix crashed application can re-launch

WM can't reset the state when application crashes,
after the below commit.
This patch fix the crashed application can re-launch.

Related commit:
https://gerrit.automotivelinux.org/gerrit/#/c/14871/

Bug-AGL: SPEC-1471

Change-Id: I46019b30cc8e9a341b4b681a0288f053b3ac1b30
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
5 years agoFix memory release problem 71/15771/1 5.99.2 flounder/5.99.2 flounder_5.99.2
Kazumasa Mitsunari [Thu, 26 Jul 2018 07:43:22 +0000 (16:43 +0900)]
Fix memory release problem

Do not release json_object after event push.
The json_array which was freed is retained to the json-object
that is released in afb_event_push.

Related page:
https://json-c.github.io/json-c/json-c-0.10/doc/html/json__object_8h.html#a04448b1c63173e1bfe49965835732075

Bug-AGL: SPEC-1616

Change-Id: Ic6de6425d7a18b289eb3e9d37d297dcfb3383f21
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
5 years agoFix the race condition of HomeScreen 47/15647/1
Kazumasa Mitsunari [Tue, 24 Jul 2018 10:38:30 +0000 (19:38 +0900)]
Fix the race condition of HomeScreen

HomeScreen and launcher have race condition.
This patch fixes if the homescreen requests to be shown,
WM doesn't change launcher(and others) invisible.

This is quick hack.
System UI's role is homescreen now.
We can't change system UI from setting and so on currently.

Bug-AGL: SPEC-1407

Change-Id: Ie70e0fd635fae03de7b731f3d73fb1863e3c6ad4
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
5 years agoRemove useless functions 11/15611/3
Kazumasa Mitsunari [Tue, 24 Jul 2018 00:20:54 +0000 (09:20 +0900)]
Remove useless functions

These functions are not used anymore because of upgrade of
wayland-ivi-extension

* layer_configuration
* layer_orientation
* layer_screen

Change-Id: I794fa13a3203b929c8fc49d6fb96b14004aa0fcc
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
5 years agoFix XDG application shrinks 95/15595/5
Kazumasa Mitsunari [Mon, 23 Jul 2018 11:19:47 +0000 (20:19 +0900)]
Fix XDG application shrinks

WM set surface source size output_size(1080X1920) in case of using runXDG.
Then, XDG surface shrinks because dest size(1080X1488) is set and
the surface is scaled.

On the other hand, XDG application's source size is w = 0, h = 0
on startup from ivi-wm, so WM has to set source size in somewhere.
So this patch fixes WM set XDG surface source size.

This is short term solution because WM set source rectangle size
every state changes.

Bug-AGL: SPEC-1584

Change-Id: I128db0b7feaba6b51e13c467e91d5aff6adaf0a7
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
5 years agoFix timer 19/15519/1
Tadao Tanikawa [Thu, 19 Jul 2018 11:56:51 +0000 (11:56 +0000)]
Fix timer

In 32bit environment, timer would be overflow.
This causes that HomeScreen doesn't show on 32bit environment.

Bug-AGL: SPEC-1471

Change-Id: I427da3a6e6ea76af05cee45a13b51754728a0cc5
Signed-off-by: Tadao Tanikawa <tanikawa.tadao@jp.panasonic.com>
5 years agoRevert "Add PolicyManager as plugin" 61/15461/2
Jan-Simon Moeller [Thu, 19 Jul 2018 13:08:17 +0000 (13:08 +0000)]
Revert "Add PolicyManager as plugin"

This reverts commit 99b6f4d2fcd421d3a760a88a67e511fb6fc98068.

Change-Id: I8725ca05a3e3fa0ea9e1db935e9e7d5b85a9affd

5 years agoRevert "Add policy table generated by ZIPC for EXAMPLE" 63/15463/1
Jan-Simon Moeller [Thu, 19 Jul 2018 13:08:23 +0000 (13:08 +0000)]
Revert "Add policy table generated by ZIPC for EXAMPLE"

This reverts commit 67f414f67ee22ddf40003d1be3fa1d0cb13deb8f.

Change-Id: I8489ed8e7789590ae585807108c64539a0ab3cf2

5 years agoAdd policy table generated by ZIPC for EXAMPLE 69/15269/3
Yuta Doi [Wed, 11 Jul 2018 07:21:37 +0000 (16:21 +0900)]
Add policy table generated by ZIPC for EXAMPLE

To PolicyManager, add the source code of policy table
which is generated by ZIPC for EXAMPLE.

If use this example,
please comment out line 84 and uncomment line 85
in CMakeLists.txt as follows:
  #set(USE_STM_NAME stub)
  set(USE_STM_NAME zipc)

If try to show split layout,
please rename from roles.db.split to roles.db in src/policy_manager/db/.

Bug-AGL: SPEC-1537

Change-Id: I4b35f148313e0c5a12c59ed1c2f8eb6fbcf3ea6b
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
5 years agoAdd PolicyManager as plugin 33/15133/5
Yuta Doi [Mon, 9 Jul 2018 08:23:31 +0000 (17:23 +0900)]
Add PolicyManager as plugin

PolicyManager decides next layout by using occured event and current state
based on the policy table.

And PolicyManager is plugin for WindowManager.
Therefore the OEMs can replace it.

This patch provides PolicyManager I/F as reference implementation
and does not have policy table.
Therefore PolicyManager updates each layers
to draw the applications in normal.full area
in accordance with just like activate/deactivate request.

[APIs of PolicyManager class]
  - int initialize(void)
    Initialize PolicyManger.
      input:  none
      output: 0(success), -1(error)

  - void registerCallback(CallbackTable callback_table)
    Register callback functions.
      input:  the pointers of callback handlers
      output: 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.
      input:  input event data as json_object
      output: 0(success), -1(error)

  - int executeStateTransition(void)
    Execute state transition by using set input event data.
      input:  none
      output: 0(success), -1(error)

  - void undoState(void)
    Undo state only once per once state transition.
      input:  none
      output: none

[Callbacks of PolicyManager 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: I44b771d4145078bf3ea05e26165bb9c1a03b10c3
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
5 years agoEnable scaling to fit various screen resolutions 85/15185/3
Kazumasa Mitsunari [Sat, 7 Jul 2018 08:22:46 +0000 (17:22 +0900)]
Enable scaling to fit various screen resolutions

Since the AGL HomeScreen of CES2018 assumes that the screen
resolution is 1080x1920px, the graphics of it partially
corrupted with others.

To fix this issue, now the AGL window manager automatically
scales size according to "scaling" value in setting.json

By default(even if "scaling" is not set), this scaling keeps
'fullscreen' aspect rate in area.db("aspect_fit")

User can select 3 options.
 - "aspect_fit" : Scale aspect rate of 'fullscreen' in area.db.(default)
 - "display_fit": Force to scale to display size.
 - "none" or others
                : Set size just as area.db

Bug-AGL: SPEC-1568
Bug-AGL: SPEC-1569

Change-Id: Ia08c0ebb2d71ae8f89a90088e181381c3ba3562d
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
5 years agoForbid negative value for area size 83/15183/1
Kazumasa Mitsunari [Sun, 8 Jul 2018 01:35:15 +0000 (10:35 +0900)]
Forbid negative value for area size

It is not intuitive to set negative value as size.
So forbit negative value.

Change-Id: I49480653284158b6d1bfcb22a71d9882ed958518
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
5 years agoRename event names to lower camel case 29/14929/3
Yuta Doi [Mon, 2 Jul 2018 10:11:23 +0000 (19:11 +0900)]
Rename event names to lower camel case

Change-Id: I973610e2b47ebd842291d568bd88578150efcef5
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
5 years agoRename APIs 23/14923/7
Yuta Doi [Mon, 2 Jul 2018 08:26:13 +0000 (17:26 +0900)]
Rename APIs

rename WindowManager APIs as follows:
 - activateSurface   -> activateWindow
 - deactivateSurface -> deactivateWindow

The "surface" means information of display material frame buffer
managed by Graphics Subsystem (Weston).
And the "window" means the right to draw on display.

The "surface" is physical information and used inside WindowManager.
So we think it is not good for "surface" to be included in API name.
These APIs provide the function
which is to activate/deactivate the right to draw for the applications.
So we change to "activateWindow/deactivateWindow".

We plan to delete the old API by GG.
Therefore the applications can use old APIs until GG,
but the warning "-Wdeprecated-declarations" is occured when compile.
After GG, old APIs can not be used.
If use it, the error is occured when compile.

Bug-AGL: SPEC-1565

Change-Id: Ic7da4e5ddb759e642a2b60ecf61e327aaf74a699
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
5 years agoAdd new layers and rename existing layers 75/14875/4
Yuta Doi [Fri, 29 Jun 2018 11:30:29 +0000 (20:30 +0900)]
Add new layers and rename existing layers

Change-Id: I76f9ffd9acefaa35e2cfd00cc6c23037218fc103
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
5 years agoAdd configuration file for each area sizes 73/14873/6
Yuta Doi [Fri, 29 Jun 2018 00:31:46 +0000 (09:31 +0900)]
Add configuration file for each area sizes

Add areas.db which has each area sizes.

less-than-0 values refer to (MAX + 1 - $VALUE)
and MAX is either screen width or height.

layers.json had each area sizes until now,
so removed the sizes from it.

Change-Id: I5cf283581daaca41e2b9e3ee6e947478bff1189c
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
5 years agoConvert the roles from old one to new 71/14871/5
Yuta Doi [Fri, 29 Jun 2018 10:46:55 +0000 (19:46 +0900)]
Convert the roles from old one to new

Update the role name (drawing_name)
and WindowManager converts the role from old one to new.

We plan to delete the old roles by GG.
Therefore the applications can use old olds until GG,
After GG, old roles can not be used.
If the applications use it,
WindowManager regards the applications as the role "fallback".
Therefore the applications may not be displayed in the intended layout.
For the role "fallback", please refer to JIRA SPEC-1331.

Bug-AGL: SPEC-1566

Change-Id: I6ca703183e3cab72ac460094ef14dc3675a98cb6
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
5 years agoAdd signal when the displayed application changed 61/14761/1
Kazumasa Mitsunari [Thu, 28 Jun 2018 07:17:10 +0000 (16:17 +0900)]
Add signal when the displayed application changed

Add new signal "screen_updated" to Window Manager.
This is emitted when application size or visibility is changed,
the application ids are notified to subscribers.

There are some applications such like HomeScreen,
which needs the visibility of other applications turns on,
so add new event.

The key is "ids" and data is application id which is written in
config.xml for each application.

This signal format is here:
ON-EVENT windowmanager/screen_updated:
{
  "event":"windowmanager\/screen_updated",
  "data":{
    "ids":[
      "navigation",
      "hvac"
      ]
  },
  "jtype":"afb-event"
}

Bug-AGL: SPEC-1532

Change-Id: I6c1f263be00d4b496e0e0f77dd88b6118489772f
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
5 years agoClean: sort source code according to the order of header file 63/14663/2
Kazumasa Mitsunari [Mon, 25 Jun 2018 10:32:46 +0000 (19:32 +0900)]
Clean: sort source code according to the order of header file

Sort API order written in source code according to the order
in header file to improve readability.

Change-Id: I6606590ce2ad9c285b3cfd83dc6c0741890b105f
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
5 years agoFix class name "App" to "WindowManager" 61/14661/2
Kazumasa Mitsunari [Mon, 25 Jun 2018 10:20:01 +0000 (19:20 +0900)]
Fix class name "App" to "WindowManager"

struct App is core class of Window Manager.
The name of "struct App" is strange so rename it to WindowManager.

Change-Id: Ia5f2e5acbadb8d58fe772aec0cd15a4a2e91369e
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
5 years agoRefactor: Integrate rework handles by application 59/14659/2
Kazumasa Mitsunari [Mon, 25 Jun 2018 09:59:34 +0000 (18:59 +0900)]
Refactor: Integrate rework handles by application

Integrate rework handles information by application.
Window Manager handles request by "task" and block other requests
until the task finishes.
This is necessary because window mangaer task consists of 2 asyncronous parts,
which are checking policy and redraw sync, and ensures the 2 parts should be
managed consecutively.

Bug-AGL: SPEC-1510

Change-Id: I9a1d5daad5b47dd5e68a437173b3d5f1b3923865
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
5 years agoRework: Window Manager handles by application 57/14657/2
Kazumasa Mitsunari [Mon, 25 Jun 2018 02:22:00 +0000 (11:22 +0900)]
Rework: Window Manager handles by application

To manage role, surface, layer ... and other info more easily,
Window Manager handles info by application.
WMClient class holds infomation of application.
WMRequest class holds the request from application(trigger) and
the action list judged by policy manager.
The above info is in applist.

*applist
 Hold client list.
 And hold request list which comes from application to get the right of displaying.

*request
 The request from application and the Action judged from Policy Manager

*client
 Application information which has surface, role and so on.

*error
 Error code and error message.

Integration patch is going to be pushed after this commit.

Bug-AGL: SPEC-1509

Change-Id: I52b161701e22e316137dc42f073b118d164c1e28
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
5 years agoAdd Get/Set area size functions 55/14655/3
Kazumasa Mitsunari [Mon, 25 Jun 2018 10:52:00 +0000 (19:52 +0900)]
Add Get/Set area size functions

Add internal functions to get/set area size.

Change-Id: I9fef787863bed81fe6e4761c6f387886d7df1455
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
5 years agoBug Fix: Window Manager doesn't react after killing app process 53/14653/1
Kazumasa Mitsunari [Mon, 25 Jun 2018 00:49:55 +0000 (09:49 +0900)]
Bug Fix: Window Manager doesn't react after killing app process

After killing an application which has surfaces,
Window Manager releases the information for app.
Then, invalid access happens.
As a result, Application seems to loose their ability to display.
This is a potencial bug caused by upgrades of wayland-ivi-extension,
so this problem didn't occur in eel branch.
This patch fixes the bug.

Bug-AGL: SPEC-1421

Change-Id: If921dd4ea6bd46454356e97e1be7e5c136c7383b
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
5 years agoClean: remove small files 39/14639/2
Kazumasa Mitsunari [Mon, 25 Jun 2018 00:44:07 +0000 (09:44 +0900)]
Clean: remove small files

*policy.hpp
 No affect to Window Manager decision, so remove it.
*config.hpp, config.cpp
 Small function to hold the path information to config file,
 but no need to hold until the death of process.
 So move it to stack variable, then remove files.

Change-Id: I6c210acc586c7cc048e0b158df5e3a511f927b9d
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
5 years agoClean: remove useless headers 37/14637/3
Kazumasa Mitsunari [Fri, 22 Jun 2018 23:42:45 +0000 (08:42 +0900)]
Clean: remove useless headers

* Shorten build time
* Remove unnecessary dependencies

Change-Id: I960b2a21124cabc62ef73436fb5a7ab5191c4e0d
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
5 years agoFix Client Context of afb-binder 35/14635/2
Kazumasa Mitsunari [Wed, 13 Jun 2018 03:32:21 +0000 (12:32 +0900)]
Fix Client Context of afb-binder

* Rename wmClientCtxt to WMClientCtxt
* Hold application name and requested role

Change-Id: I7d600c66bd905b4847d34049b81aa361dd4fb528
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
6 years agoRemove the unnecessary property 37/14137/2
Kazumasa Mitsunari [Wed, 30 May 2018 08:50:14 +0000 (17:50 +0900)]
Remove the unnecessary property

Window Manager service doesn't need to have an icon, then remove it.

Change-Id: I85d6f612dc1a7bdbdff4c67022cd32d85b0da799
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
6 years agoFormat source codes 35/14135/3
Kazumasa Mitsunari [Wed, 30 May 2018 08:33:48 +0000 (17:33 +0900)]
Format source codes

* Format source codes
* Change indent spaces to 4 from 3
* Remove trailing spaces in config.xml

Change-Id: I745ba6c7cc4dcf4177add81666351c3c01de7d44
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
6 years agoUpdate document 33/13633/1
Kazumasa Mitsunari [Tue, 27 Feb 2018 01:35:08 +0000 (10:35 +0900)]
Update document

* Change version to 0.5
* Remove code generation. It is not used anymore
* Fix inconsistent spellings
* Add "Fallback" description
* Fix dependency package
* Add description of requestSurfaceXDG

Change-Id: I134c521b0d413780e496e9477c4901431eb72ae5
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
6 years agoChange reply timing 29/13629/1
Kazumasa Mitsunari [Mon, 19 Mar 2018 08:06:05 +0000 (17:06 +0900)]
Change reply timing

Some events were emitted in a function before it replies.

This patch changes
* The function checks parameter then reply error if it is incorrect.
* After checking parameters, the function continues to process.

The exeption is the syncronous functions such as requestSurface.

Change-Id: I168eba3e2b70d53615a4221bcbbba6bc6096c1db
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
6 years agoSend visible event after commit change 27/13627/1
Kazumasa Mitsunari [Mon, 19 Mar 2018 10:17:06 +0000 (19:17 +0900)]
Send visible event after commit change

Visible event was emitted before commit change of ivi-controller.
This patch changes the event emitted after commit change.

Bug-AGL: SPEC-1332

Change-Id: Ib8a6d3a513c1fe4a28111b2ad256122289fc5cc0
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
6 years agoEnable fallback, then display applications 93/13593/3 5.99.1 flounder/5.99.1 flounder_5.99.1
Kazumasa Mitsunari [Fri, 9 Mar 2018 04:45:36 +0000 (13:45 +0900)]
Enable fallback, then display applications

This patch enables the app to show if it is not registered in layers.json.
The original installed app was not shown because the role of app is not
registered in WM as default.

[Patch set2]
Add the same process into requestSurface for RunXDG

Bug-AGL : SPEC-1331

Change-Id: Ie99b971023a95a1924795b1ffc7311a630940b1d
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
6 years agoAdd APIs which can get information about the display and the surface area 43/12943/2
Yuta Doi [Fri, 22 Dec 2017 12:00:10 +0000 (21:00 +0900)]
Add APIs which can get information about the display and the surface area

getDisplayInfo() can get the display information as follows:
 - width[pixel]
 - height[pixel]
 - width[mm]
 - height[mm]

  NOTE:
    It uses wl_output::geometry() for getting physical width[mm] and height[mm] of the display,
    but the value is different with measured value.

    value from wl_output::geometry(): width:320 height:520
    measured value                  : width:193 height:343

getAreaInfo() can get the information of area drawn by the application as follows:
 - x-coordinate
 - y-coordinate
 - width
 - height

The details are described in doc/ApplicationGuide.md.

Bug-AGL: SPEC-1087

Change-Id: I9e6d64ff04e0845b83c69db374d06af17a6d6b66
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
6 years agoChange the protocol from ivi-controller to ivi-wm 49/13249/5
Yuta Doi [Thu, 11 Jan 2018 02:08:47 +0000 (11:08 +0900)]
Change the protocol from ivi-controller to ivi-wm

This patch is for master branch only.

For using wayland-ivi-extension version 2.x,
the wayland protocol in WindowManager is changed
from ivi-controller to ivi-wm.

NOTE:
If using this patch,
the modification for AGL/meta-agl
which described in SPEC-1244 is necessary.

Bug-AGL: SPEC-1244

Change-Id: I5489db202dfeec8f4626aee53bd1f86c145b95d9
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
6 years agoFix screen flicker 49/13149/3
Kazumasa Mitsunari [Mon, 8 Jan 2018 07:50:50 +0000 (16:50 +0900)]
Fix screen flicker

If the app is on background layer for CES hack such like Navigation,
when the user push "Home" shortcut botton quickly many times,
the app on background layer appears with flickering.
So fix the issue.

Bug-AGL: SPEC-1247

Change-Id: I777607a99914f0141886e817cb6a5e486f1105f0
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
6 years agoMerge "Fix build error in gcc 7.2"
Jan-Simon Moeller [Wed, 27 Dec 2017 20:24:20 +0000 (20:24 +0000)]
Merge "Fix build error in gcc 7.2"

6 years agoEnable an application re-launch 31/12931/6
Kazumasa Mitsunari [Fri, 22 Dec 2017 03:28:21 +0000 (12:28 +0900)]
Enable an application re-launch

When an application dies after requestSurface,
the application can't be launched because
Window Manager doesn't know the application is dead and doesn't
clean up its database.

In other case, when Mixer app dies due to pulse audio crash
just before Window Manager handles surface memory,
the connection between weston and Window Manager is dead.

So add following
* Add context setting with window manager clients.
  Terminate the context and clean up WM database
  if a client application is dead.
* Add layout_commit() after add surfaces to layer.

[PatchSet 2]
* Add layout_commit() after add surfaces to layer
  in api_request_surface

Bug-AGL: SPEC-1086

Change-Id: I6ecae2606ac644e49a3383ba849390f8c235f187
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
6 years agoFix build error in gcc 7.2 55/12955/1
Changhyeok Bae [Fri, 22 Dec 2017 15:46:24 +0000 (15:46 +0000)]
Fix build error in gcc 7.2

error "Never include <bits/signum.h> directly; use <signal.h> instead."

Bug-AGL: SPEC-1181

Signed-off-by: Changhyeok Bae <changhyeok.bae@gmail.com>
6 years agoEnable to show Video and WebBrowser 45/12945/1
Tadao Tanikawa [Fri, 22 Dec 2017 12:57:44 +0000 (21:57 +0900)]
Enable to show Video and WebBrowser

Adding new applications (Video player and Web browser) to
be managed by window manager properly.

Releated introducing Video player, old name, 'MediaPlayer' for
apps/mediaplayer has been renamed 'Music'.

Old name,'MediaPlayer' keeps alive in layers.json for backward
compatibility.

Change-Id: I2b5e267f4015a4ed128ff5b55ba709faf1914b61
Signed-off-by: Tadao Tanikawa <tanikawa.tadao@jp.panasonic.com>
6 years agoClean up source code 91/12791/4
Kazumasa Mitsunari [Wed, 20 Dec 2017 07:54:53 +0000 (16:54 +0900)]
Clean up source code

To reduce the files and redundant code,
* Remove afb_binding_api.* files and generate-binding-glue.py.
* Merge them into other source codes.

Change-Id: Ib61350ee6a42d73efc3fa29fa0c4868145a88e2e
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
6 years agoRemove automatic code generation 11/12711/1
Kazumasa Mitsunari [Tue, 19 Dec 2017 04:35:55 +0000 (13:35 +0900)]
Remove automatic code generation

To handle the request from binder(applications) more flexibly,
we have to remove automatic code generation.

Change-Id: Id14ab749cca68b5aa30376ba3ac543372df87233
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
6 years agoExclude execusion bit 09/12709/1
Kazumasa Mitsunari [Tue, 19 Dec 2017 04:56:22 +0000 (13:56 +0900)]
Exclude execusion bit

Change-Id: I8eee96305be1c8808442af92b254fce857e3dfd6
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
6 years agoAdd background layer for CES DEMO 59/12559/1
Yuta Doi [Thu, 14 Dec 2017 06:03:45 +0000 (15:03 +0900)]
Add background layer for CES DEMO

MediaPlayer and Radio can not sound
when their surface have visibility=0.

And Navigation can not be displayed correctly
when the application is switched from visibility=0 to 1.

Because when visibility=0, weston event can not be catched.
So when the applications is not displayed,
they have visibility=1 and are moved to background layer.

Change-Id: Idf236e703a1e74cf564a1b213e6e15fcfa42a29e
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
6 years agoSupport XDG application 63/12463/1
Tadao Tanikawa [Tue, 12 Dec 2017 12:44:57 +0000 (21:44 +0900)]
Support XDG application

To run XDG application on AGL HomeScreen/WindowManager,
a new binding API of WindowManager is added.

This api is used only by AGL XDG-Launcher and
all xdg applications should be packed as wgt compatible
to AGL Application framework.

Bug-AGL: SPEC-1096

Change-Id: I33dd3b056c736ef374e2251e818541ddd699877b
Signed-off-by: Tadao Tanikawa <tanikawa.tadao@jp.panasonic.com>