Home
last modified time | relevance | path

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

/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
DDownloadManagerWrapper.java44 private final DownloadManager mDownloadManager; field in DownloadManagerWrapper
51 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()
/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.java59 private final DownloadManager mDownloadManager; field in DownloadPackageTask
89 mDownloadManager = (DownloadManager) context.getSystemService(Context.DOWNLOAD_SERVICE); in DownloadPackageTask()
90 mDownloadManager.setAccessFilename(true); in DownloadPackageTask()
148 mDownloadId = mDownloadManager.enqueue(request); in run()
173 Cursor c = mDownloadManager.query(q); in createDownloadReceiver()
226 boolean removeSuccess = mDownloadManager.remove(mDownloadId) == 1;
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/
DDownloadPackageTaskTest.java65 @Mock private DownloadManager mDownloadManager; field in DownloadPackageTaskTest
93 when(mContext.getSystemService(Context.DOWNLOAD_SERVICE)).thenReturn(mDownloadManager); in setUp()
193 when(mDownloadManager.enqueue(any(Request.class))).thenReturn(TEST_DOWNLOAD_ID); in mockSuccessfulDownload()
198 when(mDownloadManager.query(any(Query.class))).thenReturn(cursor); in mockSuccessfulDownload()
202 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.java147 private final DownloadManager mDownloadManager; field in AbstractDownloadProviderFunctionalTest.TestContext
154 mDownloadManager = mock(DownloadManager.class); in TestContext()
174 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()
/packages/apps/UnifiedEmail/src/com/android/mail/providers/
DEmlAttachmentProvider.java83 private DownloadManager mDownloadManager; field in EmlAttachmentProvider
109 mDownloadManager = in onCreate()
359 mDownloadManager.addCompletedDownload(attachment.getName(), in copyAttachment()