History log of /frameworks/base/core/java/android/app/DownloadManager.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
bf6f6f9de72c9fd15e6bda9f228c05a9b37d6324 26-Sep-2012 Jeff Brown <jeffbrown@google.com> Update references to migrated global settings.

Fixed one setting that was migrated but not marked deprecated.

Removed a hidden setting that is no longer used by the new
power manager service.

Bug: 7231172
Change-Id: I332f020f876a18d519a1a20598a172f1c98036f7
/frameworks/base/core/java/android/app/DownloadManager.java
011238bd8d4405779a80db8cfdf1b25adcd83e6d 08-Feb-2012 HÃ¥kan3 Johansson <hakan3.johansson@sonyericsson.com> Adds missing Bluetooth as network type.

The network connection type for Bluetooth is added so
that it is possible to use Bluetooth as Hotspot during
download from the Internet.

Change-Id: If8e8a3f69821beef742bc91d7a292a091861b48b
/frameworks/base/core/java/android/app/DownloadManager.java
9530e3a22d5ffa2019d1a5177b6a441d4d6d048b 19-Jun-2012 Nicolas Falliere <nicof@google.com> Added or fixed doctrings for required permissions.

Bug: 6591338
Change-Id: Ia2092f9994854701b5fa1425c371817367ae07ec
/frameworks/base/core/java/android/app/DownloadManager.java
33f95eda3d24b6364cab343f10d01490e2f53d44 03-May-2012 Jeff Sharkey <jsharkey@android.com> Allow adding of completed empty files.

Bug: 5281354
Change-Id: I375c3c7ff4ccbb554204ad53a90d35ff4790af6c
/frameworks/base/core/java/android/app/DownloadManager.java
15ec7d6d7f23ec197a88619b5e03320cfebd2240 17-Apr-2012 Jeff Sharkey <jsharkey@android.com> Add ALLOW_METERED column to DownloadManager.

Also allow isActiveNetworkMetered() to inspect networks without
requiring ACCESS_WIFI_STATE.

Bug: 3001465
Change-Id: Ibc23577d4ad941e4f93db417be6b046881dcbfb1
/frameworks/base/core/java/android/app/DownloadManager.java
792e091045d89c875399251f92e015afe8dee412 16-Apr-2012 Jeff Sharkey <jsharkey@android.com> DownloadManager and metered networks.

API to control whether a download is allowed to use metered networks.

Bug: 3001465
Change-Id: I29153d2a7495a2e9f76ef5be0a77696a85823839
/frameworks/base/core/java/android/app/DownloadManager.java
8fc27e8b87bd1def854a03d84009143b315d4176 05-Apr-2012 Jeff Sharkey <jsharkey@android.com> Support metered Wi-Fi NetworkPolicy.

Add networkId field to NetworkIdentity to identify Wi-Fi networks by
SSID. Add support for policies without usage cycles.

Only apply mobile policies when SIM state is ready, which is cleaner
than just checking for airplane mode. Also avoids creating no-op
default policies when subscriberId is null.

Bug: 3001465, 3291052
Change-Id: I1f8aaa49a5db306df022c402ea7f3f5d4bc0cfc7
/frameworks/base/core/java/android/app/DownloadManager.java
fdfef57f498e3021a34342538aef9f1c7ccbae78 17-Jun-2011 Jeff Sharkey <jsharkey@android.com> Notify policy listeners about metered ifaces.

Currently, kernel definition of metered networks is applied at the
interface level. This change maintain list of those metered ifaces
and notifies policy listeners, like ConnectivityService. (This gives
us a consistent picture of when a network would be blocked.)

Bug: 4601393
Change-Id: I277d5ca96ab967a1c1c3f1da8f9587557cd6d74c
/frameworks/base/core/java/android/app/DownloadManager.java
1a303953589fdddf21d88b8fa660136f5b060d0d 16-Jun-2011 Jeff Sharkey <jsharkey@android.com> DownloadManager flags for network policy.

Handful of DownloadManager flags to record when a download was paused
because of NetworkPolicyManager rules.

