History log of /packages/apps/StorageManager/src/com/android/storagemanager/automatic/AutomaticStorageManagementJobService.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
01a81f3502750035b8eabb6a053a61bfae4d768e 09-Jun-2017 Daniel Nishi <dhnishi@google.com> Add in ASM activation expiration by policy.

If a policy dictates that ASM needs to be turned off by a certain date,
the StorageManagementJobProvider can provide this date. In this case, we
disable ASM once. If ASM is re-activated, we do not turn it off again by
policy.

Bug: 62106274, 35698183
Test: StorageManager robotests
Change-Id: I18cb888ebe49908502a449990c1eb7adb6bccfcf
/packages/apps/StorageManager/src/com/android/storagemanager/automatic/AutomaticStorageManagementJobService.java
de1d5aa53ee4ad5d0410dd6f73ac9ce73ce7bd7d 24-May-2017 Daniel Nishi <dhnishi@google.com> Use the default days from config for running ASM.

Bug: 38499322
Test: SettlingsLib robotest / Manual
Change-Id: Ie71a1644a4e18ce677ccedbda48ef36ba89a70f8
/packages/apps/StorageManager/src/com/android/storagemanager/automatic/AutomaticStorageManagementJobService.java
14d916e807ac8a55c9b96f204d2a8b4302dc7819 12-Sep-2016 Daniel Nishi <dhnishi@google.com> Fix a bug where multiple private volumes caused inaccuracies.

Settings and the Storage Manager used slightly different calculations
for the total amount of space and the amount of space remaining. By
moving to a unified calculation, the ASM will run at the expected %
shown in storage Settings.

Bug: 30895163
Test: m RunStorageManagerRoboTests
Change-Id: I81aa15be953c2950692b5d7a7c7ec2943c18edb5
/packages/apps/StorageManager/src/com/android/storagemanager/automatic/AutomaticStorageManagementJobService.java
e73feb8ae6e8dde5527e71ae0d9184f545721f2f 24-Aug-2016 Daniel Nishi <dhnishi@google.com> Fix a ASMJobService test regression.

This test regressed because the showing of the notification went from
synchronous to asynchronous. Instead of calling a static method to maybe
show the notification, an intent is fired instead.

By testing to see if the correct intent is fired instead, we can avoid a
race condition-y test.

Bug: 30900642
Test: make RunStorageManagerRoboTests
Change-Id: Ib2e248052669e117fc8baf04785bb066d6f81a92
/packages/apps/StorageManager/src/com/android/storagemanager/automatic/AutomaticStorageManagementJobService.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/AutomaticStorageManagementJobService.java
0e2217409a7b25075ce71368eb6c1b475ef0ae63 12-Jul-2016 Daniel Nishi <dhnishi@google.com> resolve merge conflicts of 0d7faa3 to master

Change-Id: I16fd48e58c101575061d48674441ace26de6e8a3
5cb1eac9e774975c25bca7a89d281a22e6e816a7 11-Jul-2016 Daniel Nishi <dhnishi@google.com> Fix a bug where the job never runs unless manually triggered.

This bug is a result of misunderstanding the idle mode check.
Due to the quirks of the JobScheduler, we need to check the
preconditions every time the job runs. Thus, the job checked
if the system was idle.

The catch is that the system is not technically idle when
running idle jobs, as per PowerManager.isDeviceIdleMode().
Because we are scheduled during that window, the job never
actually runs.

Bug: 30034478
Change-Id: Ic6fa9922e372256a55a977a371e6e853ef877307
/packages/apps/StorageManager/src/com/android/storagemanager/automatic/AutomaticStorageManagementJobService.java
8571a3492b75ff2487c49ecedf3dd0d0d3a76b95 09-Jul-2016 Jorge Gil <jorgegil@google.com> Add DownloadsBackupJobService

Check that downloads backup is enabled and that device is on wifi, idle and
charging. If all conditions are met, a new backup job provider is started.

Bug: 29829743
Change-Id: I53d5b18902bf6d7a0ec5427ed9dd237047933614
/packages/apps/StorageManager/src/com/android/storagemanager/automatic/AutomaticStorageManagementJobService.java
a34e5fe27a718bb1d3d6742bf3c5139dfffc50ca 08-Jul-2016 Daniel Nishi <dhnishi@google.com> Double check the pre-conditions at the start of an storage job.

This is because the JobScheduler's periodic jobs do not necessarily
check if the conditions are met -- only for the first run.

Bug: 29943987
Change-Id: Ic54a6b269105facb0cba87b82f7cc373f346a10d
/packages/apps/StorageManager/src/com/android/storagemanager/automatic/AutomaticStorageManagementJobService.java
3cffeafab8a721ba4a81c398d37ae5b773bb0240 25-Jun-2016 Daniel Nishi <dhnishi@google.com> Track the last time the storage management job has run.

Bug: 29643106
Change-Id: I381d0a412ca016360ec5067949bf57e2cd0a88d7
/packages/apps/StorageManager/src/com/android/storagemanager/automatic/AutomaticStorageManagementJobService.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/AutomaticStorageManagementJobService.java
c7b50b8e97faceb2096d5606aac5b0c736bded9e 03-Jun-2016 Daniel Nishi <dhnishi@google.com> Port over storage management jobs from Settings.

This ports over an automatic storage management job which can
be periodically run over the system to clear out storage.

Bug: 28965462
Change-Id: Ic7578da9fd33ded66959472d3fa2384ce3c12d0f
/packages/apps/StorageManager/src/com/android/storagemanager/automatic/AutomaticStorageManagementJobService.java