• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
21    <PreferenceCategory
22        android:key="general_notifications_category"
23        android:title="@string/general_notification_header">
24        <!-- See all apps button -->
25        <Preference
26            android:key="all_notifications"
27            android:order="10"
28            android:title="@string/app_notification_field"
29            android:summary="@string/app_notification_field_summary"
30            android:fragment="com.android.settings.applications.manageapplications.ManageApplications"
31            settings:searchable="false">
32            <extra
33                android:name="classname"
34                android:value="com.android.settings.Settings$NotificationAppListActivity"/>
35        </Preference>
36        <Preference
37            android:key="notification_history"
38            android:order="11"
39            android:title="@string/notification_history"
40            android:summary="@string/notification_history_summary">
41            <intent
42                android:action="android.intent.action.MAIN"
43                android:targetPackage="com.android.settings"
44                android:targetClass="com.android.settings.notification.history.NotificationHistoryActivity" />
45        </Preference>
46    </PreferenceCategory>
47
48    <PreferenceCategory
49        android:key="conversation_category"
50        android:title="@string/conversation_notifs_category">
51        <Preference
52            android:key="conversations"
53            android:order="1"
54            android:title="@string/conversations_category_title"
55            android:summary=" "
56            settings:controller="com.android.settings.notification.ConversationListSummaryPreferenceController"
57            android:fragment="com.android.settings.notification.app.ConversationListSettings"
58        />
59        <Preference
60            android:key="notification_bubbles"
61            android:order="2"
62            android:title="@string/notification_bubbles_title"
63            android:summary="@string/notifications_bubble_setting_on_summary"
64            settings:controller="com.android.settings.notification.BubbleSummaryNotificationPreferenceController"
65            android:fragment="com.android.settings.notification.BubbleNotificationSettings"
66        />
67    </PreferenceCategory>
68
69    <PreferenceCategory
70        android:key="configure_notifications_lock"
71        android:title="@string/lock_screen_notifications_title">
72        <Preference
73            android:key="notification_access"
74            android:order="12"
75            android:title="@string/manage_notification_access_title"
76            android:summary="@string/manage_notification_access_summary"
77            android:fragment="com.android.settings.notification.NotificationAccessSettings"
78            settings:controller="com.android.settings.applications.specialaccess.notificationaccess.NotificationAccessController" />
79        <!-- When device is locked -->
80        <com.android.settings.RestrictedListPreference
81            android:key="lock_screen_notifications"
82            android:order="13"
83            android:title="@string/lock_screen_notifs_title"
84            android:singleLineTitle="false"
85            android:summary="@string/summary_placeholder" />
86
87        <com.android.settingslib.RestrictedSwitchPreference
88            android:key="lock_screen_redact"
89            android:order="14"
90            android:title="@string/lock_screen_notifs_redact"
91            android:summary="@string/lock_screen_notifs_redact_summary"
92            settings:controller="com.android.settings.notification.RedactNotificationPreferenceController" />
93
94        <com.android.settingslib.RestrictedSwitchPreference
95            android:key="lock_screen_work_redact"
96            android:order="15"
97            android:title="@string/lock_screen_notifs_redact_work"
98            android:summary="@string/lock_screen_notifs_redact_work_summary"
99            settings:controller="com.android.settings.notification.RedactNotificationPreferenceController" />
100
101        <SwitchPreference
102            android:key="notification_lockscreen_bypass"
103            android:order="16"
104            android:title="@string/lockscreen_bypass_title"
105            android:summary="@string/lockscreen_bypass_summary"
106            settings:searchable="false"
107            settings:controller="com.android.settings.biometrics.face.FaceSettingsLockscreenBypassPreferenceController" />
108
109    </PreferenceCategory>
110
111    <PreferenceCategory
112        android:key="advanced_section_header"
113        android:title="@string/advanced_section_header">
114        <com.android.settingslib.RestrictedPreference
115            android:key="zen_mode_notifications"
116            android:order="17"
117            android:title="@string/zen_mode_settings_title"
118            settings:useAdminDisabledSummary="true"
119            android:fragment="com.android.settings.notification.zen.ZenModeSettings"
120            settings:controller="com.android.settings.notification.zen.ZenModePreferenceController"
121        />
122        <com.android.settingslib.RestrictedPreference
123            android:key="app_and_notif_cell_broadcast_settings"
124            android:order="18"
125            android:title="@string/cell_broadcast_settings"
126            settings:useAdminDisabledSummary="true">
127            <intent
128                android:action="android.intent.action.MAIN"
129                android:targetPackage="@string/config_cell_broadcast_receiver_package"
130                android:targetClass="com.android.cellbroadcastreceiver.CellBroadcastSettings"/>
131        </com.android.settingslib.RestrictedPreference>
132
133        <SwitchPreference
134             android:key="silent_icons"
135             android:order="19"
136             android:title="@string/silent_notifications_status_bar"
137             settings:controller="com.android.settings.notification.SilentStatusBarPreferenceController"/>
138
139        <SwitchPreference
140            android:key="show_snooze_options"
141            android:order="20"
142            android:title="@string/snooze_options_title"
143            settings:controller="com.android.settings.notification.SnoozeNotificationPreferenceController" />
144
145        <!-- Notification badging -->
146        <SwitchPreference
147            android:key="notification_badging"
148            android:order="21"
149            android:title="@string/notification_badging_title"
150            settings:controller="com.android.settings.notification.BadgingNotificationPreferenceController"/>
151
152        <!-- Pulse notification light, on devices that support it -->
153        <SwitchPreference
154            android:key="notification_pulse"
155            android:order="22"
156            android:title="@string/notification_pulse_title"
157            settings:controller="com.android.settings.notification.PulseNotificationPreferenceController"/>
158
159        <SwitchPreference
160            android:key="notification_assistant"
161            android:order="23"
162            android:title="@string/notification_assistant_title"
163            android:summary="@string/notification_assistant_summary"
164            settings:controller="com.android.settings.notification.NotificationAssistantPreferenceController"/>
165    </PreferenceCategory>
166</PreferenceScreen>
167