1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2017 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:key="security_lockscreen_settings_screen"
21    android:title="@string/lockscreen_settings_title"
22    settings:keywords="@string/keywords_ambient_display_screen">
23
24    <PreferenceCategory
25        android:key="lockscreen_what_to_show"
26        android:title="@string/lockscreen_settings_what_to_show_category">
27        <com.android.settings.RestrictedListPreference
28            android:key="security_setting_lock_screen_notif"
29            android:title="@string/lock_screen_notifications_title"
30            android:summary="@string/summary_placeholder"
31            settings:keywords="@string/keywords_lock_screen_notif"/>
32
33        <SwitchPreference
34            android:key="security_dispaly_lockscreen_bypass"
35            android:title="@string/lockscreen_bypass_title"
36            android:summary="@string/lockscreen_bypass_summary"
37            settings:searchable="false"
38            settings:controller="com.android.settings.biometrics.face.FaceSettingsLockscreenBypassPreferenceController" />
39
40        <com.android.settingslib.RestrictedSwitchPreference
41            android:key="security_lockscreen_add_users_when_locked"
42            android:title="@string/user_add_on_lockscreen_menu"
43            settings:controller="com.android.settings.users.AddUserWhenLockedPreferenceController" />
44
45        <com.android.settingslib.RestrictedPreference
46            android:key="owner_info_settings"
47            android:title="@string/owner_info_settings_title"
48            android:summary="@string/owner_info_settings_summary" />
49
50        <SwitchPreference
51            android:key="security_setting_lockdown_enabled"
52            android:title="@string/lockdown_settings_title"
53            android:summary="@string/lockdown_settings_summary"
54            settings:controller="com.android.settings.security.LockdownButtonPreferenceController" />
55
56    </PreferenceCategory>
57
58    <PreferenceCategory
59        android:key="ambient_display_category_when_to_show"
60        android:title="@string/ambient_display_category_triggers"
61        android:order="1000">
62
63        <com.android.settingslib.RestrictedSwitchPreference
64            android:key="ambient_display_always_on"
65            android:title="@string/doze_always_on_title"
66            android:summary="@string/doze_always_on_summary"
67            settings:controller="com.android.settings.display.AmbientDisplayAlwaysOnPreferenceController"
68            settings:userRestriction="no_ambient_display" />
69
70        <Preference
71            android:key="ambient_display_tap"
72            android:title="@string/ambient_display_tap_screen_title"
73            android:fragment="com.android.settings.gestures.TapScreenGestureSettings"
74            settings:controller="com.android.settings.gestures.TapScreenGesturePreferenceController" />
75
76        <Preference
77            android:key="ambient_display_double_tap"
78            android:title="@string/ambient_display_title"
79            android:fragment="com.android.settings.gestures.DoubleTapScreenSettings"
80            settings:controller="com.android.settings.gestures.DoubleTapScreenPreferenceController" />
81
82        <Preference
83            android:key="ambient_display_pick_up"
84            android:title="@string/ambient_display_pickup_title"
85            android:fragment="com.android.settings.gestures.PickupGestureSettings"
86            settings:controller="com.android.settings.gestures.PickupGesturePreferenceController" />
87
88        <SwitchPreference
89            android:key="ambient_display_notification"
90            android:title="@string/doze_title"
91            android:summary="@string/doze_summary"
92            settings:controller="com.android.settings.display.AmbientDisplayNotificationsPreferenceController" />
93
94    </PreferenceCategory>
95
96    <!-- Work profile settings are at the bottom with high order value to avoid users thinking that
97         any of the above settings (including dynamic) are specific to the work profile. -->
98    <PreferenceCategory
99        android:key="security_setting_lock_screen_notif_work_header"
100        android:title="@string/profile_section_header"
101        android:order="1001"
102        settings:searchable="false">
103
104        <com.android.settings.RestrictedListPreference
105            android:key="security_setting_lock_screen_notif_work"
106            android:title="@string/locked_work_profile_notification_title"
107            android:summary="@string/summary_placeholder"
108            settings:searchable="false"/>
109
110    </PreferenceCategory>
111
112</PreferenceScreen>
113