aboutsummaryrefslogtreecommitdiffstats
path: root/src/policy_manager
AgeCommit message (Collapse)AuthorFilesLines
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-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 Doi2-20/+59
Change-Id: Ibf528b5ab3877d2cf094920fd0723873fb12647c Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2018-05-14PolicyManager can judge the current car stateYuta Doi2-29/+4
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 Doi1-7/+39
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 Doi3-9/+63
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-11The role "video" can be shown in split area for ALSYuta Doi3-6/+25
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-10Replace json_object_from_file to inputJsonFilieYuta Doi2-16/+67
and remove unnecessary header Change-Id: Ia4200a9742d62933328d0518731710413caa1a5c Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2018-05-10Modify for restriction roleYuta Doi4-26/+142
- 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 policy of switching parking brake state to dummy stm for validationYuta Doi2-2/+15
Change-Id: I547e578526d6ce934c9fa8aa86170cea5a2f17e7 Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2018-05-09Add parking brake ON/OFF eventYuta Doi4-137/+157
Change-Id: I3b9face35972a275918ac4f95f4a97df035ee924 Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2018-05-08Change the role and layoutKazumasa Mitsunari1-1/+1
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-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-07Add restriction and software keyboard layersKazumasa Mitsunari2-35/+8
Change-Id: I9133faa840f6feaec3f2b6f88a6e1b33be29639c Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-04-27Add PolicyManager, related classes and some config filesYuta Doi7-0/+1044
- 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>