1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2016 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
19    <declare-styleable name="RestrictedPreference">
20        <!-- The user restriction on which the preference disabled by admin state will be based on. -->
21        <attr name="userRestriction" format="string" />
22        <!-- If true then we can use enabled/disabled by admin strings for summary (android.R.id.summary). -->
23        <attr name="useAdminDisabledSummary" format="boolean" />
24    </declare-styleable>
25
26    <declare-styleable name="RestrictedSwitchPreference">
27        <!-- If true, an additional summary will be added in addition to the existing summary and
28        this will be used for enabled/disabled by admin strings leaving android.R.id.summary untouched.
29        As such when this is true, useAdminDisabledSummary will be overwritten to false. -->
30        <attr name="useAdditionalSummary" format="boolean" />
31        <!-- This is used as summary for restricted switch preferences, default value is
32        @string/disabled_by_admin (Disabled by administrator). -->
33        <attr name="restrictedSwitchSummary" format="reference" />
34    </declare-styleable>
35
36    <declare-styleable name="WifiEncryptionState">
37        <attr name="state_encrypted" format="boolean" />
38    </declare-styleable>
39    <declare-styleable name="WifiMeteredState">
40        <attr name="state_metered" format="boolean" />
41    </declare-styleable>
42    <declare-styleable name="WifiSavedState">
43        <attr name="state_saved" format="boolean" />
44    </declare-styleable>
45
46    <attr name="wifi_signal" format="reference" />
47    <attr name="wifi_friction" format="reference" />
48
49    <declare-styleable name="UsageView">
50        <attr name="android:colorAccent" />
51        <attr name="sideLabels" format="reference" />
52        <attr name="bottomLabels" format="reference" />
53        <attr name="textColor" format="color" />
54        <attr name="android:gravity" />
55    </declare-styleable>
56
57</resources>
58