Searched refs:DownloadManager (Results 1 – 18 of 18) sorted by relevance
19 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 …]
18 import android.app.DownloadManager;19 import android.app.DownloadManager.Request;192 int columnIndex = cursor.getColumnIndex(DownloadManager.COLUMN_STATUS); in verifyFileDownloadSucceeded()
20 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;
19 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()
19 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 …]
19 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()
25 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 …]
19 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()
31 import android.app.DownloadManager;280 Intent mIntent = new Intent(DownloadManager.ACTION_DOWNLOAD_COMPLETE); in testDownloadComplete()
30 import android.app.DownloadManager;555 private final DownloadManager mDownloadManager = mock(DownloadManager.class);
69 public class DownloadManager { class1040 public DownloadManager(Context context) { in DownloadManager() method in DownloadManager1161 if (DownloadManager.STATUS_SUCCESSFUL == status) {1285 if (status != DownloadManager.STATUS_SUCCESSFUL) {
390 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()
23 import android.app.DownloadManager;
26 import android.app.DownloadManager;477 DownloadManager.ACTION_VIEW_DOWNLOADS, userId), in grantDefaultSystemHandlerPermissions()
316 public class DownloadManager {
488 public class DownloadManager {
META-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...
207 android.app.DownloadManager