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="lockscreen_privacy_wallet_switch" 50 android:title="@string/lockscreen_privacy_wallet_setting_toggle" 51 android:summary="@string/lockscreen_privacy_wallet_summary" 52 settings:controller="com.android.settings.display.WalletPrivacyPreferenceController" /> 53 54 <SwitchPreference 55 android:key="lockscreen_privacy_controls_switch" 56 android:title="@string/lockscreen_privacy_controls_setting_toggle" 57 android:summary="@string/lockscreen_privacy_controls_summary" 58 settings:controller="com.android.settings.display.ControlsPrivacyPreferenceController" /> 59 </PreferenceCategory> 60 61 <PreferenceCategory 62 android:key="ambient_display_category_when_to_show" 63 android:title="@string/ambient_display_category_triggers" 64 android:order="1000"> 65 66 <com.android.settingslib.RestrictedSwitchPreference 67 android:key="ambient_display_always_on" 68 android:title="@string/doze_always_on_title" 69 android:summary="@string/doze_always_on_summary" 70 settings:controller="com.android.settings.display.AmbientDisplayAlwaysOnPreferenceController" 71 settings:userRestriction="no_ambient_display" /> 72 73 <Preference 74 android:key="ambient_display_tap" 75 android:title="@string/ambient_display_tap_screen_title" 76 android:fragment="com.android.settings.gestures.TapScreenGestureSettings" 77 settings:searchable="false" 78 settings:controller="com.android.settings.gestures.TapScreenGesturePreferenceController" /> 79 80 <Preference 81 android:key="ambient_display_double_tap" 82 android:title="@string/ambient_display_title" 83 android:fragment="com.android.settings.gestures.DoubleTapScreenSettings" 84 settings:searchable="false" 85 settings:controller="com.android.settings.gestures.DoubleTapScreenPreferenceController" /> 86 87 <Preference 88 android:key="ambient_display_pick_up" 89 android:title="@string/ambient_display_pickup_title" 90 android:fragment="com.android.settings.gestures.PickupGestureSettings" 91 settings:searchable="false" 92 settings:controller="com.android.settings.gestures.PickupGesturePreferenceController" /> 93 94 <SwitchPreference 95 android:key="ambient_display_notification" 96 android:title="@string/doze_title" 97 android:summary="@string/doze_summary" 98 settings:controller="com.android.settings.display.AmbientDisplayNotificationsPreferenceController" /> 99 100 </PreferenceCategory> 101 102 <!-- Work profile settings are at the bottom with high order value to avoid users thinking that 103 any of the above settings (including dynamic) are specific to the work profile. --> 104 <PreferenceCategory 105 android:key="security_setting_lock_screen_notif_work_header" 106 android:title="@string/profile_section_header" 107 android:order="1001" 108 settings:searchable="false"> 109 110 <com.android.settings.RestrictedListPreference 111 android:key="security_setting_lock_screen_notif_work" 112 android:title="@string/locked_work_profile_notification_title" 113 android:summary="@string/summary_placeholder" 114 settings:searchable="false"/> 115 116 </PreferenceCategory> 117 118</PreferenceScreen> 119