Searched refs:mDownloadManager (Results 1 – 5 of 5) sorted by relevance
84 long goodId = mDownloadManager.enqueue(new Request(getGoodUrl())); in testDownloadManager()85 long badId = mDownloadManager.enqueue(new Request(getBadUrl())); in testDownloadManager()113 long id = mDownloadManager.enqueue(new Request(getGoodUrl())); in testDownloadManagerSupportsHttp()146 long id = mDownloadManager.enqueue(new Request(Uri.parse("http://www.example.com"))); in testDownloadManagerSupportsHttpWithExternalWebServer()180 long id = mDownloadManager.enqueue(new Request(Uri.parse("https://www.example.com"))); in testDownloadManagerSupportsHttpsWithExternalWebServer()204 long id = mDownloadManager.enqueue(new Request(getMinimumDownloadUrl())); in testMinimumDownload()207 ParcelFileDescriptor fileDescriptor = mDownloadManager.openDownloadedFile(id); in testMinimumDownload()212 cursor = mDownloadManager.query(new Query().setFilterById(id)); in testMinimumDownload()258 long uriId = mDownloadManager.enqueue(requestUri); in testDownloadManagerDestination()262 long extFileId = mDownloadManager.enqueue(requestExtFile); in testDownloadManagerDestination()[all …]
100 protected DownloadManager mDownloadManager; field in DownloadManagerTestBase112 mDownloadManager = (DownloadManager) mContext.getSystemService(Context.DOWNLOAD_SERVICE); in setUp()345 cursor = mDownloadManager.query(query); in clearDownloads()351 assertEquals(removeIds.length, mDownloadManager.remove(removeIds)); in clearDownloads()382 cursor = mDownloadManager.query(query); in getTotalNumberDownloads()395 cursor = mDownloadManager.query(query); in assertDownloadQueryableById()411 cursor = mDownloadManager.query(query); in assertDownloadQueryableByStatus()430 cursor = mDownloadManager.query(new DownloadManager.Query().setFilterById(id)); in assertSuccessfulDownload()453 assertEquals(1, mDownloadManager.remove(removeId)); in assertRemoveDownload()455 cursor = mDownloadManager.query(query); in assertRemoveDownload()
64 long id = mDownloadManager.enqueue(requestPublic); in testSetDestinationUri_publicDir()90 long id = mDownloadManager.enqueue(requestPublic); in testSetDestinationUri_sdcardPath()118 mDownloadManager.enqueue(requestPublic); in testSetDestinationUri_privateAppDir()141 long id = mDownloadManager.enqueue(requestPublic); in testDestinationInExternalPublicDir()171 final long id = mDownloadManager.addCompletedDownload(file.getName(), "Test desc", true, in testAddCompletedDownload_publicDirs()173 final String actualContents = readFromFile(mDownloadManager.openDownloadedFile(id)); in testAddCompletedDownload_publicDirs()176 final Uri downloadUri = mDownloadManager.getUriForDownloadedFile(id); in testAddCompletedDownload_publicDirs()204 final long downloadId = mDownloadManager.enqueue(request); in testDownloadManager_mediaStoreEntry()207 final Uri downloadUri = mDownloadManager.getUriForDownloadedFile(downloadId); in testDownloadManager_mediaStoreEntry()252 final long downloadId = mDownloadManager.addCompletedDownload(file.getName(), in testAddCompletedDownload_mediaStoreEntry()[all …]
63 long id = mDownloadManager.enqueue(requestPublic); in testSetDestinationUri_otherAppObbDir()
1035 private final DownloadManager mDownloadManager; field in MediaPlayerDrmTestBase.MediaDownloadManager1039 mDownloadManager = in MediaDownloadManager()1072 id = mDownloadManager.enqueue(request); in downloadFile()1084 mDownloadManager.remove(id); in removeFile()1088 return mDownloadManager.getUriForDownloadedFile(id); in getUriForDownloadedFile()