summaryrefslogtreecommitdiffstats
path: root/layers.json
diff options
context:
space:
mode:
authorMarcus Fritzsch <marcus_fritzsch@mentor.com>2017-08-01 17:13:03 +0200
committerMarcus Fritzsch <marcus_fritzsch@mentor.com>2017-08-08 17:24:00 +0200
commitb91112b2514ccf6e9a57a0ed40d26fa709805af6 (patch)
tree1512c29842985a0b367fc5fb5d81579d4d5ae7fa /layers.json
parentef35039988c64c66c252b01827081ae8cabaa811 (diff)
rename ids.json to layers.json, because that's what is is.
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Diffstat (limited to 'layers.json')
-rw-r--r--layers.json43
1 files changed, 43 insertions, 0 deletions
diff --git a/layers.json b/layers.json
new file mode 100644
index 0000000..f7cdfe5
--- /dev/null
+++ b/layers.json
@@ -0,0 +1,43 @@
+{
+ "comment": "Surface ID to Layer ID mapping",
+ "mappings": [
+ {
+ "type": "single",
+ "surface_id": "1000",
+ "name": "HomeScreen",
+ "layer_id": "1000",
+ "area": { "type": "full" },
+ "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",
+ "area": { "type": "rect", "rect": { "x": "0", "y": "100", "width": "-1", "height": "-201" } },
+ "comment": "Range of IDs that will always be placed on layer 1001, negative rect values are interpreted as output_size.dimension - $value"
+ },
+ {
+ "type": "range",
+ "first_surface_id": "3000",
+ "last_surface_id": "3999",
+ "name": "popups",
+ "layer_id": "9999",
+ "area": { "type": "rect", "rect": { "x": "0", "y": "100", "width": "-1", "height": "-201" } },
+ "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", "comment": "check against -1 for not found entries" },
+ { "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" }
+ ]
+}