|
1 |
| -<?xml version="1.0" encoding="utf-8"?> |
2 |
| -<!-- |
| 1 | +<?xml version="1.0" encoding="utf-8"?><!-- |
3 | 2 | Copyright (C) 2015 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"> |
| 17 | +<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" |
| 18 | + xmlns:testdpc="http://schemas.android.com/apk/res/com.afwsamples.testdpc"> |
19 | 19 |
|
20 |
| - <PreferenceCategory |
21 |
| - android:title="@string/organization_info"> |
22 |
| - <Preference |
23 |
| - android:key="set_organization_color" |
24 |
| - android:title="@string/set_organization_color" /> |
25 |
| - <EditTextPreference |
26 |
| - android:key="set_organization_name" |
27 |
| - android:title="@string/set_organization_name" /> |
| 20 | + <PreferenceCategory android:title="@string/organization_info"> |
| 21 | + <com.afwsamples.testdpc.common.preference.DpcPreference |
| 22 | + android:key="set_organization_color" |
| 23 | + android:title="@string/set_organization_color" |
| 24 | + testdpc:minSdkVersion="N" /> |
| 25 | + <com.afwsamples.testdpc.common.preference.DpcEditTextPreference |
| 26 | + android:key="set_organization_name" |
| 27 | + android:title="@string/set_organization_name" |
| 28 | + testdpc:minSdkVersion="N" /> |
28 | 29 | </PreferenceCategory>
|
29 | 30 |
|
30 |
| - <PreferenceCategory |
31 |
| - android:title="@string/cross_profile_intents"> |
32 |
| - <Preference |
33 |
| - android:title="@string/add_cross_profile_intents_title" |
34 |
| - android:key="add_cross_profile_intent_filter"/> |
35 |
| - <Preference |
36 |
| - android:title="@string/clear_cross_profile_intents" |
37 |
| - android:key="clear_cross_profile_intent_filters"/> |
| 31 | + <PreferenceCategory android:title="@string/cross_profile_intents"> |
| 32 | + <com.afwsamples.testdpc.common.preference.DpcPreference |
| 33 | + android:key="add_cross_profile_intent_filter" |
| 34 | + android:title="@string/add_cross_profile_intents_title" |
| 35 | + testdpc:minSdkVersion="L" /> |
| 36 | + <com.afwsamples.testdpc.common.preference.DpcPreference |
| 37 | + android:key="clear_cross_profile_intent_filters" |
| 38 | + android:title="@string/clear_cross_profile_intents" |
| 39 | + testdpc:minSdkVersion="L" /> |
38 | 40 | </PreferenceCategory>
|
39 | 41 |
|
40 |
| - <PreferenceCategory |
41 |
| - android:title="@string/cross_profile_widget_providers_title"> |
42 |
| - <Preference |
43 |
| - android:key="add_cross_profile_app_widgets" |
44 |
| - android:title="@string/add_cross_profile_app_widget_providers"/> |
45 |
| - <Preference |
46 |
| - android:key="remove_cross_profile_app_widgets" |
47 |
| - android:title="@string/remove_cross_profile_app_widget_providers"/> |
| 42 | + <PreferenceCategory android:title="@string/cross_profile_widget_providers_title"> |
| 43 | + <com.afwsamples.testdpc.common.preference.DpcPreference |
| 44 | + android:key="add_cross_profile_app_widgets" |
| 45 | + android:title="@string/add_cross_profile_app_widget_providers" |
| 46 | + testdpc:minSdkVersion="L" /> |
| 47 | + <com.afwsamples.testdpc.common.preference.DpcPreference |
| 48 | + android:key="remove_cross_profile_app_widgets" |
| 49 | + android:title="@string/remove_cross_profile_app_widget_providers" |
| 50 | + testdpc:minSdkVersion="L" /> |
48 | 51 | </PreferenceCategory>
|
49 | 52 |
|
50 |
| - <PreferenceCategory |
51 |
| - android:title="@string/policies_title"> |
52 |
| - <SwitchPreference |
53 |
| - android:key="disable_bluetooth_contact_sharing" |
54 |
| - android:title="@string/disable_bluetooth_contact_sharing"/> |
55 |
| - <SwitchPreference |
56 |
| - android:key="disable_cross_profile_caller_id" |
57 |
| - android:title="@string/disable_cross_profile_caller_id"/> |
58 |
| - <SwitchPreference |
59 |
| - android:key="disable_cross_profile_contacts_search" |
60 |
| - android:title="@string/disable_cross_profile_contacts_search"/> |
| 53 | + <PreferenceCategory android:title="@string/policies_title"> |
| 54 | + <com.afwsamples.testdpc.common.preference.DpcSwitchPreference |
| 55 | + android:key="disable_bluetooth_contact_sharing" |
| 56 | + android:title="@string/disable_bluetooth_contact_sharing" |
| 57 | + testdpc:minSdkVersion="M" /> |
| 58 | + <com.afwsamples.testdpc.common.preference.DpcSwitchPreference |
| 59 | + android:key="disable_cross_profile_caller_id" |
| 60 | + android:title="@string/disable_cross_profile_caller_id" |
| 61 | + testdpc:minSdkVersion="L" /> |
| 62 | + <com.afwsamples.testdpc.common.preference.DpcSwitchPreference |
| 63 | + android:key="disable_cross_profile_contacts_search" |
| 64 | + android:title="@string/disable_cross_profile_contacts_search" |
| 65 | + testdpc:minSdkVersion="N" /> |
61 | 66 | </PreferenceCategory>
|
62 | 67 |
|
63 |
| - <PreferenceCategory |
64 |
| - android:title="@string/profile_management_title"> |
65 |
| - <Preference |
66 |
| - android:key="remove_profile" |
67 |
| - android:title="@string/remove_managed_profile"/> |
| 68 | + <PreferenceCategory android:title="@string/profile_management_title"> |
| 69 | + <com.afwsamples.testdpc.common.preference.DpcPreference |
| 70 | + android:key="remove_profile" |
| 71 | + android:title="@string/remove_managed_profile" |
| 72 | + testdpc:minSdkVersion="L" /> |
68 | 73 | </PreferenceCategory>
|
69 | 74 |
|
70 | 75 | </PreferenceScreen>
|
0 commit comments