Home
last modified time | relevance | path

Searched refs:DownloadManager (Results 1 – 18 of 18) 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.java20 import android.app.DownloadManager;
121 DownloadManager.ACTION_DOWNLOAD_COMPLETED;
134 DownloadManager.ACTION_NOTIFICATION_CLICKED;
604 return visibility == DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED || in isNotificationToBeDisplayed()
605 visibility == DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_ONLY_COMPLETION; in isNotificationToBeDisplayed()
811 public static final int VISIBILITY_VISIBLE = DownloadManager.Request.VISIBILITY_VISIBLE;
818 DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED;
823 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;
90 verifyInt(cursor, DownloadManager.COLUMN_REASON, error); in doErrorTest()
173 verifyInt(cursor, DownloadManager.COLUMN_STATUS, DownloadManager.STATUS_SUCCESSFUL); in testDownloadToExternal_fileExists()
278 doErrorTest(uri, DownloadManager.ERROR_TOO_MANY_REDIRECTS); in testErrorTooManyRedirects()
289 doErrorTest(uri, DownloadManager.ERROR_CANNOT_RESUME); in testErrorUnhandledHttpCode()
357 verifyString(cursor, DownloadManager.COLUMN_TITLE, title); in testSetTitle()
413 verifyInt(cursor, DownloadManager.COLUMN_STATUS, DownloadManager.STATUS_FAILED); in testServerDropConnection_body()
414 verifyInt(cursor, DownloadManager.COLUMN_REASON, in testServerDropConnection_body()
415 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;
134 if (intent.getAction().equalsIgnoreCase(DownloadManager.ACTION_DOWNLOAD_COMPLETE)) { in onReceive()
136 long id = intent.getExtras().getLong(DownloadManager.EXTRA_DOWNLOAD_ID); in onReceive()
144 DownloadManager dm = (DownloadManager)context.getSystemService( in onReceive()
151 DownloadManager.COLUMN_STATUS)); in onReceive()
237 mDownloadManager = (DownloadManager)mContext.getSystemService(Context.DOWNLOAD_SERVICE); in setUp()
471 DownloadManager.ACTION_DOWNLOAD_COMPLETE)); in registerNewMultipleDownloadsReceiver()
760 query.setFilterByStatus(DownloadManager.STATUS_PENDING | DownloadManager.STATUS_PAUSED in doWaitForDownloadsOrTimeout()
[all …]
DDownloadManagerStressTest.java19 import android.app.DownloadManager.Query;
20 import android.app.DownloadManager.Request;
103 DownloadManager.COLUMN_STATUS)); in testMultipleDownloads()
105 DownloadManager.COLUMN_URI)); in testMultipleDownloads()
109 assertEquals(errorString, DownloadManager.STATUS_SUCCESSFUL, status); in testMultipleDownloads()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DCarrierKeyDownloadManager.java25 import android.app.DownloadManager;
115 public final DownloadManager mDownloadManager;
124 filter.addAction(DownloadManager.ACTION_DOWNLOAD_COMPLETE); in CarrierKeyDownloadManager()
128 mDownloadManager = (DownloadManager) mContext.getSystemService(Context.DOWNLOAD_SERVICE); in CarrierKeyDownloadManager()
151 } else if (action.equals(DownloadManager.ACTION_DOWNLOAD_COMPLETE)) {
154 intent.getLongExtra(DownloadManager.EXTRA_DOWNLOAD_ID, 0)));
336 DownloadManager.Query query = new DownloadManager.Query(); in onDownloadComplete()
345 int columnIndex = cursor.getColumnIndex(DownloadManager.COLUMN_STATUS); in onDownloadComplete()
346 if (DownloadManager.STATUS_SUCCESSFUL == cursor.getInt(columnIndex)) { in onDownloadComplete()
547 DownloadManager.Request request = new DownloadManager.Request(Uri.parse(mURL)); in downloadKey()
[all …]
/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/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DCarrierKeyDownloadMgrTest.java31 import android.app.DownloadManager;
280 Intent mIntent = new Intent(DownloadManager.ACTION_DOWNLOAD_COMPLETE); in testDownloadComplete()
DContextFixture.java30 import android.app.DownloadManager;
555 private final DownloadManager mDownloadManager = mock(DownloadManager.class);
/frameworks/base/core/java/android/app/
DDownloadManager.java69 public class DownloadManager { class
1040 public DownloadManager(Context context) { in DownloadManager() method in DownloadManager
1161 if (DownloadManager.STATUS_SUCCESSFUL == status) {
1285 if (status != DownloadManager.STATUS_SUCCESSFUL) {
DSystemServiceRegistry.java390 registerService(Context.DOWNLOAD_SERVICE, DownloadManager.class, in registerService()
391 new CachedServiceFetcher<DownloadManager>() { in registerService()
393 public DownloadManager createService(ContextImpl ctx) { in registerService()
394 return new DownloadManager(ctx); in registerService()
/frameworks/base/core/java/android/net/
DTrafficStats.java23 import android.app.DownloadManager;
/frameworks/base/services/core/java/com/android/server/pm/permission/
DDefaultPermissionGrantPolicy.java26 import android.app.DownloadManager;
477 DownloadManager.ACTION_VIEW_DOWNLOADS, userId), in grantDefaultSystemHandlerPermissions()
/frameworks/base/api/
Dtest-current.txt316 public class DownloadManager {
Dsystem-current.txt488 public class DownloadManager {
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-28.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...
/frameworks/base/config/
Dpreloaded-classes207 android.app.DownloadManager