Change-Id: I99fc47f529cb6c8a42dbeca049e0cd0f1556eac4
/frameworks/base/core/java/android/app/DownloadManager.java
372813031008dd335c9d7abbc1c8d284cbd1b1dd 07-Mar-2011 Vasu Nori <vnori@google.com> bug:3513950 Rename "completedDownload" to "addCompletedDownload"

Change-Id: I28b33a0268309d74fd2512b5bdb599f38ff3a96d
/frameworks/base/core/java/android/app/DownloadManager.java
17ee56c994ada7eab19ffded8a5ce85bfc3f4e69 28-Feb-2011 Vasu Nori <vnori@google.com> fix javadoc on downloadmanager.remove()

Change-Id: Id48389acd12343b4dcc18ed3f77ab068b2bc5f85
/frameworks/base/core/java/android/app/DownloadManager.java
6bfdf743144f39f5734eb72c37454fc1fd331072 28-Feb-2011 Vasu Nori <vnori@google.com> bug:3474580 fix javadoc

of all the solutions, fixing the javadoc seems like the most useful thing to do
on this otherwise confusing API.

Change-Id: I1fb438c1dd21c5a5f6805db277e6a3f119cdd6ce
/frameworks/base/core/java/android/app/DownloadManager.java
f9e8523e62fa391e85d393c23a3345887565d426 10-Feb-2011 Vasu Nori <vnori@google.com> bug:3425749 send notification for completed download

Change-Id: Ib46df5eaa9316fe0fc843fee1e4597e22768f4a8
/frameworks/base/core/java/android/app/DownloadManager.java
1b67231483bd4e40aedab611846683b0c816ed27 04-Feb-2011 Vasu Nori <vnori@google.com> am 9ec496b4: am e1cbd0a8: Revert "Merge "bug:3414192 new API to designate a download to be OTA update" into honeycomb"

* commit '9ec496b484305defa6cbb691b85836ace8b73a02':
Revert "Merge "bug:3414192 new API to designate a download to be OTA update" into honeycomb"
e1cbd0a85f09a54f8bf28545ac67455b7dcd2532 03-Feb-2011 Vasu Nori <vnori@google.com> Revert "Merge "bug:3414192 new API to designate a download to be OTA update" into honeycomb"

This reverts commit 6bc710f769618e87b98d51cd02241e6b1a2fb653, reversing
changes made to 7ba35f5ab3c838c7f1b3ab957be685ac1f506b2a.
/frameworks/base/core/java/android/app/DownloadManager.java
b73fb5401e44014d6c6906b22a7cc6563cb54b92 03-Feb-2011 Vasu Nori <vnori@google.com> am 99e8e047: am 6bc710f7: Merge "bug:3414192 new API to designate a download to be OTA update" into honeycomb

* commit '99e8e0470249ce145003cc1eabc5ae391af34a06':
bug:3414192 new API to designate a download to be OTA update
72725ebcad848a72d3e3ac4de250553017910d9f 02-Feb-2011 Vasu Nori <vnori@google.com> bug:3414192 new API to designate a download to be OTA update

Change-Id: Iae2f6185e130324ad956f594e78b1d8b2176c808
/frameworks/base/core/java/android/app/DownloadManager.java
e5f92249f18b7ece84af534a7931d43d76dac919 25-Jan-2011 Vasu Nori <vnori@google.com> add extra prams to intent to start Download App in sort-by-size mode

Change-Id: Icedf50477681bc79582517500748b9a916121903
/frameworks/base/core/java/android/app/DownloadManager.java
c0e5075739574e67c825e4841d5cccee55cbfd29 21-Jan-2011 Vasu Nori <vnori@google.com> bug:3048327 (master) ability to add completed download to dnload mgr

Change-Id: I073436c97d5d7cb8ea6a823488a451017dac3ff2
/frameworks/base/core/java/android/app/DownloadManager.java
0abbf809bf46eea21f64fb62c55852783269aca2 18-Jan-2011 Vasu Nori <vnori@google.com> bug:3362635 add new public API to downloadmanager to get mxbytesovermobile

