1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2015 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 xmlns:android="http://schemas.android.com/apk/res/android"
18                  xmlns:settings="http://schemas.android.com/apk/res-auto"
19                  android:title="@string/configure_notification_settings"
20                  android:key="configure_notification_settings">
21
22    <com.android.settings.widget.VideoPreference
23        android:key="notification_model_illustration"
24        android:title="@string/summary_placeholder"
25        settings:animation="@raw/notification_interruption_model"
26        settings:controller="com.android.settings.widget.VideoPreferenceController"
27        android:persistent="false" />
28
29    <!-- Empty category to draw divider -->
30    <PreferenceCategory
31        android:key="all_notifications_divider"
32        android:order="2"/>
33
34    <PreferenceCategory
35        android:key="recent_notifications_category"
36        android:title="@string/recent_notifications"
37        settings:allowDividerAbove="false"
38        android:order="3">
39        <!-- Placeholder for a list of recent apps -->
40
41        <!-- See all apps button -->
42        <Preference
43            android:key="all_notifications"
44            android:title="@string/notifications_title"
45            android:fragment="com.android.settings.applications.manageapplications.ManageApplications"
46            android:order="4">
47            <extra
48                android:name="classname"
49                android:value="com.android.settings.Settings$NotificationAppListActivity"/>
50        </Preference>
51    </PreferenceCategory>
52
53    <PreferenceCategory
54        android:key="configure_notifications_lock"
55        android:title="@string/lock_screen_notifications_title"
56        android:order="10">
57        <!-- When device is locked -->
58        <com.android.settings.RestrictedListPreference
59            android:key="lock_screen_notifications"
60            android:title="@string/lock_screen_notifs_title"
61            android:summary="@string/summary_placeholder" />
62
63        <SwitchPreference
64            android:key="lock_screen_redact"
65            android:title="@string/lock_screen_notifs_redact"
66            android:summary="@string/lock_screen_notifs_redact_summary"
67            settings:controller="com.android.settings.notification.RedactNotificationPreferenceController" />
68
69        <SwitchPreference
70            android:key="lock_screen_work_redact"
71            android:title="@string/lock_screen_notifs_redact_work"
72            android:summary="@string/lock_screen_notifs_redact_work_summary"
73            settings:controller="com.android.settings.notification.RedactNotificationPreferenceController" />
74
75        <SwitchPreference
76            android:key="notification_lockscreen_bypass"
77            android:title="@string/lockscreen_bypass_title"
78            android:summary="@string/lockscreen_bypass_summary"
79            settings:searchable="false"
80            settings:controller="com.android.settings.biometrics.face.FaceSettingsLockscreenBypassPreferenceController" />
81
82    </PreferenceCategory>
83
84    <PreferenceCategory
85        android:key="configure_notifications_advanced"
86        android:order="15"
87        settings:initialExpandedChildrenCount="0">
88
89        <SwitchPreference
90            android:key="show_snooze_options"
91            android:title="@string/snooze_options_title"
92            settings:controller="com.android.settings.notification.SnoozeNotificationPreferenceController" />
93
94        <SwitchPreference
95            android:key="asst_capabilities_actions_replies"
96            android:title="@string/asst_capabilities_actions_replies_title"
97            android:summary="@string/asst_capabilities_actions_replies_summary"
98            settings:controller="com.android.settings.notification.AssistantCapabilityPreferenceController" />
99
100        <!-- Notification badging -->
101        <SwitchPreference
102            android:key="notification_badging"
103            android:title="@string/notification_badging_title"
104            settings:controller="com.android.settings.notification.BadgingNotificationPreferenceController"/>
105
106        <!-- Pulse notification light -->
107        <SwitchPreference
108            android:key="notification_pulse"
109            android:title="@string/notification_pulse_title"
110            settings:controller="com.android.settings.notification.PulseNotificationPreferenceController"/>
111
112        <!-- Default notification ringtone -->
113        <com.android.settings.DefaultRingtonePreference
114            android:key="notification_default_ringtone"
115            android:title="@string/notification_ringtone_title"
116            android:dialogTitle="@string/notification_ringtone_title"
117            android:summary="@string/summary_placeholder"
118            android:ringtoneType="notification"/>
119
120        <Preference
121            android:key="gesture_swipe_down_fingerprint_notifications"
122            android:title="@string/fingerprint_swipe_for_notifications_title"
123            android:fragment="com.android.settings.gestures.SwipeToNotificationSettings"
124            settings:controller="com.android.settings.gestures.SwipeToNotificationPreferenceController"/>
125
126        <com.android.settingslib.RestrictedPreference
127            android:key="zen_mode_notifications"
128            android:title="@string/zen_mode_settings_title"
129            settings:useAdminDisabledSummary="true"
130            android:fragment="com.android.settings.notification.ZenModeSettings"
131            settings:controller="com.android.settings.notification.ZenModePreferenceController"
132            settings:allowDividerAbove="false"/>
133    </PreferenceCategory>
134</PreferenceScreen>
135