Alex Salo | bb4e9ce | 2019-01-17 13:54:03 -0800 | [diff] [blame] | 1 | <?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 Salo | bb4e9ce | 2019-01-17 13:54:03 -0800 | [diff] [blame] | 21 | android:title="@string/adaptive_sleep_title"> |
| 22 | |
Alex Salo | bb4e9ce | 2019-01-17 13:54:03 -0800 | [diff] [blame] | 23 | <com.android.settings.widget.VideoPreference |
| 24 | android:key="adaptive_sleep_video" |
| 25 | android:title="@string/summary_placeholder" |
Alex Salo | 63c393c | 2019-04-17 12:25:36 -0700 | [diff] [blame] | 26 | settings:animation="@raw/adaptive_sleep" |
| 27 | settings:preview="@drawable/adaptive_sleep" |
Alex Salo | bb4e9ce | 2019-01-17 13:54:03 -0800 | [diff] [blame] | 28 | settings:controller="com.android.settings.widget.VideoPreferenceController"/> |
| 29 | |
Yi Jiang | 336b0c2 | 2019-06-11 19:30:34 -0700 | [diff] [blame] | 30 | <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 Salo | bb4e9ce | 2019-01-17 13:54:03 -0800 | [diff] [blame] | 38 | <com.android.settingslib.RestrictedSwitchPreference |
| 39 | android:key="adaptive_sleep" |
| 40 | android:title="@string/adaptive_sleep_title" |
Alex Salo | e0c9d3c | 2019-04-02 14:24:07 -0700 | [diff] [blame] | 41 | android:summary="@string/adaptive_sleep_description" |
Alex Salo | bb4e9ce | 2019-01-17 13:54:03 -0800 | [diff] [blame] | 42 | settings:keywords="@string/keywords_display_adaptive_sleep" |
Yi Jiang | 6da0447 | 2019-05-16 13:21:35 -0700 | [diff] [blame] | 43 | settings:controller="com.android.settings.display.AdaptiveSleepDetailPreferenceController" |
Alex Salo | bb4e9ce | 2019-01-17 13:54:03 -0800 | [diff] [blame] | 44 | settings:useAdminDisabledSummary="true" |
| 45 | settings:allowDividerAbove="true" /> |
| 46 | |
Sunny Shao | 343c39f | 2019-08-06 20:50:20 +0800 | [diff] [blame] | 47 | <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 Wang | 0934bab | 2020-02-06 11:40:42 +0800 | [diff] [blame] | 54 | </PreferenceScreen> |