aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2018-05-25Delete label "role" for the API activateSurface and deactivateSurfaceYuta Doi4-57/+40
Change-Id: Ia59c0f3ad9d44e0836520abc50419d0be006acdf Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2018-05-24Use $ORIGIN for rpathYuta Doi1-1/+1
Change-Id: I33e1faa842ce881f56a8734b2463f650510929da Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2018-05-24VideoPlayer is moved to BG layer when becoming invisibleYuta Doi1-0/+4
Change-Id: Ifff08a2ea793365a303363b4985cdbeb31fbdf24 Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2018-05-23Bugfix: Restriction app is displayed on Dashboard app when steping on foot brakesandbox/yuta-d/add_api_get_car_infoYuta Doi1-4/+8
Change-Id: Ic4b2cd4769abf90c07d2c7e9c7961d3cae40202e Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2018-05-23Bugfix: Occur segmentation fault when steping on the accelerator before navi ↵Yuta Doi1-4/+17
app is started Change-Id: I5d1218c5eee9001725c14e7f20d05466b073bcfb Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2018-05-23Loads libpolicy_manager.so from the directory where WindowManager is installedYuta Doi1-2/+2
Change-Id: Ie581e361323dd267a51f2c6e72807ad712e4dca9 Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2018-05-22getCarInfo() can get lightstatus.brake statusYuta Doi2-0/+7
getCarInfo() can get also the lightstatus brake as follows: - lightstatus brake : true/false The details are described in doc/ApplicationGuide.md in project apps/agl-service-windowmanager-2017. Change-Id: I29b2c5b4fe129407c3b304b2fa981cbd3f4b6847 Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2018-05-21Add lightstatus brake ON/OFF eventYuta Doi8-44/+168
Change-Id: Id2c61fc6e102394f5ba08effe0cfac448b337176 Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2018-05-21Modify the definition of role:phone for ALSYuta Doi1-6/+1
Change-Id: If759a879898e829c73e4ec1a3f3efd1f2a55ff6c 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-21Bug Fix: When restriction app gets invisible event, other app also gets itYuta Doi1-11/+23
Change-Id: Id72543fa86007bbff7c3e77f7df78e4162bfa269 Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2018-05-18Add API which can get information about the car stateYuta Doi4-5/+97
getCarInfo() can get the car state informations as follows: - parking brake state : true/false - accelerator pedal position : 0-127.5 - car state : "stop"/"run" The details are described in doc/ApplicationGuide.md in project apps/agl-service-windowmanager-2017. Change-Id: I2a4a06ceeedbd2d3b1188a7fb442e1272e46897b Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2018-05-17App (ResourceManager) class has the current car infoYuta Doi5-240/+165
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-16Modify the policy of restrictionYuta Doi2-240/+281
for when the restricted app becomes invisible. Change-Id: I7519078844bd90855f69472bce042ce0bd8e52e5 Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2018-05-14Add transmission gear position event in PolicyManagerYuta Doi5-21/+113
Change-Id: Ibf528b5ab3877d2cf094920fd0723873fb12647c Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2018-05-14PolicyManager can judge the current car stateYuta Doi5-89/+5
and remove judgement process of it from LowCanClient because it should be judged by PolicyManager Change-Id: I94467332665e34b751604cafe5d43f3abd4d7cfd Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2018-05-14Change the policy of switchng car run/stop in dummy stmYuta Doi2-31/+42
Change-Id: Ie3770060828f32749e7c47076d901263454e43c2 Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2018-05-14Add policy of switchng accel pedal status to dummy stmYuta Doi6-16/+97
Change-Id: Iea389d3899f2d01430400374ed0ab0f2fe882ec8 Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2018-05-11Remove unnecessary header from policy_manager.hppYuta Doi2-50/+44
Change-Id: Ic7135e8ab7ae668c71ea83f5b87df3f741739f28 Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2018-05-11LowCanClient can set filterYuta Doi2-3/+32
Change-Id: I9464b631a5b36cdfeba28ebd146fce3f5ca7f879 Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2018-05-11LowCanClient can receive accelerator.pedal.position signalYuta Doi5-54/+143
Change-Id: Ia6d4ad7888ec764fcd8dec696f6eda9d826cb62d Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2018-05-11The role "video" can be shown in split area for ALSYuta Doi4-19/+43
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 Doi7-26/+73
and remove unnecessary header Change-Id: Ia4200a9742d62933328d0518731710413caa1a5c Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2018-05-10Modify for restriction roleYuta Doi10-40/+216
- 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 Doi2-17/+9
Change-Id: I1e194ecc9fb90ccb4c24e114ac1513ed19f0c0a3 Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2018-05-09Add policy of switching parking brake state to dummy stm for validationYuta Doi3-2/+18
Change-Id: I547e578526d6ce934c9fa8aa86170cea5a2f17e7 Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2018-05-09Add parking brake ON/OFF eventYuta Doi10-149/+268
Change-Id: I3b9face35972a275918ac4f95f4a97df035ee924 Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2018-05-09Modify layers.json and layout.dbKazumasa Mitsunari2-25/+25
layers.json * Forgot to change the layer name layout.db * Change the name of area and layer * Modify the size of area Change-Id: I9edd547419d894aef0142e9ef9668e08987549dc Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-05-08Change the role and layoutKazumasa Mitsunari2-8/+8
role * upper homescreen -> near_homescreen * lower homescreen -> far_homescreen * restriction.* -> restriction Change-Id: I5d53a66b8dc3d3b9cb761b27b7b388661853fd32 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-05-08Change layout.dbKazumasa Mitsunari1-8/+144
* Undo the changes, revert to the original layout.db for test * Add ALS test case Change-Id: I8ca89e0455fb0d429d41b2f3a9d3f9341fda551c Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-05-08Add launcher role to the role.dbKazumasa Mitsunari1-1/+1
Change-Id: Ibdf275b528678abbfa1771bf0e9ec389c540fbfa Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-05-08Change the size of restriction layerKazumasa Mitsunari1-2/+2
Change-Id: Ibf2e5f46a95a8c84c7baa513798a685c00e8338d Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-05-07Add restriction and software keyboard layersKazumasa Mitsunari6-94/+238
Change-Id: I9133faa840f6feaec3f2b6f88a6e1b33be29639c Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-05-07Packaging with libpolicy_manager.soKazumasa Mitsunari1-0/+1
LD_LIBRARY_PATH is set in ${AFM_APP_INSTALL_DIR}/lib, so Window Manager can load own library from them. Change-Id: I5bd62fac6c8661b681a4f617e882548d6da7f336 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-04-27Add PolicyManager, related classes and some config filesYuta Doi24-446/+2922
- 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-20Update documentKazumasa Mitsunari1-101/+67
* 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>
2018-03-19Change reply timingKazumasa Mitsunari3-49/+59
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 Mitsunari3-5/+18
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 Doi6-22/+280
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 Doi14-1582/+1340
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 Mitsunari2-1/+56
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 Tanikawa2-1/+3
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 Mitsunari7-455/+87
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-19Remove automatic code generationKazumasa Mitsunari3-10/+422
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>
2017-12-19Exclude execusion bitKazumasa Mitsunari1-0/+0
Change-Id: I8eee96305be1c8808442af92b254fce857e3dfd6 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>