History log of /packages/providers/DownloadProvider/src/com/android/providers/downloads/DownloadIdleService.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
e24609e8f2aada5cb8ac1c3e93141b260e201efe 16-Oct-2014 Jeff Sharkey <jsharkey@android.com> Trim stale downloads from third-party apps.

Buggy third-party apps can enqueue lots of downloads and then
forget to remove them, causing DownloadManager to stop functioning.

This change removes any downloads that match _all_ of the following
conditions:

1. Download status is in a terminal (non-pending) state, usually a
concrete success or failure.
2. Download hasn't been touched in over a week.
3. Download is not visible in UI.

Bug: 17785419
Change-Id: Id82752fd6935371c1af682205d35f7ba35169473
/packages/providers/DownloadProvider/src/com/android/providers/downloads/DownloadIdleService.java
be3aa64469e8d1806250318808f79f41fb4c7cbd 17-Jun-2014 Christopher Tate <ctate@google.com> Transition the Download Service's cleanup work to a scheduled Job

...preparatory to finally removing the scratchpad "idle maintenance"
infrastructure from the product.

Bug 14993295

Change-Id: I1e84247de19e616910db1781b2c399a8b15a805c
/packages/providers/DownloadProvider/src/com/android/providers/downloads/DownloadIdleService.java
ad93688d65c6f5898a8b2e8b324d9e8adf39dd65 29-Apr-2014 Torne (Richard Coles) <torne@google.com> Fix reference to moved ErrnoException.

ErrnoException has moved to android.system; fix reference in
DownloadIdleService.

Change-Id: I8a08d3f8074d0ec5a4e8314db173139a109abb33
/packages/providers/DownloadProvider/src/com/android/providers/downloads/DownloadIdleService.java
1f2c2c560400ba60c5b9dfd6fd4f5e73b232803a 07-Feb-2014 Jeff Sharkey <jsharkey@android.com> Add idle service to clean orphan downloads.

Periodically reconcile database against disk contents. This handles
the case where a user/app deletes files directly from disk without
updating the database, and the rare case where a database delete
didn't make it to deleting the underlying file.

Also cleans up any downloads belonging to a UID when removed.

Bug: 12924143
Change-Id: I4899d09df7ef71f2625491ac01ceeafa8a2013ce
/packages/providers/DownloadProvider/src/com/android/providers/downloads/DownloadIdleService.java