History log of /packages/apps/Settings/src/com/android/settings/deviceinfo/PublicVolumeSettings.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
edafa44c7e0d3e0809db43bbc56e582137af3e4e 15-Apr-2017 Daniel Nishi <dhnishi@google.com> Don't crash on opening ejecting USB.

This crash occurs because, even if you finish an Activity during
onCreate, the other lifecycle methods occur. In this case,
onActivityCreated assumes that onCreate ran properly.

By exiting early from onActivityCreated, we can ensure the activity
is finished properly.

Change-Id: Ia354341bf82d295c7dd042668fb11d588ddfebc0
Fixes: 37334861
Test: Instrumentation test
/packages/apps/Settings/src/com/android/settings/deviceinfo/PublicVolumeSettings.java
52aa9fb17013814c57b0b3c8623287fb22301fb5 15-Nov-2016 Jeff Sharkey <jsharkey@android.com> Always show at least 1% when some space used.

Don't let the progress value round down to 0, since that would
be misleading.

Test: builds
Bug: 24017703
Change-Id: I6a0268361645da16af67e12bf7f6823d027dd72c
/packages/apps/Settings/src/com/android/settings/deviceinfo/PublicVolumeSettings.java
265d3c2a0c36251bf8a9f571d7239b6dd404d942 22-Jun-2016 Tamas Berghammer <tberghammer@google.com> Update package names to work with the proto3 compiler

Bug: b/28974522
Change-Id: I5f3adf4946ee4ba1e09e4f40afe83c151405972a
/packages/apps/Settings/src/com/android/settings/deviceinfo/PublicVolumeSettings.java
6507613ebcd22e4691c2af92a5c161bd327db336 08-Aug-2016 Fan Zhang <zhfan@google.com> Log visibility change for all fragments.

Bug: 30681771
Test: SettingsUnitTests

Refactor visibility logging from InstrumentedFragment into a mixin. And
apply mixin in remaining fragments.

Change-Id: Ibbb59904336254a3e4bb9e8c7d0b36e5a6bc2622
/packages/apps/Settings/src/com/android/settings/deviceinfo/PublicVolumeSettings.java
9d1bfd1e8de6e46137a9571507c03526880d6a46 27-Jan-2016 Chris Wren <cwren@android.com> port settings over to new metrics enum

Change-Id: I0b3efd2f4db773ccbc52bfe59ee8eb0dab9584fb
/packages/apps/Settings/src/com/android/settings/deviceinfo/PublicVolumeSettings.java
39b467482d1bf256a111c757e9b7621c6f523271 10-Sep-2015 Jason Monk <jmonk@google.com> Depend on support lib preferences

Bug: 24576551
Change-Id: Ic6190bacd3f7582c9bbc8de972da4612bd92421e
/packages/apps/Settings/src/com/android/settings/deviceinfo/PublicVolumeSettings.java
5e83b0d9fa1c08f0e5b1f15c86454af2b45143db 24-Jul-2015 Guang Zhu <guangzhu@google.com> am 29936b07: am 5ea94a9c: am b91da24d: am 402c866c: am c1bef743: Prevent monkey from changing adoptable storage settings

* commit '29936b072f9d1623b16356b6837d38b7c865cb60':
Prevent monkey from changing adoptable storage settings
c1bef7430e1c49b9c3b2312328d3600261109ee8 23-Jul-2015 Guang Zhu <guangzhu@google.com> Prevent monkey from changing adoptable storage settings

Bug: 22423188
Change-Id: I36c798574c933b0339fad46af81b87a93ccea07b
/packages/apps/Settings/src/com/android/settings/deviceinfo/PublicVolumeSettings.java
5e76cdc9dd90624de4a59808e8fe8037786317e5 08-Jul-2015 Daichi Hirono <hirono@google.com> Turn the eject menu into a button.

BUG=21897892

Change-Id: Icd0db7907b990447c99c4ae65816e85777df0f8e
/packages/apps/Settings/src/com/android/settings/deviceinfo/PublicVolumeSettings.java
48751c1a5163ccf411009344f352abdf6e1b9684 06-Jul-2015 Jeff Sharkey <jsharkey@android.com> Fix some ordering, colors, and accessibility bugs.

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
/packages/apps/Settings/src/com/android/settings/deviceinfo/PublicVolumeSettings.java
350274040e2f9adbf97aba53a2e7ab0c70f7ff5a 30-Jun-2015 Amith Yamasani <yamasani@google.com> Only allow admin users to adopt sd card as internal storage.

