summaryrefslogtreecommitdiffstats
path: root/src/com
Commit message (Collapse)AuthorAgeFilesLines
...
| * Uniform "when" to avoid flashing notifications.Jeff Sharkey2012-06-071-1/+16
| | | | | | | | | | | | | | | | | | | | | | When showing a download, remember the first timestamp when we showed a notification, and use that time as "when" for all future updates to avoid flashing. Also bring back icon animation that had regressed. Bug: 6596416, 6237256 Change-Id: Ifdc5dc6870dac047515151c1b088e6e379b6a063
* | am 0acd13fe: Merge "avoid repetition of retrying download"Jean-Baptiste Queru2012-05-211-5/+2
|\ \ | |/ |/| | | | | * commit '0acd13fed2f4d0857ce89565fe94674c09b1e844': avoid repetition of retrying download
| * Merge "avoid repetition of retrying download"Jean-Baptiste Queru2012-05-211-5/+2
| |\
| | * avoid repetition of retrying downloadHideki Hayami2012-02-141-5/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If isReadyToStart returns 'true' for STATUS_INSUFFICIENT_SPACE_ERROR, DownloadProvider retries downloading after it gets requests from browser to download contents. The retrying loop won't stop until its completion (recovering from space error), or user stops downloading. This retry loop impacts to network traffic, battery consumption and packet charge. So, change this method to return 'false' for the error in order to stop the loop. Change-Id: Ia3466db60d86c5900842c7c28d294898ae3ff2bc
* | | Only delete spurious files belonging to us.Jeff Sharkey2012-04-242-12/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | When multiple users are active, this can accidentally delete files belonging to other users. Checking owner also helps us avoid deleting recover and lost+found. Bug: 6362988 Change-Id: Ifc165acc9a9b3ab253a4b6257f370836b98b3a74
* | | Avoid NPE when _DATA column is empty.Jeff Sharkey2012-04-201-1/+5
| | | | | | | | | | | | | | | Bug: 6371718 Change-Id: Id661210101b01daf8f5d46a318c32dbb9de9a4fb
* | | More slogging around download deletion.Jeff Sharkey2012-04-193-3/+16
| | | | | | | | | | | | | | | Bug: 6362988 Change-Id: Iab4b86cfcaa6aeed6466f88ff49eb935f96db495
* | | Report MIME type for individual downloads.Jeff Sharkey2012-04-191-5/+8
| | | | | | | | | | | | | | | Bug: 6358473 Change-Id: Ied4a6c8194d0cbb735e43cf7d7759f4674efe535
* | | Add and enforce ALLOW_METERED column.Jeff Sharkey2012-04-175-5/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Include flag with each download to indicate if its allowed to proceed over metered networks. Downloads are left in WAITING_FOR_NETWORK state, similar to how ALLOWED_NETWORK_TYPES is handled. Also keep blocked downloads in WAITING_FOR_NETWORK state instead of marking them as failed. Bug: 3001465, 5734560 Change-Id: I80bb9aa9bd25ddf6f7a2472db344b6ba6878bd74
* | | View file downloads through DownloadsProvider.Jeff Sharkey2012-04-171-4/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | When viewing file://-style downloads, open through DownloadsProvider so that FLAG_GRANT_READ_URI_PERMISSION works. Add support for OpenableColumns to support external apps probing for metadata. Bug: 6343461 Change-Id: I630405406321ea1871c62cbcded55a4ee024ef6e
* | | Locking around downloads, and more dump info.Jeff Sharkey2012-04-132-114/+143
| | | | | | | | | | | | | | | Bug: 4997552 Change-Id: I3c612acb5145a7638c9345a376a99958851a0891
* | | Give DownloadManager a useful user agent.Jeff Sharkey2012-04-092-3/+33
| | | | | | | | | | | | | | | | | | | | | | | | Include platform version, model, and build, when available. Matches current logic used by Browser. Bug: 6257336 Change-Id: I0addfd944aff13bd4ce4226bb8d6328da6b0f5d5
* | | Move to new NetworkPolicyManager accessor.Jeff Sharkey2012-04-051-1/+1
| | | | | | | | | | | | Change-Id: I21e5f6280748529bad881942f8f5534aa374ba55
* | | Migrate to shared MockWebServer.Jeff Sharkey2012-03-291-1/+0
| | | | | | | | | | | | | | | Bug: 4726601 Change-Id: Ibe537bd5c2a092dbf974360cd454751881f7f4ea
* | | Match INetworkPolicyListener changes.Jeff Sharkey2012-02-071-8/+7
| | | | | | | | | | | | Change-Id: I78b6b0380a42b28f42334f93e0538ba7f32bc66d
* | | Move away from deprecated NetworkInfo extra.Jeff Sharkey2012-01-301-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | Because the NetworkInfo included in CONNECTIVITY_ACTION broadcast extra does not reflect the state applicable to the calling UID, and the last sticky broadcast may have stale state, transition to calling ConnectivityManager.getActiveNetworkInfo() directly. Change-Id: Ie7a143e621e5a3a013ec6d8b8613709e7787dc0c
* | | Update DownloadProvider for new Intent.normalizeMimeType() API.Nick Pelly2012-01-191-23/+3
| | | | | | | | | | | | Change-Id: Ideeb8cbeaa4b4d82d7c9fc8197a35bf3541a22d7
* | | am 380044a2: am f720bc68: Allow downloads when no network restriction set.Jeff Sharkey2012-01-061-2/+3
|\| | | | | | | | | | | | | | * commit '380044a236ffba16a800cb683fa648860dcfd573': Allow downloads when no network restriction set.
| * | Allow downloads when no network restriction set.Jeff Sharkey2012-01-051-2/+3
| |/ | | | | | | | | | | | | | | | | Fixes bug where DownloadManager would block downloads on WiMAX, bluetooth, and ethernet networks, even when no network restrictions had been set. Bug: 5689335 Change-Id: I6d1bb78cbccb3c5eb1fce40a13b0689be0c3fa13
* / Use UID instead of PID.Jeff Sharkey2011-11-111-1/+1
|/ | | | | Bug: 5606426 Change-Id: I9b9cee142c360da2a30a4bb8be8dcf40b8c7e43e
* Merge remote branch 'goog/ics-mr0' into ics-mr1Ed Heyl2011-10-251-7/+7
|\
| * Merge "Sanity check only after updating from file size." into ics-mr0Jeff Sharkey2011-10-251-7/+7
| |\
| | * Sanity check only after updating from file size.Jeff Sharkey2011-10-241-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | Database values can be stale, so delay sanity check until after updating from file size on disk. Bug: 5484249 Change-Id: Ia648a575d4a3a391a1f06a866c8282f2d569f15e
* | | am 3074179d: Merge "add more logging when download manager deletes files" ↵Doug Zongker2011-10-181-6/+6
|\| | | | | | | | | | | | | | | | | | | | into ics-mr0 * commit '3074179d22e9d7e1f506b85dca866301a6206156': add more logging when download manager deletes files
| * | Merge "add more logging when download manager deletes files" into ics-mr0Doug Zongker2011-10-181-6/+6
| |\ \
| | * | add more logging when download manager deletes filesDoug Zongker2011-10-181-6/+6
| | |/ | | | | | | | | | Change-Id: I4d402e28996887fc1dba89b2764575c91c2c523b
| * / log when DownloadManager deletes filesDoug Zongker2011-10-181-0/+1
| |/ | | | | | | Change-Id: I39bcb3c7c4625659b0e8b0f3e2971beabb017b48
* | am c5c30ba1: NPE check before finalizeDestinationFile().Jeff Sharkey2011-10-171-3/+5
|\| | | | | | | | | * commit 'c5c30ba14d411b3e23c983912e7fea4f449c9f54': NPE check before finalizeDestinationFile().
| * NPE check before finalizeDestinationFile().Jeff Sharkey2011-10-141-3/+5
| | | | | | | | | | Bug: 5461417 Change-Id: I16f1e8594162b006b80bf7f2cdc6630d0dedfa38
* | Merge "Check canonical path when download requested."Jeff Sharkey2011-10-121-4/+10
|\ \
| * | Check canonical path when download requested.Jeff Sharkey2011-10-121-4/+10
| |/ | | | | | | | | Bug: 5449870 Change-Id: I3219273be9b796b123545c811e5f39fa83b5768e
* / log when DownloadManager deletes filesDoug Zongker2011-10-111-0/+1
|/ | | | Change-Id: Id4800401c16811df9c4ee78ee9636c77b4c95756
* Don't change extensions for explicitly set download locations.Jeff Davidson2011-08-301-8/+18
| | | | | | | | | | | | | | This regression from GB was introduced by 38f1711910715538d6b64e505fe8fb9a0cd40475, which was intended to allow duplicate downloads of the same file, adding -<n> to the end of file names. As a side effect, this also activated extension validation logic, which adds/changes an extension to match the Mimetype. This change keeps the unique filename logic but prevents extension changes when an explicit filename is set. Thus, it is still possible for the actual download location to differ from the requested one, but only if the file already exists. Bug: 5196436 Change-Id: I198dc2a819c5d839a05b72c25e0830d889a9c5a3
* fix DownloadThread's use of ETag, range headersDoug Zongker2011-08-291-46/+54
| | | | | | | | | | | | | | | | | | DownloadThread was only maintaining ETag and the file size for the duration of one HTTP request, rather than over all the requests needed to fetch a file, which kind of defeats the point of having them. Fix this by moving several state variables from InnerState to State, and initializing the total bytes and current bytes values from the download database. Skip actually making the HTTP request if we've already downloaded all the bytes of the file. This works around bug 5217390 by making the second DownloadThread do nothing instead of trying to fetch past the end of the file. (A real fix would eliminate the race condition that causes the second thread to get created in the first place.) Bug: 5217390 Change-Id: Ib5b8f87398b4ed2cb3d7f09569e245b55a89da5a
* Move to Notification.Builder progress API.Jeff Sharkey2011-08-091-47/+33
| | | | | | | | Instead of using custom layout to surface progress information, use new Builder API. Also use resources to build percent string. Bug: 4022082 Change-Id: I556a666771e9103ce5d7ddb60faa879b8777b284
* Bugfix:5033349Dongwon Kang2011-07-201-4/+5
| | | | | | | | | - Checking download data dir instread of /cache. - Trying to remove stale files regardless of the low space thereshold. (Note: This bug happens when download dir size is 100mb and there is a file > 100mb in /cache.) Change-Id: Iacded74eaadb2aa7f0af8d1b7e0f922e81c7e07c
* Eliminate single-process mode.Jeff Brown2011-07-081-2/+1
| | | | | | Bug: 5010576 Change-Id: I2f9bcad41cf50ed0b17dd487d0389f7b38500fd7
* Migrate setThreadStatsTag() from String to int.Jeff Sharkey2011-06-251-1/+1
| | | | | Bug: 4948913 Change-Id: I831b9149208f0cc007cf3ebede3ef433b2636600
* Teach DownloadManager about network policy.Jeff Sharkey2011-06-175-35/+96
| | | | | | | | | | | Now network access is determined by using getActiveNetworkInfoForUid() which uses BLOCKED to indicate that network should be rejected for the requesting UID. While download in progress, watch for any policy changes that should trigger pause. Also check NetworkInfo.isConnected() for correctness. Change-Id: I1efa79823f15ecc3fa088a6719da1b770c64b255
* Merge "Download provider change for DRM Forward Lock plugin: to convert .dm ↵Gloria Wang2011-06-038-55/+319
|\ | | | | | | files to .fl files during downloading For bug 3188041"
| * Download provider change for DRM Forward Lock plugin:Gloria Wang2011-04-198-55/+319
| | | | | | | | | | | | | | to convert .dm files to .fl files during downloading For bug 3188041 Change-Id: I882b851664432fba3e57dc25a6be827b48006e69
* | Add Socket tagging for granular data accounting.Jeff Sharkey2011-05-131-5/+14
| | | | | | | | | | | | | | | | Tag active downloads, and account data usage towards UID that made the original request. Also release WakeLock only after we've cleaned up the download. Change-Id: I72d58c6a51beaeb357e59aae4d7c0f5ac9abaa8d
* | Output DownloadInfo state in Service.dump()Jeff Sharkey2011-04-282-26/+34
| | | | | | | | | | Bug: 3136228 Change-Id: I77c4f998c9718c7630800dec152779ff59186187
* | Allow VISIBLE_NOTIFY_COMPLETED on Request.Jeff Sharkey2011-04-131-4/+8
| | | | | | | | | | | | | | | | Updates list of allowed visibility values to enable Request builders to use Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED. Bug: 4283223 Change-Id: I8ebe4a13f95a58f25f6025946a6d4725261717f2
* | Remove the deprecated things from Config.java. These havent been working ↵Joe Onorato2011-04-071-2/+1
|/ | | | | | since before 1.0. Change-Id: Iba18a18547a161c1aa432a434b6c8f64693fb194
* am 32d9917c: am 7666801a: Merge "bug:4121206 handle STOPSHIP comments/code" ↵Vasu Nori2011-03-172-4/+2
|\ | | | | | | | | | | | | into honeycomb-mr1 * commit '32d9917cd4f56cabcbafa645c8cd89cd832ac523': bug:4121206 handle STOPSHIP comments/code
| * bug:4121206 handle STOPSHIP comments/codeVasu Nori2011-03-172-4/+2
| | | | | | | | Change-Id: I3c9f8e3b11dd301a0921d89e0333883489f37e55
* | (master) bug:3204324 allow no more than certain number of concurrent downloadsVasu Nori2011-03-104-17/+121
|/ | | | Change-Id: Ibbce0782fcf7649209d6f56be240209cebd9045b
* bug:4081088 NPE in DownloadProviderVasu Nori2011-03-091-2/+8
| | | | Change-Id: I033ba6abeed55c5ac76142c7a2e4849b8e044680
* bug:3513950 fix the commentsVasu Nori2011-03-071-6/+6
| | | | Change-Id: I6192a829c7cac86c55a0f67364ebd722504d5dc7