blob: d450fef4dee3ad2fee05e892fb75c67dba48234b [file] [log] [blame]
Kevin Chyn71899972018-07-10 17:20:29 -07001<!--
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"
Kevin Chyn6a4a0e72019-06-12 11:55:22 -070020 xmlns:settings="http://schemas.android.com/apk/res-auto"
Kevin Chyn71899972018-07-10 17:20:29 -070021 android:title="@string/security_settings_face_preference_title">
22
23 <com.android.settings.widget.VideoPreference
24 android:key="security_settings_face_video"
Kevin Chyna8843f292018-09-25 12:08:21 -070025 android:title="@string/summary_placeholder"
Kevin Chyn51fe2e92019-01-14 16:45:16 -080026 app:animation="@raw/face_settings"
Raff Tsai68927632019-11-01 10:37:27 +080027 app:controller="com.android.settings.widget.VideoPreferenceController"/>
Kevin Chyn71899972018-07-10 17:20:29 -070028
29 <PreferenceCategory
30 android:key="security_settings_face_unlock_category"
31 android:title="@string/security_settings_face_settings_use_face_category">
Rubin Xu56d5cc22020-03-17 18:33:31 +000032 <com.android.settingslib.RestrictedSwitchPreference
Kevin Chyna8843f292018-09-25 12:08:21 -070033 android:key="security_settings_face_keyguard"
Kevin Chyn71899972018-07-10 17:20:29 -070034 android:title="@string/security_settings_face_settings_use_face_unlock_phone"
35 app:keywords="@string/keywords_face_unlock"
Kevin Chyna8843f292018-09-25 12:08:21 -070036 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"/>
Rubin Xu56d5cc22020-03-17 18:33:31 +000042 <com.android.settingslib.RestrictedSwitchPreference
Kevin Chyn6a4a0e72019-06-12 11:55:22 -070043 android:key="security_lockscreen_bypass"
44 android:title="@string/lockscreen_bypass_title"
45 android:summary="@string/lockscreen_bypass_summary"
Kevin Chyn06f22da2019-06-18 18:55:20 -070046 settings:keywords="@string/keywords_lockscreen_bypass"
Kevin Chyn6a4a0e72019-06-12 11:55:22 -070047 settings:controller="com.android.settings.biometrics.face.FaceSettingsLockscreenBypassPreferenceController" />
Kevin Chyn71899972018-07-10 17:20:29 -070048 </PreferenceCategory>
49
50 <PreferenceCategory
Kevin Chyn0c4bf9b2019-05-02 16:59:12 -070051 android:key="security_settings_face_manage_category"
52 android:title="@string/security_settings_face_settings_require_category">
Kevin Chyna8843f292018-09-25 12:08:21 -070053 <SwitchPreference
Kevin Chyneac6fcf2019-10-18 18:19:18 +000054 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
Kevin Chyn15128cf2019-01-10 16:42:47 -080061 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"/>
joshmccloskey409a1c62019-10-15 17:53:13 -070066 </PreferenceCategory>
Kevin Chyn71899972018-07-10 17:20:29 -070067
joshmccloskey409a1c62019-10-15 17:53:13 -070068 <PreferenceCategory
69 android:key="security_settings_face_button_category"
70 android:title="@string/security_settings_face_preference_title">
tmfangdce94bb2018-11-26 18:41:01 +080071 <com.android.settingslib.widget.LayoutPreference
Kevin Chyn71899972018-07-10 17:20:29 -070072 android:key="security_settings_face_delete_faces_container"
Stanley Wange81d6b72019-12-31 17:28:17 +080073 android:title="@string/security_settings_face_settings_remove_face_data"
Kevin Chyn71899972018-07-10 17:20:29 -070074 android:selectable="false"
tmfangb9810682019-06-27 17:50:20 +080075 android:layout="@layout/face_remove_button"
76 settings:allowDividerBelow="true"/>
Kevin Chyn0dfc2762019-04-23 13:41:31 -070077
78 <com.android.settingslib.widget.LayoutPreference
79 android:key="security_settings_face_enroll_faces_container"
Stanley Wange81d6b72019-12-31 17:28:17 +080080 android:title="@string/security_settings_face_settings_enroll"
Kevin Chyn0dfc2762019-04-23 13:41:31 -070081 android:selectable="false"
Stanley Wange81d6b72019-12-31 17:28:17 +080082 android:layout="@layout/face_enroll_button"
tmfangb9810682019-06-27 17:50:20 +080083 settings:allowDividerBelow="true"/>
Kevin Chyn71899972018-07-10 17:20:29 -070084 </PreferenceCategory>
85
tmfangb9810682019-06-27 17:50:20 +080086 <com.android.settingslib.widget.FooterPreference
87 settings:allowDividerAbove="true"/>
Stanley Wange81d6b72019-12-31 17:28:17 +080088</PreferenceScreen>