summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/deviceinfo/MiscFilesHandler.java
Commit message (Collapse)AuthorAgeFilesLines
* Checkpoint of new storage UI.Jeff Sharkey2015-04-121-286/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Force closed at settings application when delete Misc filesPredrag Stanojevic2013-01-181-3/+3
| | | | | | | NullPointerException in MiscFilesHandler.java, missing check to ensure that dir.list() does not return null. Change-Id: I13aac19949826b385610fd1fee2befb411684023
* Iteration on multi-user Storage UI.Jeff Sharkey2012-09-131-2/+1
| | | | | | | | | | | | | | | Now that DefaultContainerService has visibility of external storage for all users, we can measure internal storage in a single pass. Internal storage measurement now iterates across all known users, counting both apps and emulated storage usage. Create MeasurementDetails object with documentation about what is counted under various device configurations. Generalize to measure each Environment.DIRECTORY separately, so it can be combined as needed. General cleanup of how measurements are passed to UI. Bug: 7003520 Change-Id: Ib89c185296a0c9debdc20beeaa98584d803a84e8
* Progress towards split storage categories.Jeff Sharkey2012-09-061-1/+1
| | | | | | | | | Cleans up StorageVolumePreferenceCategory creation, and uses new isPrimary() API instead of passing around hacky "i == 0" derived value. Bug: 7003520 Change-Id: I9eb7164035b5368ee795e35b22e750aebbf3b159
* Surface storage usage of other users.Jeff Sharkey2012-08-301-2/+3
| | | | | | | | | | Bring up separate StorageMeasurement sessions bound to other users on device, and surface their total usage as teal colors. Exclude app code size when measuring secondary users. Shift preferences to using keys instead of fragile index ordering. Bug: 7003520 Change-Id: I214d0b223e53955df71104502596743f049f2027
* Erase SD Card fixed in Settings/Storage.Gilles Debunne2011-05-261-4/+4
| | | | | | Adding the StorageVolume to the format intent. Change-Id: If1a50a2d5c5154e9f00116db536c62324c447e7c
* Storage stats on external SD card in Settings.Gilles Debunne2011-05-251-13/+21
| | | | | | | | | | | | | | Storage categories are dynamically created from list of StorageVolumes instead of a static XML. Unknown files' sizes are part of Misc rather than Apps. Categories with a size of 0 are removed. TODO : remove the notion of a "nosdcard" product. Change strings accordingly. See all TODO in code Change-Id: I017ac20f5fa50ad9bdeba8e666754ec84acf3858
* replace some ugly code with not-too-ugly code..Vasu Nori2011-02-241-9/+8
| | | | | | | | | replaced this kind of code string + " " + number + "out of" + " " + number with this String.format("%1$d out of %2$d", number, number); Change-Id: If1cc296da48dd6823e9081a55b6eab2e3fcee552
* display amount of storage on /sdcard by downloads, music etcVasu Nori2011-02-181-0/+279
when music storage usage is clicked on, show music app when downloads storage usage is clicked on, show download app when pic/videos storage usage is clicked on, show gallery app Change-Id: Ia1c341013e550acb537e6f8a4f4558030888cc45