• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<!--
2  ~ Copyright (C) 2018 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<PreferenceScreen
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    xmlns:settings="http://schemas.android.com/apk/res-auto"
20    android:title="@string/security_settings_face_preference_title">
21
22    <PreferenceCategory
23        android:key="security_settings_face_unlock_category"
24        android:title="@string/security_settings_face_settings_use_face_category"
25        settings:controller="com.android.settings.biometrics.face.FaceUnlockCategoryPreferenceController">
26        <com.android.settingslib.RestrictedSwitchPreference
27            android:key="security_settings_face_keyguard"
28            android:title="@string/biometric_settings_use_biometric_unlock_phone"
29            settings:keywords="@string/keywords_face_unlock"
30            settings:controller="com.android.settings.biometrics.face.FaceSettingsKeyguardPreferenceController"/>
31        <SwitchPreference
32            android:key="security_settings_face_app"
33            android:title="@string/biometric_settings_use_biometric_for_apps"
34            settings:keywords="@string/keywords_face_unlock"
35            settings:controller="com.android.settings.biometrics.face.FaceSettingsAppPreferenceController"/>
36        <com.android.settingslib.RestrictedSwitchPreference
37            android:key="security_lockscreen_bypass"
38            android:title="@string/lockscreen_bypass_title"
39            android:summary="@string/lockscreen_bypass_summary"
40            settings:keywords="@string/keywords_lockscreen_bypass"
41            settings:controller="com.android.settings.biometrics.face.FaceSettingsLockscreenBypassPreferenceController" />
42    </PreferenceCategory>
43
44    <PreferenceCategory
45        android:key="security_settings_face_manage_category"
46        android:title="@string/security_settings_face_settings_preferences_category">
47        <SwitchPreference
48            android:key="security_settings_face_require_attention"
49            android:title="@string/security_settings_face_settings_require_attention"
50            android:summary="@string/security_settings_face_settings_require_attention_details"
51            settings:keywords="@string/keywords_face_unlock"
52            settings:controller="com.android.settings.biometrics.face.FaceSettingsAttentionPreferenceController"/>
53
54        <SwitchPreference
55            android:key="security_settings_face_require_confirmation"
56            android:title="@string/security_settings_face_settings_require_confirmation"
57            android:summary="@string/security_settings_face_settings_require_confirmation_details"
58            settings:keywords="@string/keywords_face_unlock"
59            settings:controller="com.android.settings.biometrics.face.FaceSettingsConfirmPreferenceController"/>
60
61        <com.android.settingslib.RestrictedSwitchPreference
62            android:key="biometric_settings_lockscreen_bypass"
63            android:title="@string/lockscreen_bypass_title"
64            android:summary="@string/lockscreen_bypass_summary"
65            settings:keywords="@string/keywords_lockscreen_bypass"
66            settings:controller="com.android.settings.biometrics.face.BiometricLockscreenBypassPreferenceController" />
67    </PreferenceCategory>
68
69    <com.android.settingslib.widget.LayoutPreference
70        android:key="security_settings_face_delete_faces_container"
71        android:title="@string/security_settings_face_settings_remove_face_model"
72        android:selectable="false"
73        android:layout="@layout/face_remove_button"/>
74
75    <com.android.settingslib.widget.LayoutPreference
76        android:key="security_settings_face_enroll_faces_container"
77        android:title="@string/security_settings_face_settings_enroll"
78        android:selectable="false"
79        android:layout="@layout/face_enroll_button"/>
80
81    <com.android.settingslib.widget.FooterPreference
82        android:key="security_face_footer"
83        settings:controller="com.android.settings.biometrics.face.FaceSettingsFooterPreferenceController" />
84</PreferenceScreen>
85