Support for file URI destinations + last modified timestamp
authorSteve Howard <showard@google.com>
Tue, 13 Jul 2010 00:24:17 +0000 (17:24 -0700)
committerSteve Howard <showard@google.com>
Wed, 14 Jul 2010 18:33:17 +0000 (11:33 -0700)
commit6d9b98282c817b86a00f9c19a705da4cb19bc3a6
treed262513c211424ffcefa26440f3ee0d63e3b0849
parentf413bd5422d918872e576c1c0c3e0b9227f15304
Support for file URI destinations + last modified timestamp

File URI destinations:
* permission checking in DownloadProvider
* implementation in Helpers.generateSaveFile().  it's a fairly small
  amount of logic added here, but I did some significant method
  extraction to simplify this change and clean up the code in general.
* added test case

Last modified timestamp:
* made DownloadProvider use a SystemFacade for getting system time, so I could properly test timestamps
* updated test cases to cover last modified time + handle new ordering
src/com/android/providers/downloads/DownloadProvider.java
src/com/android/providers/downloads/Helpers.java
tests/src/com/android/providers/downloads/AbstractDownloadManagerFunctionalTest.java
tests/src/com/android/providers/downloads/PublicApiFunctionalTest.java