1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  Copyright (C) 2024 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="top_level_settings">
22
23    <PreferenceCategory
24        android:order="-140"
25        android:key="top_level_account_category"
26        android:layout="@layout/settingslib_preference_category_no_title">
27    </PreferenceCategory>
28
29    <PreferenceCategory
30        android:order="-130"
31        android:key="top_level_connectivity_category"
32        android:layout="@layout/settingslib_preference_category_no_title">
33        <com.android.settings.widget.HomepagePreference
34            android:fragment="com.android.settings.network.NetworkDashboardFragment"
35            android:icon="@drawable/ic_settings_wireless_filled"
36            android:key="top_level_network"
37            android:order="-20"
38            android:title="@string/network_dashboard_title"
39            android:summary="@string/summary_placeholder"
40            settings:highlightableMenuKey="@string/menu_key_network"
41            settings:controller="com.android.settings.network.TopLevelNetworkEntryPreferenceController"/>
42
43        <com.android.settings.widget.HomepagePreference
44            android:fragment="com.android.settings.connecteddevice.ConnectedDeviceDashboardFragment"
45            android:icon="@drawable/ic_devices_other_filled"
46            android:key="top_level_connected_devices"
47            android:order="-10"
48            android:title="@string/connected_devices_dashboard_title"
49            android:summary="@string/connected_devices_dashboard_default_summary"
50            settings:highlightableMenuKey="@string/menu_key_connected_devices"
51            settings:controller="com.android.settings.connecteddevice.TopLevelConnectedDevicesPreferenceController"/>
52    </PreferenceCategory>
53
54    <PreferenceCategory
55        android:order="-120"
56        android:key="top_level_personalize_category"
57        android:layout="@layout/settingslib_preference_category_no_title">
58        <com.android.settings.widget.HomepagePreference
59            android:fragment="com.android.settings.applications.AppDashboardFragment"
60            android:icon="@drawable/ic_apps_filled"
61            android:key="top_level_apps"
62            android:order="-60"
63            android:title="@string/apps_dashboard_title"
64            android:summary="@string/app_and_notification_dashboard_summary"
65            settings:highlightableMenuKey="@string/menu_key_apps"/>
66
67        <com.android.settings.widget.HomepagePreference
68            android:fragment="com.android.settings.notification.ConfigureNotificationSettings"
69            android:icon="@drawable/ic_notifications_filled"
70            android:key="top_level_notifications"
71            android:order="-50"
72            android:title="@string/configure_notification_settings"
73            android:summary="@string/notification_dashboard_summary"
74            settings:highlightableMenuKey="@string/menu_key_notifications"/>
75
76        <com.android.settings.widget.HomepagePreference
77            android:fragment="com.android.settings.notification.SoundSettings"
78            android:icon="@drawable/ic_volume_up_filled"
79            android:key="top_level_sound"
80            android:order="-40"
81            android:title="@string/sound_settings"
82            android:summary="@string/sound_dashboard_summary"
83            settings:highlightableMenuKey="@string/menu_key_sound"/>
84
85        <com.android.settings.widget.HomepagePreference
86            android:fragment="com.android.settings.communal.CommunalDashboardFragment"
87            android:icon="@drawable/ia_settings_communal"
88            android:key="top_level_communal"
89            android:order="-30"
90            android:title="@string/communal_settings_title"
91            android:summary="@string/communal_settings_summary"
92            settings:highlightableMenuKey="@string/menu_key_communal"
93            settings:controller="com.android.settings.communal.CommunalPreferenceController"/>
94
95        <com.android.settings.widget.HomepagePreference
96            android:fragment="com.android.settings.DisplaySettings"
97            android:icon="@drawable/ic_settings_display_filled"
98            android:key="top_level_display"
99            android:order="-20"
100            android:title="@string/display_settings"
101            android:summary="@string/display_dashboard_summary"
102            settings:highlightableMenuKey="@string/menu_key_display"
103            settings:controller="com.android.settings.display.TopLevelDisplayPreferenceController"/>
104
105        <com.android.settings.widget.RestrictedHomepagePreference
106            android:icon="@drawable/ic_settings_wallpaper_filled"
107            android:key="top_level_wallpaper"
108            android:order="-10"
109            android:title="@string/wallpaper_settings_title"
110            android:summary="@string/wallpaper_dashboard_summary"
111            settings:highlightableMenuKey="@string/menu_key_wallpaper"
112            settings:controller="com.android.settings.display.TopLevelWallpaperPreferenceController"/>
113    </PreferenceCategory>
114
115    <PreferenceCategory
116        android:order="-110"
117        android:key="top_level_system_info_category"
118        android:layout="@layout/settingslib_preference_category_no_title">
119        <com.android.settings.widget.HomepagePreference
120            android:fragment="com.android.settings.deviceinfo.StorageDashboardFragment"
121            android:icon="@drawable/ic_storage_filled"
122            android:key="top_level_storage"
123            android:order="-50"
124            android:title="@string/storage_settings"
125            android:summary="@string/summary_placeholder"
126            settings:highlightableMenuKey="@string/menu_key_storage"
127            settings:controller="com.android.settings.deviceinfo.TopLevelStoragePreferenceController"/>
128
129        <com.android.settings.widget.HomepagePreference
130            android:fragment="com.android.settings.fuelgauge.batteryusage.PowerUsageSummary"
131            android:icon="@drawable/ic_settings_battery_filled"
132            android:key="top_level_battery"
133            android:order="-30"
134            android:title="@string/power_usage_summary_title"
135            android:summary="@string/summary_placeholder"
136            settings:highlightableMenuKey="@string/menu_key_battery"
137            settings:controller="com.android.settings.fuelgauge.TopLevelBatteryPreferenceController"/>
138
139        <com.android.settings.widget.HomepagePreference
140            android:fragment="com.android.settings.system.SystemDashboardFragment"
141            android:icon="@drawable/ic_settings_system_dashboard_filled"
142            android:key="top_level_system"
143            android:order="-20"
144            android:title="@string/header_category_system"
145            android:summary="@string/system_dashboard_summary"
146            settings:highlightableMenuKey="@string/menu_key_system"/>
147
148        <com.android.settings.widget.HomepagePreference
149            android:fragment="com.android.settings.deviceinfo.aboutphone.MyDeviceInfoFragment"
150            android:icon="@drawable/ic_settings_about_device_filled"
151            android:key="top_level_about_device"
152            android:order="-10"
153            android:title="@string/about_settings"
154            android:summary="@string/summary_placeholder"
155            settings:highlightableMenuKey="@string/menu_key_about_device"
156            settings:controller="com.android.settings.deviceinfo.aboutphone.TopLevelAboutDevicePreferenceController"/>
157    </PreferenceCategory>
158
159    <PreferenceCategory
160        android:order="-100"
161        android:key="top_level_security_privacy_category"
162        android:layout="@layout/settingslib_preference_category_no_title">
163        <com.android.settings.widget.HomepagePreference
164            android:icon="@drawable/ic_settings_safety_center_filled"
165            android:key="top_level_safety_center"
166            android:order="-50"
167            android:title="@string/safety_center_title"
168            android:summary="@string/safety_center_summary"
169            settings:highlightableMenuKey="@string/menu_key_safety_center"
170            settings:controller="com.android.settings.safetycenter.TopLevelSafetyCenterEntryPreferenceController"/>
171
172        <com.android.settings.widget.HomepagePreference
173            android:fragment="com.android.settings.security.SecuritySettings"
174            android:icon="@drawable/ic_settings_security_filled"
175            android:key="top_level_security"
176            android:order="-40"
177            android:title="@string/security_settings_title"
178            android:summary="@string/security_dashboard_summary"
179            settings:highlightableMenuKey="@string/menu_key_security"
180            settings:controller="com.android.settings.security.TopLevelSecurityEntryPreferenceController"/>
181
182        <com.android.settings.widget.HomepagePreference
183            android:fragment="com.android.settings.privacy.PrivacyDashboardFragment"
184            android:icon="@drawable/ic_settings_privacy_filled"
185            android:key="top_level_privacy"
186            android:order="-30"
187            android:title="@string/privacy_dashboard_title"
188            android:summary="@string/privacy_dashboard_summary"
189            settings:highlightableMenuKey="@string/menu_key_privacy"
190            settings:controller="com.android.settings.privacy.TopLevelPrivacyEntryPreferenceController"/>
191
192        <com.android.settings.widget.HomepagePreference
193            android:fragment="com.android.settings.location.LocationSettings"
194            android:icon="@drawable/ic_settings_location_filled"
195            android:key="top_level_location"
196            android:order="-20"
197            android:title="@string/location_settings_title"
198            android:summary="@string/location_settings_loading_app_permission_stats"
199            settings:highlightableMenuKey="@string/menu_key_location"
200            settings:controller="com.android.settings.location.TopLevelLocationPreferenceController"/>
201
202        <com.android.settings.widget.HomepagePreference
203            android:fragment="com.android.settings.accounts.AccountDashboardFragment"
204            android:icon="@drawable/ic_settings_passwords_filled"
205            android:key="top_level_accounts"
206            android:order="-10"
207            android:title="@string/account_dashboard_title_with_passkeys"
208            android:summary="@string/summary_placeholder"
209            settings:highlightableMenuKey="@string/menu_key_accounts"
210            settings:controller="com.android.settings.accounts.TopLevelAccountEntryPreferenceController"/>
211
212        <com.android.settings.widget.HomepagePreference
213            android:key="top_level_emergency"
214            android:title="@string/emergency_settings_preference_title"
215            android:summary="@string/emergency_dashboard_summary"
216            android:icon="@drawable/ic_settings_emergency_filled"
217            android:order="10"
218            android:fragment="com.android.settings.emergency.EmergencyDashboardFragment"
219            settings:isPreferenceVisible="@bool/config_show_emergency_settings"
220            settings:highlightableMenuKey="@string/menu_key_emergency"/>
221    </PreferenceCategory>
222
223    <PreferenceCategory
224        android:order="100"
225        android:key="top_level_support_category"
226        android:layout="@layout/settingslib_preference_category_no_title">
227
228        <com.android.settings.widget.HomepagePreference
229            android:fragment="com.android.settings.accessibility.AccessibilitySettings"
230            android:icon="@drawable/ic_settings_accessibility_filled"
231            android:key="top_level_accessibility"
232            android:order="-20"
233            android:title="@string/accessibility_settings"
234            android:summary="@string/accessibility_settings_summary"
235            settings:highlightableMenuKey="@string/menu_key_accessibility"
236            settings:controller="com.android.settings.accessibility.TopLevelAccessibilityPreferenceController"/>
237
238        <com.android.settings.widget.HomepagePreference
239            android:icon="@drawable/ic_help_filled"
240            android:key="top_level_support"
241            android:order="-10"
242            android:title="@string/page_tab_title_support"
243            android:summary="@string/support_summary"
244            settings:highlightableMenuKey="@string/menu_key_support"
245            settings:controller="com.android.settings.support.SupportPreferenceController"/>
246    </PreferenceCategory>
247
248</PreferenceScreen>
249