bug:3362635
Change-Id: I7380964c6098d5ca6396b17980f78457c23d1a87
/frameworks/base/core/java/android/app/DownloadManager.java
6916b03e022b7ae391a1ed66a857db6e80b04c65 20-Dec-2010 Vasu Nori <vnori@google.com> if a download dir doesn't exist, create it or fail fast

in HC, using DownloadManager public API, download directories
named by the constants Environment.DOWNLOAD_*
may ot exist. theyneed to be created or
the download request should fail ASAP.
bug:3297328

Change-Id: Ic87023d8fe98bd240744f66607a5400b7825e17e
/frameworks/base/core/java/android/app/DownloadManager.java
f83e6e4b7a7fcbfcc8e3b6078f4655fa3e64bce3 14-Dec-2010 Vasu Nori <vnori@google.com> bug:3264401 changes to support usage of new downloads dir in /data

Change-Id: I209a624523f727d47a4a8f758c13df5d4eac614f
/frameworks/base/core/java/android/app/DownloadManager.java
d75e64af99a024a6d1192d1cad71b53c336b93ea 13-Dec-2010 Leon Scroggins <scroggo@google.com> Do not loop forever.

Bug:3279066
Change-Id: I5222c465af2345f643bfd528d580d32ab9ba328e
/frameworks/base/core/java/android/app/DownloadManager.java
8da7a4e3451a41808972bfec0af0740e999d9c8a 18-Nov-2010 Vasu Nori <vnori@google.com> changes to support Change-Id: I572fdfd6d34dbb5a0577c6cf14664b6f2d5700b4

1. add new column constants for : COLUMN_last_updatesrc
2. send downloadid in the uri wherever possible.
Change-Id: I49a18506060bf292a0750790042e94b0a35ea9bf
/frameworks/base/core/java/android/app/DownloadManager.java
6e2b2a660ebc2f690b341da6e83d2cd2af99ebeb 17-Nov-2010 Vasu Nori <vnori@google.com> return file uri from downloadmanager instead of content uri for public downloads

also add another public method to return mimetype for the given downloaded file
change is related to bug:3198355

Change-Id: I90bae443eec36968e0d533d9b07a514df369ac29
/frameworks/base/core/java/android/app/DownloadManager.java
98f030742c2889a0906226bd7eea914770b4e13b 16-Nov-2010 Vasu Nori <vnori@google.com> another bug introduced by some previous refactoring CL

bug:3197501
Change-Id: I29342b111ef25c75129b095acee307c5d79f1692
/frameworks/base/core/java/android/app/DownloadManager.java
e69924f0d0d25ae5492aadc252c6b7ab42f0aee7 15-Nov-2010 Vasu Nori <vnori@google.com> map _data column to local_filename column. bug:3197501

this bug is caused by Change-Id: Ief1693785f0484c1b434fb41a68693f9aff96492

Change-Id: Id654322d587968f50aecc7d965b8d7a8d78ce50d
/frameworks/base/core/java/android/app/DownloadManager.java
e16c43bc593c9df411a511494a001a1701d95c03 07-Nov-2010 Vasu Nori <vnori@google.com> remove unnecessary code from DownloadManager

Change-Id: Ief1693785f0484c1b434fb41a68693f9aff96492
/frameworks/base/core/java/android/app/DownloadManager.java
1cde3fbf8f0c6cf712ce4abb0d11c0de792b470a 05-Nov-2010 Vasu Nori <vnori@google.com> address couple of review comments

by reviewers on previous CLs

Change-Id: Ifc4529b367651f68fbb4117e449c70bfd9fae462
/frameworks/base/core/java/android/app/DownloadManager.java
5be894e636522addc40dad3b631f0249e6cc25cf 03-Nov-2010 Vasu Nori <vnori@google.com> add API to return Uri for the given downloaded file id & get mimetype

