add ids.json and layout.json
authorMarcus Fritzsch <marcus_fritzsch@mentor.com>
Thu, 27 Jul 2017 13:48:54 +0000 (15:48 +0200)
committerMarcus Fritzsch <marcus_fritzsch@mentor.com>
Tue, 8 Aug 2017 15:24:00 +0000 (17:24 +0200)
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
ids.json [new file with mode: 0644]
layout.json [new file with mode: 0644]

diff --git a/ids.json b/ids.json
new file mode 100644 (file)
index 0000000..5c0588d
--- /dev/null
+++ b/ids.json
@@ -0,0 +1,40 @@
+{
+   "comment": "Surface ID to Layer ID mapping",
+   "mappings": [
+      {
+         "type": "single",
+         "surface_id": "1000",
+         "name": "HomeScreen",
+         "layer_id": "1000",
+         "comment": "Single layer map for the HomeScreen, XXX: type is redundant, could also check existence of id/first_id+last_id"
+      },
+      {
+         "type": "range",
+         "first_surface_id": "2000",
+         "last_surface_id": "2999",
+         "name": "apps",
+         "layer_id": "1001",
+         "comment": "Range of IDs that will always be placed on layer 1001"
+      },
+      {
+         "type": "range",
+         "first_surface_id": "3000",
+         "last_surface_id": "3999",
+         "name": "popups",
+         "layer_id": "9999",
+         "comment": "Range of IDs that will always be placed on the popup layer, that gets a very high 'dummy' id of 9999"
+      }
+   ],
+   "tests": [
+      { "surface_id": "1000", "expect_layer_id": "1000" },
+      { "surface_id": "1001", "expect_layer_id": "-1" },
+      { "surface_id": "1999", "expect_layer_id": "-1" },
+      { "surface_id": "2000", "expect_layer_id": "1001" },
+      { "surface_id": "2500", "expect_layer_id": "1001" },
+      { "surface_id": "2999", "expect_layer_id": "1001" },
+      { "surface_id": "3000", "expect_layer_id": "9999" },
+      { "surface_id": "3500", "expect_layer_id": "9999" },
+      { "surface_id": "3999", "expect_layer_id": "9999" },
+      { "surface_id": "4711", "expect_layer_id": "-1" }
+   ]
+}
diff --git a/layout.json b/layout.json
new file mode 100644 (file)
index 0000000..be82f35
--- /dev/null
@@ -0,0 +1,44 @@
+[
+   {
+      "areas": [
+         {
+            "height": "1920",
+            "name": "ControleBar",
+            "width": "1080",
+            "x": "0",
+            "y": "0",
+            "zorder": "0"
+        },
+         {
+            "height": "1920",
+            "name": "HomeButton",
+            "width": "100",
+            "x": "0",
+            "y": "0",
+            "zorder": "0"
+         }
+      ],
+      "name": "HomeScreenBasic"
+   },
+   {
+      "areas": [
+         {
+            "height": "1280",
+            "name": "Main",
+            "width": "1080",
+            "x": "0",
+            "y": "300",
+            "zorder": "0"
+         },
+         {
+            "height": "1280",
+            "name": "Sub",
+            "width": "1080",
+            "x": "0",
+            "y": "600",
+            "zorder": "0"
+         }
+      ],
+      "name": "ApssHalfBasic"
+   }
+]