History log of /packages/apps/StorageManager/src/com/android/storagemanager/automatic/NotificationController.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
ba04dbb340fd2263997903ed3430fbb5c21e69bc 08-Jun-2017 Daniel Nishi <dhnishi@google.com> Storage manager notification -> Storage Settings.

Because we can change the storage manager settings from the main storage
page, it makes more sense to send the user to the Storage Settings
screen.

Change-Id: I0bf70463d0662d25969da9fbb6328ae9fe55deb5
Fixes: 62382787
Test: StorageManager robotest
/packages/apps/StorageManager/src/com/android/storagemanager/automatic/NotificationController.java
b8047c838a5e4dcd50606a316820990608744a0f 09-May-2017 Daniel Nishi <dhnishi@google.com> Fix notification bug.

It turns out Build.VERSION_CODES.O is way bigger than SDK_INT even when
the phone is running Android O. By changing the check to use the
BuildCompat.isAtLeastO, we can make the correct code path run for O and
for the N/older tests.

Change-Id: Ic1fd4a63489433e27cc1c8699f99d000da3821fd
Fixes: 38046697
Test: Manual -- existing robotests still pass.
/packages/apps/StorageManager/src/com/android/storagemanager/automatic/NotificationController.java
7dd8d56e89c4b0fb40673817d1470df9ca936b3f 19-Apr-2017 Daniel Nishi <dhnishi@google.com> Fix broken NotificationController robotests.

Because we are now using the O-feature NotificationChannels and this
feature isn't in Robolectric, it causes wackiness during the test run.

By guarding the setting of the NotificationChannel with Build.OS.Version
check, we can act like how an unbundled app does API version detection.

Bug: 37481810
Test: StorMan Robotest actually passes.

Change-Id: I8790d341e97550235080e497e0840076e2d5f078
/packages/apps/StorageManager/src/com/android/storagemanager/automatic/NotificationController.java
98aa79e0379c527931a8438ac643c5671b5fc094 13-Apr-2017 Daniel Nishi <dhnishi@google.com> Use NotificationChannels in StorageManager.

Change-Id: I48d3456d93dd9858f5713552df182bcf71e82544
Fixes: 36535317
Test: All existing notification robotests still pass.
/packages/apps/StorageManager/src/com/android/storagemanager/automatic/NotificationController.java
438324179ac6fddbf01e1f32810bfd6399dfee9a 21-Feb-2017 Daniel Nishi <dhnishi@google.com> Make the NotificationController intents explicit.

This fixes a regression where the intents were not being
triggered.

Bug: 35624247
Test: StorageManager RoboTest
Change-Id: Ifee3860a5d3ec19bbd7af06bf4e8b2a58dde01a4
/packages/apps/StorageManager/src/com/android/storagemanager/automatic/NotificationController.java
8e460948582fb0e2ad5da7af65c17b0c40594ce3 02-Dec-2016 Daniel Nishi <dhnishi@google.com> Merge "Fix off-by-one error on ASM dismissal notification day count."
451b36800a0778cae24368680daf9162f3d52a64 30-Nov-2016 Daniel Nishi <dhnishi@google.com> Only show ASM activation notification locally.

Previously, it would show up on wearables. This confused users who
thought that the notification had to do with the wearable, rather
than their device.

BUG: 32311334
Test: Manual -- verify that the notification doesn't show up on watch.
Change-Id: I9a5aef0ac130ef2f38a965971b85a11ea6181ac9
/packages/apps/StorageManager/src/com/android/storagemanager/automatic/NotificationController.java
cd3d7da2c936698273f15c7cd0d2fbc97b8d291f 28-Nov-2016 Daniel Nishi <dhnishi@google.com> Fix off-by-one error on ASM dismissal notification day count.

The correct delay on dismissmal between ASM notifications is 14 days.
This was incorrectly coded as 15 days. This fix changes it from 15 days
to 14.

