• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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"
21    android:key="notification_access_permission_detail_settings"
22    android:title="@string/manage_notification_access_title">
23
24    <com.android.settingslib.widget.LayoutPreference
25        android:key="pref_app_header"
26        android:layout="@layout/settings_entity_header"
27        settings:controller="com.android.settings.applications.specialaccess.notificationaccess.HeaderPreferenceController"/>
28
29    <com.android.settings.widget.FilterTouchesSwitchPreference
30        android:key="notification_access_switch"
31        android:title="@string/notification_access_detail_switch"
32        settings:controller="com.android.settings.applications.specialaccess.notificationaccess.ApprovalPreferenceController"/>
33
34    <CheckBoxPreference
35        android:key="type_filter_ongoing"
36        android:title="@string/notif_type_ongoing"
37        android:summary="@string/notif_type_ongoing_summary"
38        android:icon="@drawable/ic_ongoing_notification"
39        settings:controller="com.android.settings.applications.specialaccess.notificationaccess.OngoingTypeFilterPreferenceController"/>
40    <CheckBoxPreference
41        android:key="type_filter_conversation"
42        android:title="@string/notif_type_conversation"
43        android:summary="@string/notif_type_conversation_summary"
44        android:icon="@drawable/ic_promote_conversation"
45        settings:controller="com.android.settings.applications.specialaccess.notificationaccess.ConversationTypeFilterPreferenceController"/>
46    <CheckBoxPreference
47        android:key="type_filter_alerting"
48        android:title="@string/notif_type_alerting"
49        android:summary="@string/notif_type_alerting_summary"
50        android:icon="@drawable/ic_notification_alert"
51        settings:controller="com.android.settings.applications.specialaccess.notificationaccess.AlertingTypeFilterPreferenceController"/>
52    <CheckBoxPreference
53        android:key="type_filter_silent"
54        android:title="@string/notif_type_silent"
55        android:summary="@string/notif_type_silent_summary"
56        android:icon="@drawable/ic_notification_silence"
57        settings:controller="com.android.settings.applications.specialaccess.notificationaccess.SilentTypeFilterPreferenceController"/>
58
59    <Preference
60        android:key="bridged_apps"
61        android:title="@string/notif_listener_excluded_app_title"
62        android:summary="@string/notif_listener_excluded_app_summary"
63        android:fragment="com.android.settings.applications.specialaccess.notificationaccess.BridgedAppsSettings"
64        settings:searchable="false"
65        settings:controller="com.android.settings.applications.specialaccess.notificationaccess.BridgedAppsLinkPreferenceController" />
66
67    <com.android.settingslib.widget.FooterPreference
68        android:key="notif_listener_not_migrated"
69        android:title="@string/notif_listener_not_migrated"
70        settings:controller="com.android.settings.applications.specialaccess.notificationaccess.PreUpgradePreferenceController"
71        android:selectable="false"
72        settings:searchable="false"/>
73
74</PreferenceScreen>