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