summaryrefslogtreecommitdiffstats
path: root/src/com/android/providers/downloads/DownloadStorageProvider.java
Commit message (Collapse)AuthorAgeFilesLines
* DownloadProvider: add to support pause/resume download by manualqqzhou2016-01-241-3/+14
| | | | | | | | | | | | | | | This feature contains below points: 1. add to pause running download by manual. 2. add to resume manually paused download by manual. 3. add to show proper contents in notification and download-list for manually paused status. 4. add to support download breakpoint continuing when HTTP server doesn't contain etag in response header. Android baseline only supports this when etag is not null. 5. add to show proper contents in notification and download-list for status of waiting-for-network. Change-Id: I433cdee2de8b3add0248bbb0a9d02f8da4e5bb38
* Sanitize display names, keep extensions intact.Ben Kwa2015-04-221-8/+4
| | | | | | | | | | Use the newly factored FileUtils sanitize the requested display names to be valid FAT filenames, and also allow any extension that maps to the requested MIME type. BUG=20157955 Change-Id: Ic37863a3362a941d81632bd4a7562dae40053652
* Fix internationalization of percentage formatting in DownloadProvider.Elliott Hughes2014-10-101-1/+3
| | | | | Bug: 15476051 Change-Id: I085c074f1bb66631872712cab68bcaf6ee7ba7dc
* Scan after writing download files.Jeff Sharkey2014-08-051-1/+1
| | | | | | | | Kicks off media scanner after files are written, usually through a DocumentsProvider. Bug: 13557203 Change-Id: I4e29b778b4e19a217f60c1e415c4d814724752d3
* No directories in Downloads.Jeff Sharkey2013-10-101-0/+4
| | | | | Bug: 11166290 Change-Id: I29c9cf53c77d03d1bcf408edd693b9c24d5665b6
* Ensure Downloads directory exists before create.Jeff Sharkey2013-10-041-0/+1
| | | | | Bug: 11080980 Change-Id: Iffa5402ae632ceda06e0aec6bdc73c0c4fcbeaa1
* Allow all downloads to be writable.Jeff Sharkey2013-10-011-8/+3
| | | | | Bug: 10943812 Change-Id: Ib0cb3e608c1f40a2e2fcd6e493c8f920d8b4221b
* Follow API changes.Jeff Sharkey2013-09-271-4/+2
| | | | | Bug: 10964412 Change-Id: Ia452bd056b6e01aace33acc5f1aa741af4d77c5f
* Revoke grants when downloads are deleted.Jeff Sharkey2013-09-261-0/+7
| | | | | | | | When deleting downloads, revoke any Uri permission grants, which removes from getPersistedUriPermissions(). Bug: 10928851 Change-Id: I3e90c4071385832dcb3e0cf9ca3fdccafbe30037
* Allow saving to Downloads.Jeff Sharkey2013-09-231-7/+80
| | | | | | | | | | | Add column to mark downloads as being writable, and allow documents to be created under Downloads backend. Update database when writing is finished, and generate unique filenames when they already exist. Check canonical path on incoming _DATA paths. Bug: 10667164, 10892621, 10893268 Change-Id: I8c203b96ff042a895b58686903fcd07fc755a00f
* Omit duplicate images, query for management UI.Jeff Sharkey2013-09-101-4/+38
| | | | | | | | | | | When returning recent files, omit images that have been scanned and provided by the Images backend. Return in-progress files when queried for management UI, otherwise only return complete files. Bug: 10659651 Change-Id: I8f05e6fcf53422905d7f51cc55611ca00af301bf
* Hint sorting, remove XML, follow refactor.Jeff Sharkey2013-09-091-15/+16
| | | | | Bug: 10672973, 10577809 Change-Id: I92314c35b37ac590830e881489e6a88afd860de4
* Extend trampoline to show dialogs.Jeff Sharkey2013-09-061-13/+17
| | | | | | | | | Handle incoming manage requests by launching finished downloads, or showing various retry dialogs. Pipe through summary, show percentage when in progress, and always show total size and MIME type. Bug: 10531347, 10599641 Change-Id: I3be2bc67ea3c0ef795146177200f5be77ad5114e
* Relay content change notifications to documents.Jeff Sharkey2013-09-051-0/+7
| | | | | Bug: 10531347 Change-Id: Ia704b233623e913da3a5cb7c8aa5e024900e1d3a
* Remove content flags to indicate */* support.Jeff Sharkey2013-09-021-3/+1
| | | | | Bug: 10597317 Change-Id: Ia32f4ec34847680135c300dfe8fe73694da4c57a
* New recent documents behavior.Jeff Sharkey2013-09-021-1/+23
| | | | | Bug: 10593596 Change-Id: I708d2396266d083a494e57eab2637471e54e1cdc
* Follow refactoring of DocumentsContract.Jeff Sharkey2013-08-311-34/+44
| | | | | Bug: 10567557 Change-Id: If03f352f865073b0e332a6a1c40cc34d83425b62
* Follow stronger DocumentsProvider contract.Jeff Sharkey2013-08-281-193/+95
| | | | | | | | Provides same functionality, but follows updated DocumentsProvider contract in framework. Bug: 10497206 Change-Id: Ie1f6180047ff7bad289679a14f3368238d47b1d6
* Trampoline APK installation to use raw file.Jeff Sharkey2013-08-191-1/+1
| | | | | | | | | PackageInstaller requires raw file:// Uris, and refuses to accept content:// Uris, so create a trampoline that uses the raw file and also splices in referrer extras. Bug: 10391254 Change-Id: I12a06862069479de5dee140d0065479ce79eb494
* Clear identity when deleting downloads.Jeff Sharkey2013-08-181-1/+6
| | | | | Bug: 10329983 Change-Id: Iff3db6e5210ae9f33ec13af91561475b269dcc40
* Support custom documents query projections.Jeff Sharkey2013-08-171-65/+54
| | | | | | | | | Uses new MatrixCursor.RowBuilder.offer() to support custom projections. Also query MIME types directly so they're always consistent. Bug: 10329983 Change-Id: I724b26e008f6ffb85940e009a916b969ead42fcd
* Delegate to documents UI; improve contents.Jeff Sharkey2013-08-151-46/+75
| | | | | | | | | When Downloads app is launched, delegate to new documents management UI. Use DownloadManager public API to match the contents of the existing Downloads UI. Bug: 10329983 Change-Id: Iaa1a1dc013cfe3b17d31ecc764d4c4cc13f62258
* First pass at Downloads storage provider.Jeff Sharkey2013-08-071-0/+302
Offers a view of Downloads through the lens of DocumentsContract for surfacing in new storage UI. Change-Id: I4373c2498b4b82bfee2300a00f8d0bb734bf574c