apps/agl-service-windowmanager-2017.git
6 years agoEnable scaling to fit various screen resolutions 25/14025/1 eel 5.0.3 5.1.0 eel/5.0.3 eel/5.1.0 eel_5.0.3 eel_5.1.0
Tadao Tanikawa [Wed, 16 May 2018 09:48:31 +0000 (09:48 +0000)]
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 of HomeScreen to fit the resolution of the display.

By default, this scaling keeps HomeScreen's original aspect
rate (9:16). To ignore it, set the environment variable,
'HMI_SCALING_IGNORE_ASPECT'.
(E.g. set it in any file under /etc/afm/unit.env.d/)

Bug-AGL: SPEC-1138

Change-Id: Id11a07560fe254712aaab42018bfb4d1d87ad1df
Signed-off-by: Tadao Tanikawa <tanikawa.tadao@jp.panasonic.com>
6 years agoMerge "Enable fallback, then display applications" into eel 5.0.2 eel/5.0.2 eel_5.0.2
Jan-Simon Moeller [Mon, 26 Mar 2018 23:56:09 +0000 (23:56 +0000)]
Merge "Enable fallback, then display applications" into eel

6 years agoEnable fallback, then display applications 95/13595/2
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.

Backport from master

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 75/13575/1
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: I97c71b1618f9c8a799b14d9a0a53acfb27e1822d
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
6 years agoFix for switching from half size to full size 51/13251/2
Yuta Doi [Fri, 19 Jan 2018 08:00:42 +0000 (17:00 +0900)]
Fix for switching from half size to full size

This patch is for eel only
because wayland-ivi-extension 2.x will be used in master.

According to the modification of wayland-ivi-extension 1.13,
WindowManager is fixed for correct switching from half size to full size.

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

Bug-AGL: SPEC-986

Change-Id: If8fdae2206aa138f788d6c0929ab533c4123f153
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
6 years agoFix screen flicker 51/13151/3 5.0.1 eel/5.0.1 eel_5.0.1
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" into eel 5.0.0 eel/5.0.0 eel_5.0.0
Jan-Simon Moeller [Wed, 27 Dec 2017 20:24:30 +0000 (20:24 +0000)]
Merge "Fix build error in gcc 7.2" into eel

6 years agoMerge changes into eel
Jan-Simon Moeller [Wed, 27 Dec 2017 13:35:30 +0000 (13:35 +0000)]
Merge changes  into eel

6 years agoFix build error in gcc 7.2 27/13027/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

Change-Id: If877322cc0d7a20854f9ef0284b005675096826c
Signed-off-by: Changhyeok Bae <changhyeok.bae@gmail.com>
6 years agoEnable an application re-launch 33/12933/4
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 agoEnable to show Video and WebBrowser 79/12979/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 93/12793/3 4.99.5 eel/4.99.5 eel_4.99.5
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 agoMerge "Remove automatic code generation" into eel
Jan-Simon Moeller [Tue, 19 Dec 2017 18:55:51 +0000 (18:55 +0000)]
Merge "Remove automatic code generation" into eel

6 years agoRemove automatic code generation 17/12717/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 15/12715/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 57/12557/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 65/12465/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>
6 years agoAdd .gitreview defaultbranch for eel 4.99.4 eel/4.99.4 eel_4.99.4
Jan-Simon Möller [Wed, 29 Nov 2017 13:01:47 +0000 (14:01 +0100)]
Add .gitreview defaultbranch for eel

Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
6 years agoFix the flipped screen problem 23/12123/2 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 91/11891/1
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 19/11819/2
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 01/11801/2
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 69/11769/1
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 63/11763/1
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 01/11701/1
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 99/11699/1
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 11/11611/3 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 09/11609/3
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 31/11631/2
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 27/11627/3
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>
6 years agoLayer configuration file is included in widget 23/11523/6
Yuta Doi [Tue, 24 Oct 2017 05:09:38 +0000 (14:09 +0900)]
Layer configuration file is included in widget

Layer configuration file (layers.json) is placed in target
when installation of windowmanager.

Bug-AGL: SPEC-991

Change-Id: Ia614ec400c185ec7db4379c66321363a68e5e0da
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
6 years agoModify the waiting loop of the ivi configuration listener 13/11513/5
Yuta Doi [Mon, 23 Oct 2017 14:39:52 +0000 (23:39 +0900)]
Modify the waiting loop of the ivi configuration listener

When layout is NOT normal, wait for the listener.

Change-Id: Iedbb5de7a997c82613a0e1947d91ee2527f28436
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
6 years agoUpdate the application guide 07/11507/5
Yuta Doi [Mon, 23 Oct 2017 14:32:17 +0000 (23:32 +0900)]
Update the application guide

Update the document table of contents and the api reference
as the libwindowmanager is merged into the application guide.

Bug-AGL: SPEC-994

Change-Id: Ic98f5ac48282878a92074f72961a4531e1b9a0a8
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
6 years agoAdd debug message macros controlled by environment variable 05/11505/4
Yuta Doi [Mon, 23 Oct 2017 14:17:47 +0000 (23:17 +0900)]
Add debug message macros controlled by environment variable

Add a HMI_DEBUG macro to print debug messages.
It is controlled by the USE_HMI_DEBUG environment variable.

Change-Id: I3bc5bf2f3b0e9f5ee06f340053f29ad36e7d9dbb
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
6 years agoModify event notification from broadcast to subscribe model 81/11481/4
Kazumasa Mitsunari [Mon, 23 Oct 2017 09:26:46 +0000 (18:26 +0900)]
Modify event notification from broadcast to subscribe model

The event notification was implemented using a broadcast model,
change it to a subscription model.

Bug-AGL: SPEC-987

