Kazumasa Mitsunari [Sat, 9 Jun 2018 14:23:27 +0000 (23:23 +0900)]
Get pid from callback
Add new function into wayland_ivi_wm
Get surface properties function.
Change-Id: Id2d98d7751c02de59dd118cffddfdf1b6bf0814e
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Sat, 9 Jun 2018 07:04:26 +0000 (16:04 +0900)]
Add new function addFloatingClient function
Vacant function yet
Change-Id: Id2ab7e75588cebcdb2a23f31c2586d3a2710c759
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Sat, 9 Jun 2018 06:38:38 +0000 (15:38 +0900)]
Use unique_ptr
I don't debug yet
Change-Id: I540f31c3fd5dbe757e254346328a25eb5b58dea5
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Fri, 8 Jun 2018 09:28:42 +0000 (18:28 +0900)]
Rename the arguments
Not use "ID"
Change-Id: Ic36f5c649ba7f36cc254b5d159940f345cb4d571
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Fri, 8 Jun 2018 09:24:04 +0000 (18:24 +0900)]
Enable functions
* lookUpFloatingSurface
* appendRole
Change-Id: I3153cb0bbb266401f7beb0c709e2e3b64af42199
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Fri, 8 Jun 2018 06:35:39 +0000 (15:35 +0900)]
2nd Step : Implement overview into app.cpp for set_role
API is not implemented.(Comment out now)
Change-Id: I1287c64cb9b5bd0ebdeb7b3220934106a5fbdd25
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Fri, 8 Jun 2018 05:02:01 +0000 (14:02 +0900)]
1st Step: Add set_role function
Change-Id: I779c9bdce78eb8b1bf601c461630dd8b7c3320bb
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Fri, 8 Jun 2018 04:38:26 +0000 (13:38 +0900)]
Change struct name wmClientCtxt to WMClientCtxt
Change-Id: Iac27465a9a0d737209973d25397fd400572d872d
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Fri, 8 Jun 2018 04:20:09 +0000 (13:20 +0900)]
Remove unnecessary code
Change-Id: Ic2c6534cb2f69d5be7e64ce557e5653d38af17f8
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Fri, 8 Jun 2018 03:49:57 +0000 (12:49 +0900)]
Merge branch 'sandbox/knimitz/format_code' into sandbox/knimitz/lock
Change-Id: Ifbd46e0156ab5baf93fbb785f4fdfda963ed2af4
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Fri, 8 Jun 2018 02:54:01 +0000 (11:54 +0900)]
Insert hack code
drawing_name is vanished by some reason, so reallocate it for hack for split.
Change-Id: I2a36d32cb083c66722dfbc766a4704afb637b413
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Thu, 7 Jun 2018 15:53:53 +0000 (00:53 +0900)]
Add const to get functions
Change-Id: Ibb6976639018f4f45132577f77d57096e2512997
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Thu, 7 Jun 2018 15:23:01 +0000 (00:23 +0900)]
Change names. Not use sequence number but request number
* AppList API
* Member variable(Not use sequence)
Change-Id: Ie0d3d0394c5e050e894b11a91aab97f5bac73f00
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Thu, 7 Jun 2018 15:08:11 +0000 (00:08 +0900)]
Insert hack code to compatible split mode
Change-Id: Iaf1769493979637f62e26c4db63b5cd205b13f7b
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Thu, 7 Jun 2018 06:40:27 +0000 (15:40 +0900)]
Format source code
Fix character case for
* wm-client
* wm-error
* applist
app doesn't complete formating character
Change-Id: I7187d7be8bcf158664c4e8e2b090fe4ca7017d12
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Mon, 4 Jun 2018 08:54:11 +0000 (17:54 +0900)]
Adopt error code and message into Window Manager
Change-Id: I942cc33350436bcdb477e7a5cda4a36e502044da
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Mon, 4 Jun 2018 08:53:38 +0000 (17:53 +0900)]
Add new error code and message
Change-Id: Idb9dc7856f20493356fac24a7aac7b2678f625f8
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Mon, 4 Jun 2018 07:40:09 +0000 (16:40 +0900)]
Change message log
Change-Id: Ib9f1bf73f081454009417528d3d15a506ea81381
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Mon, 4 Jun 2018 07:34:44 +0000 (16:34 +0900)]
Add global error event
Change-Id: I285437e22fd9666eac9bb645035dcf7d134eb892
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Mon, 4 Jun 2018 07:33:07 +0000 (16:33 +0900)]
Add new files manages error message
Change-Id: I255e4a8df74b0b1b766441952a146daffd3fddee
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Thu, 31 May 2018 15:26:03 +0000 (00:26 +0900)]
Add subscribe function in app.cpp to control from main.cpp
Change-Id: I69ef05d99dffcdbc7ffccb019821011c5bef9d46
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Thu, 31 May 2018 15:24:58 +0000 (00:24 +0900)]
subscribe error event for app
Change-Id: Ifdb55848f9039b411a9f514ef976866c8e160a54
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Thu, 31 May 2018 15:24:18 +0000 (00:24 +0900)]
Modify subscribe
Change-Id: I383a89db82e7a3cdfb95ae4128de05c64ae8adf3
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Thu, 31 May 2018 15:02:22 +0000 (00:02 +0900)]
Change wmClientContext
Change-Id: I1fca8d68a20e2bb6a6efc6d70b4ec9a762d523c9
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Thu, 31 May 2018 11:13:24 +0000 (20:13 +0900)]
Add subscribe for client
Change-Id: I9708c81275e783e4739469d069071fac11549554
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Thu, 31 May 2018 11:06:59 +0000 (20:06 +0900)]
Add get function to wm-client
Change-Id: I4880cfc48148e0055029d4b902b445e79f9c422c
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Thu, 31 May 2018 10:35:24 +0000 (19:35 +0900)]
Reserve the process
Change-Id: I04d412cfd255306357b5b2ff0fc73b09c669b2ce
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Thu, 31 May 2018 10:26:01 +0000 (19:26 +0900)]
Rename windowmanager-client
Change-Id: I601f0b542d530b1b72198b56b8bd98322836e469
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Thu, 31 May 2018 10:19:44 +0000 (19:19 +0900)]
Remove client when the app is terminated
Change-Id: I06f5ef9f7cac0d73fa40980faa9ec0c0583fc41b
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Thu, 31 May 2018 10:18:33 +0000 (19:18 +0900)]
Modify app
* remove surface from app when surface is destroyed
* add new function for removing client
Change-Id: Iefef531ce1bc4a06ee0585ee35906ade86d452dc
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Thu, 31 May 2018 10:14:48 +0000 (19:14 +0900)]
Add new function to applist
Change-Id: Ife3642fc60f7c25aeae83b1f2aad0d362cdbe6cd
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Thu, 31 May 2018 10:13:33 +0000 (19:13 +0900)]
Add new functions to windowmanager-client
Change-Id: Ib4d69d903469ed5f1a3d39553098f6995f593c59
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Wed, 30 May 2018 10:06:32 +0000 (19:06 +0900)]
Format source codes
Change-Id: I28e99487b814b23fe99aa6bc8ec4538af3940acf
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Tue, 29 May 2018 11:12:21 +0000 (20:12 +0900)]
Set timeout as 10sec
It is because very heavy application takes more than 1 sec
Change-Id: Ia56d6a8d2fd0316d70ab76f53ab4b4f5941d5562
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Tue, 29 May 2018 10:49:33 +0000 (19:49 +0900)]
Set timer accuracy 1
Change-Id: Ia67546ec68263aa2785e83493e4935dc82feda95
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Tue, 29 May 2018 10:23:55 +0000 (19:23 +0900)]
Bug Fix: lookup surfaceID with appid not role
Change-Id: I71c9afe697b9c5516c5645671557c0fe92dfeff6
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Tue, 29 May 2018 09:53:10 +0000 (18:53 +0900)]
Move release sequence to lm_release
TODO:
lm_reease fails
Change-Id: I084c4ff7b9302d0f613c1601c0a4798502f8cb07
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Tue, 29 May 2018 09:00:09 +0000 (18:00 +0900)]
Stop timer when endDraw finished
Change-Id: I817dc5147e92ca463bc20c7bb54006315e4f217c
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Tue, 29 May 2018 08:35:53 +0000 (17:35 +0900)]
pull out layout manager task
Change-Id: I2c256dc2095607a31306786964421442fba4ae4b
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Tue, 29 May 2018 07:10:40 +0000 (16:10 +0900)]
Expand WMAction
Change-Id: Ib23678aa0c10724ce722acf76ada870668052c13
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Tue, 29 May 2018 06:47:21 +0000 (15:47 +0900)]
pull out request from applist
Change-Id: Iea9270d9e8c0d358a0f964048167bba5d8000829
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Tue, 29 May 2018 06:36:29 +0000 (15:36 +0900)]
move layout manager task in do_allocate_resource
Change-Id: I007f5150326a3e0a39afaf2d9c919c235b4aa9a8
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Tue, 29 May 2018 00:57:59 +0000 (09:57 +0900)]
Add request for deactivate surface
Change-Id: Ia19de946314a25fc5c71400add67c77de04d7c9d
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Tue, 29 May 2018 00:35:39 +0000 (09:35 +0900)]
Add stop_timer and revert the function name
Change-Id: Ieb62cee04aab67f2c1d1649b91937de8c59c20d5
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Tue, 29 May 2018 00:25:43 +0000 (09:25 +0900)]
Modify the private function name
Change-Id: If3a9a7f90191950900e4b220a911dd4f0fb14ea1
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Tue, 29 May 2018 00:14:08 +0000 (09:14 +0900)]
Bug Fix: Checking WM contains apps conversely
Change-Id: I9defe0ac4341b55a493793564d4294d50d35dc43
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Mon, 28 May 2018 11:56:15 +0000 (20:56 +0900)]
Dump client infomation when client is added
Change-Id: Ie66f2ca25b3cca4dcba5d964e8df2afeba3e13c5
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Fri, 25 May 2018 08:44:04 +0000 (17:44 +0900)]
modify test
Change-Id: I2423843bfbfc0f0a88791298e9a0caeb655cf10c
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Fri, 25 May 2018 08:12:19 +0000 (17:12 +0900)]
Rework: Block the sequence
Todo:
* emit error event
** decide error format
* rework release WR
Change-Id: Id96fa629aff984aa03ed68f1d3db711bb43ba77b
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Fri, 25 May 2018 02:20:12 +0000 (11:20 +0900)]
Add unit test
Change-Id: Idb7c75c3c9d9b575cee75dc487fe6a7c0548b6ec
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Fri, 25 May 2018 02:17:55 +0000 (11:17 +0900)]
[Local]:5th step for blocking sequence
Change-Id: Ic47c59a77d3b45f62bed8ee2617dddc4ed58afbe
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Sun, 20 May 2018 14:08:13 +0000 (23:08 +0900)]
[Local]: Lock Sequence from activateSurface to flushDraw
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Fri, 18 May 2018 10:49:26 +0000 (19:49 +0900)]
[Local]:4th step for blocking sequence
Change-Id: If4f01a177f4947780d448aaa214f863af2124b0f
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Thu, 17 May 2018 02:44:12 +0000 (11:44 +0900)]
[Local]:3rd step for blocking sequence
Change-Id: Ieef89545fa6f6ec1704b9c4b51f92dd5d624aff1
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Thu, 17 May 2018 06:03:31 +0000 (15:03 +0900)]
Add new macros to output sequence number
Change-Id: Ifc8c19ebbda2084f004a28ae14963673251cf5ad
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Tue, 15 May 2018 02:37:39 +0000 (11:37 +0900)]
[Local]:2nd step for blocking sequence
Change-Id: I267b9cdbc4a95b80a0b6cada688ed251e3093611
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Mon, 14 May 2018 01:07:58 +0000 (10:07 +0900)]
[Local]:1st step for blocking sequence
* add new class to allocate window resource
* add new class for list to hold clients information
* change API of request surface
Change-Id: Ic39fa8908163d49b429125639189dd89812f94e9
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Mon, 14 May 2018 00:03:32 +0000 (09:03 +0900)]
Set LOA level for some verbs
Window Manager client needs to get authority to call some verbs.
Change-Id: I48fe9922b35c6b1e6f59d68f1966d7f5a2c75beb
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
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>
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>
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>
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>
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>
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>
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>
Jan-Simon Moeller [Wed, 27 Dec 2017 20:24:20 +0000 (20:24 +0000)]
Merge "Fix build error in gcc 7.2"
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Jan-Simon Moeller [Tue, 7 Nov 2017 11:23:53 +0000 (11:23 +0000)]
Merge "Add 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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Jan-Simon Moeller [Wed, 1 Nov 2017 11:01:18 +0000 (11:01 +0000)]
Merge "Move scripts to test directory"
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>
Jan-Simon Moeller [Wed, 1 Nov 2017 11:00:08 +0000 (11:00 +0000)]
Merge "Add drawing_area parameter to API"
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"
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>