Visible downloads should run while blocked/dozing.
authorJeff Sharkey <jsharkey@android.com>
Thu, 28 Apr 2016 21:33:38 +0000 (15:33 -0600)
committerJeff Sharkey <jsharkey@android.com>
Fri, 29 Apr 2016 18:30:02 +0000 (12:30 -0600)
commitb3597b9d2fdde31bb0a8af821e3da3ca786e277b
tree375cd055478b96d305856e72b222e795decc1309
parent67db99b0fc55846a4fa6d4a134a0533426428e7f
Visible downloads should run while blocked/dozing.

Downloads with visible notifications should behave as if the
requesting app was running a foreground service.  The easiest way
to implement this for now is to ignore any BLOCKED network status
and use the new setWillBeForeground() API so job scheduling ignores
any active blocked/dozing status.

Bug: 26571724
Change-Id: I8ea2b2a7cdb5f469adc11b4d897ff55bd8a9db9a
src/com/android/providers/downloads/DownloadInfo.java
src/com/android/providers/downloads/DownloadThread.java
src/com/android/providers/downloads/Helpers.java
src/com/android/providers/downloads/RealSystemFacade.java
src/com/android/providers/downloads/SystemFacade.java
tests/src/com/android/providers/downloads/FakeSystemFacade.java