apps/agl-service-windowmanager.git
5 years agoPOI: AGL LifeCycle Management sandbox/ruke47/lifecycle
Tadao Tanikawa [Thu, 13 Dec 2018 01:01:33 +0000 (01:01 +0000)]
POI: AGL LifeCycle Management

Improved internal management of observer's context.

Before: using appid as key and storing map
After:  storing vector into context of afb_req

Change-Id: I0a4d2350e6be458dd048625fabb8a1ac84e8e848
Signed-off-by: Tadao Tanikawa <tanikawa.tadao@jp.panasonic.com>
5 years agoPOI: AGL LifeCycle Management
Tadao Tanikawa [Tue, 4 Dec 2018 01:13:04 +0000 (01:13 +0000)]
POI: AGL LifeCycle Management

Limited function are supported for CES2019 demo.

API:
  registerActivityObserver { "target": $appid }
  unregisterActivityObserver { "target": $appid }
  getActivityStatus { "target" : $appid }
    reply { "response": { "api": "getActivityStatus",
            "target": $appid, "state": $activity_status }
Event:
  statusChanged
  {
    "jtype": "afb-event",
    "event": "windowmanager/statusChanged",
    "data":
    {
      "state": "CREATED|DESTROYED|STARTED|STOPPED|FOREGROUND|BACKGROUND",
      "target": $appid
    }
  }

Change-Id: Ie54c7f379df58667bd5878b4115a3c763c761a83
Signed-off-by: Tadao Tanikawa <tanikawa.tadao@jp.panasonic.com>
5 years agoMerge "Migrates bindings v3" 6.99.2 guppy/6.99.2 guppy_6.99.2
Jan-Simon Moeller [Fri, 30 Nov 2018 21:07:10 +0000 (21:07 +0000)]
Merge "Migrates bindings v3"

5 years agoMerge "doc: fix invalid image reference"
Stéphane Desneux [Fri, 30 Nov 2018 17:48:01 +0000 (17:48 +0000)]
Merge "doc: fix invalid image reference"

5 years agoMigrates bindings v3 53/18453/2
Tadao Tanikawa [Thu, 29 Nov 2018 13:12:43 +0000 (13:12 +0000)]
Migrates bindings v3

This patch migrates biding API of WM to v3.

Change-Id: I2f2b23a8af437a414e2a00d629d3e72d0614eb72
Signed-off-by: Tadao Tanikawa <tanikawa.tadao@jp.panasonic.com>
5 years agoRemove unnecessary function 13/18413/1
Kazumasa Mitsunari [Thu, 29 Nov 2018 11:52:41 +0000 (20:52 +0900)]
Remove unnecessary function

Forgot removing the function.
The function was removed in the previous commit.

Change-Id: Ieab08aa116b7b8109022ff6983582da6085039dd
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
5 years agodoc: fix invalid image reference 75/18375/1
Stéphane Desneux [Wed, 28 Nov 2018 16:55:02 +0000 (17:55 +0100)]
doc: fix invalid image reference

This fixes an invalid reference to image software-stack.png in ApplicationGuide.md

Change-Id: I3362a02c00dd4524b6567ebc95b48cdfc792289b
Signed-off-by: Stéphane Desneux <stephane.desneux@iot.bzh>
5 years agoClean: Remove conversion table from old role 91/17991/2 6.99.1 guppy/6.99.1 guppy_6.99.1
Kazumasa Mitsunari [Thu, 15 Nov 2018 10:32:39 +0000 (19:32 +0900)]
Clean: Remove conversion table from old role

Stop compatibility support.
Remove conversion table from old role.

Bug-AGL: SPEC-1947

Change-Id: Idbb0717920c2f4a0c29bfb4356e1b167ac8bce0b
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
5 years agoRename the image file name 77/17477/2
Kazumasa Mitsunari [Mon, 29 Oct 2018 00:12:17 +0000 (09:12 +0900)]
Rename the image file name

Since it is duplicated with the name of homescreen image file,
the WM page doesn't display correctly.
So rename the image file name.

Change-Id: I6bb9fe0c779df0cc9027d44500329009404a76e9
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
5 years agoFix the file names 61/17461/2
Kazumasa Mitsunari [Mon, 22 Oct 2018 05:21:17 +0000 (14:21 +0900)]
Fix the file names

Fix the file names.

Change-Id: I6adaf5fb024347222b235830bf5ff04208adc0ed
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
5 years agoAttach application to ivi-layer not to surface 59/17459/2
Kazumasa Mitsunari [Mon, 22 Oct 2018 00:30:19 +0000 (09:30 +0900)]
Attach application to ivi-layer not to surface

Window Manager expresses the application in ivi-layer.
So for, Window Manager tied the surface and role applied
by the application. This patch associates the application
with the ivi-layer, and the role and surface are the
attributes that makes up the application.

Bug-AGL: SPEC-1818, SPEC-1635

Change-Id: Ice1e398e1db037577b0721c16da6603ec5437561
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
5 years agoFix internal function name for consistency 55/17455/1
Kazumasa Mitsunari [Thu, 18 Oct 2018 11:19:57 +0000 (20:19 +0900)]
Fix internal function name for consistency

Fix internal function name for consistency

Change-Id: Iff85e7ab246f863ff47d7312da627a2317479b56
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
5 years agoFix the conversion table 87/17287/4
Kazumasa Mitsunari [Thu, 18 Oct 2018 10:56:54 +0000 (19:56 +0900)]
Fix the conversion table

Fix the conversion table
(Navigation -> map) to (Navigation -> navigation)
Use `navigation` as it is.

Change-Id: Icfb0c7839cfa1c8ae59aa3b381c07d8a2f88cdd4
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
5 years agoDelete verbs no longer used 73/17273/3
Kazumasa Mitsunari [Thu, 18 Oct 2018 05:35:30 +0000 (14:35 +0900)]
Delete verbs no longer used

Delete the following verbs for debug.
Use LayerManagerControl instead.

* debug_status
* debug_layers
* debug_surfaces
* list_drawing_names

Change-Id: Ifa414b769796a9007e06b5d4cc17d50bd26c86dd
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
5 years agoMerge "Refactor : Hide wayland operations from Window Manager"
José Bollo [Wed, 24 Oct 2018 11:27:39 +0000 (11:27 +0000)]
Merge "Refactor : Hide wayland operations from Window Manager"

5 years agoMerge "Improve ApplicationGuide"
Jan-Simon Moeller [Wed, 24 Oct 2018 10:41:38 +0000 (10:41 +0000)]
Merge "Improve ApplicationGuide"

5 years agoRefactor : Hide wayland operations from Window Manager 71/17271/3
Kazumasa Mitsunari [Wed, 17 Oct 2018 08:42:42 +0000 (17:42 +0900)]
Refactor : Hide wayland operations from Window Manager

Window Manager now uses abstract client, area for layer/surface management,
then hide wayland operation into LayerControl class.
LayerControl class uses ilmControl library instead of wayland protocol.
This patch reduces the binary size of binding by 30% than before.

Currently, the following debug methods are not available.
* debug_status
* debug_layers
* debug_surfaces
* list_drawing_names

Bug-AGL: SPEC-1817

Change-Id: I7313787f3c4a286ceee3c23783e5c0e713388dac
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
5 years agoImprove ApplicationGuide 01/17201/5
Kazumasa Mitsunari [Sat, 13 Oct 2018 06:38:13 +0000 (15:38 +0900)]
Improve ApplicationGuide

Improve ApplicationGuide
* Change chapter structure
* Add pictures for sequences and diagrams
* Update the description

Bug-AGL: SPEC-1712

Change-Id: Ic014677682c2281305b6a4c10a4a80390279db88
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
5 years agoFix memory leak 27/17227/1
Kazumasa Mitsunari [Mon, 15 Oct 2018 10:58:51 +0000 (19:58 +0900)]
Fix memory leak

According to afb_x2_req.h,
returned value of afb_req_x2_get_application_id must be freed by the caller.
So release it when the function returned not Null.

Bug-AGL: SPEC-1819

Change-Id: I4f23eeff6262171ac55776b4e214960dbff7ff45
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
5 years agoInclude WMClient into WMRequest 25/17225/1
Kazumasa Mitsunari [Mon, 15 Oct 2018 10:27:28 +0000 (19:27 +0900)]
Include WMClient into WMRequest

Policy Manager has to know
*who* requests *which role* with *which role*.
So for improvement of usability of WMRequest instead of appid.

Change-Id: I452b2995922e8e303732e8e79f4f06930553b3e7
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
5 years agoOmit std:: 21/17221/1
Kazumasa Mitsunari [Mon, 15 Oct 2018 09:56:02 +0000 (18:56 +0900)]
Omit std::

To shorten source code, omit std::

Change-Id: I251df7f503337c71800612718504bbd31dc27071
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
5 years agoFix verbs 17/17217/2
Kazumasa Mitsunari [Mon, 15 Oct 2018 05:50:13 +0000 (14:50 +0900)]
Fix verbs

afb-binding doesn't care the case of verb,
but it is better to unify it with libwindowmanager.

Change-Id: I775b26069cd49a72603715470ddc4cedcfd2f375
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
5 years agoRename file names 15/17215/2
Kazumasa Mitsunari [Mon, 15 Oct 2018 05:45:32 +0000 (14:45 +0900)]
Rename file names

Rename layers.* to wm_layers.*

Change-Id: If472c2b8f978231816f5c21edb0c53a6ee96d629
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
5 years agoMigrate hmi-debug into util 13/17213/2
Kazumasa Mitsunari [Mon, 15 Oct 2018 02:35:51 +0000 (11:35 +0900)]
Migrate hmi-debug into util

Migrate hmi-debug into util for
* simplicity
* remove warnings error `-Wunused-function`

Change-Id: I7d061849429e5d50cc7d19d2051c7f5d0f0ef169
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
5 years agoMerge "Drop 2017 suffix"
Jan-Simon Moeller [Thu, 11 Oct 2018 12:28:18 +0000 (12:28 +0000)]
Merge "Drop 2017 suffix"

5 years agoDrop 2017 suffix 61/17161/1
Kazumasa Mitsunari [Thu, 11 Oct 2018 03:58:34 +0000 (12:58 +0900)]
Drop 2017 suffix

Drop 2017 suffix.

Change-Id: I64fafe814b7d61dca860b9fa92489acb76abc1dd
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
5 years agoUse feature 'required-binding' 95/17095/1
Jose Bollo [Tue, 9 Oct 2018 10:01:19 +0000 (12:01 +0200)]
Use feature 'required-binding'

The feature "urn:AGL:widget:required-binding" is now
preferred to the feature "urn:AGL:widget:required-api"
for requiring a local binding.

Bug-AGL: SPEC-1800

Change-Id: If24f239990536f90ccc46802fabb2c2de2e6c239
Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
5 years agoClean: Remove split_layout structure 23/16923/1
Kazumasa Mitsunari [Thu, 4 Oct 2018 01:39:37 +0000 (10:39 +0900)]
Clean: Remove split_layout structure

split_layout is not used anymore.

Change-Id: Iff24ebb4e827aee28394deb3aa55c96692cd0cc6
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
5 years agoAdd .gitignore 21/16921/1
Kazumasa Mitsunari [Thu, 4 Oct 2018 01:39:18 +0000 (10:39 +0900)]
Add .gitignore

Change-Id: Id05d447d30988afaaa35265ab928ec5fb333117f
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
5 years agoModify .gitreview 17/16917/1
Kazumasa Mitsunari [Thu, 4 Oct 2018 01:18:38 +0000 (10:18 +0900)]
Modify .gitreview

Change-Id: I5d36d56c7957e33ce1137165e6273ba2599d8006
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
5 years agoFix Window Manager crush when application terminated
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

Bug-AGL: SPEC-1696

Change-Id: I639a60015cde46fca6bc5a3f6e8037afd8d79330
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
5 years agoReadd policy table generated by ZIPC for EXAMPLE
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
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
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
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.
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
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"
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
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
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
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
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
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
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
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"
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"
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 5.99.2 flounder/5.99.2 flounder_5.99.2
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
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
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
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
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
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
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
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
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
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
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"
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
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
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
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
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
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
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
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>
5 years agoRemove the unnecessary property
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>
5 years agoFormat source codes
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
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
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
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 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
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
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
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
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
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
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
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
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
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
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
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>
6 years agoRevert "Add APIs which can get information of display and area"
Tadao Tanikawa [Mon, 11 Dec 2017 11:39:21 +0000 (20:39 +0900)]
Revert "Add APIs which can get information of display and area"

This reverts commit 6aaba1066fe89f324d4bae67497f4035fe997d5f.

To fix double posts to Gerrit Review and repository directly.

Signed-off-by: Tadao Tanikawa <tanikawa.tadao@jp.panasonic.com>
6 years agoAdd APIs which can get information of display and area
Yuta Doi [Mon, 11 Dec 2017 02:38:01 +0000 (11:38 +0900)]
Add APIs which can get information of display and 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.

Change-Id: I41eec6251527862ef25d1b84cd37d736d3f9c8aa
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
6 years agoFix the flipped screen problem 4.99.3 eel/4.99.3 eel_4.99.3
Kazumasa Mitsunari [Thu, 23 Nov 2017 12:51:56 +0000 (21:51 +0900)]
Fix the flipped screen problem

If transform=flipped-270 is set within weston.ini,
the video output is incorrect.
Fix the problem.

Bug-AGL: SPEC-1115

Change-Id: Idc7117b4b8011e17e888d2237665b485b6ae5621
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
6 years agoUpdate the debug message macros
Yuta Doi [Mon, 13 Nov 2017 06:07:25 +0000 (15:07 +0900)]
Update the debug message macros

Update the debug message macros to the latest version
according to https://gerrit.automotivelinux.org/gerrit/#/c/11767/.

Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
6 years agoRemove and replace the comments
Yuta Doi [Fri, 10 Nov 2017 08:41:05 +0000 (17:41 +0900)]
Remove and replace the comments

Remove the unnecessary comments
and replace ascii-art comments with doxygen format.

Change-Id: Id1abf56db58070a83f403a1f8280bc9888e7de09
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
6 years agoAdd the fail-safe process for the configuration file
Yuta Doi [Fri, 10 Nov 2017 02:42:36 +0000 (11:42 +0900)]
Add the fail-safe process for the configuration file

If the configuration file "layers.json" can not be opened,
windowmanager uses a default layer configuration.

Change-Id: I1b20f385c5e748a90be5e930a1775a6b3a4f39a5
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
6 years agoFix the error log on windowmanager initialization
Yuta Doi [Thu, 9 Nov 2017 05:25:57 +0000 (14:25 +0900)]
Fix the error log on windowmanager initialization

Fix the bug which is that windowmanager outputs the error log
on the initialization.

Bug-AGL: SPEC-925

Change-Id: I87b20cc7840ef7241ca56ecab440f52333b1753c
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
6 years agoUpdate the application guide
Yuta Doi [Thu, 9 Nov 2017 03:02:51 +0000 (12:02 +0900)]
Update the application guide

- Change according to:
  - https://gerrit.automotivelinux.org/gerrit/#/c/11523/
  - https://gerrit.automotivelinux.org/gerrit/#/c/11747/
- Update to the latest information.
- Fix typo.

Change-Id: I6ca0afa91de330219c6fba1c70d20a39282701a2
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
6 years agoMerge "Add an another example for layout configuration"
Jan-Simon Moeller [Tue, 7 Nov 2017 11:23:53 +0000 (11:23 +0000)]
Merge "Add an another example for layout configuration"

6 years agoAdd an another example for layout configuration
Kazumasa Mitsunari [Mon, 6 Nov 2017 05:04:31 +0000 (14:04 +0900)]
Add an another example for layout configuration

Add split version configuration.
This sample configuration file enables split layout.
This sample configuration means
"When Navigation app(main_match) is displayed, then
HVAC or MediaPlayer app requests activateSurface,
Window Manager requests to be half size
to HVAC|Mediaplayer and Navigation app".

Change-Id: I685d7165fd43c6f4d964dedb9bf9b5f5a38807f8
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
6 years agoUpdate application guide
Yuta Doi [Mon, 6 Nov 2017 00:51:42 +0000 (09:51 +0900)]
Update application guide

Because agl-doc converter doesn't work on current document,
some HTML tags was changed.

Change-Id: Ie04449e9c7c892cda155c180169b75ea02317741
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
6 years agoFix copyright to TOYOTA 4.99.2 eel/4.99.2 eel_4.99.2
Kazumasa Mitsunari [Mon, 30 Oct 2017 07:21:53 +0000 (16:21 +0900)]
Fix copyright to TOYOTA

Change-Id: I8ac0463a8efa215477593a96a45f08e38dc46e36
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
6 years agoChange namespace name to generic name
Kazumasa Mitsunari [Mon, 30 Oct 2017 06:38:04 +0000 (15:38 +0900)]
Change namespace name to generic name

The name of namespace "genivi" was used.
This is not generic, so changed it to "compositor".

Conflicts:
src/app.cpp

Change-Id: Ie088e5d404e1981f7bc149abbc20e900bea8ec2d
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
6 years agoAdd LICENSE.MIT
Kazumasa Mitsunari [Tue, 31 Oct 2017 04:05:25 +0000 (13:05 +0900)]
Add LICENSE.MIT

Window Manager uses json.hpp licensed with MIT,
so we need to add LICENSE file.

Change-Id: Id78d482bd2edc20cbbc420d7795d4e7341305c92
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
6 years agoUpdate README.md
Kazumasa Mitsunari [Tue, 31 Oct 2017 02:42:43 +0000 (11:42 +0900)]
Update README.md

Link to http://docs.automotivelinux.org/docs/apis_services/en/dev/

Related change : https://gerrit.automotivelinux.org/gerrit/#/c/11507

Bug-AGL : SPEC-994

Change-Id: Iefaf4d742dc03cb37eb1bbac8514d3fe9e748ea2
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>