Cleaner thread management, less global state.
authorJeff Sharkey <jsharkey@android.com>
Sat, 12 Jan 2013 23:58:51 +0000 (15:58 -0800)
committerJeff Sharkey <jsharkey@android.com>
Tue, 29 Jan 2013 00:00:54 +0000 (16:00 -0800)
commit38648831a92295e9a11831e19e5a9dab4cbd939e
treefeed2c5d167c42d3a548a6e029372b278e2660e1
parente4b1f0ae43f169886d8d651a418e7f309e3e6f2f
Cleaner thread management, less global state.

Switch to using a ThreadPoolExecutor for handling downloads, which
gives us parallelism logic that is easier to reason about.  Also
open the door to eventually waiting until the executor is drained
to stopSelf().

Removes DownloadHandler singleton, and gives explicit path for
publishing active download speeds to notifications.

Change-Id: I1836e7742bb8a84861d1ca6bd1e59b2040bd12f8
src/com/android/providers/downloads/DownloadHandler.java [deleted file]
src/com/android/providers/downloads/DownloadInfo.java
src/com/android/providers/downloads/DownloadNotifier.java
src/com/android/providers/downloads/DownloadService.java
src/com/android/providers/downloads/DownloadThread.java