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="apps_and_notification_screen"
22    android:title="@string/app_and_notification_dashboard_title"
23    settings:initialExpandedChildrenCount="3">
24    <!-- the initial count should include the dynamic tiles -->
25
26    <Preference
27        android:key="all_app_info"
28        android:title="@string/applications_settings"
29        android:order="-999"
30        android:fragment="com.android.car.developeroptions.applications.manageapplications.ManageApplications"
31        settings:controller="com.android.car.developeroptions.applications.AllAppsInfoPreferenceController"
32        settings:keywords="@string/keywords_applications_settings"/>
33
34    <com.android.settingslib.widget.LayoutPreference
35        android:key="recent_open_apps"
36        android:title="@string/recent_app_category_title"
37        android:layout="@layout/app_entities_header"
38        android:selectable="false"
39        android:order="-998"
40        settings:allowDividerBelow="true"
41        settings:controller="com.android.car.developeroptions.applications.RecentAppsPreferenceController"/>
42
43    <!-- Empty category to draw divider -->
44    <PreferenceCategory
45        android:key="recent_apps_divider"
46        android:order="-997"/>
47
48    <!-- Notifications (appears before manage_perms), default apps (appears after) -->
49    <PreferenceCategory
50        android:key="dashboard_tile_placeholder"
51        android:order="10"/>
52
53    <Preference
54        android:key="default_apps"
55        android:title="@string/app_default_dashboard_title"
56        android:order="11"
57        settings:controller="com.android.car.developeroptions.applications.DefaultAppsPreferenceController">
58        <intent android:action="android.settings.MANAGE_DEFAULT_APPS_SETTINGS"/>
59    </Preference>
60
61    <Preference
62        android:key="manage_perms"
63        android:title="@string/app_permissions"
64        android:order="12"
65        settings:keywords="@string/keywords_app_permissions"
66        settings:controller="com.android.car.developeroptions.applications.AppPermissionsPreferenceController">
67        <intent android:action="android.intent.action.MANAGE_PERMISSIONS"/>
68    </Preference>
69
70    <com.android.settingslib.RestrictedPreference
71        android:key="app_and_notif_cell_broadcast_settings"
72        android:title="@string/cell_broadcast_settings"
73        android:order="15"
74        settings:useAdminDisabledSummary="true">
75        <intent
76            android:action="android.intent.action.MAIN"
77            android:targetPackage="com.android.cellbroadcastreceiver"
78            android:targetClass="com.android.cellbroadcastreceiver.CellBroadcastSettings"/>
79    </com.android.settingslib.RestrictedPreference>
80
81    <Preference
82        android:key="special_access"
83        android:fragment="com.android.car.developeroptions.applications.specialaccess.SpecialAccessSettings"
84        android:title="@string/special_access"
85        android:order="20"
86        settings:controller="com.android.car.developeroptions.applications.SpecialAppAccessPreferenceController"/>
87
88</PreferenceScreen>
89