History log of /frameworks/base/packages/SystemUI/src/com/android/systemui/usb/StorageNotification.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
ef10ee014594d800f5f5ca31ea93f1cab2880d05 05-Jul-2015 Jeff Sharkey <jsharkey@android.com> Handle missing migration source volume.

Users can try migrating primary storage while the current location
is missing/unmounted. Fail gracefully instead of runtime restarting.

Bug: 21927076
Change-Id: I40645f8ccea05154e7cbacd188f6cba5f4dbbdc4
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/StorageNotification.java
b138cb2c0df9e35d2f7683d529a67f8d8b64133c 24-Jun-2015 Makoto Onuki <omakoto@google.com> Notification for non-adopotable disks shouldn't be snoozed

Note if an adoptable SD is mounted as an external disk, it'll still be
snoozeable. I *think* it's reasonable, as long as the sd card is inside
the device.

Bug 21898269

Change-Id: I0aaa6c85f9db84e3f30d3b0b485a35a5abef84e8
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/StorageNotification.java
df27d3bf3049b8e0b0c8ce432468be380a6eaeeb 16-Jun-2015 Jeff Sharkey <jsharkey@android.com> Dismiss migration notification when wizard done.

Bug: 21830731
Change-Id: Ief1428cd1ee0885fbc026885e1907f7272810d0f
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/StorageNotification.java
52fc3c0f73a9081609c3636dd1b393a0653a9d00 15-Jun-2015 Jeff Sharkey <jsharkey@android.com> Start using new storage strings.

We have language for "unsupported" devices, and we're letting the
user snooze missing private volumes.

Bug: 21666225
Change-Id: I0bc17e6b854946036f02df5b4953b4344fa85a1f
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/StorageNotification.java
f5a6bd7538a6800c2a43ace5ad67d65b1f8f697a 19-May-2015 Jeff Sharkey <jsharkey@android.com> Push initial disk state, handle empty media.

Stash volume count from last scan, and use it to push initial storage
notifications state when listener is first attached.

Also omit disks with invalid size, which usually means they're an
empty slot with no media.

Bug: 20503551
Change-Id: I75097035aebaad70ba32437179a863f6a0910aa5
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/StorageNotification.java
a49d5fc7677162689ffae85f8b95c57d83868bcf 13-May-2015 Jeff Sharkey <jsharkey@android.com> Updated storage notification icons.

Bug: 19993667
Change-Id: Ibecb634ad7993dc8d1b244654396a6176a0891b9
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/StorageNotification.java
50a05454795c93ac483f5cb6819e74cb17be1b5b 29-Apr-2015 Jeff Sharkey <jsharkey@android.com> Returning to wizard, split move events.

Finish wiring up notifications to jump back into in-progress wizard
flow, using moveId as identifier.

Split move events back into separate creation and progress events,
and pass details as bundle to pass extra stuff like UUID. Null
package still means moving primary storage.

Add explicit "volume forgotten" event for PackageManager to clean
up internal state with.

Plumb through internal path reported by vold, and bring back FUSE
bypass rewriting optimization.

Bug: 19993667
Change-Id: I0f43edbba36c58c5cd33550022c54c4eb9f01a48
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/StorageNotification.java
b36586a7c9b7718f33961406537e27bbd9b16211 27-Apr-2015 Jeff Sharkey <jsharkey@android.com> Split some VolumeInfo state into VolumeRecord.

VolumeRecord is a historical record of a volume that we've seen in
the past. It's now surfaced outside the framework for SystemUI to
drive the notifications that bug users to reinsert missing private
volumes.

Show progress notifications for both storage and package movement
operations. Notify when an empty disk is inserted (no usable volumes)
which launches into the normal format flow.

Add API to forget volumes.

Bug: 20275424, 20275424
Change-Id: I75602c17fdcd4d1f1f62324e1a08c4a33093eefa
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/StorageNotification.java
e6c04f9417cc4bff0f5f9e72f0d6d66d2aab6e80 19-Apr-2015 Jeff Sharkey <jsharkey@android.com> Broadcast hidden volumes, notification polish.

Send limited broadcast intent when certain volume state changes
occur; the only customer for now is ExternalStorageProvider.

Change notification flow to be less bumpy. Pick USB icon based on
disk type, and avoid using "generic" disk labels.

Bug: 19993667
Change-Id: I263bc9e9aae2ae57eb4d1afe76da686aee5475fb
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/StorageNotification.java
27de30d31c3e79bc429cb71aed9681c55243f18d 19-Apr-2015 Jeff Sharkey <jsharkey@android.com> Wire up non-visible volumes, more states.

Adds logic to ExternalStorageProvider to scan non-visible volumes,
such as USB OTG devices. We use internal paths when surfacing these
volumes, which also optimizes around the FUSE daemon for public
devices. Also dumps internal state when requested.

VolumeInfo now directly contains DiskInfo, which means it's
snapshotted when sending events, avoiding teardown races. Switch
notifications to use this DiskInfo directly.

Finish wiring up new volume state, including helper methods to make
it readable/writable state clearer. Handle disks and volumes with
spaces in their labels.

