• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2019 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    <SwitchPreference
23        android:key="asst_capability_prioritizer"
24        android:title="@string/asst_capability_prioritizer_title"
25        android:summary="@string/asst_capability_prioritizer_summary"
26        settings:controller="com.android.car.developeroptions.notification.AssistantCapabilityPreferenceController" />
27
28    <SwitchPreference
29        android:key="asst_capabilities_actions_replies"
30        android:title="@string/asst_capabilities_actions_replies_title"
31        android:summary="@string/asst_capabilities_actions_replies_summary"
32        settings:controller="com.android.car.developeroptions.notification.AssistantCapabilityPreferenceController" />
33
34    <SwitchPreference
35        android:key="hide_silent_icons"
36        android:title="@string/hide_silent_icons_title"
37        android:summary="@string/hide_silent_icons_summary"
38        settings:controller="com.android.car.developeroptions.notification.SilentStatusBarPreferenceController" />
39
40    <PreferenceCategory
41        android:key="configure_notifications_advanced"
42        android:order="15"
43        settings:initialExpandedChildrenCount="0">
44
45        <com.android.car.developeroptions.RestrictedListPreference
46            android:key="swipe"
47            android:title="@string/swipe_direction_title"
48            android:entries="@array/swipe_direction_titles"
49            android:entryValues="@array/swipe_direction_values"
50            settings:controller="com.android.car.developeroptions.notification.SwipeDirectionPreferenceController"/>
51
52        <!-- When device is locked -->
53        <com.android.car.developeroptions.RestrictedListPreference
54            android:key="lock_screen_notifications"
55            android:title="@string/lock_screen_notifications_title"
56            android:summary="@string/summary_placeholder"
57            settings:searchable="false"/>
58
59        <!-- Notification badging -->
60        <SwitchPreference
61            android:key="notification_badging"
62            android:title="@string/notification_badging_title"
63            settings:controller="com.android.car.developeroptions.notification.BadgingNotificationPreferenceController"/>
64
65        <!-- Notification bubbles -->
66        <Preference
67            android:key="notification_bubbles"
68            android:title="@string/notification_bubbles_title"
69            settings:controller="com.android.car.developeroptions.notification.BubbleSummaryNotificationPreferenceController"
70            android:fragment="com.android.car.developeroptions.notification.BubbleNotificationSettings"/>
71
72        <!-- Pulse notification light -->
73        <SwitchPreference
74            android:key="notification_pulse"
75            android:title="@string/notification_pulse_title"
76            settings:controller="com.android.car.developeroptions.notification.PulseNotificationPreferenceController"/>
77
78        <!-- Default notification ringtone -->
79        <com.android.car.developeroptions.DefaultRingtonePreference
80            android:key="notification_default_ringtone"
81            android:title="@string/notification_ringtone_title"
82            android:dialogTitle="@string/notification_ringtone_title"
83            android:summary="@string/summary_placeholder"
84            android:ringtoneType="notification"/>
85
86        <Preference
87            android:key="gesture_swipe_down_fingerprint_notifications"
88            android:title="@string/fingerprint_swipe_for_notifications_title"
89            android:fragment="com.android.car.developeroptions.gestures.SwipeToNotificationSettings"
90            settings:controller="com.android.car.developeroptions.gestures.SwipeToNotificationPreferenceController"/>
91
92        <com.android.settingslib.RestrictedPreference
93            android:key="zen_mode_notifications"
94            android:title="@string/zen_mode_settings_title"
95            settings:useAdminDisabledSummary="true"
96            android:fragment="com.android.car.developeroptions.notification.ZenModeSettings"
97            settings:controller="com.android.car.developeroptions.notification.ZenModePreferenceController"
98            settings:allowDividerAbove="false"/>
99    </PreferenceCategory>
100
101    <!-- Empty category to draw divider -->
102    <PreferenceCategory
103        android:key="all_notifications_divider"
104        android:order="20"/>
105
106    <PreferenceCategory
107        android:key="recent_notifications_category"
108        android:title="@string/recent_notifications"
109        settings:allowDividerAbove="false"
110        android:order="21">
111        <!-- Placeholder for a list of recent apps -->
112
113        <!-- See all apps button -->
114        <Preference
115            android:key="all_notifications"
116            android:title="@string/notifications_title"
117            android:fragment="com.android.car.developeroptions.applications.manageapplications.ManageApplications"
118            android:order="22">
119            <extra
120                android:name="classname"
121                android:value="com.android.car.developeroptions.Settings$NotificationAppListActivity"/>
122        </Preference>
123    </PreferenceCategory>
124
125    <!-- Place work profile section at the bottom to avoid users thinking that any of the
126         above settings are specific to the work profile -->
127    <PreferenceCategory
128        android:key="lock_screen_notifications_profile_header"
129        android:title="@string/profile_section_header"
130        android:order="23"
131        settings:searchable="false">
132
133        <com.android.car.developeroptions.RestrictedListPreference
134            android:key="lock_screen_notifications_profile"
135            android:title="@string/locked_work_profile_notification_title"
136            android:summary="@string/summary_placeholder"
137            android:order="24"
138            settings:searchable="false"/>
139    </PreferenceCategory>
140
141</PreferenceScreen>
142