|
1 |
| -<?xml version="1.0" encoding="utf-8"?> |
2 |
| -<!-- |
| 1 | +<?xml version="1.0" encoding="utf-8"?><!-- |
3 | 2 | Copyright (C) 2016 The Android Open Source Project
|
4 | 3 |
|
5 | 4 | Licensed under the Apache License, Version 2.0 (the "License");
|
|
15 | 14 | limitations under the License.
|
16 | 15 | -->
|
17 | 16 |
|
18 |
| -<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"> |
19 |
| - <PreferenceCategory |
20 |
| - android:title="@string/lock_screen_message"> |
21 |
| - <EditTextPreference |
22 |
| - android:key="key_lock_screen_message" |
23 |
| - android:title="@string/lock_screen_message" |
24 |
| - android:dialogTitle="@string/lock_screen_message" |
25 |
| - android:inputType="text" |
26 |
| - android:defaultValue="" /> |
| 17 | +<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" |
| 18 | + xmlns:testdpc="http://schemas.android.com/apk/res/com.afwsamples.testdpc"> |
| 19 | + <PreferenceCategory android:title="@string/lock_screen_message"> |
| 20 | + <com.afwsamples.testdpc.common.preference.DpcEditTextPreference |
| 21 | + android:defaultValue="" |
| 22 | + android:dialogTitle="@string/lock_screen_message" |
| 23 | + android:inputType="text" |
| 24 | + android:key="key_lock_screen_message" |
| 25 | + android:title="@string/lock_screen_message" |
| 26 | + testdpc:admin="deviceOwner" |
| 27 | + testdpc:minSdkVersion="N" /> |
27 | 28 | </PreferenceCategory>
|
28 | 29 |
|
29 |
| - <PreferenceCategory |
30 |
| - android:title="@string/maximum_lock_time_category" > |
31 |
| - <EditTextPreference |
32 |
| - android:key="key_max_time_screen_lock" |
33 |
| - android:title="@string/maximum_lock_time_seconds" |
34 |
| - android:dialogTitle="@string/maximum_lock_time_seconds" |
35 |
| - android:inputType="number" |
36 |
| - android:defaultValue="0" /> |
37 |
| - <Preference |
38 |
| - android:key="key_max_time_screen_lock_aggregate" |
39 |
| - android:title="@string/maximum_lock_time_all_admins" |
40 |
| - android:selectable="false" /> |
| 30 | + <PreferenceCategory android:title="@string/maximum_lock_time_category"> |
| 31 | + <com.afwsamples.testdpc.common.preference.DpcEditTextPreference |
| 32 | + android:defaultValue="0" |
| 33 | + android:dialogTitle="@string/maximum_lock_time_seconds" |
| 34 | + android:inputType="number" |
| 35 | + android:key="key_max_time_screen_lock" |
| 36 | + android:title="@string/maximum_lock_time_seconds" |
| 37 | + testdpc:minSdkVersion="L" /> |
| 38 | + <com.afwsamples.testdpc.common.preference.DpcPreference |
| 39 | + android:key="key_max_time_screen_lock_aggregate" |
| 40 | + android:selectable="false" |
| 41 | + android:title="@string/maximum_lock_time_all_admins" |
| 42 | + testdpc:minSdkVersion="L" /> |
41 | 43 | </PreferenceCategory>
|
42 | 44 |
|
43 |
| - <PreferenceCategory |
44 |
| - android:title="@string/maximum_password_fails" > |
45 |
| - <EditTextPreference |
46 |
| - android:key="key_max_fails_before_wipe" |
47 |
| - android:title="@string/maximum_password_fails" |
48 |
| - android:dialogTitle="@string/maximum_password_fails" |
49 |
| - android:inputType="number" |
50 |
| - android:defaultValue="0" /> |
51 |
| - <Preference |
52 |
| - android:key="key_max_fails_before_wipe_aggregate" |
53 |
| - android:title="@string/maximum_password_fails_all_admins" |
54 |
| - android:selectable="false" /> |
| 45 | + <PreferenceCategory android:title="@string/maximum_password_fails"> |
| 46 | + <com.afwsamples.testdpc.common.preference.DpcEditTextPreference |
| 47 | + android:defaultValue="0" |
| 48 | + android:dialogTitle="@string/maximum_password_fails" |
| 49 | + android:inputType="number" |
| 50 | + android:key="key_max_fails_before_wipe" |
| 51 | + android:title="@string/maximum_password_fails" |
| 52 | + testdpc:minSdkVersion="L" /> |
| 53 | + <com.afwsamples.testdpc.common.preference.DpcPreference |
| 54 | + android:key="key_max_fails_before_wipe_aggregate" |
| 55 | + android:selectable="false" |
| 56 | + android:title="@string/maximum_password_fails_all_admins" |
| 57 | + testdpc:minSdkVersion="L" /> |
55 | 58 | </PreferenceCategory>
|
56 | 59 |
|
57 |
| - <PreferenceCategory |
58 |
| - android:key="keyguard_features" |
59 |
| - android:title="@string/keyguard_features"> |
60 |
| - <SwitchPreference |
61 |
| - android:key="keyguard_disable_secure_camera" |
62 |
| - android:title="@string/keyguard_disable_secure_camera"/> |
63 |
| - <SwitchPreference |
64 |
| - android:key="keyguard_disable_secure_notifications" |
65 |
| - android:title="@string/keyguard_disable_secure_notifications"/> |
66 |
| - <SwitchPreference |
67 |
| - android:key="keyguard_disable_unredacted_notifications" |
68 |
| - android:title="@string/keyguard_disable_unredacted_notifications"/> |
69 |
| - <SwitchPreference |
70 |
| - android:key="keyguard_disable_trust_agents" |
71 |
| - android:title="@string/keyguard_disable_trust_agents"/> |
72 |
| - <SwitchPreference |
73 |
| - android:key="keyguard_disable_fingerprint" |
74 |
| - android:title="@string/keyguard_disable_fingerprint"/> |
75 |
| - <SwitchPreference |
76 |
| - android:key="keyguard_disable_remote_input" |
77 |
| - android:title="@string/keyguard_disable_remote_input"/> |
| 60 | + <PreferenceCategory android:title="@string/keyguard_features"> |
| 61 | + <com.afwsamples.testdpc.common.preference.DpcSwitchPreference |
| 62 | + android:key="keyguard_disable_secure_camera" |
| 63 | + android:title="@string/keyguard_disable_secure_camera" |
| 64 | + testdpc:admin="deviceOwner" |
| 65 | + testdpc:minSdkVersion="L" /> |
| 66 | + <com.afwsamples.testdpc.common.preference.DpcSwitchPreference |
| 67 | + android:key="keyguard_disable_secure_notifications" |
| 68 | + android:title="@string/keyguard_disable_secure_notifications" |
| 69 | + testdpc:admin="deviceOwner" |
| 70 | + testdpc:minSdkVersion="L" /> |
| 71 | + <com.afwsamples.testdpc.common.preference.DpcSwitchPreference |
| 72 | + android:key="keyguard_disable_unredacted_notifications" |
| 73 | + android:title="@string/keyguard_disable_unredacted_notifications" |
| 74 | + testdpc:minSdkVersion="L" /> |
| 75 | + <com.afwsamples.testdpc.common.preference.DpcSwitchPreference |
| 76 | + android:key="keyguard_disable_trust_agents" |
| 77 | + android:title="@string/keyguard_disable_trust_agents" |
| 78 | + testdpc:minSdkVersion="L" /> |
| 79 | + <com.afwsamples.testdpc.common.preference.DpcSwitchPreference |
| 80 | + android:key="keyguard_disable_fingerprint" |
| 81 | + android:title="@string/keyguard_disable_fingerprint" |
| 82 | + testdpc:minSdkVersion="L" /> |
| 83 | + <com.afwsamples.testdpc.common.preference.DpcSwitchPreference |
| 84 | + android:key="keyguard_disable_remote_input" |
| 85 | + android:title="@string/keyguard_disable_remote_input" |
| 86 | + testdpc:minSdkVersion="L" /> |
78 | 87 | </PreferenceCategory>
|
79 | 88 |
|
80 |
| - <PreferenceCategory |
81 |
| - android:title="@string/trust_agent_features"> |
82 |
| - <Preference |
83 |
| - android:key="key_set_trust_agent_config" |
84 |
| - android:title="@string/set_trust_agent_config"/> |
| 89 | + <PreferenceCategory android:title="@string/trust_agent_features"> |
| 90 | + <com.afwsamples.testdpc.common.preference.DpcPreference |
| 91 | + android:key="key_set_trust_agent_config" |
| 92 | + android:title="@string/set_trust_agent_config" |
| 93 | + testdpc:minSdkVersion="L" /> |
85 | 94 | </PreferenceCategory>
|
86 | 95 | </PreferenceScreen>
|
0 commit comments