From 55be85ed4bdfea6fc037d781b8cd8f58487718d1 Mon Sep 17 00:00:00 2001 From: Yuta Doi Date: Fri, 27 Apr 2018 19:01:36 +0900 Subject: Add PolicyManager, related classes and some config files - 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 --- src/policy_manager/db/role.db | 44 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 src/policy_manager/db/role.db (limited to 'src/policy_manager/db/role.db') diff --git a/src/policy_manager/db/role.db b/src/policy_manager/db/role.db new file mode 100644 index 0000000..2807fde --- /dev/null +++ b/src/policy_manager/db/role.db @@ -0,0 +1,44 @@ +{ + "roles":[ + { + "category": "homescreen", + "role": "homescreen", + "area": "full", + }, + { + "category": "map", + "role": "map", + "area": "full | normal | split.main", + }, + { + "category": "general", + "role": "poi | music | video | browser | sdl | settings | mixer | radio | hvac | dashboard | debug", + "area": "normal", + }, + { + "category": "phone", + "role": "phone", + "area": "normal", + }, + { + "category": "splitable", + "role": "splitable1 | splitable2", + "area": "normal | split.main | split.sub", + }, + { + "category": "popup", + "role": "popup", + "area": "on_screen", + }, + { + "category": "system_alert", + "role": "system_alert", + "area": "on_screen", + }, + { + "category": "tbt", + "role": "tbt", + "area": "hud", + } + ] +} \ No newline at end of file -- cgit 1.2.3-korg