Home
last modified time | relevance | path

Searched refs:mDownloadManager (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/core/tests/hosttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/downloadmanagertests/
DDownloadManagerTestApp.java141 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 …]
DDownloadManagerBaseTest.java47 protected DownloadManager mDownloadManager = null; field in DownloadManagerBaseTest
235 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()
/frameworks/base/core/tests/coretests/src/android/app/
DDownloadManagerFunctionalTest.java81 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 …]
DDownloadManagerBaseTest.java64 protected DownloadManager mDownloadManager = null; field in DownloadManagerBaseTest
237 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 …]
DDownloadManagerStressTest.java92 long requestID = mDownloadManager.enqueue(request); in testMultipleDownloads()
96 Cursor cursor = mDownloadManager.query(new Query()); in testMultipleDownloads()
135 ParcelFileDescriptor pfd = mDownloadManager.openDownloadedFile(dlRequest); in testDownloadLargeFile()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DCarrierKeyDownloadManager.java115 public final DownloadManager mDownloadManager; field in CarrierKeyDownloadManager
128 mDownloadManager = (DownloadManager) mContext.getSystemService(Context.DOWNLOAD_SERVICE); in CarrierKeyDownloadManager()
338 Cursor cursor = mDownloadManager.query(query); in onDownloadComplete()
349 mDownloadManager.openDownloadedFile(carrierKeyDownloadIdentifier) in onDownloadComplete()
357 mDownloadManager.remove(carrierKeyDownloadIdentifier); in onDownloadComplete()
554 Long carrierKeyDownloadRequestId = mDownloadManager.enqueue(request); in downloadKey()
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/util/
DConnectionUtil.java66 private DownloadManager mDownloadManager; field in ConnectionUtil
118 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()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DContextFixture.java249 return mDownloadManager; in getSystemService()
555 private final DownloadManager mDownloadManager = mock(DownloadManager.class); field in ContextFixture