xref: /aosp_15_r20/cts/tests/tests/content/res/values/overlayable.xml (revision b7c941bb3fa97aba169d73cee0bed2de8ac964bf)
1<?xml version="1.0" encoding="utf-8"?><!--
2  ~ Copyright (C) 2022 The Android Open Source Project
3  ~
4  ~ Licensed under the Apache License, Version 2.0 (the "License");
5  ~ you may not use this file except in compliance with the License.
6  ~ You may obtain a copy of the License at
7  ~
8  ~      http://www.apache.org/licenses/LICENSE-2.0
9  ~
10  ~ Unless required by applicable law or agreed to in writing, software
11  ~ distributed under the License is distributed on an "AS IS" BASIS,
12  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  ~ See the License for the specific language governing permissions and
14  ~ limitations under the License.
15  -->
16
17<resources>
18    <color name="target_overlayable_color1">#003B3B3B</color>
19    <color name="target_overlayable_color2">#003B3B3B</color>
20    <color name="target_overlayable_color3">#003B3B3B</color>
21    <color name="target_non_overlayable_color">#003B3B3B</color>
22    <string name="target_overlayable_string1">hello</string>
23    <string name="target_overlayable_string2">hello</string>
24    <string name="target_overlayable_string3">hello</string>
25    <string name="target_non_overlayable_string">#003B3B3B</string>
26
27    <overlayable name="SelfTargetingOverlayable" actor="overlay://theme">
28        <!-- The app with the same signature can overlay the below resources -->
29        <policy type="signature">
30            <item type="color" name="target_overlayable_color1" />
31            <item type="color" name="target_overlayable_color2" />
32            <item type="color" name="target_overlayable_color3" />
33            <item type="string" name="target_overlayable_string1" />
34            <item type="string" name="target_overlayable_string2" />
35            <item type="string" name="target_overlayable_string3" />
36        </policy>
37    </overlayable>
38</resources>
39