Change-Id: I1f5dd734e394db0056579a3a0c26862fee27981e
/frameworks/base/core/java/android/app/DownloadManager.java
71b8c23e564d4f9a465845b5c9b6a6c53c1ba96b 28-Oct-2010 Vasu Nori <vnori@google.com> add NOTIFICATION_CLICK_ constants to DownloadManager

DownloadReceive in packages/providers/Downloadproviders sends intents
when notification messages are clicked on.
When using public API of DM, added code to include download entry ids
to the above intents. The constants added here support that code.
intents when

Change-Id: Ibe53ccd9934c73175459e42e3d417eee69ae6735
/frameworks/base/core/java/android/app/DownloadManager.java
4c6e5dfa1c38f32843d209258388b97d4e32314f 27-Oct-2010 Vasu Nori <vnori@google.com> make notifications appear during downloading AND after completion

bug:3132773
Change-Id: I012859fa86055f322069d5120b110c4c8887fb61
/frameworks/base/core/java/android/app/DownloadManager.java
ef7e33b9b8647c8417e472986f95a71cb75dde80 20-Oct-2010 Vasu Nori <vnori@google.com> remove duplicate code

Change-Id: I60faf921de4b9add619e2450e0a19a111ede7984
/frameworks/base/core/java/android/app/DownloadManager.java
9ca6d71c52fcfab730b65bb01ff6bd47232c8599 15-Oct-2010 Kenny Root <kroot@google.com> resolved conflicts for merge of c6bf3eaa to master

Change-Id: I6421faf52c160a81b03c63b91f1aedfe0f151cac
216fa22791889774b83977341632c4570dcec35d 13-Oct-2010 Vasu Nori <vnori@google.com> bug:3069735 in Download UI app, handle deletes correctly

gingerbread.
(for more detailed comments, please see the dependent CL
Change-Id: Ib90eb9e647f543312c865d3bbf9a06fb867a648b )

2 changes in this CL.
1. add 2 new columns to downloads table in downloads.db:
mediaprovider_uri = downloaded file's content_uri in mediaprovider db
deleted = flag is set to true if a file is to be deleted
2. download UI app shows only those files whose 'deleted' flag is not set

Change-Id: I47c5f72b0a0b354fac3abe3a97752130b8189794
/frameworks/base/core/java/android/app/DownloadManager.java
182e5cf105aa71effbdee15628f020214b54774c 12-Oct-2010 Vasu Nori <vnori@google.com> am a23964f9: am b8f7a483: Merge "bug:3082865 don\'t use IN to construct sql to delete downloads" into gingerbread

Merge commit 'a23964f9a1df7fb2f18e350fb4215933674f9991'

* commit 'a23964f9a1df7fb2f18e350fb4215933674f9991':
bug:3082865 don't use IN to construct sql to delete downloads
fae998c860e545e35fd3f4a821837409ee9bcb4e 11-Oct-2010 Jean-Baptiste Queru <jbq@google.com> resolved conflicts for merge of 7c08b70c to master

Change-Id: Ifef07cf23de35db545774d0dee327c2165f8b088
e7be6bda2cd3f1e93f306e298a6a8c523a607373 10-Oct-2010 Vasu Nori <vnori@google.com> bug:3082865 don't use IN to construct sql to delete downloads

DownloadManager should not use IN clause when constructing
SQL to delete downloaded files Dowload app.
Lexer code in Download app doesn't know how to parse it.
Real fix is to fix Lexer.
But seriously real fix is to get rid of this complexity -
that I am planning for next version.

also, the following 2 are identical, in terms of SQL performance
WHERE _id IN (?, ?, ?)
WHERE (_id = ? OR _id = ? OR _id = ?)

Change-Id: Icca659a17c412247a193879e8d2f34e1b43ec9e5
/frameworks/base/core/java/android/app/DownloadManager.java
ee04af3ed40103bc1e3ed5f6ab9e0094d893bceb 08-Oct-2010 Doug Zongker <dougz@android.com> add a local filename column to download queries

Some users of the download API (eg system update) need to get the
actual local filename of a downloaded file, not just a content URI.

