summaryrefslogtreecommitdiffstats
path: root/src/com/android
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'master' of ↵eclairSteve Kondik2010-05-102-4/+5
|\ | | | | | | | | | | | | git://android.git.kernel.org/platform/packages/providers/DownloadProvider into eclair Conflicts: src/com/android/providers/downloads/DownloadThread.java
| * code left opened files behindusul2010-05-101-1/+13
| | | | | | | | | | | | | | 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
| * Show correct date for downloads in the statusbarPer Edelberg2010-02-101-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * eclair snapshotJean-Baptiste Queru2009-11-129-472/+564
| |
* | Allow any file type to be downloadedEddie Ringle2010-04-242-62/+0
| | | | | | | | Signed-off-by: Eddie Ringle <eddie@eringle.net>
* | code left opened files behindusul2010-03-281-1/+11
| | | | | | | | | | | | | | 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
* | Don't try to purge the dalvik-cache directory on /cache.Steve Kondik2010-03-092-4/+7
| |
* | Disable unnecessary loggingJean-Baptiste Queru2009-09-241-3/+3
| | | | | | | | BUG=2134410
* | Re-use the same random value to compute a download's restart time.Jean-Baptiste Queru2009-09-241-1/+4
| | | | | | | | | | | | | | | | | | The restart time is used multiple times during the same pass, and it needs to be consistent across calls. Otherwise, it's possible for a download to not be restarted immediately and to not be scheduled for a future restart. BUG=2055624
* | Remove unnecessary loggingJean-Baptiste Queru2009-09-243-58/+3
| | | | | | | | | | | | | | Also tweak some slightly inaccurate logging, and add a note about a potential bug. BUG=2055624
* | Log the service being launchedJean-Baptiste Queru2009-09-221-0/+14
| | | | | | | | BUG=2055624
* | Add a bit more logging to track down network state issues.Jean-Baptiste Queru2009-09-223-11/+51
| | | | | | | | BUG=2055624
* | Add logging to track connectivity as seen from the Download Manager.Jean-Baptiste Queru2009-09-213-0/+41
| | | | | | | | | | | | | | This is enabled by a separate build-time constant, so that it can be turned on for everyone without having to use a system property. BUG=2055624
* | am d3403254: Enable full logging (for easier debugging)Jean-Baptiste Queru2009-07-141-1/+1
|\| | | | | | | | | | | | | Merge commit 'd3403254c3a290b6a68804c36c6876cb3787ec15' * commit 'd3403254c3a290b6a68804c36c6876cb3787ec15': Enable full logging (for easier debugging)
| * Enable full logging (for easier debugging)Jean-Baptiste Queru2009-07-141-1/+1
| | | | | | | | See http://b/1973844
* | Merge commit 'f0fa1cdc' into manualmergeJean-Baptiste Queru2009-07-062-2/+3
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix crash in discardPurgeableFiles with proper selection syntax. The basic crash is that this codepath was doing a query to the download provider without properly quoting its selection arguments (which is mandated by the download provider). A secondary crash is that the DESTINATION column wasn't readable. This fixes bug 1941125. Tested by force-calling discardPurgeableFiles for each download to /cache, locally adding a few debugging statements to be sure that the codepath was getting executed, and doing a market download. Conflicts: src/com/android/providers/downloads/DownloadProvider.java src/com/android/providers/downloads/Helpers.java
| * Fix crash in discardPurgeableFiles with proper selection syntax.Jean-Baptiste Queru2009-07-022-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The basic crash is that this codepath was doing a query to the download provider without properly quoting its selection arguments (which is mandated by the download provider). A secondary crash is that the DESTINATION column wasn't readable. This fixes bug 1941125. Tested by force-calling discardPurgeableFiles for each download to /cache, locally adding a few debugging statements to be sure that the codepath was getting executed, and doing a market download.
| * Automated import from //branches/donutburger/...@140733,140733Feng Qian2009-03-241-1/+1
| |
* | Merge commit 'korg/cupcake'The Android Open Source Project2009-03-271-6/+23
|\ \ | | | | | | | | | | | | Conflicts: src/com/android/providers/downloads/DownloadThread.java
| * | auto import from //branches/cupcake_rel/...@141571The Android Open Source Project2009-03-191-1/+1
| |/
| * auto import from //branches/cupcake_rel/...@140373The Android Open Source Project2009-03-181-7/+24
| |
* | Merge commit 'remotes/korg/cupcake' into mergeJean-Baptiste Queru2009-03-171-2/+2
|\| | | | | | | | | | | | | Conflicts: docs/index.html src/com/android/providers/downloads/DownloadProvider.java src/com/android/providers/downloads/DownloadService.java
| * auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-039-0/+3969
| |
| * auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-039-3969/+0
| |
| * auto import from //branches/cupcake/...@132276The Android Open Source Project2009-02-192-5/+4
| |
| * auto import from //branches/cupcake/...@130745The Android Open Source Project2009-02-101-8/+14
| |
* | Make the DownloadProvider work in the simulatorJean-Baptiste Queru2009-02-271-1/+2
| |
* | Optimize call to queryIntentActivities()Jean-Baptiste Queru2009-02-271-4/+2
| | | | | | | | | | | | | | | | Replace a call to queryIntentActivities() with a calls to resolveActivity(). This is done since the only purpose of the call is to check if the returned list is empty or non-empty. It's inefficient to move an entire list across the process boundary, only to discard it.
* | Refine interaction between destination and default visibility.Jean-Baptiste Queru2009-02-061-8/+14
| | | | | | | | | | | | The previous code was hard to read, and relied on the fact that one of the constants was 0 (which is also the default value when reading back uninitialized columns).
* | Force sync the downloaded file to the storage after completion.Dennis Hsieh2009-01-211-0/+15
| | | | | | | | | | | | This will write the downlaoded file to the storage (sdcard in default). It can prevent file corruption if the user removes the sdcard unsafely after a download completes.
* | Use the new download manager APIs introduced in change 7400Jean-Baptiste Queru2009-01-217-153/+173
| |
* | Match the official code style guide.Jean-Baptiste Queru2009-01-209-327/+341
|/ | | | | | This fixes a number of style violations that weren't caught by automated tools and brings those files closer to compliance with the official style guide for this language.
* Code drop from //branches/cupcake/...@124589The Android Open Source Project2008-12-178-462/+1074
|
* Initial ContributionThe Android Open Source Project2008-10-219-0/+3352