1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2016 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 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 xmlns:settings="http://schemas.android.com/apk/res-auto" 20 android:key="storage_dashboard_fragment" 21 android:title="@string/storage_settings" 22 settings:keywords="@string/keywords_storage"> 23 <com.android.settingslib.widget.SettingsSpinnerPreference 24 android:key="storage_spinner" 25 android:order="1" 26 settings:searchable="false" 27 settings:controller="com.android.settings.deviceinfo.storage.StorageSelectionPreferenceController"/> 28 <com.android.settingslib.widget.UsageProgressBarPreference 29 android:key="storage_summary" 30 android:order="2" 31 android:selectable="false" 32 settings:searchable="false" 33 settings:controller="com.android.settings.deviceinfo.storage.StorageUsageProgressBarPreferenceController"/> 34 <com.android.settingslib.PrimarySwitchPreference 35 android:fragment="com.android.settings.deletionhelper.AutomaticStorageManagerSettings" 36 android:key="toggle_asm" 37 android:title="@string/automatic_storage_manager_preference_title" 38 android:icon="@drawable/ic_storage" 39 android:order="3" 40 settings:controller="com.android.settings.deviceinfo.storage.AutomaticStorageManagementSwitchPreferenceController"/> 41 <com.android.settings.widget.CardPreference 42 android:key="free_up_space" 43 android:order="4" 44 android:title="@string/storage_free_up_space_title" 45 android:summary="@string/storage_free_up_space_summary" 46 settings:controller="com.android.settings.deviceinfo.storage.ManageStoragePreferenceController"/> 47 <!-- Preference order 100~200 are 'ONLY' for storage category preferences below. --> 48 <Preference 49 android:key="pref_public_storage" 50 android:title="@string/storage_files" 51 android:icon="@drawable/ic_folder_vd_theme_24" 52 android:order="100"/> 53 <com.android.settings.deviceinfo.StorageItemPreference 54 android:key="pref_images" 55 android:title="@string/storage_images" 56 android:icon="@drawable/ic_photo_library" 57 android:order="101"/> 58 <com.android.settings.deviceinfo.StorageItemPreference 59 android:key="pref_videos" 60 android:title="@string/storage_videos" 61 android:icon="@drawable/ic_local_movies" 62 android:order="102"/> 63 <com.android.settings.deviceinfo.StorageItemPreference 64 android:key="pref_audio" 65 android:title="@string/storage_audio" 66 android:icon="@drawable/ic_media_stream" 67 android:order="103"/> 68 <com.android.settings.deviceinfo.StorageItemPreference 69 android:key="pref_apps" 70 android:title="@string/storage_apps" 71 android:icon="@drawable/ic_storage_apps" 72 android:order="104"/> 73 <com.android.settings.deviceinfo.StorageItemPreference 74 android:key="pref_games" 75 android:title="@string/storage_games" 76 android:icon="@drawable/ic_videogame_vd_theme_24" 77 android:order="105"/> 78 <com.android.settings.deviceinfo.StorageItemPreference 79 android:key="pref_documents" 80 android:title="@string/storage_documents" 81 android:icon="@drawable/ic_folder_vd_theme_24" 82 android:order="106"/> 83 <com.android.settings.deviceinfo.StorageItemPreference 84 android:key="pref_other" 85 android:title="@string/storage_other" 86 android:icon="@drawable/ic_category_vd_theme_24" 87 android:order="107"/> 88 <com.android.settings.deviceinfo.StorageItemPreference 89 android:key="pref_trash" 90 android:title="@string/storage_trash" 91 android:icon="@drawable/ic_trash_can" 92 android:order="108"/> 93 <!-- Preference order 100~200 are 'ONLY' for storage category 94 preferences that are sorted by size. --> 95 <PreferenceCategory 96 android:key="storage_category_splitter" 97 android:title="@string/storage_system_label" 98 android:order="201" 99 settings:searchable="false"> 100 <com.android.settings.deviceinfo.StorageItemPreference 101 android:key="pref_system" 102 android:title="@string/storage_os_name" 103 android:icon="@drawable/ic_android_vd_theme_24" 104 android:order="202"/> 105 <com.android.settings.deviceinfo.StorageItemPreference 106 android:key="temporary_files" 107 android:title="@string/storage_temporary_files" 108 android:icon="@drawable/ic_database_vd_theme_24" 109 android:order="203"/> 110 </PreferenceCategory> 111 <PreferenceCategory 112 android:key="pref_non_current_users" 113 android:title="@string/storage_other_users" 114 android:order="204" /> 115</PreferenceScreen> 116