aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2018-06-13Bug fix: Correct format of app.dbsandbox/yuta-d/als2018Yuta Doi1-1/+1
Change-Id: Ia2e2cf47b0966073c97a41ce41ee74b1ad4bcfda Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2018-06-13Add layout "system" to layout.dbYuta Doi1-0/+10
Change-Id: I86fa81e892cefa0273549a8e23b00be59a755e69 Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2018-06-13Add category "system" for showing specific app on restriction mode ONYuta Doi3-3/+73
Change-Id: Ic4d63045f98cd18b33876e4cde8d1d0a315706f0 Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2018-06-13Add role for the application "AlsMeterDemo"Yuta Doi3-2/+6
Change-Id: Ibb740243c172badb3c58c936b181e284f9eec9ac Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2018-06-12Bug fix: Add mutex lockYuta Doi2-0/+11
Change-Id: Iaa47eb9577167d57f56657660d278ad420306c62 Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2018-06-12Bug 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-12Bug fix: Calling enqueue_flushdraw is later than emit_syncdrawYuta Doi1-3/+3
Change-Id: Idd632363727d7e1f4584d114e958c8689558ec10 Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2018-06-08Bug fix: convert nullptr to stringYuta Doi1-1/+9
Change-Id: I418de2403730998a6437476e878cd03f4c40cb0d Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2018-06-05Add new roles and remove unnecessary role definitionYuta Doi2-7/+3
Change-Id: I228ffab3810675789dc9cf90a0e4683466f79b2f Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2018-06-05Add the role "launcher"Yuta Doi2-1/+5
Change-Id: Ied50062946952ccad265e496a038ca3394d9245b 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 Doi4-400/+419
and change the process for stopping timer Change-Id: Id7f9ba1c25adc188b01d8407f7043ea22da113d9 Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2018-05-31Use sd_event_add_defer() for dispatching checkPolicyYuta Doi1-32/+45
and modify the format of the logs Change-Id: Ic6e4a74c03e9fc74277ce4da0d3fd726c81a4a95 Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2018-05-29Add timer for restriction modeYuta Doi5-204/+346
When car state is changed stop -> run, the timer for switching restriction mode off -> on is set. When car state is changed run -> stop, restriction mode is changed on -> off. Change-Id: I6a8af9b45c7631db59cb78c41d07af118346a331 Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2018-05-29PolicyManager uses sd_event loop for the process of check policyYuta Doi3-86/+180
Change-Id: I1e7f7c2085ec30e09a53a67c0ad9c51b2bf53578 Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2018-05-28The surfaces are managed by using the roles instead of the drawing namesYuta Doi3-48/+36
Change-Id: I7373a54f2df334ac223b51a6cb9a643a88e7c33c Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2018-05-25Use afb_service_call instead of afb_service_call_syncYuta Doi1-6/+5
because initializing of WindowManager is dispatched when starting low-can service is late. Change-Id: I081aeda5dcd2a815467e6d19c51deec63d6303f4 Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2018-05-25Add new eventKazumasa Mitsunari3-5/+30
Add "screen_updated" event. This means new application is visible from the user. key ... "id" value ... application_id Change-Id: I548ba30f882d126d538b44281afa36625a1325e4 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
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>