X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=layers.json;h=114691122d7d843ca10ecb441d54baccd37d3ebf;hb=2b84aa5d33611d0f2f7b8c4395dc352ebf60ea29;hp=f7cdfe56b5181cb45aa4591a91a153af8b5ecc8f;hpb=b91112b2514ccf6e9a57a0ed40d26fa709805af6;p=staging%2Fwindowmanager.git diff --git a/layers.json b/layers.json index f7cdfe5..1146911 100644 --- a/layers.json +++ b/layers.json @@ -1,5 +1,29 @@ { "comment": "Surface ID to Layer ID mapping", + + "main_surface": { + "surface_id": "1000", + "comment": "This surface should never be made invisible (The HomeScreen)" + }, + + "layers": [ + { + "name": "HomeScreen", + "layer_id": "1000", + "area": { "type": "full" } + }, + { + "name": "Apps", + "layer_id": "1001", + "area": { "type": "rect", "rect": { "x": "0", "y": "100", "width": "-1", "height": "-201" } } + }, + { + "name": "Popups", + "layer_id": "9999", + "area": { "type": "rect", "rect": { "x": "0", "y": "100", "width": "-1", "height": "-201" } } + } + ], + "mappings": [ { "type": "single", @@ -28,6 +52,7 @@ "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" },