Home
last modified time | relevance | path

Searched refs:mDownloadManager (Results 1 – 7 of 7) sorted by relevance

/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
DDownloadManagerWrapper.java45 private final DownloadManager mDownloadManager; field in DownloadManagerWrapper
52 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()
/packages/services/Telephony/testapps/EmbmsTestDownloadApp/src/com/android/phone/testapps/embmsdownload/
DEmbmsTestDownloadApp.java182 private MbmsDownloadSession mDownloadManager; field in EmbmsTestDownloadApp
210 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 …]
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/
DDownloadPackageTask.java61 private final DownloadManager mDownloadManager; field in DownloadPackageTask
93 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;
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/
DDownloadPackageTaskTest.java64 @Mock private DownloadManager mDownloadManager; field in DownloadPackageTaskTest
92 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()
/packages/apps/Test/connectivity/UID/src/com/android/tests/connectivity/uid/
DConnectivityTestActivity.java42 DownloadManager mDownloadManager; field in ConnectivityTestActivity
57 mDownloadManager = (DownloadManager) in onCreate()
110 mDownloadManager.enqueue(request); in downloadData()
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
DAbstractDownloadProviderFunctionalTest.java142 private final DownloadManager mDownloadManager; field in AbstractDownloadProviderFunctionalTest.TestContext
149 mDownloadManager = mock(DownloadManager.class); in TestContext()
169 return mDownloadManager; in getSystemService()
DPublicApiFunctionalTest.java77 private DownloadManager mDownloadManager; field in PublicApiFunctionalTest
88 mDownloadManager = getContext().getSystemService(DownloadManager.class); in setUp()
581 verify(mDownloadManager, times(1)).remove(downloadIds); in testNotificationCancelDownloadClicked()