• 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:app="http://schemas.android.com/apk/res-auto"
20    xmlns:settings="http://schemas.android.com/apk/res-auto"
21    android:title="@string/security_settings_face_preference_title">
22
23    <com.android.settings.widget.VideoPreference
24        android:key="security_settings_face_video"
25        android:title="@string/summary_placeholder"
26        app:animation="@raw/face_settings"
27        app:controller="com.android.settings.widget.VideoPreferenceController"/>
28
29    <PreferenceCategory
30        android:key="security_settings_face_unlock_category"
31        android:title="@string/security_settings_face_settings_use_face_category">
32        <com.android.settingslib.RestrictedSwitchPreference
33            android:key="security_settings_face_keyguard"
34            android:title="@string/security_settings_face_settings_use_face_unlock_phone"
35            app:keywords="@string/keywords_face_unlock"
36            app:controller="com.android.settings.biometrics.face.FaceSettingsKeyguardPreferenceController"/>
37        <SwitchPreference
38            android:key="security_settings_face_app"
39            android:title="@string/security_settings_face_settings_use_face_for_apps"
40            app:keywords="@string/keywords_face_unlock"
41            app:controller="com.android.settings.biometrics.face.FaceSettingsAppPreferenceController"/>
42        <com.android.settingslib.RestrictedSwitchPreference
43            android:key="security_lockscreen_bypass"
44            android:title="@string/lockscreen_bypass_title"
45            android:summary="@string/lockscreen_bypass_summary"
46            settings:keywords="@string/keywords_lockscreen_bypass"
47            settings:controller="com.android.settings.biometrics.face.FaceSettingsLockscreenBypassPreferenceController" />
48    </PreferenceCategory>
49
50    <PreferenceCategory
51        android:key="security_settings_face_manage_category"
52        android:title="@string/security_settings_face_settings_require_category">
53        <SwitchPreference
54            android:key="security_settings_face_require_attention"
55            android:title="@string/security_settings_face_settings_require_attention"
56            android:summary="@string/security_settings_face_settings_require_attention_details"
57            app:keywords="@string/keywords_face_unlock"
58            app:controller="com.android.settings.biometrics.face.FaceSettingsAttentionPreferenceController"/>
59
60        <SwitchPreference
61            android:key="security_settings_face_require_confirmation"
62            android:title="@string/security_settings_face_settings_require_confirmation"
63            android:summary="@string/security_settings_face_settings_require_confirmation_details"
64            app:keywords="@string/keywords_face_unlock"
65            app:controller="com.android.settings.biometrics.face.FaceSettingsConfirmPreferenceController"/>
66    </PreferenceCategory>
67
68    <PreferenceCategory
69        android:key="security_settings_face_button_category"
70        android:title="@string/security_settings_face_preference_title">
71        <com.android.settingslib.widget.LayoutPreference
72            android:key="security_settings_face_delete_faces_container"
73            android:title="@string/security_settings_face_settings_remove_face_data"
74            android:selectable="false"
75            android:layout="@layout/face_remove_button"
76            settings:allowDividerBelow="true"/>
77
78        <com.android.settingslib.widget.LayoutPreference
79            android:key="security_settings_face_enroll_faces_container"
80            android:title="@string/security_settings_face_settings_enroll"
81            android:selectable="false"
82            android:layout="@layout/face_enroll_button"
83            settings:allowDividerBelow="true"/>
84    </PreferenceCategory>
85
86    <com.android.settingslib.widget.FooterPreference
87        settings:allowDividerAbove="true"/>
88</PreferenceScreen>
89