Bug: 32183602
Test: m RunStorageManagerRoboTests
Change-Id: Ia343b8280dd2109e0c556c7e71e94a448702fbf3
/packages/apps/StorageManager/src/com/android/storagemanager/automatic/NotificationController.java
9f6d7f00138afbb634fabf04d8dd67f6e86b60f5 17-Oct-2016 Daniel Nishi <dhnishi@google.com> Fix a bug where the storage manager notification showed too many times.

This occurred when the user dismisses the notification. An intent without
metadata was being used as the delete intent, causing the notification
controller to not increment its shown count.

Bug: 32183602
Test: StorageManager robotests
Change-Id: Ide3a038d475ef313a71b262419c8720c65fb140d
/packages/apps/StorageManager/src/com/android/storagemanager/automatic/NotificationController.java
89dab1a3b1434094cbc70958fb89f4e7f1765a10 28-Sep-2016 Daniel Nishi <dhnishi@google.com> Add a warning when activating the Storage Manager. am: 188e121805 am: abbb8e891a
am: 1571b845bb

Change-Id: I746aaded5806ad3892288283709c21b62e42fc7b
188e12180504369616c8df2c71c1d71610d32774 16-Sep-2016 Daniel Nishi <dhnishi@google.com> Add a warning when activating the Storage Manager.

When the Storage Manager would run, but is disabled, it
sends a notification to the user to prompt them to enable it.
If the user activates the Storage Manager, we need to display
a warning about what the storage manager may do.

Bug: 30455784
Change-Id: I244aca3e2d49ffc33af6a27bb928406bce824b02
/packages/apps/StorageManager/src/com/android/storagemanager/automatic/NotificationController.java
e78e5da8fc1ab72c8b86b4576f8c024a78da064d 25-Sep-2016 Andreas Gampe <agampe@google.com> resolve merge conflicts of 0e6d388 to master

Change-Id: I1345c4bf9254e54e6ce84e1924db1fd41e959e43
120c88c2376074b50d99002d0470e7804f7489d1 20-Sep-2016 Daniel Nishi <dhnishi@google.com> Show the storage settings when tapping on upsell notification.

Bug: 31621740
Test: com.android.storagemanager.automatic.DEBUG_SHOW_NOTIFICATION will show the notification for
manual testing.
Change-Id: Icbfb875a68cc8f2ce64730d40f541ec4ca975dbd
/packages/apps/StorageManager/src/com/android/storagemanager/automatic/NotificationController.java
5a23549a834c21f6d5c032ab69b5bb6e0ef702f5 17-Aug-2016 Daniel Nishi <dhnishi@google.com> Add unit tests for the NotificationController.

In bringing it under a test harness, I discovered and fixed a bug.
The NotificationController used to show the notification one more
times than its supposed max.

Bug: 30900642
Change-Id: I76596a4c14de1ccbe68a9343751ffe1bbdee9f0c
/packages/apps/StorageManager/src/com/android/storagemanager/automatic/NotificationController.java
73cc93fa4f4f1db641f9f3e695576fbe9c1c6f95 06-Jul-2016 Daniel Nishi <dhnishi@google.com> Add additional debug flags and intents for QA.

This adds a non-exported debug intent to show the ASM upsell
notification.
This also adds an override flag which allows a user to override
the ASM run duration.

Bug: 29873503
Change-Id: I996ba2605fbd0db9965cebe026bd3c7d307f0481
/packages/apps/StorageManager/src/com/android/storagemanager/automatic/NotificationController.java
150fe991513326fc349f0e5055dc6a871990c541 20-Jun-2016 Daniel Nishi <dhnishi@google.com> Add a notification to activate the automatic storage manager.

This notification allows users to activate the storage manager, if
it is turned off and the automatic job would have run had it been on.

Bug: 29510595

Change-Id: I564a3091dd5abb1001cd158d7b2cbca464390ea0
/packages/apps/StorageManager/src/com/android/storagemanager/automatic/NotificationController.java