1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2017 The Android Open Source Project 4 ~ 5 ~ Licensed under the Apache License, Version 2.0 (the "License"); 6 ~ you may not use this file except in compliance with the License. 7 ~ You may obtain a copy of the License at 8 ~ 9 ~ http://www.apache.org/licenses/LICENSE-2.0 10 ~ 11 ~ Unless required by applicable law or agreed to in writing, software 12 ~ distributed under the License is distributed on an "AS IS" BASIS, 13 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 ~ See the License for the specific language governing permissions and 15 ~ limitations under the License. 16 --> 17 18<PreferenceScreen 19 xmlns:android="http://schemas.android.com/apk/res/android" 20 xmlns:settings="http://schemas.android.com/apk/res-auto" 21 android:key="ambient_display_preference_screen" 22 settings:keywords="@string/keywords_ambient_display_screen" 23 android:title="@string/ambient_display_screen_title"> 24 25 <PreferenceCategory 26 android:key="ambient_display_category_when_to_show" 27 android:title="@string/ambient_display_category_triggers"> 28 29 <SwitchPreference 30 android:key="ambient_display_always_on" 31 android:title="@string/doze_always_on_title" 32 android:summary="@string/doze_always_on_summary" 33 settings:controller="com.android.settings.display.AmbientDisplayAlwaysOnPreferenceController" /> 34 35 <Preference 36 android:key="ambient_display_double_tap" 37 android:title="@string/ambient_display_title" 38 android:fragment="com.android.settings.gestures.DoubleTapScreenSettings" 39 settings:controller="com.android.settings.gestures.DoubleTapScreenPreferenceController" /> 40 41 <Preference 42 android:key="ambient_display_pick_up" 43 android:title="@string/ambient_display_pickup_title" 44 android:fragment="com.android.settings.gestures.PickupGestureSettings" 45 settings:controller="com.android.settings.gestures.PickupGesturePreferenceController" /> 46 47 </PreferenceCategory> 48 49 <PreferenceCategory 50 android:key="ambient_display_category_notification" 51 android:layout="@layout/preference_category_no_label"> 52 53 <SwitchPreference 54 android:key="ambient_display_notification" 55 android:title="@string/doze_title" 56 android:summary="@string/doze_summary" 57 settings:controller="com.android.settings.display.AmbientDisplayNotificationsPreferenceController" /> 58 59 </PreferenceCategory> 60 61</PreferenceScreen>