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

/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
H A DDownloadManagerWrapper.java44 private final DownloadManager mDownloadManager; field in class:DownloadManagerWrapper
51 mDownloadManager = downloadManager;
56 if (null != mDownloadManager) {
57 mDownloadManager.remove(ids);
71 if (null != mDownloadManager) {
72 return mDownloadManager.openDownloadedFile(fileId);
79 // We come here if mDownloadManager is null or if an exception was thrown.
86 if (null != mDownloadManager) {
87 return mDownloadManager.query(query);
94 // We come here if mDownloadManager i
[all...]
/packages/services/Telephony/testapps/EmbmsTestDownloadApp/src/com/android/phone/testapps/embmsdownload/
H A DEmbmsTestDownloadApp.java179 private MbmsDownloadSession mDownloadManager; field in class:EmbmsTestDownloadApp
206 mDownloadManager = MbmsDownloadSession.create(this, mCallback, mHandler);
214 mDownloadManager.setTempFileRootDirectory(downloadDir);
221 mDownloadManager.requestUpdateFileServices(Collections.singletonList("Class1"));
229 if (mDownloadManager == null) {
269 if (mDownloadManager == null) {
276 mDownloadManager.cancelDownload(request);
283 if (mDownloadManager == null) {
294 mDownloadManager.registerStateCallback(req, new DownloadStateCallback(
318 if (mDownloadManager
[all...]
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/
H A DDownloadPackageTask.java52 private final DownloadManager mDownloadManager; field in class:DownloadPackageTask
78 mDownloadManager = (DownloadManager) context.getSystemService(Context.DOWNLOAD_SERVICE);
79 mDownloadManager.setAccessFilename(true);
134 mDownloadId = mDownloadManager.enqueue(request);
149 Cursor c = mDownloadManager.query(q);
202 boolean removeSuccess = mDownloadManager.remove(mDownloadId) == 1;
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/
H A DDownloadPackageTaskTest.java61 @Mock private DownloadManager mDownloadManager; field in class:DownloadPackageTaskTest
89 when(mContext.getSystemService(Context.DOWNLOAD_SERVICE)).thenReturn(mDownloadManager);
188 when(mDownloadManager.enqueue(any(Request.class))).thenReturn(TEST_DOWNLOAD_ID);
193 when(mDownloadManager.query(any(Query.class))).thenReturn(cursor);
197 verify(mDownloadManager).setAccessFilename(true);
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
H A DAbstractDownloadProviderFunctionalTest.java105 private final DownloadManager mDownloadManager; field in class:AbstractDownloadProviderFunctionalTest.TestContext
112 mDownloadManager = mock(DownloadManager.class);
132 return mDownloadManager;
H A DPublicApiFunctionalTest.java75 private DownloadManager mDownloadManager; field in class:PublicApiFunctionalTest
86 mDownloadManager = getContext().getSystemService(DownloadManager.class);
573 verify(mDownloadManager, times(1)).remove(downloadIds);
/packages/apps/UnifiedEmail/src/com/android/mail/providers/
H A DEmlAttachmentProvider.java83 private DownloadManager mDownloadManager; field in class:EmlAttachmentProvider
109 mDownloadManager =
359 mDownloadManager.addCompletedDownload(attachment.getName(),

Completed in 223 milliseconds