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.java80 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 …]
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.java91 long requestID = mDownloadManager.enqueue(request); in testMultipleDownloads()
95 Cursor cursor = mDownloadManager.query(new Query()); in testMultipleDownloads()
134 ParcelFileDescriptor pfd = mDownloadManager.openDownloadedFile(dlRequest); in testDownloadLargeFile()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DCarrierKeyDownloadManager.java112 public final DownloadManager mDownloadManager; field in CarrierKeyDownloadManager
124 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()
/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.java246 return mDownloadManager; in getSystemService()
531 private final DownloadManager mDownloadManager = mock(DownloadManager.class); field in ContextFixture