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()
80 long dlRequest = mDownloadManager.enqueue(request); in doErrorTest()105 mDownloadManager.remove(dlRequest); in testBinaryDownload()118 mDownloadManager.remove(dlRequest); in testTextDownload()133 ParcelFileDescriptor pfd = mDownloadManager.openDownloadedFile(requestId); in verifyDownload()134 Cursor cursor = mDownloadManager.query(new Query().setFilterById(requestId)); in verifyDownload()165 long dlRequest = mDownloadManager.enqueue(request); in testDownloadToExternal_fileExists()203 long dlRequest = mDownloadManager.enqueue(request); in testDownloadToExternal()235 mDownloadManager.enqueue(request); in testDownloadToProhibitedDirectory()307 long dlRequest = mDownloadManager.enqueue(request); in testRelativeRedirect()323 Cursor cursor = mDownloadManager.query(new Query().setFilterById(dlRequest)); in testRemoveDownload()[all …]
64 protected DownloadManager mDownloadManager = null; field in DownloadManagerBaseTest237 mDownloadManager = (DownloadManager)mContext.getSystemService(Context.DOWNLOAD_SERVICE); in setUp()487 ParcelFileDescriptor pfd = mDownloadManager.openDownloadedFile(requestId); in verifyAndCleanupSingleFileDownload()488 Cursor cursor = mDownloadManager.query(new Query().setFilterById(requestId)); in verifyAndCleanupSingleFileDownload()499 mDownloadManager.remove(requestId); in verifyAndCleanupSingleFileDownload()762 Cursor cursor = mDownloadManager.query(query); in doWaitForDownloadsOrTimeout()891 Cursor cursor = mDownloadManager.query(new Query()); in removeAllCurrentDownloads()905 mDownloadManager.remove(id); in removeAllCurrentDownloads()908 cursor = mDownloadManager.query(new Query()); in removeAllCurrentDownloads()958 return mDownloadManager.enqueue(request); in doEnqueue()[all …]
91 long requestID = mDownloadManager.enqueue(request); in testMultipleDownloads()95 Cursor cursor = mDownloadManager.query(new Query()); in testMultipleDownloads()134 ParcelFileDescriptor pfd = mDownloadManager.openDownloadedFile(dlRequest); in testDownloadLargeFile()
112 public final DownloadManager mDownloadManager; field in CarrierKeyDownloadManager124 mDownloadManager = (DownloadManager) mContext.getSystemService(Context.DOWNLOAD_SERVICE); in CarrierKeyDownloadManager()322 Cursor cursor = mDownloadManager.query(query); in onDownloadComplete()333 mDownloadManager.openDownloadedFile(carrierKeyDownloadIdentifier) in onDownloadComplete()341 mDownloadManager.remove(carrierKeyDownloadIdentifier); in onDownloadComplete()526 Long carrierKeyDownloadRequestId = mDownloadManager.enqueue(request); in downloadKey()
66 private DownloadManager mDownloadManager; field in ConnectionUtil118 mDownloadManager = (DownloadManager)mContext.getSystemService(Context.DOWNLOAD_SERVICE); in initialize()367 long enqueue = mDownloadManager.enqueue(request); in startDownloadAndWait()416 Cursor c = mDownloadManager.query(query); in downloadSuccessful()
246 return mDownloadManager; in getSystemService()531 private final DownloadManager mDownloadManager = mock(DownloadManager.class); field in ContextFixture