summaryrefslogtreecommitdiffstats
path: root/ids.json
blob: 5c0588d657ed4e0e404bf8e9210ba7cea177dad5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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" }
   ]
}