summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Download dir: /data/data/com.android.providers.downloads/cache NOT /cacheVasu Nori2010-12-147-25/+80
| | | | | | | | | | bug:3264401 still to do: make sure only N bytes are taken up by downloads dir N = a value specific to each device. default = 100MB. Change-Id: I2a49f4b3831d3a8d7be13b5fd46d85d56e831e38
* am bf04a04e: am ee39528f: reconcile with open-source gingerbreadJean-Baptiste Queru2010-12-100-0/+0
|\ | | | | | | * commit 'bf04a04e2022673c08617ad9dbb2522da2e87a8e':
| * am ee39528f: reconcile with open-source gingerbreadJean-Baptiste Queru2010-12-100-0/+0
| |\ | | | | | | | | | * commit 'ee39528f004afeb45883e32daf3fbd5a698b8a05':
| | * reconcile with open-source gingerbreadJean-Baptiste Queru2010-12-090-0/+0
| | |\ | | | | | | | | | | | | Change-Id: I6a6553f8e89f576cf21ee0fb0cba62479f96f2b3
* | | | fix broken DownloadManager testsVasu Nori2010-12-097-31/+207
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | one big change in this CL is addition of a new feature to MockWebServer. It can now play a long response to the Downloading thread to keep it busy while something - such as cancel/remove - can be done to that Download Request. Also, added changes to FakeSystemFacade to start threads in normal fashion instead of queuing them up and later running just their run() methods. the following tests should work now packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/ DownloadManagerFunctionalTest.java PublicApiFunctionalTest.java ThreadingTest.java PublicApiAccessTest.java DownloadProviderPermissionsTest.java the following are flaky. they need to be split up into smaller tests. frameworks/base/core/tests/coretests/src/android/app/ DownloadManagerIntegrationTest.java DownloadManagerStressTest.java Change-Id: Ia0b11963f92e8f8365f701761dcbce467be3ee9b
* | | | am 79595ec9: am 5ad8a55c: merge from gingerbreadJean-Baptiste Queru2010-12-090-0/+0
|\| | | | | | | | | | | | | | | | | | | * commit '79595ec955da98510746ff2fa0ea47dc3d874012': Don't filter by UID for apps with ACCESS_ALL_DOWNLOADS
| * | | am 5ad8a55c: merge from gingerbreadJean-Baptiste Queru2010-12-090-0/+0
| |\ \ \ | | | | | | | | | | | | | | | | | | | | * commit '5ad8a55c2a74f855fd4530e98147059206b7b2b0': Don't filter by UID for apps with ACCESS_ALL_DOWNLOADS
| | * \ \ merge from gingerbreadJean-Baptiste Queru2010-12-091-1/+3
| | |\ \ \ | | | | |/ | | | |/| | | | | | Change-Id: I38873b898f431d1815ead588807a00068a7e802c
| | | * | Don't filter by UID for apps with ACCESS_ALL_DOWNLOADSKenny Root2010-12-091-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Old platform behavior of DownloadProvider would allow anyone with special access to access all the downloads. New behavior is to return /my_downloads/ on an .insert() call. For things that aren't using the new API where DownloadInfo.getAllDownloadsUri() is accessible, make any application with ACCESS_ALL_DOWNLOADS permission bypass the calling UID check for /my_downloads/ Bug: 3242328 Change-Id: I4d7dae75c528d2803d594c5d79d19865ef37ed30
* | | | | am bf7c06b5: am 5bbe15ed: downloads broken by Change-Id: ↵Vasu Nori2010-12-060-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I115b3ba6cfe0262269dbbc4c336b9e1d63c618e4 * commit 'bf7c06b57a99bd9be0c8edc20b05f5eadbe02030': downloads broken by Change-Id: I115b3ba6cfe0262269dbbc4c336b9e1d63c618e4
| * | | | am 5bbe15ed: downloads broken by Change-Id: ↵Vasu Nori2010-12-041-1/+1
| |\ \ \ \ | | | |_|/ | | |/| | | | | | | | | | | | | | | | | | | | | | I115b3ba6cfe0262269dbbc4c336b9e1d63c618e4 * commit '5bbe15ed66d72dcab0ef133b9d237bba28cd6d98': downloads broken by Change-Id: I115b3ba6cfe0262269dbbc4c336b9e1d63c618e4
| | * | | downloads broken by Change-Id: I115b3ba6cfe0262269dbbc4c336b9e1d63c618e4Vasu Nori2010-12-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | big typo in that CL broke the downloading functionality. Change-Id: If7dc0f86ea7a3c4394603416ca0fc33847f10fa7
* | | | | manually merging Change-Id: If7dc0f86ea7a3c4394603416ca0fc33847f10fa7Vasu Nori2010-12-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | need this CL from GB. without it, downloads are badly broken in master. Change-Id: I82ebc467f877bed50e373c437481ad19e14635bf
* | | | | Merge "bug:3144642 fix is to treat empty strings as nulls"Vasu Nori2010-12-021-46/+18
|\ \ \ \ \
| * | | | | bug:3144642 fix is to treat empty strings as nullsVasu Nori2010-12-021-46/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | in the database, sometimes _data column in downloads is set to null and sometimes to empty string. this is inconsistent and causes bugs such as bug:3144642 aThis bug is caused by line# 793 in DownloadThread. state.mFileName is null sometimes and empty string sometimes - because the correspodning field is set inconsistentlt in downloads.db _data column. Change-Id: Ifea1544737023008eff44aef9acd976902a0c143
* | | | | | am 084c3dc3: am 26f86843: Merge "(GB MR) bug:3144642 temporary small fix in ↵Vasu Nori2010-12-021-1/+1
|\ \ \ \ \ \ | | |/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | GB MR and real fix in HC" into gingerbread * commit '084c3dc34ed9e6ae9ddc471819de0d6d55021dfd': (GB MR) bug:3144642 temporary small fix in GB MR and real fix in HC
| * | | | | am 26f86843: Merge "(GB MR) bug:3144642 temporary small fix in GB MR and ↵Vasu Nori2010-12-021-1/+2
| |\ \ \ \ \ | | | |/ / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | real fix in HC" into gingerbread * commit '26f86843f48b3d7878837a1a9f93865b3eba0aee': (GB MR) bug:3144642 temporary small fix in GB MR and real fix in HC
| | * | | | Merge "(GB MR) bug:3144642 temporary small fix in GB MR and real fix in HC" ↵Vasu Nori2010-12-021-1/+2
| | |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | into gingerbread
| | | * | | | (GB MR) bug:3144642 temporary small fix in GB MR and real fix in HCVasu Nori2010-12-021-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Real fix is in Change-Id: Ifea1544737023008eff44aef9acd976902a0c143 In the database, sometimes _data column in downloads is set to null and sometimes to empty string. this is inconsistent and causes bugs such as bug:3144642. This bug is caused by line# 793 in DownloadThread. state.mFileName is null sometimes and empty string sometimes - because the correspodning field is set inconsistentlt in downloads.db _data column. in GB MR, apply a bandaid because real fix could be too risky for GB. Change-Id: I115b3ba6cfe0262269dbbc4c336b9e1d63c618e4
* | | | | | | Rename Indonesian and Hebrew translations to match Locale.java conventionsEric Fischer2010-12-022-0/+0
| |_|_|/ / / |/| | | | | | | | | | | | | | | | | Change-Id: Ib1e73afe5daa389177da8f3614761364ae6bcc26
* | | | | | am 5ec56824: (-s ours) am 6ae8b6ef: Merge "Import revised translations. DO ↵Eric Fischer2010-12-010-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | NOT MERGE" into gingerbread * commit '5ec5682406244769bc4fb552e2e47757194e55e0': Import revised translations. DO NOT MERGE
| * | | | | am 6ae8b6ef: Merge "Import revised translations. DO NOT MERGE" into gingerbreadEric Fischer2010-12-0138-150/+133
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '6ae8b6efc5ce136b95c062268f12624b85332b6d': Import revised translations. DO NOT MERGE
| | * | | | Merge "Import revised translations. DO NOT MERGE" into gingerbreadEric Fischer2010-12-0138-150/+133
| | |\ \ \ \ | | | |/ / / | | |/| | |
| | | * | | Import revised translations. DO NOT MERGEEric Fischer2010-12-0138-150/+133
| | | | |/ | | | |/| | | | | | | | | | | | | | | | | | | | | Bug 3245452 Change-Id: Ie2e81528c7a16dce5350f5d6845c8b4c0da15f96
* | | | | am 5c29cce0: am e1823c84: Don\'t filter by UID for apps with ↵Kenny Root2010-12-011-1/+3
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ACCESS_ALL_DOWNLOADS * commit '5c29cce0bac00a7a32cd92210825a789e140cf94': Don't filter by UID for apps with ACCESS_ALL_DOWNLOADS
| * | | | am e1823c84: Don\'t filter by UID for apps with ACCESS_ALL_DOWNLOADSKenny Root2010-12-011-1/+3
| |\| | | | | |_|/ | |/| | | | | | | | | | * commit 'e1823c84698006aa26a8c5dcfa5c4034858dfbe3': Don't filter by UID for apps with ACCESS_ALL_DOWNLOADS
| | * | Don't filter by UID for apps with ACCESS_ALL_DOWNLOADSKenny Root2010-12-011-1/+3
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Old platform behavior of DownloadProvider would allow anyone with special access to access all the downloads. New behavior is to return /my_downloads/ on an .insert() call. For things that aren't using the new API where DownloadInfo.getAllDownloadsUri() is accessible, make any application with ACCESS_ALL_DOWNLOADS permission bypass the calling UID check for /my_downloads/ Bug: 3242328 Change-Id: I536fde4525dd74066879f7c7da7fa609ff344645
* | | Move icons to mipmap.Ying Wang2010-11-233-1/+1
| | | | | | | | | | | | Change-Id: I0d541c99b413ba8124abe307b81fe35fdf0fe610
* | | Import initial translations for 20 new locales.Eric Fischer2010-11-1720-0/+1240
| | | | | | | | | | | | Change-Id: I1837f21d4369070e4ba167f8cab45f6df1daa037
* | | fix permissions when accessing downloads thru various Uri'sVasu Nori2010-11-161-4/+4
| | | | | | | | | | | | | | | | | | fixes this bug bug:3169457 also Change-Id: I0f60333361c5c399c64faa2d497038530064bef0
* | | provider changes due to CL: Ief1693785f0484c1b434fb41a68693f9aff96492Vasu Nori2010-11-121-2/+6
| | | | | | | | | | | | Change-Id: I8940778292d0a9166cfcfb92d37ea568b8f6ceef
* | | simplify actions to perform when user clicks on delete in download appVasu Nori2010-11-121-26/+4
| | | | | | | | | | | | | | | | | | | | | | | | bug:3175143 let downloadservice do the cleanup from all dataases and also let it handle removal of the file from the sdcard. Change-Id: I12eb8458223228109f1340552009d400b070bf54
* | | when a download fails, store the error msg in dbVasu Nori2010-11-112-9/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | useful for debugging for bugs like bug:3187299 without this error message, one doesn't know WHY downloads fail. to prevent PII info in database, there is a STOPSHIP comment around storage of this error message in database. Change-Id: I612e383aef8483b68b772f70dff722a5daea2ef5
* | | Import revised translations.Eric Fischer2010-11-0938-150/+133
| | | | | | | | | | | | Change-Id: Ic0c8d1b205c495bbcaccf3141abcbc1d14e6ea42
* | | if any exceptions encountered while trimming downloads db, ignore 'em.Vasu Nori2010-11-091-20/+33
| | | | | | | | | | | | | | | bug:3176990 Change-Id: I182331cbd63b6524a18d19e4d8567210886f8c16
* | | allow the column "scanned" from DownloadManager. bug:3169437Vasu Nori2010-11-051-0/+1
| | | | | | | | | | | | Change-Id: I96f0b51295611b67735c1b726bcd46bbeaa90613
* | | changes to support CL: I1f5dd734e394db0056579a3a0c26862fee27981eVasu Nori2010-11-043-2/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. if an application designates a downloaded file to be mediascanner scannable or not, store that fact in database. 2. use the above to determine whether a file shoudl be mediascanned or not in DownloadService 3. implement code to return mimetype for the new Uri "/public_downloads" introduced in CL: I1f5dd734e394db0056579a3a0c26862fee27981e Change-Id: I5c062ad6d1b58306044cee49ff3827e908d27fd9
* | | downloadmanager public API usage can cause non-scanning of media filesVasu Nori2010-11-031-1/+2
| | | | | | | | | | | | | | | bug:3162073 Change-Id: I13b80fedd7658c8574f33b43b74b5aa28a2895bc
* | | in DM public API, sending notifications on clicks should include dataVasu Nori2010-11-011-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | receiving application needs to know WHAT items the clicks occurred on - not just the fact that *something* was clicked on. this is duplicating the behavior as it exists today in the non-public API. depends on Change-Id: Ibe53ccd9934c73175459e42e3d417eee69ae6735 Change-Id: I924f85bd5faf443ac5648839b68390ec4de1f677
* | | make sure filename is non-null before delting it.Vasu Nori2010-10-292-26/+24
| | | | | | | | | | | | | | | | | | | | | if a download fails for some reason, then filename could be null. move Helpers.deleteFile() code into private method in DownloadService Change-Id: Ifb12a84b6185e19c70d62392e102950c07f56a01
* | | when using DM public API, allow duplicate downloads of same fileVasu Nori2010-10-281-10/+12
| | | | | | | | | | | | | | | | | | | | | bug:3132790 this mimics the behavior that exists today (in non-public API) Change-Id: I722b3bc23fe8c9b0bf66a088c5f6a3130be2129f
* | | Merge "Import revised translations."Eric Fischer2010-10-2740-442/+1199
|\ \ \
| * | | Import revised translations.Eric Fischer2010-10-2740-442/+1199
| | | | | | | | | | | | | | | | Change-Id: I0560d6ae179ababe74f53d3b937b8c53b674451b
* | | | Merge "reduce number of times mediascanner is invoked by downloadservice"Vasu Nori2010-10-271-13/+15
|\ \ \ \ | |/ / / |/| | |
| * | | reduce number of times mediascanner is invoked by downloadserviceVasu Nori2010-10-261-13/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | this is one of the 2 bugs mentioned in bug:3129943 sometimes MediaProvider returns null for returned param Uri. in such cases, mark the file as 'scanned' in the downloads db so that it is NOT scanned again later by DownlaodService. depends on Change-Id: I92514e1a11f5119229c0c7292e410e352a9dbcdd Change-Id: Ie9d839581f656c929a77bd5f244ad6b2fb1585e6
* | | | Merge "allow run-time verbose debugging option on downloadmanager code."Vasu Nori2010-10-271-2/+2
|\ \ \ \
| * | | | allow run-time verbose debugging option on downloadmanager code.Vasu Nori2010-10-271-2/+2
| |/ / / | | | | | | | | | | | | | | | | | | | | otherwise, one has to recompile and reflash to get debug output Change-Id: I1d89d7cca3363fa793f74ba805136667e1ce3091
* | | | am b2fb2046: (-s ours) am 6bc0865d: Import revised translations. DO NOT MERGEEric Fischer2010-10-270-0/+0
|\ \ \ \ | | |/ / | |/| |
| * | | am 6bc0865d: Import revised translations. DO NOT MERGEEric Fischer2010-10-274-5/+5
| |\ \ \ | | | |/ | | |/|
| | * | Import revised translations. DO NOT MERGEEric Fischer2010-10-264-5/+5
| | | | | | | | | | | | | | | | Change-Id: Iadedcf076f8bbe43d1864baf989b21d9d30f13f7