Bug: 19993667
Change-Id: I5c75e5658a6415976811477aebafee7694bde0f4
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/StorageNotification.java
7e92ef3a1146102806fa0543ef12e09231c55639 18-Apr-2015 Jeff Sharkey <jsharkey@android.com> Volumes know parent disks; unsupported disks.

This is cleaner and more direct than the reverse of having the disk
publish child volume membership. Rename state constants to match
public API. Add state representing bad removal. Make it clear that
volume flags are related to mounting.

Send new unsupported disk event when we finish scanning an entire
disk and have no meaningful volumes.

Splice disk labels into description when known. Only adoptable
slots are directly visible to apps.

Bug: 19993667
Change-Id: I12fda95be0d82781f70c3d85c039749052dc936b
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/StorageNotification.java
d95d3bfb2b28a4f21f3fdcd740160c9a61eb0363 15-Apr-2015 Jeff Sharkey <jsharkey@android.com> Persist nickname and flags for volumes.

StorageManager now offers to persist a nickname and user flags for
active volumes. This metadata is kept around and spliced into
any future VolumeInfo when the same UUID is present. Current user
flags indicate "initialized" and "snoozed" states to control how
notifications are shown.

Notify listeners when metadata changes, and kick public notification
after a volume is initialized. Make unique PendingIntents when
multiple volumes are active.

Beginnings of plumbing to ask for missing volumes.

Offer explicit accessors for VolumeInfo and DiskInfo to give better
path to documentation and deprecation.

Bug: 19993667
Change-Id: I3d8b68be83f43ba992d21d51cad5b775776d681c
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/StorageNotification.java
56bd3129138b525b0f2eba52bd4fa140f23e792c 14-Apr-2015 Jeff Sharkey <jsharkey@android.com> Checkpoint of storage notifications.

Rewrite of storage notifications to support multiple disks/volumes,
handling the state of each independently. Update strings to match
spec. Include actions to jump into wizard when adoptable, otherwise
browse or eject.

Move browse intent creation to common place on VolumeInfo. Also add
well-formed extra names. VolumeInfo now carries the parent disk ID
along with it to avoid races when unmounting.

Bug: 19993667
Change-Id: I236ddc7f8112490355f438b828bec8d40c331fdd
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/StorageNotification.java
4a357cd2e55293402d7172766f7f9419815fc1e8 19-Mar-2015 Alan Viverette <alanv@google.com> Replace usages of deprecated Resources.getColor() and getColorStateList()

Change-Id: I8f64fe6c4c44a92ff6d07250223ba590a1d691b0
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/StorageNotification.java
d3c833fc9768c1e3c651550a24bd89860203571b 20-Aug-2014 Selim Cinek <cinek@google.com> am 53006cab: am cc19946d: Added notification color to all system notifications

* commit '53006cab63fed5d176c5d97d4fc1807192ae9c4d':
Added notification color to all system notifications
255dd04271088590fedc46c8e22b2fd4ab142d39 19-Aug-2014 Selim Cinek <cinek@google.com> Added notification color to all system notifications

Bug: 17128331
Change-Id: I81a94510ef51b99916f314c0dd65852426a1fbeb
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/StorageNotification.java
51886f3125c74ceab38c8c0239dfcb98fc10a9ad 13-Aug-2014 Jeff Sharkey <jsharkey@android.com> am 840e9325: am 2013cb1f: Merge "Prevent system_server shutdown when trying to format external storage"

* commit '840e932584b4d03f39ba17da57b92b1d1878b21d':
Prevent system_server shutdown when trying to format external storage
59f0258a27ebaf8468919a9d2855c41f0429238d 21-Mar-2014 Dan Sandler <dsandler@android.com> Categorize some system notifications.

Change-Id: Ia343bc276f50f488e2165056cff249a02f01d45a
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/StorageNotification.java
a804d65f4aa31c7088e7f2150d96f1bf92e9c3be 21-Feb-2014 John Eckerdal <john.eckerdal@sonymobile.com> Prevent system_server shutdown when trying to format external storage

The SystemUI does not provied path information on which volume that should
be formatted. So when the user selects "Blank CD Card" an intent is sent to
ExternalMediaFormatActivity and forwarded to ExternalStorageFormatter then
actual volume that is unformatted is not included in the information sent
in the Intent.
This causes the ExternalStorageFormatter to go through Environment to find
a Volume but the actual volume found that way is not correct.

To solve the issue look up the correct StorageVolumeand reuse the existing
EXTRA_STORAGE_VOLUME extra and send it as part of the Intent.

Change-Id: Ib360a9ce071ebe95fc3ca847ed68b6db05928a42
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/StorageNotification.java
bfe61f696de3ceecda51612d3b26f20af33bc16c 30-Jan-2014 Dan Sandler <dsandler@android.com> Make some notifications public (safe for secure lockscreens):

- USB connected
- ADB enabled
- Low storage
- USB mass storage status
- Tethering status

