1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2024 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 xmlns:android="http://schemas.android.com/apk/res/android" 19 xmlns:settings="http://schemas.android.com/apk/res-auto" 20 android:title="@string/zen_modes_list_title" > 21 22 <com.android.settingslib.widget.LayoutPreference 23 android:key="header" 24 android:layout="@layout/settings_entity_header" /> 25 26 <com.android.settingslib.widget.LayoutPreference 27 android:key="activate" 28 android:selectable="false" 29 android:layout="@layout/modes_activation_button"/> 30 31 <com.android.settingslib.widget.ActionButtonsPreference 32 android:key="actions" 33 android:selectable="true" /> 34 35 <PreferenceCategory 36 android:title="@string/mode_interruption_filter_title" 37 android:key="modes_filters"> 38 <Preference 39 android:key="zen_mode_people" 40 android:title="@string/zen_category_people"/> 41 42 <Preference 43 android:key="zen_mode_apps" 44 android:title="@string/zen_category_apps" /> 45 46 <Preference 47 android:key="zen_other_settings" 48 android:title="@string/zen_category_exceptions" /> 49 </PreferenceCategory> 50 51 <!-- automatic trigger section; preference changes programmatically depending on type --> 52 <PreferenceCategory 53 android:key="zen_automatic_trigger_category" 54 android:title="@string/zen_mode_automatic_trigger_title"> 55 <com.android.settingslib.PrimarySwitchPreference 56 android:key="zen_automatic_trigger_settings" /> 57 </PreferenceCategory> 58 59 <PreferenceCategory 60 android:title="@string/mode_device_effects_title" 61 android:key="modes_additional_actions"> 62 <Preference 63 android:key="mode_display_settings" 64 android:title="@string/mode_display_settings_title" /> 65 </PreferenceCategory> 66</PreferenceScreen>