Searched refs:mDownloadManager (Results 1 – 7 of 7) sorted by relevance
44 private final DownloadManager mDownloadManager; field in DownloadManagerWrapper51 mDownloadManager = downloadManager; in DownloadManagerWrapper()56 if (null != mDownloadManager) { in remove()57 mDownloadManager.remove(ids); in remove()71 if (null != mDownloadManager) { in openDownloadedFile()72 return mDownloadManager.openDownloadedFile(fileId); in openDownloadedFile()86 if (null != mDownloadManager) { in query()87 return mDownloadManager.query(query); in query()100 if (null != mDownloadManager) { in enqueue()101 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 …]
60 private final DownloadManager mDownloadManager; field in DownloadPackageTask90 mDownloadManager = (DownloadManager) context.getSystemService(Context.DOWNLOAD_SERVICE); in DownloadPackageTask()91 mDownloadManager.setAccessFilename(true); in DownloadPackageTask()144 mDownloadId = mDownloadManager.enqueue(request); in run()169 Cursor c = mDownloadManager.query(q); in createDownloadReceiver()224 boolean removeSuccess = mDownloadManager.remove(mDownloadId) == 1;
64 @Mock private DownloadManager mDownloadManager; field in DownloadPackageTaskTest92 when(mContext.getSystemService(Context.DOWNLOAD_SERVICE)).thenReturn(mDownloadManager); in setUp()195 when(mDownloadManager.enqueue(any(Request.class))).thenReturn(TEST_DOWNLOAD_ID); in mockSuccessfulDownload()200 when(mDownloadManager.query(any(Query.class))).thenReturn(cursor); in mockSuccessfulDownload()204 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()