diff options
Diffstat (limited to 'res')
-rw-r--r-- | res/layout/preference_storage_action.xml | 47 | ||||
-rw-r--r-- | res/menu/storage_volume.xml | 33 | ||||
-rw-r--r-- | res/values/strings.xml | 43 | ||||
-rw-r--r-- | res/xml/dashboard_categories.xml | 2 | ||||
-rw-r--r-- | res/xml/device_info_storage.xml | 31 | ||||
-rw-r--r-- | res/xml/device_info_storage_volume.xml (renamed from res/xml/device_info_memory.xml) | 15 |
6 files changed, 160 insertions, 11 deletions
diff --git a/res/layout/preference_storage_action.xml b/res/layout/preference_storage_action.xml new file mode 100644 index 0000000..10f138b --- /dev/null +++ b/res/layout/preference_storage_action.xml @@ -0,0 +1,47 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2015 The Android Open Source Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> + +<LinearLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:orientation="horizontal"> + + <TextView + android:id="@+id/unmount" + android:layout_width="wrap_content" + android:layout_height="fill_parent" + android:paddingStart="16dip" + android:paddingEnd="16dip" + android:contentDescription="@string/storage_menu_unmount" + android:layout_gravity="center" + android:gravity="center" + android:textSize="30sp" + android:background="?android:attr/selectableItemBackground" /> + + <!-- + <ImageView + android:id="@+id/eject" + android:layout_width="wrap_content" + android:layout_height="fill_parent" + android:paddingStart="16dip" + android:paddingEnd="16dip" + android:src="@drawable/ic_sync_green_holo" + android:contentDescription="@string/storage_menu_eject" + android:layout_gravity="center" + android:background="?android:attr/selectableItemBackground" /> + --> +</LinearLayout> diff --git a/res/menu/storage_volume.xml b/res/menu/storage_volume.xml new file mode 100644 index 0000000..093a4bb --- /dev/null +++ b/res/menu/storage_volume.xml @@ -0,0 +1,33 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2012 The Android Open Source Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> + +<menu xmlns:android="http://schemas.android.com/apk/res/android"> + <item + android:id="@+id/storage_rename" + android:title="@string/storage_menu_rename" /> + <item + android:id="@+id/storage_mount" + android:title="@string/storage_menu_mount" /> + <item + android:id="@+id/storage_unmount" + android:title="@string/storage_menu_unmount" /> + <item + android:id="@+id/storage_format" + android:title="@string/storage_menu_format" /> + <item + android:id="@+id/storage_usb" + android:title="@string/storage_menu_usb" /> +</menu> diff --git a/res/values/strings.xml b/res/values/strings.xml index a8f7bb5..a608410 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -593,6 +593,9 @@ <!-- Button label for generic forget action [CHAR LIMIT=20] --> <string name="forget">Forget</string> + <!-- Button label for generic save action [CHAR LIMIT=20] --> + <string name="save">Save</string> + <!-- Title of the Settings activity shown within the application itself. --> <string name="settings_label">Settings</string> <!-- Title of the Settings activity shown in the Launcher. [CHAR LIMIT=20] --> @@ -2185,7 +2188,7 @@ <!-- SD card & phone storage settings summary. Displayed when the total memory usage is being calculated. Will be replaced with a number like "12.3 GB" when finished calucating. [CHAR LIMIT=30] --> <string name="memory_calculating_size">Calculating\u2026</string> <!-- SD card & phone storage settings title. Displayed as a title when showing the total usage of applications installed. Below it will be a number like "123.4 MB" indicating used storage. [CHAR LIMIT=50] --> - <string name="memory_apps_usage">Apps (app data & media content)</string> + <string name="memory_apps_usage">Apps & app data</string> <!-- SD card & phone storage settings title. Displayed as a title when showing the total usage of media on the device. Below it will be a number like "123.4 MB" indicating used storage. [CHAR LIMIT=50] --> <string name="memory_media_usage">Media</string> <!-- SD card & phone storage settings title. Displayed as a title when showing the total usage of /sdcard/Download on the device. Below it will be a number like "123.4 MB" indicating used storage. [CHAR LIMIT=50] --> @@ -2195,7 +2198,7 @@ <!-- SD card & phone storage settings title. Displayed as a title when showing the total usage of audio files in /sdcard on the device. Below it will be a number like "123.4 MB" indicating used storage. [CHAR LIMIT=50] --> <string name="memory_music_usage">Audio (music, ringtones, podcasts, etc.)</string> <!-- SD card & phone storage settings title. Displayed as a title when showing the total usage of misc files on the device. Below it will be a number like "123.4 MB" indicating used storage. [CHAR LIMIT=50] --> - <string name="memory_media_misc_usage">Misc.</string> + <string name="memory_media_misc_usage">Other files</string> <!-- Storage item representing all cached data on device. [CHAR LIMIT=48] --> <string name="memory_media_cache_usage">Cached data</string> <!-- SD card & phone storage settings item title that will result in the phone unmounting the SD card. This will be done before the user phyiscally removes the SD card from the phone. Kind of like the "Safely remove" on some operating systems. [CHAR LIMIT=25] --> @@ -2270,6 +2273,16 @@ <!-- Settings item summary when storage is running low [CHAR LIMIT=NONE] --> <string name="storage_low_summary">Some system functions, such as syncing, may not work correctly. Try to free space by deleting or unpinning items, such as apps or media content.</string> + <!-- Storage setting. Menu option for renaming a storage device [CHAR LIMIT=30]--> + <string name="storage_menu_rename">Rename</string> + <!-- Storage setting. Menu option for mounting a storage device [CHAR LIMIT=30]--> + <string name="storage_menu_mount">Mount</string> + <!-- Storage setting. Menu option for unmounting a storage device [CHAR LIMIT=30]--> + <string name="storage_menu_unmount">Eject</string> + <!-- Storage setting. Menu option for erasing and formatting a storage device [CHAR LIMIT=30]--> + <string name="storage_menu_format">Erase & format</string> + <!-- Storage setting. Menu option for erasing and formatting a storage device [CHAR LIMIT=30]--> + <string name="storage_menu_format_internal">Erase & format as internal storage</string> <!-- Storage setting. Menu option for USB transfer settings [CHAR LIMIT=30]--> <string name="storage_menu_usb">USB computer connection</string> @@ -2293,6 +2306,32 @@ <!-- Section header above list of other users storage [CHAR LIMIT=32] --> <string name="storage_other_users">Other users</string> + <!-- Section header above list of internal storage devices [CHAR LIMIT=30]--> + <string name="storage_internal_title">Device storage</string> + <!-- Section header above list of external storage devices [CHAR LIMIT=30]--> + <string name="storage_external_title">Removable storage</string> + + <!-- Summary of a single storage volume, constrasting available and total storage space. [CHAR LIMIT=48]--> + <string name="storage_volume_summary"><xliff:g id="free" example="1.2GB">%1$s</xliff:g> free (Total <xliff:g id="total" example="32GB">%2$s</xliff:g>)</string> + + <!-- Toast informing that storage mount operation was successful. [CHAR LIMIT=64]--> + <string name="storage_mount_success"><xliff:g id="name" example="SD card">%1$s</xliff:g> is mounted</string> + <!-- Toast informing that storage unmount operation failed. [CHAR LIMIT=64]--> + <string name="storage_mount_failure">Couldn\'t mount <xliff:g id="name" example="SD card">%1$s</xliff:g></string> + + <!-- Toast informing that storage unmount operation was successful. [CHAR LIMIT=64]--> + <string name="storage_unmount_success"><xliff:g id="name" example="SD card">%1$s</xliff:g> is safely ejected</string> + <!-- Toast informing that storage unmount operation failed. [CHAR LIMIT=64]--> + <string name="storage_unmount_failure">Couldn\'t safely eject <xliff:g id="name" example="SD card">%1$s</xliff:g></string> + + <!-- Toast informing that storage format operation was successful. [CHAR LIMIT=64]--> + <string name="storage_format_success"><xliff:g id="name" example="SD card">%1$s</xliff:g> is formatted</string> + <!-- Toast informing that storage format operation failed. [CHAR LIMIT=64]--> + <string name="storage_format_failure">Couldn\'t format <xliff:g id="name" example="SD card">%1$s</xliff:g></string> + + <!-- Title of dialog prompting user to rename a storage volume [CHAR LIMIT=32]--> + <string name="storage_rename_title">Rename storage</string> + <!-- Phone info screen, section titles: --> <string name="battery_status_title">Battery status</string> <!-- Phone info screen, section titles: --> diff --git a/res/xml/dashboard_categories.xml b/res/xml/dashboard_categories.xml index 0d8c1ac..78fe0e7 100644 --- a/res/xml/dashboard_categories.xml +++ b/res/xml/dashboard_categories.xml @@ -106,7 +106,7 @@ <dashboard-tile android:id="@+id/storage_settings" android:title="@string/storage_settings" - android:fragment="com.android.settings.deviceinfo.Memory" + android:fragment="com.android.settings.deviceinfo.StorageSettings" android:icon="@drawable/ic_settings_storage" /> diff --git a/res/xml/device_info_storage.xml b/res/xml/device_info_storage.xml new file mode 100644 index 0000000..19c5982 --- /dev/null +++ b/res/xml/device_info_storage.xml @@ -0,0 +1,31 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2008 The Android Open Source Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> + +<PreferenceScreen + xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:settings="http://schemas.android.com/apk/res/com.android.settings" + android:title="@string/storage_settings" + settings:keywords="@string/keywords_storage"> + + <PreferenceCategory + android:key="storage_internal" + android:title="@string/storage_internal_title" /> + + <PreferenceCategory + android:key="storage_external" + android:title="@string/storage_external_title" /> + +</PreferenceScreen> diff --git a/res/xml/device_info_memory.xml b/res/xml/device_info_storage_volume.xml index 38cc94a..35435d7 100644 --- a/res/xml/device_info_memory.xml +++ b/res/xml/device_info_storage_volume.xml @@ -4,9 +4,9 @@ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at - + http://www.apache.org/licenses/LICENSE-2.0 - + Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -14,11 +14,10 @@ limitations under the License. --> -<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:settings="http://schemas.android.com/apk/res/com.android.settings" - android:title="@string/storage_settings" - settings:keywords="@string/keywords_storage"> - -<!-- Preference categories are dynamically created based on the list of available storage volumes --> +<PreferenceScreen + xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:settings="http://schemas.android.com/apk/res/com.android.settings" + android:title="@string/storage_settings" + settings:keywords="@string/keywords_storage"> </PreferenceScreen> |