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