|
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"> |
| 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 | 20 | <PreferenceCategory android:title="@string/password_expiration">
|
21 |
| - <EditTextPreference |
22 |
| - android:title="@string/password_expiration_seconds" |
23 |
| - android:key="password_expiration_time" |
24 |
| - android:inputType="number"/> |
| 21 | + <com.afwsamples.testdpc.common.preference.DpcEditTextPreference |
| 22 | + android:inputType="number" |
| 23 | + android:key="password_expiration_time" |
| 24 | + android:title="@string/password_expiration_seconds" |
| 25 | + testdpc:minSdkVersion="L" /> |
25 | 26 |
|
26 | 27 | <!-- Not a real preference- shows the aggregate password expiration time for all admins. -->
|
27 |
| - <Preference |
28 |
| - android:title="@string/password_expiration_aggregate" |
29 |
| - android:key="password_expiration_aggregate" |
30 |
| - android:selectable="false"/> |
31 |
| - <EditTextPreference |
32 |
| - android:title="@string/password_history_length" |
| 28 | + <com.afwsamples.testdpc.common.preference.DpcPreference |
| 29 | + android:key="password_expiration_aggregate" |
| 30 | + android:selectable="false" |
| 31 | + android:title="@string/password_expiration_aggregate" |
| 32 | + testdpc:minSdkVersion="L" /> |
| 33 | + <com.afwsamples.testdpc.common.preference.DpcEditTextPreference |
| 34 | + android:inputType="number" |
33 | 35 | android:key="password_history_length"
|
34 |
| - android:inputType="number"/> |
| 36 | + android:title="@string/password_history_length" |
| 37 | + testdpc:minSdkVersion="L" /> |
35 | 38 | </PreferenceCategory>
|
36 | 39 |
|
37 | 40 | <PreferenceCategory android:title="@string/password_constraints">
|
38 |
| - <ListPreference |
39 |
| - android:title="@string/minimum_password_quality" |
40 |
| - android:key="minimum_password_quality"/> |
41 |
| - <EditTextPreference |
42 |
| - android:title="@string/password_min_length" |
43 |
| - android:key="password_min_length" |
44 |
| - android:inputType="number"/> |
45 |
| - <EditTextPreference |
46 |
| - android:title="@string/password_min_letters" |
47 |
| - android:key="password_min_letters" |
48 |
| - android:inputType="number"/> |
49 |
| - <EditTextPreference |
50 |
| - android:title="@string/password_min_numeric" |
51 |
| - android:key="password_min_numeric" |
52 |
| - android:inputType="number"/> |
53 |
| - <EditTextPreference |
54 |
| - android:title="@string/password_min_lowercase" |
55 |
| - android:key="password_min_lowercase" |
56 |
| - android:inputType="number"/> |
57 |
| - <EditTextPreference |
58 |
| - android:title="@string/password_min_uppercase" |
59 |
| - android:key="password_min_uppercase" |
60 |
| - android:inputType="number"/> |
61 |
| - <EditTextPreference |
62 |
| - android:title="@string/password_min_symbols" |
63 |
| - android:key="password_min_symbols" |
64 |
| - android:inputType="number"/> |
65 |
| - <EditTextPreference |
66 |
| - android:title="@string/password_min_nonletter" |
67 |
| - android:key="password_min_nonletter" |
68 |
| - android:inputType="number"/> |
| 41 | + <com.afwsamples.testdpc.common.preference.DpcListPreference |
| 42 | + android:key="minimum_password_quality" |
| 43 | + android:title="@string/minimum_password_quality" |
| 44 | + testdpc:minSdkVersion="L" /> |
| 45 | + <com.afwsamples.testdpc.common.preference.DpcEditTextPreference |
| 46 | + android:inputType="number" |
| 47 | + android:key="password_min_length" |
| 48 | + android:title="@string/password_min_length" |
| 49 | + testdpc:minSdkVersion="L" /> |
| 50 | + <com.afwsamples.testdpc.common.preference.DpcEditTextPreference |
| 51 | + android:inputType="number" |
| 52 | + android:key="password_min_letters" |
| 53 | + android:title="@string/password_min_letters" |
| 54 | + testdpc:minSdkVersion="L" /> |
| 55 | + <com.afwsamples.testdpc.common.preference.DpcEditTextPreference |
| 56 | + android:inputType="number" |
| 57 | + android:key="password_min_numeric" |
| 58 | + android:title="@string/password_min_numeric" |
| 59 | + testdpc:minSdkVersion="L" /> |
| 60 | + <com.afwsamples.testdpc.common.preference.DpcEditTextPreference |
| 61 | + android:inputType="number" |
| 62 | + android:key="password_min_lowercase" |
| 63 | + android:title="@string/password_min_lowercase" |
| 64 | + testdpc:minSdkVersion="L" /> |
| 65 | + <com.afwsamples.testdpc.common.preference.DpcEditTextPreference |
| 66 | + android:inputType="number" |
| 67 | + android:key="password_min_uppercase" |
| 68 | + android:title="@string/password_min_uppercase" |
| 69 | + testdpc:minSdkVersion="L" /> |
| 70 | + <com.afwsamples.testdpc.common.preference.DpcEditTextPreference |
| 71 | + android:inputType="number" |
| 72 | + android:key="password_min_symbols" |
| 73 | + android:title="@string/password_min_symbols" |
| 74 | + testdpc:minSdkVersion="L" /> |
| 75 | + <com.afwsamples.testdpc.common.preference.DpcEditTextPreference |
| 76 | + android:inputType="number" |
| 77 | + android:key="password_min_nonletter" |
| 78 | + android:title="@string/password_min_nonletter" |
| 79 | + testdpc:minSdkVersion="L" /> |
69 | 80 | </PreferenceCategory>
|
70 | 81 | </PreferenceScreen>
|
0 commit comments