rename ids.json to layers.json, because that's what is is.
[staging/windowmanager.git] / layers.json
1 {
2    "comment": "Surface ID to Layer ID mapping",
3    "mappings": [
4       {
5          "type": "single",
6          "surface_id": "1000",
7          "name": "HomeScreen",
8          "layer_id": "1000",
9          "area": { "type": "full" },
10          "comment": "Single layer map for the HomeScreen, XXX: type is redundant, could also check existence of id/first_id+last_id"
11       },
12       {
13          "type": "range",
14          "first_surface_id": "2000",
15          "last_surface_id": "2999",
16          "name": "apps",
17          "layer_id": "1001",
18          "area": { "type": "rect", "rect": { "x": "0", "y": "100", "width": "-1", "height": "-201" } },
19          "comment": "Range of IDs that will always be placed on layer 1001, negative rect values are interpreted as output_size.dimension - $value"
20       },
21       {
22          "type": "range",
23          "first_surface_id": "3000",
24          "last_surface_id": "3999",
25          "name": "popups",
26          "layer_id": "9999",
27          "area": { "type": "rect", "rect": { "x": "0", "y": "100", "width": "-1", "height": "-201" } },
28          "comment": "Range of IDs that will always be placed on the popup layer, that gets a very high 'dummy' id of 9999"
29       }
30    ],
31    "tests": [
32       { "surface_id": "1000", "expect_layer_id": "1000" },
33       { "surface_id": "1001", "expect_layer_id": "-1", "comment": "check against -1 for not found entries" },
34       { "surface_id": "1999", "expect_layer_id": "-1" },
35       { "surface_id": "2000", "expect_layer_id": "1001" },
36       { "surface_id": "2500", "expect_layer_id": "1001" },
37       { "surface_id": "2999", "expect_layer_id": "1001" },
38       { "surface_id": "3000", "expect_layer_id": "9999" },
39       { "surface_id": "3500", "expect_layer_id": "9999" },
40       { "surface_id": "3999", "expect_layer_id": "9999" },
41       { "surface_id": "4711", "expect_layer_id": "-1" }
42    ]
43 }