summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/deviceinfo/PublicVolumeSettings.java
Commit message (Collapse)AuthorAgeFilesLines
* storage: Do not allow eject for volumes on non-removable disksTom Marshall2015-11-251-1/+1
| | | | Change-Id: Ib10747f27ef46ebdca906a904271f7c1e9bc3e73
* Prevent monkey from changing adoptable storage settingsGuang Zhu2015-07-231-1/+3
| | | | | Bug: 22423188 Change-Id: I36c798574c933b0339fad46af81b87a93ccea07b
* Fix some ordering, colors, and accessibility bugs.Jeff Sharkey2015-07-051-8/+11
| | | | | | | | | | | | When adding preferences to public/private details screens, always add in-order when rebuilding. Hacky fix for broken summary text and eject image color tints. Fix crash when device rotated during partitioning. Set correct accessibility titles in all wizard steps. Bug: 22098044, 21376962 Change-Id: I68aff96cba497a91919cad8865722bc9cef7eaa7
* Only allow admin users to adopt sd card as internal storage.Amith Yamasani2015-06-301-2/+9
| | | | | Bug: 21883016 Change-Id: I11ca324ab74ce2a8bf13064b4c7735aea132c562
* Actually gracefully finish this time around.Jeff Sharkey2015-06-161-15/+13
| | | | | | | Also fix tinting on front-door icon. Bug: 21403958 Change-Id: I74f0372a41b92235abe10391f36d9f6a1e6a40c5
* Gracefully finish when missing volume.Jeff Sharkey2015-06-161-1/+6
| | | | | Bug: 21403958 Change-Id: Icb78bb633842571c4df696c9db72a5b97ece0655
* More storage UI updates.Jeff Sharkey2015-06-151-35/+15
| | | | | | | | | | | | | | | | | | Storage volumes now have headers with larger fonts and progress bars to show used versus free space. Updated Memory to use new formatting template, and Data Usage to use consistent display logic. Allocate a unique color for each private volume, and yell when a volume is running low on space. Update private volume details to launch into MediaStore-backed storage backends in a management mode, and only show detailed items when hosting emulated storage. Show details dialog about "Other" and user storage items. Shortcut into single private volume when it's the only device. Add real eject icon. Bug: 21756698, 20275574, 21326612 Change-Id: If3ecd1d912d3e709c09d3e4da24f368e04dd3f9d
* New storage dialogs.Jeff Sharkey2015-06-141-8/+17
| | | | | | | | | | | | | | | Show a helpful dialog when a volume is unmounted or unmountable, or when disk is unsupported. Add both missing private volumes and unsupported disks in the storage list. Dialog to confirm when forgetting private volume. Finish volume detail activities when the volume becomes unmounted. Show used space instead of free space to match string. When init'ing a volume on non-adoptable disk, just format as public. Bug: 21737573, 21666225, 21737666, 21471429 Change-Id: Id60d5a398e2b7923ebebdc5cfaef33248d8d77bb
* Follow string refactoring.Jeff Sharkey2015-06-101-1/+1
| | | | Change-Id: Ib450724a20283a3bf356593e487b8ee6e9c8de5c
* Returning to wizard, enable migration.Jeff Sharkey2015-04-291-2/+3
| | | | | | | | | | | | | Bring primary storage migration back into the adoption flow, and provide a path for long-lived notifications to re-launch into the Settings app. Also provide option to initiate migration if skipped during wizard. For now, estmiate migration size and time based on a Class 10 card. Follow other callback refactoring. Bug: 19993667 Change-Id: Ia0c28eb114bc6c8066c17b3142ed74f962140c91
* Format as public/private; follow refactoring.Jeff Sharkey2015-04-281-9/+12
| | | | | | | Offer to format an empty disk as public/private. Bug: 19993667 Change-Id: I69fafaed524f3ef5e65d04a9e3a94789fcfc3087
* Use new VolumeInfo helper methods.Jeff Sharkey2015-04-181-2/+2
| | | | | | | | Makes it clearer if we're checking for readable/writable state, and puts emulated/private conversion logic in single place. Bug: 19993667 Change-Id: I953f5c184ca62afc631d855e64cd8a4972320148
* Avoid a few crashes around unmounting.Jeff Sharkey2015-04-141-12/+20
| | | | | | | Also refresh UI when metadata changes. Bug: 19993667 Change-Id: Ib0ea9be68a3db5c71d15fae6809f31df43fd9af0
* Storage accessors; persist nickname, flags.Jeff Sharkey2015-04-141-10/+10
| | | | | | | | | | | Move to using new public accessors on DiskInfo and VolumeInfo. Persist nickname changes, and remember when user has initialized a public volume. Also skip the migration part of storage wizard until it's implemented. Bug: 19993667 Change-Id: I642fb43afb95380fddd48a1dad438e87b06454da
* Follow storage refactoring in system.Jeff Sharkey2015-04-141-11/+7
| | | | | | | | Also add entry point for SystemUI unmounting, and require permissions when launching into those flows. Bug: 19993667 Change-Id: I703d2e5f118848a2e2e96ce1d7f970e5705a288a
* Checkpoint of new storage wizards.Jeff Sharkey2015-04-131-3/+21
| | | | | | | | | | | | | | | Use frameworks/opt/setupwizard/library/ for consistent behavior and styling on phones and tablets. Implement every step of wizard flow and connect them together, even though some steps are currently non-functional. All strings to match UX spec, with some adjustment. Wizards inherit from helper base class. New interstitials before unmounting or formatting private storage to confirm user knows consequences. Bug: 19993667 Change-Id: I2c774e1718d513805ee8aecfc96d066d4730450c
* Checkpoint of new storage UI.Jeff Sharkey2015-04-121-0/+205
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