Change-Id: I877e2776e778c1712f654ba5c840bfe6ed3fe60f
/frameworks/base/core/java/android/app/DownloadManager.java
64c48b8842ec9f62a48fdd74b669728c5f2408a4 08-Oct-2010 Steve Howard <showard@google.com> Update DownloadManager API to support bulk actions.

This includes querying by ID, removing and restarting downloads (the
latter is not a public API). The methods all use varargs to support
this without undue syntactic pain.

Change-Id: I768005c539d2395cf26587d3a8c425cd01ad9cd2
/frameworks/base/core/java/android/app/DownloadManager.java
6486196c303c525b041b380e853e1d2135180239 01-Oct-2010 Steve Howard <showard@google.com> am e468a4bc: am 751b4731: Merge "A few additions to the download manager public API documentation" into gingerbread

Merge commit 'e468a4bc74f1b241b3de09ea99251a419e40c6d3'

* commit 'e468a4bc74f1b241b3de09ea99251a419e40c6d3':
A few additions to the download manager public API documentation
e10330fa285812dd5f63edae491a5e124f4cf284 01-Oct-2010 Steve Howard <showard@google.com> am efb8b427: am 4ba2817c: Merge "Avoid NPE when viewing failed legacy download with no local path" into gingerbread

Merge commit 'efb8b42789a291e38a7e837f64d18bcb511f65f9'

* commit 'efb8b42789a291e38a7e837f64d18bcb511f65f9':
Avoid NPE when viewing failed legacy download with no local path
610c4359e48a93f029376f5fa48d393ca8a50847 01-Oct-2010 Steve Howard <showard@google.com> A few additions to the download manager public API documentation

Change-Id: Icf831843e281d8eee9c1457273662121bb5a8609
/frameworks/base/core/java/android/app/DownloadManager.java
825bdff3b8d8837af936eac3066b3f402c0c070b 30-Sep-2010 Steve Howard <showard@google.com> resolved conflicts for merge of 538c3fa3 to master

Change-Id: I9190ca078ffd8b51515e3d53ac5753c05110c014
99047d7b6519f0a29b88a5f347a0e4179012f9d2 30-Sep-2010 Steve Howard <showard@google.com> Avoid NPE when viewing failed legacy download with no local path

Change-Id: I3e9d349959543f42afed67de9f6d299c268ab7ac
/frameworks/base/core/java/android/app/DownloadManager.java
3e8c1d3a467bab889de7f92379be1f43d9c2d81e 30-Sep-2010 Steve Howard <showard@google.com> Have download manager give more details when downloads are paused

This change introduces more detailed reporting of why downloads are paused in
the download manager.

First, it adds new, more detailed status constants in android.provider.Downloads
for when a download is paused, in place of the old catch-all
STATUS_RUNNING_PAUSED. I've eliminated some dead code there as well to ease the
change.

Second, in the public API, it changes COLUMN_ERROR_CODE to COLUMN_REASON, which
now reports useful info for STATUS_PAUSED in addition to STATUS_FAILED. It adds
some new PAUSED_* constants for reason values when a download is paused, and
adds code to generate these values appropriately.

Change-Id: Ie617d1c2c59357375e19466086923ace5e2fb122
/frameworks/base/core/java/android/app/DownloadManager.java
d58429f9acdb33f05bdb233b7bba495de80cb336 28-Sep-2010 Steve Howard <showard@google.com> Manual merge: Move DownloadManager to android.app

Changing package at hackbod's request.

Change-Id: I867017b6a9f4684d30c6c5bd1b07f9cabecddb9f
/frameworks/base/core/java/android/app/DownloadManager.java
31fd85f39b554e09b2e6c1c2ccf5c186859880fa 28-Sep-2010 Steve Howard <showard@google.com> Move DownloadManager to android.app (DO NOT MERGE)

Changing package at hackbod's request. I'll merge this manually, as
there's some additional master-only code that will be to be
simultaneously changed.

Change-Id: Ibb629ec1c31807fbee31e0193c6a941d04be0117
/frameworks/base/core/java/android/app/DownloadManager.java