summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Allow viewing content:// Uris from Downloads." into nyc-devTomasz Mikolajewski2016-05-111-4/+1
|\
| * Allow viewing content:// Uris from Downloads.Tomasz Mikolajewski2016-05-091-4/+1
| | | | | | | | | | Bug: 28476442 Change-Id: I12a35a2c35c16ddf899637dfb85c30006c169fd7
* | Scan completed downloads when requested.Jeff Sharkey2016-05-092-4/+17
|/ | | | | | | | | | The recent JobScheduler rewrite means we no longer spin up a service when insterting an already-completed download. However, the calling app may have requested the download to be scanned, so kick off a scan request for them. Bug: 28659693 Change-Id: I497e10995ba04f1522fe8d7e547ebea6e305f6e9
* Merge "Implemented onRestrictPowerChanged()." into nyc-devTreeHugger Robot2016-05-061-0/+6
|\
| * Implemented onRestrictPowerChanged().Felipe Leme2016-05-031-0/+6
| | | | | | | | | | BUG: 28521946 Change-Id: I31658e680e67da9e1a420a9749a67949cfe09689
* | Import translations. DO NOT MERGEBaligh Uddin2016-05-031-1/+1
| | | | | | | | | | | | | | Auto-generated-cl: translation import Bug: 28463229 Change-Id: If9046aa28360250cc5d2a5e646a10d2a7b666d43
* | Merge "Import translations. DO NOT MERGE" into nyc-devBaligh Uddin2016-05-0345-90/+45
|\ \ | |/ |/|
| * Import translations. DO NOT MERGEBaligh Uddin2016-05-0245-90/+45
| | | | | | | | | | Change-Id: I301fec6e93b48872a5031117de97e64de88df93d Auto-generated-cl: translation import
* | Merge "Add ability to rename a downloaded file." into nyc-devBen Lin2016-05-021-1/+20
|\ \ | |/ |/|
| * Add ability to rename a downloaded file.Ben Lin2016-04-291-1/+20
| | | | | | | | | | Bug: 28359663 Change-Id: Id74ab041717f553bbd81ab2f69b1b8fa0d4d230d
* | Visible downloads should run while blocked/dozing.Jeff Sharkey2016-04-296-22/+44
| | | | | | | | | | | | | | | | | | | | | | Downloads with visible notifications should behave as if the requesting app was running a foreground service. The easiest way to implement this for now is to ignore any BLOCKED network status and use the new setWillBeForeground() API so job scheduling ignores any active blocked/dozing status. Bug: 26571724 Change-Id: I8ea2b2a7cdb5f469adc11b4d897ff55bd8a9db9a
* | Import translations. DO NOT MERGEBill Yi2016-04-2680-0/+125
|/ | | | | Change-Id: Ic740947008131405afb202b6217b12d178896888 Auto-generated-cl: translation import
* Move DownloadManager to use JobScheduler.Jeff Sharkey2016-04-2523-1381/+827
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | JobScheduler is in a much better position to coordinate tasks across the platform to optimize battery and RAM usage. This change removes a bunch of manual scheduling logic by representing each download as a separate job with relevant scheduling constraints. Requested network types, retry backoff timing, and newly added charging and idle constraints are plumbed through as job parameters. When a job times out, we halt the download and schedule it to resume later. The majority of downloads should have ETag values to enable resuming like this. Remove local wakelocks, since the platform now acquires and blames our jobs on the requesting app. When an active download is pushing updates to the database, check for both paused and cancelled state to quickly halt an ongoing download. Shift DownloadNotifier to update directly based on a Cursor, since we no longer have the overhead of fully-parsed DownloadInfo objects. Unify a handful of worker threads into a single shared thread. Remove legacy "large download" activity that was thrown in the face of the user; the UX best-practice is to go through notification, and update that dialog to let the user override and continue if under the hard limit. Bug: 28098882, 26571724 Change-Id: I33ebe59b3c2ea9c89ec526f70b1950c734abc4a7
* Merge "Implemented onRestrictBackgroundWhitelistChanged()." into nyc-devTreeHugger Robot2016-04-201-0/+6
|\
| * Implemented onRestrictBackgroundWhitelistChanged().Felipe Leme2016-04-191-0/+6
| | | | | | | | | | BUG: 27481520 Change-Id: I84db23b62f60dadefc01ead78f13ed689943baad
* | Tidy up uses of Integer.valueOf.Narayan Kamath2016-04-191-1/+1
|/ | | | | | | | Use parseInt when the result is assigned to an int. Allocates fewer objects. bug: 28078871 Change-Id: I2c58112795fecce6395c558f2bb1e1fefe83a5bf
* Extra comments for multinetwork downloadingRobin Lee2016-04-081-0/+4
| | | | | Bug: 27074270 Change-Id: I7145fcdf0c8af0f0c299ca491f01eaef6204e2cb
* Merge "Implement multi-network downloads" into nyc-devRobin Lee2016-04-074-1/+27
|\
| * Implement multi-network downloadsRobin Lee2016-04-074-1/+27
| | | | | | | | | | | | | | | | | | Downloads should use the default network for the caller. This prevents applications from, for example, bypassing VPN by routing all requests through the DownloadProvider. Bug: 27074270 Change-Id: I7830226dd2910757d3a5c78f373330f84637ccfa
* | Remove stale download notifications.Jeff Sharkey2016-04-041-3/+5
| | | | | | | | | | Bug: 27971263 Change-Id: Ia68d43828ecc32c1b6a656a0d3bb751b2a2e7881
* | Avoid flashing download notifications.Jeff Sharkey2016-03-302-3/+14
| | | | | | | | | | | | | | | | | | When service starts, use new API to read the current set of notification tags from the system instead of clearing and starting from scratch. Bug: 27634130 Change-Id: I049fe5e445a62a52042d7638c2cb50417977435f
* | Add tag to downloadprovider storage tests to run in apctMd Haque2016-03-241-0/+2
|/ | | | Change-Id: I9b2711c2a9b3edd4bbef97ff6cdcae9fdc9ef433
* Remove chmod(0644) for finished downloads.Jeff Sharkey2016-03-211-6/+0
| | | | | | | | | | Now that PackageInstaller can read APKs from content:// Uris, we don't need to make downloads world-readable. This is mostly just cleanup, since our top-level private data directory is no longer o+x, so other apps can't traverse in anyway. Bug: 5464052 Change-Id: I45de6a40c28b85c64d5afbc13068fe3ae8341d93
* Import translations. DO NOT MERGEGeoff Mendal2016-03-196-25/+141
| | | | | Change-Id: I01c4bc11d7a9723a5017aed032d8f8eefe5d4254 Auto-generated-cl: translation import
* Mark incomplete downloads as partial.Steve McKay2016-03-151-1/+3
| | | | | Bug: 27526321 Change-Id: Ic29bc235242a8b87ab8321ee201cb7918594366f
* Remove the Downloads launcher icon.Steve McKay2016-03-102-51/+0
| | | | | | | And the intent filter for "BROWSE_DOWNLOADS". Bug: 27563427 Change-Id: I22e8cbbd49c9d2317146d18d90b15549dadfc69f
* DO NOT MERGE. Use resolved path when inserting and deleting. am: ebb842e081 ↵Jeff Sharkey2016-02-180-0/+0
|\ | | | | | | | | | | | | | | | | am: 0a60a939e0 am: 725e5f177d am: c331875759 -s ours * commit 'c3318757591bff1c92bf547c9cdb9d76a17fe107': DO NOT MERGE. Use resolved path when inserting and deleting.
| * DO NOT MERGE. Use resolved path when inserting and deleting. am: ebb842e081 ↵Jeff Sharkey2016-02-180-0/+0
| |\ | | | | | | | | | | | | | | | | | | | | | | | | am: 0a60a939e0 am: 725e5f177d * commit '725e5f177d75a37e7ed5b27a99405d1b5fa479dd': DO NOT MERGE. Use resolved path when inserting and deleting.
| | * DO NOT MERGE. Use resolved path when inserting and deleting. am: ebb842e081Jeff Sharkey2016-02-180-0/+0
| | |\ | | | | | | | | | | | | | | | | | | | | | | | | am: 0a60a939e0 * commit '0a60a939e00a386f65a48288d8d9a4c7213e2707': DO NOT MERGE. Use resolved path when inserting and deleting.
| | | * DO NOT MERGE. Use resolved path when inserting and deleting.Jeff Sharkey2016-02-180-0/+0
| | | |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ebb842e081 * commit 'ebb842e081f2d9eddbeddb9447631fd81e8961b9': DO NOT MERGE. Use resolved path when inserting and deleting.
| | | | * DO NOT MERGE. Use resolved path when inserting and deleting.Jeff Sharkey2016-02-161-5/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This avoids a race condition where someone can change a symlink target after the security checks have passed. Bug: 26211054 Change-Id: I40ed6d2298e4b66b4f7a055e68d9820515adf351
* | | | | DO NOT MERGE. Use resolved path when inserting and deleting. am: 600d3afcc3 ↵Jeff Sharkey2016-02-180-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: dee8c810c8 am: 38e585c615 -s ours * commit '38e585c61518c5a9a08c9288ca15f97fdd9339d6': DO NOT MERGE. Use resolved path when inserting and deleting.
| * | | | DO NOT MERGE. Use resolved path when inserting and deleting. am: 600d3afcc3Jeff Sharkey2016-02-180-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: dee8c810c8 * commit 'dee8c810c8edbb90e43db69a4ed1b7d2ee375d07': DO NOT MERGE. Use resolved path when inserting and deleting.
| | * | | DO NOT MERGE. Use resolved path when inserting and deleting.Jeff Sharkey2016-02-181-5/+15
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 600d3afcc3 * commit '600d3afcc3cbe2a9c3f44eda66bec806709c20e8': DO NOT MERGE. Use resolved path when inserting and deleting.
| | | * | DO NOT MERGE. Use resolved path when inserting and deleting.Jeff Sharkey2016-02-161-5/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This avoids a race condition where someone can change a symlink target after the security checks have passed. Bug: 26211054 Change-Id: Ia58425ab71c1472dd2f2dd31dae000ca29d0bcb2
* | | | | Merge "DO NOT MERGE. Use resolved path when inserting and deleting." into ↵Jeff Sharkey2016-02-180-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | mnc-dr1.5-dev am: 102cab3e7d -s ours * commit '102cab3e7deee3392a4d4bf818fabc527db0a222': DO NOT MERGE. Use resolved path when inserting and deleting.
| * | | | Merge "DO NOT MERGE. Use resolved path when inserting and deleting." into ↵Jeff Sharkey2016-02-181-5/+15
| |\ \ \ \ | | | | | | | | | | | | | | | | | | mnc-dr1.5-dev
| | * | | | DO NOT MERGE. Use resolved path when inserting and deleting.Jeff Sharkey2016-02-161-5/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This avoids a race condition where someone can change a symlink target after the security checks have passed. Bug: 26211054 Change-Id: I03b06b746fde5d08d6b61a7011bdace0b4e9fa77
* | | | | | Use resolved path for both checking and opening.Jeff Sharkey2016-02-082-10/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This avoids a race condition where someone can change a symlink target after the security checks have passed. Bug: 26211054 Change-Id: I5e1a2343d631109c21a4c5b2d8d00b2946756680
* | | | | | Import translations. DO NOT MERGEGeoff Mendal2016-02-082-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I35e75084e916075407d7165b852db6ffe4adb74b Auto-generated-cl: translation import
* | | | | | Import translations. DO NOT MERGEGeoff Mendal2016-02-032-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I276e0dbc146c36d68742072d751c065b6615b457 Auto-generated-cl: translation import
* | | | | | Merge "Migrate the DownloadProvider's trampoline to use SAF Uris."Tomasz Mikolajewski2016-02-031-4/+7
|\ \ \ \ \ \
| * | | | | | Migrate the DownloadProvider's trampoline to use SAF Uris.Tomasz Mikolajewski2016-02-031-4/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I551f830637e023f810a08ba549ecbb7f717b4e9c
* | | | | | | Merge "Always return FLAG_ARCHIVE for archives in DownloadProvider."Tomasz Mikolajewski2016-02-031-7/+6
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | |
| * | | | | | Always return FLAG_ARCHIVE for archives in DownloadProvider.Tomasz Mikolajewski2016-02-021-7/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The logic for manage/non-manage UI is moved to DocumentsUI. Bug: 26321218 Change-Id: I1c9d24bdee493d31fe3bcea2eed877529bc1c32a
* | | | | | | Merge "Import translations. DO NOT MERGE" into mnc-dr2-dev am: dcd74a8a54 ↵Geoff Mendal2016-02-020-0/+0
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | -s ours am: b5d459abb5 -s ours * commit 'b5d459abb522571a5feab1da879c93a2e223db18': Import translations. DO NOT MERGE
| * \ \ \ \ \ \ Merge "Import translations. DO NOT MERGE" into mnc-dr2-devGeoff Mendal2016-02-020-0/+0
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: dcd74a8a54 -s ours * commit 'dcd74a8a549ee25bc4dc9730ba660096e7d88d40': Import translations. DO NOT MERGE
| | * \ \ \ \ \ \ Merge "Import translations. DO NOT MERGE" into mnc-dr2-devGeoff Mendal2016-02-0285-711/+758
| | |\ \ \ \ \ \ \
| | | * | | | | | | Import translations. DO NOT MERGEGeoff Mendal2016-02-0285-711/+758
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I00e3bb8163e5dc0ef484496fcd5026c2f5122e7a Auto-generated-cl: translation import
* | | | | | | | | | Import translations. DO NOT MERGE am: b24f46b8ae -s ours am: 8a199896cb -s ↵Geoff Mendal2016-02-020-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ours am: a829521e3c -s ours * commit 'a829521e3c385f441e5c805b0868a9eb45b89b39': Import translations. DO NOT MERGE