Bug: 21883016
Change-Id: I11ca324ab74ce2a8bf13064b4c7735aea132c562
/packages/apps/Settings/src/com/android/settings/deviceinfo/PublicVolumeSettings.java
665094c9d20aabe4c688ecd11537dceafe22efe1 17-Jun-2015 Jeff Sharkey <jsharkey@android.com> Actually gracefully finish this time around.

Also fix tinting on front-door icon.

Bug: 21403958
Change-Id: I74f0372a41b92235abe10391f36d9f6a1e6a40c5
/packages/apps/Settings/src/com/android/settings/deviceinfo/PublicVolumeSettings.java
e79ff145f3da966262d050898125c51f4bdc75e4 17-Jun-2015 Jeff Sharkey <jsharkey@android.com> Gracefully finish when missing volume.

Bug: 21403958
Change-Id: Icb78bb633842571c4df696c9db72a5b97ece0655
/packages/apps/Settings/src/com/android/settings/deviceinfo/PublicVolumeSettings.java
2597625fd9704ff9eab94987d332378f806dae83 16-Jun-2015 Jeff Sharkey <jsharkey@android.com> More storage UI updates.

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
/packages/apps/Settings/src/com/android/settings/deviceinfo/PublicVolumeSettings.java
edb7b0d9a900a4a560d0777032600b52f38efd23 15-Jun-2015 Jeff Sharkey <jsharkey@android.com> New storage dialogs.

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
/packages/apps/Settings/src/com/android/settings/deviceinfo/PublicVolumeSettings.java
680329f10c9ed4648ff9233f9410e22eedf30dfe 11-Jun-2015 Jeff Sharkey <jsharkey@android.com> Follow string refactoring.

Change-Id: Ib450724a20283a3bf356593e487b8ee6e9c8de5c
/packages/apps/Settings/src/com/android/settings/deviceinfo/PublicVolumeSettings.java
e77f0687dd424ccfdc2b1061221c6c8ba4d6ac8d 29-Apr-2015 Jeff Sharkey <jsharkey@android.com> Returning to wizard, enable migration.

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
/packages/apps/Settings/src/com/android/settings/deviceinfo/PublicVolumeSettings.java
a16257dbd5599135320f4263a2cb438b7a469084 28-Apr-2015 Jeff Sharkey <jsharkey@android.com> Format as public/private; follow refactoring.

Offer to format an empty disk as public/private.

Bug: 19993667
Change-Id: I69fafaed524f3ef5e65d04a9e3a94789fcfc3087
/packages/apps/Settings/src/com/android/settings/deviceinfo/PublicVolumeSettings.java
90daa80c5bf3fdba3489be776640018ca578d955 19-Apr-2015 Jeff Sharkey <jsharkey@android.com> Use new VolumeInfo helper methods.

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
/packages/apps/Settings/src/com/android/settings/deviceinfo/PublicVolumeSettings.java
7bc9235aaa6d8b68119f7635214fe9d72d4a7c42 15-Apr-2015 Jeff Sharkey <jsharkey@android.com> Avoid a few crashes around unmounting.

Also refresh UI when metadata changes.

Bug: 19993667
Change-Id: Ib0ea9be68a3db5c71d15fae6809f31df43fd9af0
/packages/apps/Settings/src/com/android/settings/deviceinfo/PublicVolumeSettings.java
4366b565e150f3744dad66685806c55459d56c46 15-Apr-2015 Jeff Sharkey <jsharkey@android.com> Storage accessors; persist nickname, flags.

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
/packages/apps/Settings/src/com/android/settings/deviceinfo/PublicVolumeSettings.java
2949a4ab4d342a315420ccda07c02075edccd4f0 15-Apr-2015 Jeff Sharkey <jsharkey@android.com> Follow storage refactoring in system.

Also add entry point for SystemUI unmounting, and require permissions
when launching into those flows.

Bug: 19993667
Change-Id: I703d2e5f118848a2e2e96ce1d7f970e5705a288a
/packages/apps/Settings/src/com/android/settings/deviceinfo/PublicVolumeSettings.java
94635995e49ee2ab0f3640dd83b2fe680b7bd589 13-Apr-2015 Jeff Sharkey <jsharkey@android.com> Checkpoint of new storage wizards.

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
/packages/apps/Settings/src/com/android/settings/deviceinfo/PublicVolumeSettings.java
42833b2ff4d7a26dd9a609d2fd4436d9a26f28b5 12-Apr-2015 Jeff Sharkey <jsharkey@android.com> 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
/packages/apps/Settings/src/com/android/settings/deviceinfo/PublicVolumeSettings.java