/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/ |
D | DownloadManagerWrapper.java | 44 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/ |
D | EmbmsTestDownloadApp.java | 182 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/ |
D | DownloadPackageTask.java | 59 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/ |
D | DownloadPackageTaskTest.java | 65 @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/ |
D | ConnectivityTestActivity.java | 42 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/ |
D | AbstractDownloadProviderFunctionalTest.java | 147 private final DownloadManager mDownloadManager; field in AbstractDownloadProviderFunctionalTest.TestContext 154 mDownloadManager = mock(DownloadManager.class); in TestContext() 174 return mDownloadManager; in getSystemService()
|
D | PublicApiFunctionalTest.java | 77 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/ |
D | EmlAttachmentProvider.java | 83 private DownloadManager mDownloadManager; field in EmlAttachmentProvider 109 mDownloadManager = in onCreate() 359 mDownloadManager.addCompletedDownload(attachment.getName(), in copyAttachment()
|