summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2012-10-24 17:18:32 -0700
committerJeff Sharkey <jsharkey@android.com>2012-10-24 17:33:06 -0700
commit2fa007ef678b2283d47d007aa3dc91af683cc52c (patch)
tree90b289d03a4aded4f7da35dfaee40c09a1dc27f8 /tests
parent169ab531ca6bb2f43ed18fe2b03f66c808f12b81 (diff)
downloadandroid_packages_providers_DownloadProvider-2fa007ef678b2283d47d007aa3dc91af683cc52c.zip
android_packages_providers_DownloadProvider-2fa007ef678b2283d47d007aa3dc91af683cc52c.tar.gz
android_packages_providers_DownloadProvider-2fa007ef678b2283d47d007aa3dc91af683cc52c.tar.bz2
Better sanity checking for finished downloads.
Downloads in the RUNNING state are considered ready to start so that downloads are correctly resumed when the process crashes. However, this causes a race condition while UpdateThread is processing a Cursor when a DownloadThread finishes. With this change, DownloadThread now skips requests for downloads already marked as finished. Apps listening for the DOWNLOAD_COMPLETE broadcast will no longer see data mutated by the second thread, and will not see the broadcast duplicated. Bug: 6948938, 6970458, 6818900 Change-Id: I35deac3cedbfe7f50091fab5818d85594dba558c
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions