Searched refs:mDownloadManager (Results 1 – 5 of 5) sorted by relevance
80 long goodId = mDownloadManager.enqueue(new Request(getGoodUrl())); in testDownloadManager()81 long badId = mDownloadManager.enqueue(new Request(getBadUrl())); in testDownloadManager()109 long id = mDownloadManager.enqueue(new Request(getGoodUrl())); in testDownloadManagerSupportsHttp()142 long id = mDownloadManager.enqueue(new Request(Uri.parse("http://www.example.com"))); in testDownloadManagerSupportsHttpWithExternalWebServer()176 long id = mDownloadManager.enqueue(new Request(Uri.parse("https://www.example.com"))); in testDownloadManagerSupportsHttpsWithExternalWebServer()200 long id = mDownloadManager.enqueue(new Request(getMinimumDownloadUrl())); in testMinimumDownload()203 ParcelFileDescriptor fileDescriptor = mDownloadManager.openDownloadedFile(id); in testMinimumDownload()208 cursor = mDownloadManager.query(new Query().setFilterById(id)); in testMinimumDownload()254 long uriId = mDownloadManager.enqueue(requestUri); in testDownloadManagerDestination()258 long extFileId = mDownloadManager.enqueue(requestExtFile); in testDownloadManagerDestination()[all …]
99 protected DownloadManager mDownloadManager; field in DownloadManagerTestBase111 mDownloadManager = (DownloadManager) mContext.getSystemService(Context.DOWNLOAD_SERVICE); in setUp()344 cursor = mDownloadManager.query(query); in clearDownloads()350 assertEquals(removeIds.length, mDownloadManager.remove(removeIds)); in clearDownloads()381 cursor = mDownloadManager.query(query); in getTotalNumberDownloads()394 cursor = mDownloadManager.query(query); in assertDownloadQueryableById()410 cursor = mDownloadManager.query(query); in assertDownloadQueryableByStatus()429 cursor = mDownloadManager.query(new DownloadManager.Query().setFilterById(id)); in assertSuccessfulDownload()452 assertEquals(1, mDownloadManager.remove(removeId)); in assertRemoveDownload()454 cursor = mDownloadManager.query(query); in assertRemoveDownload()
61 long id = mDownloadManager.enqueue(requestPublic); in testSetDestinationUri_publicDir()87 long id = mDownloadManager.enqueue(requestPublic); in testSetDestinationUri_sdcardPath()116 long id = mDownloadManager.enqueue(requestPublic); in testDestinationInExternalPublicDir()146 final long id = mDownloadManager.addCompletedDownload(file.getName(), "Test desc", true, in testAddCompletedDownload_publicDirs()148 final String actualContents = readFromFile(mDownloadManager.openDownloadedFile(id)); in testAddCompletedDownload_publicDirs()151 final Uri downloadUri = mDownloadManager.getUriForDownloadedFile(id); in testAddCompletedDownload_publicDirs()179 final long downloadId = mDownloadManager.enqueue(request); in testDownloadManager_mediaStoreEntry()182 final Uri downloadUri = mDownloadManager.getUriForDownloadedFile(downloadId); in testDownloadManager_mediaStoreEntry()227 final long downloadId = mDownloadManager.addCompletedDownload(file.getName(), in testAddCompletedDownload_mediaStoreEntry()231 final Uri downloadUri = mDownloadManager.getUriForDownloadedFile(downloadId); in testAddCompletedDownload_mediaStoreEntry()
62 long id = mDownloadManager.enqueue(requestPublic); in testSetDestinationUri_otherAppObbDir()
1031 private final DownloadManager mDownloadManager; field in MediaPlayerDrmTestBase.MediaDownloadManager1035 mDownloadManager = in MediaDownloadManager()1067 id = mDownloadManager.enqueue(request); in downloadFile()1079 mDownloadManager.remove(id); in removeFile()1083 return mDownloadManager.getUriForDownloadedFile(id); in getUriForDownloadedFile()