• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2011 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<!-- A set of preferences used to exercise the DevicePolicyManager API. -->
18<!-- This screen is shown for the "Password Quality" header. -->
19<PreferenceScreen
20    xmlns:android="http://schemas.android.com/apk/res/android" >
21
22    <PreferenceCategory
23        android:title="@string/password_controls_category" >
24
25        <PreferenceScreen
26            android:key="key_set_password"
27            android:title="@string/set_password_user" />
28        <EditTextPreference
29            android:key="key_reset_password"
30            android:title="@string/set_password_api"
31            android:dialogTitle="@string/set_password_api_dialog" />
32    </PreferenceCategory>
33
34    <PreferenceCategory
35        android:key="key_category_quality"
36        android:title="@string/password_quality_category" >
37
38        <ListPreference
39            android:key="key_quality"
40            android:title="@string/password_quality"
41            android:entries="@array/password_qualities"
42            android:dialogTitle="@string/password_quality" />
43        <EditTextPreference
44            android:key="key_minimum_length"
45            android:title="@string/password_minimum_length"
46            android:dialogTitle="@string/password_minimum_length"
47            android:inputType="number" />
48        <EditTextPreference
49            android:key="key_minimum_letters"
50            android:title="@string/password_minimum_letters"
51            android:dialogTitle="@string/password_minimum_letters" />
52        <EditTextPreference
53            android:key="key_minimum_numeric"
54            android:title="@string/password_minimum_numeric"
55            android:dialogTitle="@string/password_minimum_numeric"
56            android:inputType="number"  />
57        <EditTextPreference
58            android:key="key_minimum_lower_case"
59            android:title="@string/password_minimum_lower_case"
60            android:dialogTitle="@string/password_minimum_lower_case"
61            android:inputType="number"  />
62        <EditTextPreference
63            android:key="key_minimum_upper_case"
64            android:title="@string/password_minimum_upper_case"
65            android:dialogTitle="@string/password_minimum_upper_case"
66            android:inputType="number"  />
67        <EditTextPreference
68            android:key="key_minimum_symbols"
69            android:title="@string/password_minimum_symbols"
70            android:dialogTitle="@string/password_minimum_symbols"
71            android:inputType="number"  />
72        <EditTextPreference
73            android:key="key_minimum_non_letter"
74            android:title="@string/password_minimum_non_letter"
75            android:dialogTitle="@string/password_minimum_non_letter"
76            android:inputType="number"  />
77    </PreferenceCategory>
78
79</PreferenceScreen>
80