aboutsummaryrefslogtreecommitdiffstats
path: root/src/app.cpp
AgeCommit message (Collapse)AuthorFilesLines
2018-06-21OnScreen app can be displayed for pop_up roleYuta Doi1-6/+14
Change-Id: I53cdcd010c9e0b87cd4207d8bb81bb5784202f18 Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2018-06-21Modify commentYuta Doi1-6/+2
Change-Id: I95b9ccb8465d52c973e940bf5603694ba29c4cdd Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2018-06-20Modify car info nameYuta Doi1-3/+3
Change-Id: I81939c5e981b6fb2f15257d40331d328a3bb55af Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2018-06-20Modify string of car stateYuta Doi1-10/+10
Change-Id: I91b43b01571f0597de4064d46d68c9049bc3d407 Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2018-06-20Modify process of analyzing current state in ResourceManagerYuta Doi1-130/+83
Change-Id: I29115b7b5edbe66849de928a5b58e595c16fadaa Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2018-06-20Modify member variable nameYuta Doi1-30/+30
Change-Id: Ic9100cfc33c664d3dfa935c4c7131efd8dd2f1f7 Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2018-06-20Integrate car element stateYuta Doi1-1/+2
Change-Id: Idcbf6a186628553fa5118ba7238ae4a2e3bf87e2 Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2018-06-20Add calling callback for onErrorYuta Doi1-3/+8
Change-Id: I462759f3fe1f826bfd45e15c9b9416cf53486ed2 Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2018-06-20Segment processYuta Doi1-2/+12
Change-Id: Ib25c5ed69624f7cc5c560e9f87531fe1af3bfd4c Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2018-06-20Bug fix: Refer removed surface id in vector of pending_end_drawYuta Doi1-1/+3
Change-Id: I76d86bb19388334dd640fbe07e8d307dec9b61cc Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2018-06-18Remove unnecesarry member variable: role2surfaceid_Yuta Doi1-12/+8
Change-Id: Ia90c9f903e818ab9791648627206f39483be9fdc Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2018-06-18Modify API of PolicyManagerYuta Doi1-1/+5
Change-Id: Iae45cc7c34560396490722b2cc4570a04d806ae7 Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2018-06-15Modify format of layout information and process for updating layoutYuta Doi1-149/+76
and delete unnecessary process Change-Id: I266cbc684c28b49d9855db851a56afbff3588b35 Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2018-06-14Modify the process for updating layer stateYuta Doi1-1/+1
Change-Id: Iccfc332f996f2bc01cd5c6b9cad46229758c6212 Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2018-06-08PolicyManager uses layout informationYuta Doi1-1/+9
Change-Id: I6628c5614d0ed28d9c60a9d6f792a31c805178dd Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2018-06-05Bug fix: refer the released memory of role nameYuta Doi1-9/+7
Change-Id: I67aa440a37f8955da2d7daaf1f6ace95016b763d Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2018-06-01Modify request_surface for XDG appYuta Doi1-3/+6
Change-Id: I91ac5d09f985e2dda1b0ed6274f01106c87807be Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2018-06-01Modify API of PolicyManagerYuta Doi1-166/+184
and change the process for stopping timer Change-Id: Id7f9ba1c25adc188b01d8407f7043ea22da113d9 Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2018-06-01PolicyManager uses sd_event loop for the process of check policyYuta Doi1-13/+6
Change-Id: I1e7f7c2085ec30e09a53a67c0ad9c51b2bf53578 Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2018-05-25The surfaces are managed by using the roles instead of the drawing namesYuta Doi1-41/+31
Change-Id: I7373a54f2df334ac223b51a6cb9a643a88e7c33c Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2018-05-25Delete label "role" for the API activateSurface and deactivateSurfaceYuta Doi1-38/+31
Change-Id: Ia59c0f3ad9d44e0836520abc50419d0be006acdf Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2018-05-21Add lightstatus brake ON/OFF eventYuta Doi1-0/+41
Change-Id: Id2c61fc6e102394f5ba08effe0cfac448b337176 Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2018-05-21Waiting for the surface of new app is created before setting the sizeYuta Doi1-0/+6
Change-Id: I7e60330739388b5b5dc339076f432e6ca77f12b4 Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2018-05-17App (ResourceManager) class has the current car infoYuta Doi1-5/+37
and LowCanClient does not check whether CAN signal value is changed Change-Id: I41dfd0772f8fb4db70c4b5c0caa35791600abc54 Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2018-05-14Add policy of switchng accel pedal status to dummy stmYuta Doi1-0/+7
Change-Id: Iea389d3899f2d01430400374ed0ab0f2fe882ec8 Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2018-05-11The role "video" can be shown in split area for ALSYuta Doi1-13/+18
and the role "restriction" can use the areas other than "restriction.split.sub" Change-Id: I5aab163409cf5284b876dc9e44102ee620344472 Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2018-05-10Fix switching visibility when deactivatingYuta Doi1-0/+2
commit_change for ivi-wm was not called when deactibating, therefore added it. Change-Id: I4558ddaace0f63c6ecbc652d8af29074454decac Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2018-05-10Replace json_object_from_file to inputJsonFilieYuta Doi1-3/+3
and remove unnecessary header Change-Id: Ia4200a9742d62933328d0518731710413caa1a5c Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2018-05-10Modify for restriction roleYuta Doi1-2/+5
- Add policy for restriction to dummy stm. - Add the function which inputs json file because json_object_from_file can not allows up to only 4KB file. - Bug fix in json files. - Delete unexpected characters. - Delete description because it does not follow the format of json array. Change-Id: I2f8fba1d1001cf244e2531fe3a1a738d5a48091b Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2018-05-09Add conversion map role2appYuta Doi1-14/+7
Change-Id: I1e194ecc9fb90ccb4c24e114ac1513ed19f0c0a3 Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2018-05-09Add parking brake ON/OFF eventYuta Doi1-3/+39
Change-Id: I3b9face35972a275918ac4f95f4a97df035ee924 Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2018-04-27Add PolicyManager, related classes and some config filesYuta Doi1-365/+537
- PolicyManager Decide next layout by using occured event and current state based on policy table. This PolicyManger is reference and the OEMs can replace it. - LayoutManager Change the current layout to the layout which decided by PolicyManager. NOTE: The functions of this class had been included in App class. The part of function of this class remain there yet. - LowCanClient Receive the CAN signal from low level CAN service. - app.db Define the applications name and its role. This file will be deleted when the names and roles can be given by other module. - layout.cb Define the layouts and areas which are included by the layout. - role.db Define the roles of the applications. Change-Id: I2f84bdf5e68355e022f516cee9a1db88efe58825 Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2018-03-19Change reply timingKazumasa Mitsunari1-24/+32
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>
2018-03-19Send visible event after commit changeKazumasa Mitsunari1-1/+1
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>
2018-03-09Enable fallback, then display applicationsflounder_5.99.1flounder/5.99.15.99.1Kazumasa Mitsunari1-3/+16
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>
2018-02-09Add APIs which can get information about the display and the surface areaYuta Doi1-11/+127
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>
2018-01-24Change the protocol from ivi-controller to ivi-wmYuta Doi1-63/+16
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>
2018-01-11Fix screen flickerKazumasa Mitsunari1-2/+0
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>
2017-12-27Merge "Fix build error in gcc 7.2"Jan-Simon Moeller1-1/+0
2017-12-25Enable an application re-launchKazumasa Mitsunari1-1/+2
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>
2017-12-22Fix build error in gcc 7.2Changhyeok Bae1-1/+0
error "Never include <bits/signum.h> directly; use <signal.h> instead." Bug-AGL: SPEC-1181 Signed-off-by: Changhyeok Bae <changhyeok.bae@gmail.com>
2017-12-22Enable to show Video and WebBrowserTadao Tanikawa1-0/+2
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>
2017-12-21Clean up source codeKazumasa Mitsunari1-7/+31
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>
2017-12-14Add background layer for CES DEMOYuta Doi1-1/+57
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>
2017-12-12Support XDG applicationTadao Tanikawa1-0/+30
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>
2017-12-11Revert "Add APIs which can get information of display and area"Tadao Tanikawa1-96/+10
This reverts commit 6aaba1066fe89f324d4bae67497f4035fe997d5f. To fix double posts to Gerrit Review and repository directly. Signed-off-by: Tadao Tanikawa <tanikawa.tadao@jp.panasonic.com>
2017-12-11Add APIs which can get information of display and areaYuta Doi1-10/+96
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>
2017-11-10Remove and replace the commentsYuta Doi1-3/+1
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>
2017-11-10Add the fail-safe process for the configuration fileYuta Doi1-3/+7
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>
2017-11-01Fix copyright to TOYOTAeel_4.99.2eel/4.99.24.99.2Kazumasa Mitsunari1-1/+1
Change-Id: I8ac0463a8efa215477593a96a45f08e38dc46e36 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>