diff options
author | Kazumasa Mitsunari <knimitz@witz-inc.co.jp> | 2018-05-07 15:54:36 +0900 |
---|---|---|
committer | Kazumasa Mitsunari <knimitz@witz-inc.co.jp> | 2018-05-07 17:28:07 +0900 |
commit | 273f15d6f5368a0144ea84cfdcf03f9d985106f5 (patch) | |
tree | dca7dbb9ccb2282a5931c5d07034dc7487341504 /src | |
parent | 49817ce46db30027ed3ca7bc669904c55b9337c8 (diff) |
Add restriction and software keyboard layers
Change-Id: I9133faa840f6feaec3f2b6f88a6e1b33be29639c
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Diffstat (limited to 'src')
-rw-r--r-- | src/layout_manager/db/layout.db | 114 | ||||
-rw-r--r-- | src/layout_manager/db/layout.db.org | 158 | ||||
-rw-r--r-- | src/layout_manager/layout.cpp | 3 | ||||
-rw-r--r-- | src/policy_manager/db/role.db | 11 | ||||
-rw-r--r-- | src/policy_manager/zipc/category.db | 32 |
5 files changed, 224 insertions, 94 deletions
diff --git a/src/layout_manager/db/layout.db b/src/layout_manager/db/layout.db index c7cefd8..7955d96 100644 --- a/src/layout_manager/db/layout.db +++ b/src/layout_manager/db/layout.db @@ -1,17 +1,7 @@ { "layouts": [ { - "name": "pu", - "layer": "on_screen", - "areas": [ - { - "name": "pop_up", - "role": "incomming_call" - } - ] - }, - { - "name": "sa", + "name": "system_alert", "layer": "on_screen", "areas": [ { @@ -21,79 +11,49 @@ ] }, { - "name": "m1", - "layer": "apps", + "name": "restriction", + "layer": "restriction", "areas": [ { - "name": "normal", - "role": "map" + "name": "restriction", + "role": "restriction.video_hide_on_driving" } ] }, { - "name": "m2", - "layer": "apps", + "name": "upper_homescreen", + "layer": "upper_homescreen", "areas": [ { - "name": "split.main", - "role": "map" - }, - { - "name": "split.sub", - "category": "splitable" + "name": "software_keyboard", + "role": "software_keyboard" } ] }, { - "name": "mf", + "name": "applications", "layer": "apps", "areas": [ { - "name": "full", + "name": "normal", "role": "map" - } - ] - }, - { - "name": "s1", - "layer": "apps", - "areas": [ + }, { "name": "normal", - "category": "splitable" - } - ] - }, - { - "name": "s2", - "layer": "apps", - "areas": [ - { - "name": "split.main", - "category": "splitable" + "role": "map" }, { - "name": "split.sub", - "category": "splitable" - } - ] - }, - { - "name": "g", - "layer": "apps", - "areas": [ - { "name": "normal", - "category": "general" + "role": "map" } ] }, { - "name": "hs", - "layer": "homescreen", + "name": "lower_homescreen", + "layer": "lower_homescreen", "areas": [ { - "name": "full", + "name": "fullscreen", "role": "homescreen" } ] @@ -110,7 +70,16 @@ } }, { - "name": "split.main", + "name": "restriction.full", + "rect": { + "x": 0, + "y": 218, + "w": 1080, + "h": 1488 + } + }, + { + "name": "restriction.split.main", "rect": { "x": 0, "y": 218, @@ -119,6 +88,24 @@ } }, { + "name": "restriction.split.sub", + "rect": { + "x": 0, + "y": 218, + "w": 1080, + "h": 1488 + } + }, + { + "name": "split.main", + "rect": { + "x": 0, + "y": 962, + "w": 1080, + "h": 744 + } + }, + { "name": "split.sub", "rect": { "x": 0, @@ -128,7 +115,7 @@ } }, { - "name": "full", + "name": "fullscreen", "rect": { "x": 0, "y": 0, @@ -146,6 +133,15 @@ } }, { + "name": "software_keyboard", + "rect": { + "x": 0, + "y": 1162, + "w": 1080, + "h": 544 + } + }, + { "name": "system_alert", "rect": { "x": 0, diff --git a/src/layout_manager/db/layout.db.org b/src/layout_manager/db/layout.db.org new file mode 100644 index 0000000..c7cefd8 --- /dev/null +++ b/src/layout_manager/db/layout.db.org @@ -0,0 +1,158 @@ +{ + "layouts": [ + { + "name": "pu", + "layer": "on_screen", + "areas": [ + { + "name": "pop_up", + "role": "incomming_call" + } + ] + }, + { + "name": "sa", + "layer": "on_screen", + "areas": [ + { + "name": "system_alert", + "role": "system_alert" + } + ] + }, + { + "name": "m1", + "layer": "apps", + "areas": [ + { + "name": "normal", + "role": "map" + } + ] + }, + { + "name": "m2", + "layer": "apps", + "areas": [ + { + "name": "split.main", + "role": "map" + }, + { + "name": "split.sub", + "category": "splitable" + } + ] + }, + { + "name": "mf", + "layer": "apps", + "areas": [ + { + "name": "full", + "role": "map" + } + ] + }, + { + "name": "s1", + "layer": "apps", + "areas": [ + { + "name": "normal", + "category": "splitable" + } + ] + }, + { + "name": "s2", + "layer": "apps", + "areas": [ + { + "name": "split.main", + "category": "splitable" + }, + { + "name": "split.sub", + "category": "splitable" + } + ] + }, + { + "name": "g", + "layer": "apps", + "areas": [ + { + "name": "normal", + "category": "general" + } + ] + }, + { + "name": "hs", + "layer": "homescreen", + "areas": [ + { + "name": "full", + "role": "homescreen" + } + ] + } + ], + "areas": [ + { + "name": "normal", + "rect": { + "x": 0, + "y": 218, + "w": 1080, + "h": 1488 + } + }, + { + "name": "split.main", + "rect": { + "x": 0, + "y": 218, + "w": 1080, + "h": 744 + } + }, + { + "name": "split.sub", + "rect": { + "x": 0, + "y": 962, + "w": 1080, + "h": 744 + } + }, + { + "name": "full", + "rect": { + "x": 0, + "y": 0, + "w": 1080, + "h": 1920 + } + }, + { + "name": "pop_up", + "rect": { + "x": 0, + "y": 640, + "w": 1080, + "h": 640 + } + }, + { + "name": "system_alert", + "rect": { + "x": 0, + "y": 640, + "w": 1080, + "h": 640 + } + } + ] +} diff --git a/src/layout_manager/layout.cpp b/src/layout_manager/layout.cpp index dc73cbf..3f4013e 100644 --- a/src/layout_manager/layout.cpp +++ b/src/layout_manager/layout.cpp @@ -48,14 +48,17 @@ int LayoutManager::initialize() { this->prv_layers_["on_screen"] = layout; this->prv_layers_["apps"] = layout; this->prv_layers_["homescreen"] = layout; + this->prv_layers_["restriction"] = layout; this->crr_layers_["on_screen"] = layout; this->crr_layers_["apps"] = layout; this->crr_layers_["homescreen"] = layout; + this->crr_layers_["restriction"] = layout; this->prv_layers_car_stop_["on_screen"] = layout; this->prv_layers_car_stop_["apps"] = layout; this->prv_layers_car_stop_["homescreen"] = layout; + this->prv_layers_car_stop_["restriction"] = layout; return ret; } diff --git a/src/policy_manager/db/role.db b/src/policy_manager/db/role.db index 2807fde..5fca227 100644 --- a/src/policy_manager/db/role.db +++ b/src/policy_manager/db/role.db @@ -2,13 +2,18 @@ "roles":[ { "category": "homescreen", - "role": "homescreen", - "area": "full", + "role": "homescreen | "software_keyboard", + "area": "full | software_keyboard", + }, + { + "category": "restriction", + "role": "restriction.video_hide_on_driving", + "area": "normal | restriction.split.main | restriction.split.sub", }, { "category": "map", "role": "map", - "area": "full | normal | split.main", + "area": "normal | split.main", }, { "category": "general", diff --git a/src/policy_manager/zipc/category.db b/src/policy_manager/zipc/category.db deleted file mode 100644 index 4867260..0000000 --- a/src/policy_manager/zipc/category.db +++ /dev/null @@ -1,32 +0,0 @@ -{ - "categories":[ - { - "name": "homescreen", - "role": "homescreen" - }, - { - "name": "map", - "role": "map" - }, - { - "name": "general", - "role": "poi | music | radio | video | browser | sdl | phone | settings | mixer | hvac | dashboard | fallback" - }, - { - "name": "pop_up", - "role": "incoming_call" - }, - { - "name": "system_alert", - "role": "system_alert" - }, - { - "name": "tbt", - "role": "tbt" - }, - { - "name": "splitable", - "role": "test_splitable1 | test_splitable2" - } - ] -} |