summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Many improvements to download storage management.Jeff Sharkey2014-02-0618-1156/+1321
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change all data transfer to occur through FileDescriptors instead of relying on local files. This paves the way for downloading directly to content:// Uris in the future. Rewrite storage management logic to preflight download when size is known. If enough space is found, immediately reserve the space with fallocate(), advising the kernel block allocator to try giving us a contiguous block regions to reduce fragmentation. When preflighting on internal storage or emulated external storage, ask PackageManager to clear private app caches to free up space. Since we fallocate() the entire file, use the database as the source of truth for resume locations, which requires that we fsync() before each database update. Store in-progress downloads in separate directories to keep the OS from deleting out from under us. Clean up filename generation logic to break ties in this new dual-directory case. Clearer enforcement of successful download preconditions around content lengths and ETags. Move all database field mutations to clearer DownloadInfoDelta object, and write back through single code path. Catch and log uncaught exceptions from DownloadThread. Tests to verify new storage behaviors. Fixed existing test to reflect correct RFC behavior. Bug: 5287571, 3213677, 12663412 Change-Id: I6bb905eca7c7d1a6bc88df3db28b65d70f660221
* Revert "change download provider to use system log"Doug Zongker2014-01-277-88/+88
| | | | | This reverts commit 4f9d2d04003fafb358d7c127054055b3a9732c9b, was only wanted for debugging.
* change download provider to use system logDoug Zongker2014-01-277-88/+88
| | | | | | | | Try to catch the download provider in the act of deleting pending system updates. Bug: 12680933 Change-Id: If58aba5c30fd624217e5d073730645af05e98ac7
* am f9e455a6: am 34d915e1: am 18794718: am c5d43a1f: Merge "Creates parent ↵Jeff Sharkey2014-01-171-1/+9
|\ | | | | | | | | | | | | directories before creates file" * commit 'f9e455a61cf29e515adb4e3c56e8e9269bc868f9': Creates parent directories before creates file
| * am 34d915e1: am 18794718: am c5d43a1f: Merge "Creates parent directories ↵Jeff Sharkey2014-01-171-1/+9
| |\ | | | | | | | | | | | | | | | | | | before creates file" * commit '34d915e1dccf3d65e5a7c7f3a2273047ba8e51e8': Creates parent directories before creates file
| | * am 18794718: am c5d43a1f: Merge "Creates parent directories before creates file"Jeff Sharkey2014-01-171-1/+9
| | |\ | | | | | | | | | | | | | | | | * commit '18794718f15cbf79c8da732af3e8368c7b905523': Creates parent directories before creates file
| | | * am c5d43a1f: Merge "Creates parent directories before creates file"Jeff Sharkey2014-01-171-1/+9
| | | |\ | | | | | | | | | | | | | | | | | | | | * commit 'c5d43a1fc595ce650a9a20d2811ad47429ebd7da': Creates parent directories before creates file
| | | | * Merge "Creates parent directories before creates file"Jeff Sharkey2014-01-171-1/+9
| | | | |\
| | | | | * Creates parent directories before creates fileRoger Chen2014-01-091-1/+9
| | | | |/ | | | | | | | | | | | | | | | | | | | | Change-Id: I124f7ce2b731b100e9572d7c5d95206e243ee316 Signed-off-by: Roger Chen <cxr514033970@gmail.com>
* | | | | Import translations. DO NOT MERGEGeoff Mendal2014-01-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ideda5d4f3df261fb2e30faa0dddd9312323b713f Auto-generated-cl: translation import
* | | | | am 5a6b8f28: (-s ours) am 76214041: (-s ours) am 7f13f61b: (-s ours) am ↵Baligh Uddin2014-01-070-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | c478796c: (-s ours) am 8f3c6521: (-s ours) Import translations. DO NOT MERGE * commit '5a6b8f28c2cd2a78798b51b902599a79ffe2e997': Import translations. DO NOT MERGE
| * | | | am 76214041: (-s ours) am 7f13f61b: (-s ours) am c478796c: (-s ours) am ↵Baligh Uddin2014-01-070-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8f3c6521: (-s ours) Import translations. DO NOT MERGE * commit '762140410bebac113e04ff5c7038a834f9f28363': Import translations. DO NOT MERGE
| | * | | am 7f13f61b: (-s ours) am c478796c: (-s ours) am 8f3c6521: (-s ours) Import ↵Baligh Uddin2014-01-070-0/+0
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | translations. DO NOT MERGE * commit '7f13f61be97d5774516be544239bc0a0338cfb47': Import translations. DO NOT MERGE
| | | * | am c478796c: (-s ours) am 8f3c6521: (-s ours) Import translations. DO NOT MERGEBaligh Uddin2014-01-070-0/+0
| | | |\ \ | | | | | | | | | | | | | | | | | | | | | | | | * commit 'c478796c0f999a4d91bfe3d605412e93dfa2868f': Import translations. DO NOT MERGE
| | | | * \ am 8f3c6521: (-s ours) Import translations. DO NOT MERGEBaligh Uddin2014-01-070-0/+0
| | | | |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '8f3c652160e84e02f438a8dad72b9329d45b269f': Import translations. DO NOT MERGE
| | | | | * | Import translations. DO NOT MERGEBaligh Uddin2014-01-063-36/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ie4bcb30ee912d1b7486470d8849bde142c461d3b Auto-generated-cl: translation import
* | | | | | | Import translations. DO NOT MERGEBaligh Uddin2014-01-062-35/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I24d865d63e43413352dd2bce6db694e7f94a415f Auto-generated-cl: translation import
* | | | | | | am 25051b02: am b8f4b81b: am 9ec7f19f: am 1e950b1a: Merge "DownloadProvider: ↵Nick Kralevich2014-01-031-1/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | don\'t allow backups." * commit '25051b0276fa90c58d483c1b72b53618cd78012d': DownloadProvider: don't allow backups.
| * | | | | | am b8f4b81b: am 9ec7f19f: am 1e950b1a: Merge "DownloadProvider: don\'t allow ↵Nick Kralevich2014-01-031-1/+2
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | backups." * commit 'b8f4b81b80af5a09c61a59dee95f4d32ce7d74cd': DownloadProvider: don't allow backups.
| | * | | | | am 9ec7f19f: am 1e950b1a: Merge "DownloadProvider: don\'t allow backups."Nick Kralevich2014-01-031-1/+2
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '9ec7f19fad500366049b4e470ac3a0622aee556e': DownloadProvider: don't allow backups.
| | | * | | | am 1e950b1a: Merge "DownloadProvider: don\'t allow backups."Nick Kralevich2014-01-031-1/+2
| | | |\ \ \ \ | | | | | |_|/ | | | | |/| | | | | | | | | | | | | | | | * commit '1e950b1a9345889a1197aeb4cb19e45f8b19a136': DownloadProvider: don't allow backups.
| | | | * | | Merge "DownloadProvider: don't allow backups."Nick Kralevich2014-01-031-1/+2
| | | | |\ \ \
| | | | | * | | DownloadProvider: don't allow backups.Nick Kralevich2014-01-031-1/+2
| | | | |/ / / | | | | | | | | | | | | | | | | | | | | | Change-Id: I5a07244d4bb7e11af4f5eb1a624fc20165248aab
* | | | | | | Import translations. DO NOT MERGEBaligh Uddin2014-01-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ib424d4d4a02fdec4a04f0bd9af39d47d4f0c3b1e Auto-generated-cl: translation import
* | | | | | | am bce1d6ca: (-s ours) am 1b3a7274: (-s ours) am cd3a74b3: (-s ours) am ↵Baligh Uddin2013-12-270-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5bafb68f: (-s ours) am fc6d1ead: (-s ours) Import translations. DO NOT MERGE * commit 'bce1d6ca92d29ea9259731c22b8f0d76d9e2973e': Import translations. DO NOT MERGE
| * | | | | | am 1b3a7274: (-s ours) am cd3a74b3: (-s ours) am 5bafb68f: (-s ours) am ↵Baligh Uddin2013-12-270-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fc6d1ead: (-s ours) Import translations. DO NOT MERGE * commit '1b3a7274c1c54974b536b999b5e60228fd6a922c': Import translations. DO NOT MERGE
| | * | | | | am cd3a74b3: (-s ours) am 5bafb68f: (-s ours) am fc6d1ead: (-s ours) Import ↵Baligh Uddin2013-12-270-0/+0
| | |\| | | | | | | |/ / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | translations. DO NOT MERGE * commit 'cd3a74b38ec9bb2b6fb20184c3be5abc10366a6a': Import translations. DO NOT MERGE
| | | * | | am 5bafb68f: (-s ours) am fc6d1ead: (-s ours) Import translations. DO NOT MERGEBaligh Uddin2013-12-260-0/+0
| | |/| | | | | | |/ / | | | | | | | | | | | | | | | * commit '5bafb68f64d87fecd4f871b2f27df5d037292f5f': Import translations. DO NOT MERGE
| | | * | am fc6d1ead: (-s ours) Import translations. DO NOT MERGEBaligh Uddin2013-12-260-0/+0
| | | |\| | | | | | | | | | | | | | | | | | | | | * commit 'fc6d1ead7d7abf97e5cf28f8871cf3dd0c09bd97': Import translations. DO NOT MERGE
| | | | * Import translations. DO NOT MERGEBaligh Uddin2013-12-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ib82d39385a5966f41daa15c9f9a7026e71030221 Auto-generated-cl: translation import
* | | | | Import translations. DO NOT MERGEBaligh Uddin2013-12-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I53a1138f878fdb9793f841567120565bc1b3dfcb Auto-generated-cl: translation import
* | | | | am 9f74143c: (-s ours) DO NOT MERGE reset to goog/klp-volantis-devQiwen Zhao2013-12-100-0/+0
|\| | | | | | | | | | | | | | | | | | | * commit '9f74143c2e8cbf3328b68055026e4f2e871c09af':
| * | | | DO NOT MERGE reset to goog/klp-volantis-devQiwen Zhao2013-12-090-0/+0
| |\ \ \ \ | | |/ / / | |/| | |
* | | | | Remove deprecated localesBaligh Uddin2013-12-0916-902/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug:11340849 Change-Id: Ibc9f4d1f4b616031f18df7cbc594e602a54e7c0c
* | | | | am 606cca59: (-s ours) am c159de74: (-s ours) am 4bafe763: (-s ours) Import ↵Baligh Uddin2013-12-050-0/+0
|\ \ \ \ \ | | |/ / / | |/| | | | | | | | | | | | | | | | | | translations. DO NOT MERGE * commit '606cca593f26beda8daaa8b3f6c53a9506ad48b5':
| * | | | am c159de74: (-s ours) am 4bafe763: (-s ours) Import translations. DO NOT MERGEBaligh Uddin2013-12-050-0/+0
| |\ \ \ \ | | |_|_|/ | |/| | | | | | | | * commit 'c159de74b326050eeb3dc2683a3ab55cbed9aadd':
* | | | | am 4ff1765c: (-s ours) am a0daefb0: (-s ours) am 34f6f70e: (-s ours) Import ↵Baligh Uddin2013-11-060-0/+0
|\ \ \ \ \ | | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | translations. DO NOT MERGE * commit '4ff1765c9660b2e1288560e94b7a208170bdd810': Import translations. DO NOT MERGE
| * | | | am a0daefb0: (-s ours) am 34f6f70e: (-s ours) Import translations. DO NOT MERGEBaligh Uddin2013-11-050-0/+0
| |\ \ \ \ | | | |_|/ | | |/| | | | | | | | | | | | * commit 'a0daefb0032289905ab369b98a886dc322346e9c': Import translations. DO NOT MERGE
| | * | | am 34f6f70e: (-s ours) Import translations. DO NOT MERGEBaligh Uddin2013-11-050-0/+0
| | |\| | | | | | | | | | | | | | | | | | | | | | * commit '34f6f70e69b1e272e19a70c01964a122e4d117e7': Import translations. DO NOT MERGE
| | | * | Import translations. DO NOT MERGEBaligh Uddin2013-11-047-36/+36
| | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Iffd5af8620652465c2f67635b33705ecf596746a Auto-generated-cl: translation import
* | | | | Import translations. DO NOT MERGEBaligh Uddin2013-10-307-36/+36
| | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I24247a5e762270fe14b5ef065b9bd1796702cf3f Auto-generated-cl: translation import
* | | | | am 97202826: (-s ours) am d5c43876: (-s ours) am 1a0e1c0e: (-s ours) Import ↵Baligh Uddin2013-10-280-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | translations. DO NOT MERGE * commit '97202826ab4d3ccd925212a5e093211fc46e0cf9': Import translations. DO NOT MERGE
| * | | | am d5c43876: (-s ours) am 1a0e1c0e: (-s ours) Import translations. DO NOT MERGEBaligh Uddin2013-10-280-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | * commit 'd5c438761040510845e67979079f37da0737966f': Import translations. DO NOT MERGE
| | * | | am 1a0e1c0e: (-s ours) Import translations. DO NOT MERGEBaligh Uddin2013-10-280-0/+0
| | |\| | | | | | | | | | | | | | | | | | | | | | * commit '1a0e1c0eddcb835620ef884325f7e4f07e3439f7': Import translations. DO NOT MERGE
| | | * | Import translations. DO NOT MERGEBaligh Uddin2013-10-282-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I8d3a6aaac652d2e11cc5fed65d13bcad4b5bb810 Auto-generated-cl: translation import
* | | | | Import translations. DO NOT MERGEBaligh Uddin2013-10-212-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I681ef37e68b629ae5f9aaa898ccf426447311b53 Auto-generated-cl: translation import
* | | | | am ba6071ed: (-s ours) am c0498333: (-s ours) am 4e4ef211: (-s ours) Merge ↵Baligh Uddin2013-10-170-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | "Import translations. DO NOT MERGE" into klp-dev * commit 'ba6071ed0b7e674986887c6753ee5efbf7b5b25d': Import translations. DO NOT MERGE
| * | | | am c0498333: (-s ours) am 4e4ef211: (-s ours) Merge "Import translations. DO ↵Baligh Uddin2013-10-170-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | NOT MERGE" into klp-dev * commit 'c0498333d7a836f24ea72934e9d8d118a273b324': Import translations. DO NOT MERGE
| | * | | am 4e4ef211: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-devBaligh Uddin2013-10-170-0/+0
| | |\| | | | | | | | | | | | | | | | | | | | | | * commit '4e4ef211382d05c17c93b68fe0ab347a64951a9c': Import translations. DO NOT MERGE
| | | * | Merge "Import translations. DO NOT MERGE" into klp-devBaligh Uddin2013-10-171-1/+1
| | | |\ \