Home
last modified time | relevance | path

Searched refs:DownloadManager (Results 1 – 17 of 17) sorted by relevance

/frameworks/base/core/tests/hosttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/downloadmanagertests/
DDownloadManagerBaseTest.java19 import android.app.DownloadManager;
20 import android.app.DownloadManager.Query;
47 protected DownloadManager mDownloadManager = null;
140 if (DownloadManager.ACTION_DOWNLOAD_COMPLETE.equals(intent.getAction())) { in onReceive()
141 long id = intent.getExtras().getLong(DownloadManager.EXTRA_DOWNLOAD_ID); in onReceive()
235 mDownloadManager = (DownloadManager)mContext.getSystemService(Context.DOWNLOAD_SERVICE); in setUp()
271 DownloadManager.ACTION_DOWNLOAD_COMPLETE), null, listener.getHandler()); in registerDownloadsListener()
376 q.setFilterByStatus(DownloadManager.STATUS_SUCCESSFUL); in hasDownloadFinished()
442 int columnIndex = cursor.getColumnIndex(DownloadManager.COLUMN_STATUS); in waitForDownloadToStart()
446 while (value != DownloadManager.STATUS_RUNNING && in waitForDownloadToStart()
[all …]
DDownloadManagerTestApp.java18 import android.app.DownloadManager;
19 import android.app.DownloadManager.Request;
192 int columnIndex = cursor.getColumnIndex(DownloadManager.COLUMN_STATUS); in verifyFileDownloadSucceeded()
/frameworks/base/core/java/android/provider/
DDownloads.java19 import android.app.DownloadManager;
117 DownloadManager.ACTION_DOWNLOAD_COMPLETED;
130 DownloadManager.ACTION_NOTIFICATION_CLICKED;
559 return visibility == DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED || in isNotificationToBeDisplayed()
560 visibility == DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_ONLY_COMPLETION; in isNotificationToBeDisplayed()
765 public static final int VISIBILITY_VISIBLE = DownloadManager.Request.VISIBILITY_VISIBLE;
772 DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED;
777 public static final int VISIBILITY_HIDDEN = DownloadManager.Request.VISIBILITY_HIDDEN;
/frameworks/base/core/tests/coretests/src/android/app/
DDownloadManagerFunctionalTest.java19 import android.app.DownloadManager.Query;
20 import android.app.DownloadManager.Request;
88 verifyInt(cursor, DownloadManager.COLUMN_REASON, error); in doErrorTest()
171 verifyInt(cursor, DownloadManager.COLUMN_STATUS, DownloadManager.STATUS_SUCCESSFUL); in testDownloadToExternal_fileExists()
276 doErrorTest(uri, DownloadManager.ERROR_TOO_MANY_REDIRECTS); in testErrorTooManyRedirects()
287 doErrorTest(uri, DownloadManager.ERROR_CANNOT_RESUME); in testErrorUnhandledHttpCode()
355 verifyString(cursor, DownloadManager.COLUMN_TITLE, title); in testSetTitle()
411 verifyInt(cursor, DownloadManager.COLUMN_STATUS, DownloadManager.STATUS_FAILED); in testServerDropConnection_body()
412 verifyInt(cursor, DownloadManager.COLUMN_REASON, in testServerDropConnection_body()
413 DownloadManager.ERROR_CANNOT_RESUME); in testServerDropConnection_body()
DDownloadManagerBaseTest.java19 import android.app.DownloadManager.Query;
20 import android.app.DownloadManager.Request;
64 protected DownloadManager mDownloadManager = null;
137 if (intent.getAction().equalsIgnoreCase(DownloadManager.ACTION_DOWNLOAD_COMPLETE)) { in onReceive()
139 long id = intent.getExtras().getLong(DownloadManager.EXTRA_DOWNLOAD_ID); in onReceive()
147 DownloadManager dm = (DownloadManager)context.getSystemService( in onReceive()
154 DownloadManager.COLUMN_STATUS)); in onReceive()
240 mDownloadManager = (DownloadManager)mContext.getSystemService(Context.DOWNLOAD_SERVICE); in setUp()
474 DownloadManager.ACTION_DOWNLOAD_COMPLETE)); in registerNewMultipleDownloadsReceiver()
763 query.setFilterByStatus(DownloadManager.STATUS_PENDING | DownloadManager.STATUS_PAUSED in doWaitForDownloadsOrTimeout()
[all …]
DDownloadManagerStressTest.java19 import android.app.DownloadManager.Query;
20 import android.app.DownloadManager.Request;
102 DownloadManager.COLUMN_STATUS)); in testMultipleDownloads()
104 DownloadManager.COLUMN_URI)); in testMultipleDownloads()
108 assertEquals(errorString, DownloadManager.STATUS_SUCCESSFUL, status); in testMultipleDownloads()
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/util/
DConnectionUtil.java19 import android.app.DownloadManager;
20 import android.app.DownloadManager.Query;
21 import android.app.DownloadManager.Request;
66 private DownloadManager mDownloadManager;
100 new IntentFilter(DownloadManager.ACTION_DOWNLOAD_COMPLETE)); in initialize()
118 mDownloadManager = (DownloadManager)mContext.getSystemService(Context.DOWNLOAD_SERVICE); in initialize()
222 if (action.equals(DownloadManager.ACTION_DOWNLOAD_COMPLETE)) { in onReceive()
418 int columnIndex = c.getColumnIndex(DownloadManager.COLUMN_STATUS); in downloadSuccessful()
419 if (DownloadManager.STATUS_SUCCESSFUL == c.getInt(columnIndex)) { in downloadSuccessful()
/frameworks/base/core/java/android/app/
DDownloadManager.java64 public class DownloadManager { class
1004 public DownloadManager(Context context) { in DownloadManager() method in DownloadManager
1118 if (DownloadManager.STATUS_SUCCESSFUL == status) {
1244 if (DownloadManager.STATUS_SUCCESSFUL != status) {
DSystemServiceRegistry.java292 registerService(Context.DOWNLOAD_SERVICE, DownloadManager.class, in registerService()
293 new CachedServiceFetcher<DownloadManager>() { in registerService()
295 public DownloadManager createService(ContextImpl ctx) { in registerService()
296 return new DownloadManager(ctx); in registerService()
/frameworks/base/core/java/android/net/
DTrafficStats.java21 import android.app.DownloadManager;
/frameworks/base/services/core/java/com/android/server/pm/
DDefaultPermissionGrantPolicy.java21 import android.app.DownloadManager;
351 Intent downloadsUiIntent = new Intent(DownloadManager.ACTION_VIEW_DOWNLOADS); in grantDefaultSystemHandlerPermissions()
/frameworks/base/
Dcompiled-classes-phone265 android.app.DownloadManager
266 android.app.DownloadManager$CursorTranslator
267 android.app.DownloadManager$Query
Dpreloaded-classes437 android.app.DownloadManager
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt4035 public class DownloadManager {
4037 method public long enqueue(android.app.DownloadManager.Request);
4043 method public android.database.Cursor query(android.app.DownloadManager.Query);
4072 …tic final java.lang.String INTENT_EXTRAS_SORT_BY_SIZE = "android.app.DownloadManager.extra_sortByS…
4084 public static class DownloadManager.Query {
4085 ctor public DownloadManager.Query();
4086 method public android.app.DownloadManager.Query setFilterById(long...);
4087 method public android.app.DownloadManager.Query setFilterByStatus(int);
4090 public static class DownloadManager.Request {
4091 ctor public DownloadManager.Request(android.net.Uri);
[all …]
/frameworks/base/api/
Dcurrent.txt4459 public class DownloadManager {
4462 method public long enqueue(android.app.DownloadManager.Request);
4468 method public android.database.Cursor query(android.app.DownloadManager.Query);
4497 …tic final java.lang.String INTENT_EXTRAS_SORT_BY_SIZE = "android.app.DownloadManager.extra_sortByS…
4509 public static class DownloadManager.Query {
4510 ctor public DownloadManager.Query();
4511 method public android.app.DownloadManager.Query setFilterById(long...);
4512 method public android.app.DownloadManager.Query setFilterByStatus(int);
4515 public static class DownloadManager.Request {
4516 ctor public DownloadManager.Request(android.net.Uri);
[all …]
Dsystem-current.txt4620 public class DownloadManager {
4623 method public long enqueue(android.app.DownloadManager.Request);
4629 method public android.database.Cursor query(android.app.DownloadManager.Query);
4659 …tic final java.lang.String INTENT_EXTRAS_SORT_BY_SIZE = "android.app.DownloadManager.extra_sortByS…
4671 public static class DownloadManager.Query {
4672 ctor public DownloadManager.Query();
4673 method public android.app.DownloadManager.Query setFilterById(long...);
4674 method public android.app.DownloadManager.Query setFilterByStatus(int);
4677 public static class DownloadManager.Request {
4678 ctor public DownloadManager.Request(android.net.Uri);
[all …]
/frameworks/base/services/
Dprofile-classes160 Landroid/app/DownloadManager;