Change-Id: I344a3a73320eb81c3f670736b032f07400bb8f64
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
6 years agoRemoved redraw_fixer.cpp 79/11479/3
Kazumasa Mitsunari [Mon, 23 Oct 2017 08:52:08 +0000 (17:52 +0900)]
Removed redraw_fixer.cpp

This is not needed anymore
This was used for testing

Change-Id: I0e1621db8a81d5eef3b91af126f748dacfc93ea7
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
6 years agoMerge "Move scripts to test directory"
Jan-Simon Moeller [Wed, 1 Nov 2017 11:01:18 +0000 (11:01 +0000)]
Merge "Move scripts to test directory"

6 years agoMove scripts to test directory 77/11477/5
Kazumasa Mitsunari [Mon, 23 Oct 2017 08:48:11 +0000 (17:48 +0900)]
Move scripts to test directory

This scripts are not needed anymore
They were used for testing

[Pach Sets 2]
Add tests directory
 After discussing, it became better to leave the test script.
 Then, rename the directory name from "scripts" to "tests".
 Move the test script to "tests" directory.

Change-Id: I072b1087ef4804ae6877bb2c864a94da799141f1
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
6 years agoMerge "Add drawing_area parameter to API"
Jan-Simon Moeller [Wed, 1 Nov 2017 11:00:08 +0000 (11:00 +0000)]
Merge "Add drawing_area parameter to API"

6 years agoMerge "Provide a json configuration file for the full screen layout"
Jan-Simon Moeller [Wed, 1 Nov 2017 10:55:48 +0000 (10:55 +0000)]
Merge "Provide a json configuration file for the full screen layout"

6 years agoAdd drawing_area parameter to API 73/11473/4
Kazumasa Mitsunari [Mon, 23 Oct 2017 08:31:27 +0000 (17:31 +0900)]
Add drawing_area parameter to API

Add drawing_area parameter in activateSurface API
and syncDraw event.
This is needed for the following feature
 - To request writting area
 - To inform application of writting area

I assume that
"normal.full" is a full size area in application area,
and "split.[main|sub]" is an upper/lower half size area
in application area.

For example, when Navigation app receives syncDraw event
which the label is Navigation, and the area name is
"normal.full", it means Navigation will be displayed
as a full size(in application area).

When Navigation app receives syncDraw event which
the label is same, and the area name is "split.main",
it means Navigation will be displayed
as an upper half size(in application area).
Application must return endDraw after changing its design
according to the size,
when the application receives syncDraw event.

Layout is defined in layers.json file.
Current layout is set to full screen.
Bug-AGL: SPEC-987

Change-Id: I5efed3dda88275e18dc1d951b98bdfcfc79ee46b
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
6 years agoProvide a json configuration file for the full screen layout 71/11471/4
Kazumasa Mitsunari [Mon, 23 Oct 2017 08:30:21 +0000 (17:30 +0900)]
Provide a json configuration file for the full screen layout

This configuration file is a sample for a full screen layout.

Bug-AGL : SPEC-997

Change-Id: Ib5d5de93ee134c0bdf3ede65b41efee6c5f68413
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
6 years agoMerge "Change the sequence how signals are emitted"
Jan-Simon Moeller [Tue, 31 Oct 2017 15:20:32 +0000 (15:20 +0000)]
Merge "Change the sequence how signals are emitted"

6 years agoChange the sequence how signals are emitted 69/11469/2
Kazumasa Mitsunari [Mon, 23 Oct 2017 08:28:13 +0000 (17:28 +0900)]
Change the sequence how signals are emitted

According to https://wiki.automotivelinux.org/_media/agl-hmi-fw_windowmanager_spec_v0.1.0.pdf,
the visible event is emitted first

Bug-AGL : SPEC-987

Change-Id: I5b5fa669b31b9a5283ccc91702064207a85d838c
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
6 years agoRemove the library from this service binder 67/11467/3
Kazumasa Mitsunari [Mon, 23 Oct 2017 08:27:23 +0000 (17:27 +0900)]
Remove the library from this service binder

The library is split to another repository, so remove it from this
repository

Bug-AGL: SPEC-993

Change-Id: Ifa5368077fc77fc9a964409f78d88afb0de2e8d6
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
6 years agoRemoved library from this service binder 67/11467/1
Kazumasa Mitsunari [Mon, 23 Oct 2017 08:27:23 +0000 (17:27 +0900)]
Removed library from this service binder

The library should be splitted to other repository, so removed it from this
repository

Change-Id: Ifa5368077fc77fc9a964409f78d88afb0de2e8d6
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
6 years agoAdd gitreview file for master 91/11291/1 4.99.1 eel/4.99.1 eel_4.99.1
Jan-Simon Möller [Fri, 13 Oct 2017 13:49:09 +0000 (15:49 +0200)]
Add gitreview file for master

Change-Id: I686e11f2826364a6999b80636e5319755af85a54
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
6 years agoAdd agl-service-windowmanager-2017 83/11083/3
zheng_wenlong [Fri, 29 Sep 2017 12:06:22 +0000 (21:06 +0900)]
Add agl-service-windowmanager-2017

    Add a new binding agl-service-windowmanager-2017.
    A image about this see JIRA SPEC-915.

    [PatchSet2]
    Use aglwgt make package.

    [PatchSet3]
    Modify to wait until wayland compositor starts up.
    Bug-AGL: SPEC-925

Change-Id: I8729bb71b5e91d5b009a5bab77232d92605c43ea
Signed-off-by: zheng_wenlong <wenlong_zheng@nexty-ele.com>
6 years agoInitial empty repository
Jan-Simon Moeller [Thu, 28 Sep 2017 12:43:36 +0000 (12:43 +0000)]
Initial empty repository