Searched refs:mDownloadManager (Results 1 – 8 of 8) sorted by relevance
141 dlRequest = mDownloadManager.enqueue(request); in initiateDownload()200 pfd = mDownloadManager.openDownloadedFile(dlRequest); in verifyFileDownloadSucceeded()208 mDownloadManager.remove(dlRequest); in verifyFileDownloadSucceeded()233 dlRequest = mDownloadManager.enqueue(request); in runLargeDownloadOverWiFi()243 pfd = mDownloadManager.openDownloadedFile(dlRequest); in runLargeDownloadOverWiFi()249 mDownloadManager.remove(dlRequest); in runLargeDownloadOverWiFi()287 dlRequest = mDownloadManager.enqueue(request); in runDownloadMultipleSwitching()321 ParcelFileDescriptor pfd = mDownloadManager.openDownloadedFile(dlRequest); in runDownloadMultipleSwitching()326 mDownloadManager.remove(dlRequest); in runDownloadMultipleSwitching()363 dlRequest = mDownloadManager.enqueue(request); in runDownloadMultipleWiFiEnableDisable()[all …]
47 protected DownloadManager mDownloadManager = null; field in DownloadManagerBaseTest235 mDownloadManager = (DownloadManager)mContext.getSystemService(Context.DOWNLOAD_SERVICE); in setUp()377 Cursor cursor = mDownloadManager.query(q); in hasDownloadFinished()487 Cursor response = mDownloadManager.query(q); in getBytesDownloaded()518 Cursor cursor = mDownloadManager.query(new Query()); in removeAllCurrentDownloads()525 mDownloadManager.remove(downloadId); in removeAllCurrentDownloads()545 Cursor cursor = mDownloadManager.query(query); in getCursor()
81 long dlRequest = mDownloadManager.enqueue(request); in doErrorTest()106 mDownloadManager.remove(dlRequest); in testBinaryDownload()119 mDownloadManager.remove(dlRequest); in testTextDownload()134 ParcelFileDescriptor pfd = mDownloadManager.openDownloadedFile(requestId); in verifyDownload()135 Cursor cursor = mDownloadManager.query(new Query().setFilterById(requestId)); in verifyDownload()166 long dlRequest = mDownloadManager.enqueue(request); in testDownloadToExternal_fileExists()204 long dlRequest = mDownloadManager.enqueue(request); in testDownloadToExternal()236 mDownloadManager.enqueue(request); in testDownloadToProhibitedDirectory()308 long dlRequest = mDownloadManager.enqueue(request); in testRelativeRedirect()324 Cursor cursor = mDownloadManager.query(new Query().setFilterById(dlRequest)); in testRemoveDownload()[all …]
66 protected DownloadManager mDownloadManager = null; field in DownloadManagerBaseTest241 mDownloadManager = (DownloadManager)mContext.getSystemService(Context.DOWNLOAD_SERVICE); in setUp()491 ParcelFileDescriptor pfd = mDownloadManager.openDownloadedFile(requestId); in verifyAndCleanupSingleFileDownload()492 Cursor cursor = mDownloadManager.query(new Query().setFilterById(requestId)); in verifyAndCleanupSingleFileDownload()503 mDownloadManager.remove(requestId); in verifyAndCleanupSingleFileDownload()766 Cursor cursor = mDownloadManager.query(query); in doWaitForDownloadsOrTimeout()895 Cursor cursor = mDownloadManager.query(new Query()); in removeAllCurrentDownloads()909 mDownloadManager.remove(id); in removeAllCurrentDownloads()912 cursor = mDownloadManager.query(new Query()); in removeAllCurrentDownloads()962 return mDownloadManager.enqueue(request); in doEnqueue()[all …]
92 long requestID = mDownloadManager.enqueue(request); in testMultipleDownloads()96 Cursor cursor = mDownloadManager.query(new Query()); in testMultipleDownloads()135 ParcelFileDescriptor pfd = mDownloadManager.openDownloadedFile(dlRequest); in testDownloadLargeFile()
118 public final DownloadManager mDownloadManager; field in CarrierKeyDownloadManager144 mDownloadManager = (DownloadManager) mContext.getSystemService(Context.DOWNLOAD_SERVICE); in CarrierKeyDownloadManager()516 Cursor cursor = mDownloadManager.query(query); in onDownloadComplete()525 jsonStr = convertToString(mDownloadManager, carrierKeyDownloadIdentifier); in onDownloadComplete()528 jsonStr = convertToStringNoGZip(mDownloadManager, in onDownloadComplete()536 mDownloadManager.remove(carrierKeyDownloadIdentifier); in onDownloadComplete()779 long carrierKeyDownloadRequestId = mDownloadManager.enqueue(request); in downloadKey()
64 private DownloadManager mDownloadManager; field in ConnectionUtil121 mDownloadManager = (DownloadManager)mContext.getSystemService(Context.DOWNLOAD_SERVICE); in initialize()370 long enqueue = mDownloadManager.enqueue(request); in startDownloadAndWait()419 Cursor c = mDownloadManager.query(query); in downloadSuccessful()
290 return mDownloadManager; in getSystemService()722 private final DownloadManager mDownloadManager = mock(DownloadManager.class); field in ContextFixture