Change-Id: I8224d7bcc8141fc90ac5e28d4392c52724c524a7
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/StorageNotification.java
209bede6b9edb9171e5bee4077b48e35004a37b4 17-Jul-2013 John Spurlock <jspurlock@google.com> Remove trailing whitespace from system ui.

Baseline existing .java files, no excuses going forward.

Change-Id: I4bd0f25bbda6f2ec832e34ef5c70d4830bf07f99
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/StorageNotification.java
3e309b2edc99cced870916a7a0fa0d27578cad6d 25-Jun-2013 John Spurlock <jspurlock@google.com> Decouple storage notification from status bar.

Hoist the usb storage notification listener to a top-level
system ui service, not dependent on a status bar implementation.

Change-Id: Ic9e7fba1e5bfd758d72226f6d796c2f04f6b17e6
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/StorageNotification.java
cd686b5b6d4166b510df8e32138479a9559bc117 05-Jun-2013 John Spurlock <jspurlock@google.com> Migrate systemui Slog calls to Log

Change-Id: Ib6734c85960f06fed646599565b8eeba26b9e98e
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/StorageNotification.java
40e9f2922cae76ffcbc521481e5be8e80e8744ef 28-Nov-2012 Dianne Hackborn <hackbod@google.com> Quiet down a lot of logging.

Also fix a little problem where the USER_STARTED broadcasts
were not being sent as ordered broadcasts(!).

Change-Id: I3aa3e0a9b3900967cdd2d115ee103371b0a50c41
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/StorageNotification.java
bf6f6f9de72c9fd15e6bda9f228c05a9b37d6324 26-Sep-2012 Jeff Brown <jeffbrown@google.com> Update references to migrated global settings.

Fixed one setting that was migrated but not marked deprecated.

Removed a hidden setting that is no longer used by the new
power manager service.

Bug: 7231172
Change-Id: I332f020f876a18d519a1a20598a172f1c98036f7
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/StorageNotification.java
50cdf7c3069eb2cf82acbad73c322b7a5f3af4b1 24-Sep-2012 Dianne Hackborn <hackbod@google.com> Fix issue #7214090: Need to be able to post notifications to all users

Also fix a bunch of system services that should be doing this. And
while doing that, found I needed to fix PendingIntent to evaluate
USER_CURRENT at the point of sending, not creation.

Note that this may end up with us having some notification shown to
non-primary users that lead to settings UI that should only be for
the primary user (such as the vpn notification). I'm not sure what
to do about this, maybe we need a different UI to come up there or
something, but showing the actual notification for those users at
least seems less broken than not telling them at all.

Change-Id: Iffc51e2d7c847e3d05064d292ab93937646a1ab7
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/StorageNotification.java
5b8743f3d6a0ba23dce533072f92acd7ec3210e9 03-Nov-2010 Daniel Sandler <dsandler@android.com> Fix the fix for storage ANRs.

This repairs Icf2a836b6 to avoid an infinite loop on boot.

Bug: 3138068
Change-Id: Ic3a0455e18002dfb82774d96b3467030c4b15e2f
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/StorageNotification.java
906b830d1d61cbd8b1f9c2dc87e564cfb0f315fd 03-Nov-2010 Dianne Hackborn <hackbod@google.com> Revert "UMS: Avoid SystemUI ANRs during long vold operations."

This reverts commit 010704f95de534214cd7b86f93e22050a595dce3.
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/StorageNotification.java
010704f95de534214cd7b86f93e22050a595dce3 03-Nov-2010 Daniel Sandler <dsandler@android.com> UMS: Avoid SystemUI ANRs during long vold operations.

Stop handling StorageEventListener callbacks on the main
thread, where calls back into StorageManager could take a
while (i.e., during a long fsck).

Bug: 3138068
Change-Id: Icf2a836b69ff60606edce7c5575ad64dc24698c6
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/StorageNotification.java
d39d515b9110d7405d0f03dbf612ba5c9b8ac566 12-Oct-2010 Dianne Hackborn <hackbod@google.com> Fix SD card mounting issues #3074555 and #3072332

Change-Id: I79572bb4e92d2546abd97512a119ae74f0d72019
3074555: Kill "Shared storage safe to remove" notification
3072332: "blank shared storage" notification doesn't go anywhere
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/StorageNotification.java
f7d2b4a2e096ae1f8ac3a2ed8b2f0e30a237f732 08-Jul-2010 Daniel Sandler <dsandler@android.com> Use fullScreenIntent to show the USB mass storage dialog.

Note that this is not a FLAG_HIGH_PRIORITY notification. In
immersive mode the UMS dialog will be suppressed entirely
(but an icon will still appear in the status bar).

Bug: 2821219
Change-Id: I21f910c8830aff8d0633deda4eb59dbda13262ed
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/StorageNotification.java
fe4f3ae33c8da86585399b4167fd7987c8a16066 04-Jun-2010 Joe Onorato <joeo@android.com> Move the usb mass storage notification & activity into SystemUI.apk.

Also fix the notification to show properly when the runtime is restarted.

Change-Id: Id0c7ef9f9dc9c9df18428cbaa7db1703f085137e
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/StorageNotification.java