Searched refs:mDownloadManager (Results 1 – 7 of 7) sorted by relevance
45 private final DownloadManager mDownloadManager; field in DownloadManagerWrapper52 mDownloadManager = downloadManager; in DownloadManagerWrapper()57 if (null != mDownloadManager) { in remove()58 mDownloadManager.remove(ids); in remove()73 if (null != mDownloadManager) { in openDownloadedFile()74 return mDownloadManager.openDownloadedFile(fileId); in openDownloadedFile()88 if (null != mDownloadManager) { in query()89 return mDownloadManager.query(query); in query()102 if (null != mDownloadManager) { in enqueue()103 return mDownloadManager.enqueue(request); in enqueue()
182 private MbmsDownloadSession mDownloadManager; field in EmbmsTestDownloadApp210 mDownloadManager = MbmsDownloadSession.create(this, mHandler::post, mCallback); in onCreate()219 mDownloadManager.setTempFileRootDirectory(downloadDir); in onCreate()231 mDownloadManager.setTempFileRootDirectory(downloadDir); in onCreate()239 mDownloadManager.requestUpdateFileServices(Collections.singletonList("Class1")); in onCreate()247 if (mDownloadManager == null) { in onCreate()286 if (mDownloadManager == null) { in onCreate()293 mDownloadManager.cancelDownload(request); in onCreate()300 if (mDownloadManager == null) { in onCreate()311 mDownloadManager.addProgressListener(req, sInstance.getMainThreadHandler()::post, in onCreate()[all …]
61 private final DownloadManager mDownloadManager; field in DownloadPackageTask93 mDownloadManager = (DownloadManager) context.getSystemService(Context.DOWNLOAD_SERVICE); in DownloadPackageTask()94 mDownloadManager.setAccessFilename(true); in DownloadPackageTask()149 mDownloadId = mDownloadManager.enqueue(request); in run()175 Cursor c = mDownloadManager.query(q); in createDownloadReceiver()230 boolean removeSuccess = mDownloadManager.remove(mDownloadId) == 1;
64 @Mock private DownloadManager mDownloadManager; field in DownloadPackageTaskTest92 when(mContext.getSystemService(Context.DOWNLOAD_SERVICE)).thenReturn(mDownloadManager); in setUp()196 when(mDownloadManager.enqueue(any(Request.class))).thenReturn(TEST_DOWNLOAD_ID); in mockSuccessfulDownload()201 when(mDownloadManager.query(any(Query.class))).thenReturn(cursor); in mockSuccessfulDownload()205 verify(mDownloadManager).setAccessFilename(true); in verifyDownloadReceiver()
42 DownloadManager mDownloadManager; field in ConnectivityTestActivity57 mDownloadManager = (DownloadManager) in onCreate()110 mDownloadManager.enqueue(request); in downloadData()
142 private final DownloadManager mDownloadManager; field in AbstractDownloadProviderFunctionalTest.TestContext149 mDownloadManager = mock(DownloadManager.class); in TestContext()169 return mDownloadManager; in getSystemService()
77 private DownloadManager mDownloadManager; field in PublicApiFunctionalTest88 mDownloadManager = getContext().getSystemService(DownloadManager.class); in setUp()581 verify(mDownloadManager, times(1)).remove(downloadIds); in testNotificationCancelDownloadClicked()