| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
* permission tests package should be signed with the same cert as
download provider itself
* permission tests should not target on itself
Change-Id: Ic4307119ed6c41cbffd98fe165ebc360e2b38c8e
|
|
|
|
| |
Change-Id: Ife165361ebd75d558b311710e62abdfbdc355f1b
|
|
|
|
|
|
|
|
|
|
| |
I refactored a lot of the logic from DownloadManagerFunctionalTest
into a new abstract class so that it could be shared with the new
PublicApiFunctionalTest. There could be even more sharing, but it's
not entirely clear it'd be worthwhile at this point. The new test
covers most features of the new public API.
Change-Id: I8c6859411f44b6430f8b348cf26a61225f5768cb
|
|
|
|
|
|
|
| |
The AnimatedImageView class was private and should not have been used.
When it was removed, the decision was made to change these to
unanimated images. The first frame will show, which should be good
enough, and it'll safe a bit of CPU.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Introduce SystemFacade, an interface that allows us to stub out the
system clock for testing the download manager. This allows us to test
retrying a failed download without having the test wait 60 seconds.
This interface can include other dependencies in the future as well.
I've also used this to add tests for 503 (retry-after) and 301
(redirect), and I've added a test for download to the cache partition.
Other changes:
* made MockWebServer capable of checking + rethrowing exceptions from child threads
* refactoring + cleanup of DownloadManagerFunctionalTest
|
|
|
|
| |
Change-Id: I76996b9a7b6d0f725480cacb1da032cec2dade0b
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This "Large" test sets up an HTTP server on the device using
MockWebServer and then initiates downloads from that server through
the download manager. It uses ServiceTestCase to control the
construction and execution of the DownloadService, and it uses some
logic from ProviderTestCase2 to construct a DownloadProvider and a
ContentResolver that uses it.
This setup gives us some ability to mock dependencies. This commit
includes use of a fake ConnectivityManager to test responses to
connectivity changes, and use of some customizations to MockWebServer
to test resuming an interrupted download. This test is disabled,
though, since it requires a very long sleep.
Avoiding that, and achieving certain other things, will require
changes to the Download Manager code itself to introduce new seams. I
wanted to check this in before I started such changes.
Change-Id: Iefb13b3c3cccdc13fabe5cc18703e13244805539
|
|\
| |
| |
| |
| |
| |
| |
| |
| | |
kraken
Merge commit '8fed41c37e52a3e186e8f36b18a0b6433278acd3' into gingerbread
* commit '8fed41c37e52a3e186e8f36b18a0b6433278acd3':
Don't inadvertantly include tests in the build.
|
| |\ |
|
| | |
| | |
| | |
| | | |
Change-Id: Ic57f0b66dd81da1b6acc7132f792b024e974f74c
|
|\| |
| | |
| | |
| | |
| | |
| | |
| | | |
Merge commit '4c54154c83a5b3516d81903140b31349f196cbe2' into gingerbread
* commit '4c54154c83a5b3516d81903140b31349f196cbe2':
Check in copies of MockWebServer + friends.
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This commit includes unmodified copies of MockWebServer and its
supporting classes, taken from
dalvik-dev:libcore/support/src/tests/java. My test will require some
changes, but I'm committing unchanged versions first so I can more
easily track my changes and eventually merge them back over.
Change-Id: Ic4b79c7a2cbd3bd439864ed94c43fe985eae8e78
|
|\ \
| |/
|/|
| |
| |
| |
| | |
Merge commit '09330001cc50f8a5ffe2ef527dbb5729080f52e2' into gingerbread
* commit '09330001cc50f8a5ffe2ef527dbb5729080f52e2':
Import revised translations
|
| |
| |
| |
| | |
Change-Id: I012450adc3ff91ce5cfbd28e21eed1aa6833c56f
|
|\ \
| |/
|/|
| | |
Change-Id: If84d4054324db6d10fd0cdbd2169c039c6675726
|
| |
| |
| |
| |
| |
| |
| | |
verified with lsof DownloadProvider after downloading a file shows:
${proc} 338 10034 33w REG 179,0 167634 5 /sdcard/download/fw4-1.pdf
Change-Id: I8e2412fe9a6348f5ece6f5ca3a9ebf99a4474bce
|
| |\ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The date was not set properly in notifications when the text for
expanded view was created.
This fix sets the displayed time to the download time for each
individual file. The DownloadProvider recreates the notifications
several times but don't set the time before the expanded message
is created. The expanded message will therefore display the time
the notification was created and not the time a file was downloaded.
The displayed time will in most case be the time when the last file
was downloaded. This fix sets the displayed time to the downloaded
time for each individual file.
|
| | |
| | |
| | |
| | | |
Change-Id: I800cdf6e7d34180e13d7af74abfe0887e1f20316
|
| | |
| | |
| | |
| | |
| | |
| | | |
Bug 2562721
Change-Id: I7dfd73d4e30fcc5dc80c9ed024432c0b833a011a
|
| | |
| | |
| | |
| | | |
Change-Id: Iac9bc801179d35cf266b6398c2c6557f5abc524e
|
| | |
| | |
| | |
| | | |
Change-Id: Idbb6ff1607b2885ed2da0749fc99b39f815fac15
|
| | | |
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | | |
persistent SSL session caching.
|
|\| |
| | |
| | |
| | |
| | |
| | |
| | | |
Merge commit '29ca9e3a63b63f71b0c4ab9544d0bd5361386751'
* commit '29ca9e3a63b63f71b0c4ab9544d0bd5361386751':
android-2.1_r1 snapshot
|
| |\ \
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Merge commit '7f75be7ea7027a2ad6e7564195333fd075c0b1a0' into eclair-plus-aosp
* commit '7f75be7ea7027a2ad6e7564195333fd075c0b1a0':
android-2.1_r1 snapshot
|
| | |\ \ |
|
| | |/| | |
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
applications to the SD card.
Necessary for http://b/issue?id=2384554
Also create names for files by default, so they do not display as
<Untitled>. Remove calls to createTitleFromFilename, which are
no longer necessary.
Requires a change to frameworks/base.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
The package name is hardcoded for now but will eventually move to a separate gid
guarded by a permission.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Takes advantage of two new download status codes (STATUS_DEVICE_NOT_FOUND_ERROR
and STATUS_INSUFFICIENT_SPACE_ERROR) when reporting failed download attempts.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This reverts commit 0f1aae327a9e4c68044d767e9bafbac747b6d985.
I misunderstood the bug. We do not want to be able to download
files for which there is currently no Activity to launch them.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Now that the downloads page is not necessarily opened when a download
starts, we need to provide a name even if the downloads page isn't
shown. So when we create a notification, provide the title.
Depends on a change to frameworks/base
|
| | | | |
| | | | |
| | | | |
| | | | | |
Fixes http://b/issue?id=2367247
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
The public API is getting deeply reworked for forward compatibility,
but since the Download Manager and the Browser need to continue using
the old API, a separate copy is being kept on the side.
Bug: 2245521
Change-Id: I85eff6ba9efc68600aa80e8dffa6720b0f2ed155
|
| | | | |
| | | | |
| | | | |
| | | | | |
Bug: #2361749.
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Its definition is moving to frameworks/base.
Change-Id: Ieb0409c458939c14e2cc8b5bdbcef14564a59c55
|
| | | | | |
|
|\| | | | |
|
| |\| | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Merge commit 'a61606af5d154cd6281bd5f5de9e01e7240cca53' into eclair-plus-aosp
* commit 'a61606af5d154cd6281bd5f5de9e01e7240cca53':
Import revised translations. DO NOT MERGE
|
|\ \ \ \ \
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
unbundling effort
Merge commit '313421638f1fa01bf269350fd32d4e4df8afbc5e'
* commit '313421638f1fa01bf269350fd32d4e4df8afbc5e':
Changed class paths for classes moved in unbundling effort
|
| |\ \ \ \ \
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Merge commit 'dc0accaaa66cdd7321505a8c42504b05a98ae341' into eclair-mr2-plus-aosp
* commit 'dc0accaaa66cdd7321505a8c42504b05a98ae341':
Changed class paths for classes moved in unbundling effort
|
| | | | | | | |
|
|\| | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
translations. DO NOT MERGE
Merge commit 'e88706b900716b2cfaa917efdd320e6bef7b21fa'
* commit 'e88706b900716b2cfaa917efdd320e6bef7b21fa':
Import revised translations. DO NOT MERGE
|
| |\| | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Merge commit 'b0033a369377c3cfba1121f7ed7941165cc1c415' into eclair-mr2-plus-aosp
* commit 'b0033a369377c3cfba1121f7ed7941165cc1c415':
Import revised translations. DO NOT MERGE
|
| | |\ \ \ \ \
| | | | |/ / /
| | | |/| | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Merge commit 'a61606af5d154cd6281bd5f5de9e01e7240cca53' into eclair-mr2
* commit 'a61606af5d154cd6281bd5f5de9e01e7240cca53':
Import revised translations. DO NOT MERGE
|