blob: 0ea31ff7d36b6ea2765d0a89a97163e53864e29f [file] [log] [blame]
Alex Salobb4e9ce2019-01-17 13:54:03 -08001<?xml version="1.0" encoding="utf-8"?>
2<!--
3 Copyright (C) 2019 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"
Alex Salobb4e9ce2019-01-17 13:54:03 -080021 android:title="@string/adaptive_sleep_title">
22
Alex Salobb4e9ce2019-01-17 13:54:03 -080023 <com.android.settings.widget.VideoPreference
24 android:key="adaptive_sleep_video"
25 android:title="@string/summary_placeholder"
Alex Salo63c393c2019-04-17 12:25:36 -070026 settings:animation="@raw/adaptive_sleep"
27 settings:preview="@drawable/adaptive_sleep"
Alex Salobb4e9ce2019-01-17 13:54:03 -080028 settings:controller="com.android.settings.widget.VideoPreferenceController"/>
29
Yi Jiang336b0c22019-06-11 19:30:34 -070030 <Preference
31 android:key="adaptive_sleep_permission"
32 android:title="@string/adaptive_sleep_title_no_permission"
33 android:summary="@string/adaptive_sleep_summary_no_permission"
34 android:icon="@drawable/ic_info_outline_24"
35 settings:controller="com.android.settings.display.AdaptiveSleepPermissionPreferenceController"
36 />
37
Alex Salobb4e9ce2019-01-17 13:54:03 -080038 <com.android.settingslib.RestrictedSwitchPreference
39 android:key="adaptive_sleep"
40 android:title="@string/adaptive_sleep_title"
Alex Saloe0c9d3c2019-04-02 14:24:07 -070041 android:summary="@string/adaptive_sleep_description"
Alex Salobb4e9ce2019-01-17 13:54:03 -080042 settings:keywords="@string/keywords_display_adaptive_sleep"
Yi Jiang6da04472019-05-16 13:21:35 -070043 settings:controller="com.android.settings.display.AdaptiveSleepDetailPreferenceController"
Alex Salobb4e9ce2019-01-17 13:54:03 -080044 settings:useAdminDisabledSummary="true"
45 settings:allowDividerAbove="true" />
46
Sunny Shao343c39f2019-08-06 20:50:20 +080047 <com.android.settingslib.widget.FooterPreference
48 android:key="adaptive_sleep_footer"
49 android:title="@string/adaptive_sleep_privacy"
50 android:icon="@drawable/ic_privacy_shield_24dp"
51 android:selectable="false"
52 settings:searchable="false" />
53
Edgar Wang0934bab2020-02-06 11:40:42 +080054</PreferenceScreen>