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.java66 protected DownloadManager mDownloadManager = null; field in DownloadManagerBaseTest
241 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 …]
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.java118 public final DownloadManager mDownloadManager; field in CarrierKeyDownloadManager
144 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()
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/util/
DConnectionUtil.java64 private DownloadManager mDownloadManager; field in ConnectionUtil
121 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()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DContextFixture.java290 return mDownloadManager; in getSystemService()
722 private final DownloadManager mDownloadManager = mock(DownloadManager.class); field in ContextFixture