OSDN Git Service

Checkpoint of new storage UI.
authorJeff Sharkey <jsharkey@android.com>
Sun, 12 Apr 2015 04:27:33 +0000 (21:27 -0700)
committerJeff Sharkey <jsharkey@android.com>
Mon, 13 Apr 2015 05:02:32 +0000 (22:02 -0700)
commit42833b2ff4d7a26dd9a609d2fd4436d9a26f28b5
tree18ffcc0f4eea720d6a98de6c3549600e6f7d1b53
parent09c0c1385a08c23b8063626d5f439088b27d9c52
Checkpoint of new storage UI.

Top-level storage UI now shows list of all devices, both internal
and adopted/private volumes, and public/shared volumes.

When viewing a private volume, show traditional clustering of data
types, including summary of other users.  For adopted volumes, any
actions are tucked away in a menu, since they're not primary.  Misc
files browsing is now provided by DocumentsUI.

Teach StorageMeasurement about new private volumes, including
handling emulated volumes stacked above them.  When measuring, only
consider apps actually hosted on the current volume UUID.

When viewing a public volume, we default to launching into file
management mode, and offer a simple eject button at the top-level
view.  File management mode is offered by new DocumentsUI browse
intent, and a Settings link there redirects back to us for actual
operations like ejecting/formatting.  When unmounted, we launch
into our action view.

Actions like ejecting/formatting just show simple toasts for now.

Bug: 19993667
Change-Id: Ie990ef3c01fb3717aaf8c79bfc53aac7edefdcf7
20 files changed:
AndroidManifest.xml
res/layout/preference_storage_action.xml [new file with mode: 0644]
res/menu/storage_volume.xml [new file with mode: 0644]
res/values/strings.xml
res/xml/dashboard_categories.xml
res/xml/device_info_storage.xml [new file with mode: 0644]
res/xml/device_info_storage_volume.xml [moved from res/xml/device_info_memory.xml with 64% similarity]
src/com/android/settings/Settings.java
src/com/android/settings/SettingsActivity.java
src/com/android/settings/deviceinfo/Memory.java [deleted file]
src/com/android/settings/deviceinfo/MiscFilesHandler.java [deleted file]
src/com/android/settings/deviceinfo/PrivateVolumeSettings.java [new file with mode: 0644]
src/com/android/settings/deviceinfo/PublicVolumeSettings.java [new file with mode: 0644]
src/com/android/settings/deviceinfo/StorageItemPreference.java
src/com/android/settings/deviceinfo/StorageMeasurement.java
src/com/android/settings/deviceinfo/StorageSettings.java [new file with mode: 0644]
src/com/android/settings/deviceinfo/StorageVolumePreference.java [new file with mode: 0644]
src/com/android/settings/deviceinfo/StorageVolumePreferenceCategory.java [deleted file]
src/com/android/settings/search/Ranking.java
src/com/android/settings/search/SearchIndexableResources.java