/aosp12/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/ |
H A 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()
|
/aosp12/frameworks/base/core/tests/hosttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/downloadmanagertests/ |
H A D | DownloadManagerTestApp.java | 141 dlRequest = mDownloadManager.enqueue(request); in initiateDownload() 208 mDownloadManager.remove(dlRequest); in verifyFileDownloadSucceeded() 233 dlRequest = mDownloadManager.enqueue(request); in runLargeDownloadOverWiFi() 249 mDownloadManager.remove(dlRequest); in runLargeDownloadOverWiFi() 287 dlRequest = mDownloadManager.enqueue(request); in runDownloadMultipleSwitching() 326 mDownloadManager.remove(dlRequest); in runDownloadMultipleSwitching() 363 dlRequest = mDownloadManager.enqueue(request); in runDownloadMultipleWiFiEnableDisable() 394 mDownloadManager.remove(dlRequest); in runDownloadMultipleWiFiEnableDisable() 433 dlRequest = mDownloadManager.enqueue(request); in runDownloadMultipleAirplaneModeEnableDisable() 465 mDownloadManager.remove(dlRequest); in runDownloadMultipleAirplaneModeEnableDisable() [all …]
|
H A D | DownloadManagerBaseTest.java | 47 protected DownloadManager mDownloadManager = null; field in DownloadManagerBaseTest 235 mDownloadManager = (DownloadManager)mContext.getSystemService(Context.DOWNLOAD_SERVICE); in setUp() 377 Cursor cursor = mDownloadManager.query(q); in hasDownloadFinished() 487 Cursor response = mDownloadManager.query(q); in getBytesDownloaded() 518 Cursor cursor = mDownloadManager.query(new Query()); in removeAllCurrentDownloads() 525 mDownloadManager.remove(downloadId); in removeAllCurrentDownloads() 545 Cursor cursor = mDownloadManager.query(query); in getCursor()
|
/aosp12/frameworks/base/core/tests/coretests/src/android/app/ |
H A D | DownloadManagerFunctionalTest.java | 81 long dlRequest = mDownloadManager.enqueue(request); in doErrorTest() 106 mDownloadManager.remove(dlRequest); in testBinaryDownload() 119 mDownloadManager.remove(dlRequest); in testTextDownload() 134 ParcelFileDescriptor pfd = mDownloadManager.openDownloadedFile(requestId); in verifyDownload() 166 long dlRequest = mDownloadManager.enqueue(request); in testDownloadToExternal_fileExists() 204 long dlRequest = mDownloadManager.enqueue(request); in testDownloadToExternal() 236 mDownloadManager.enqueue(request); in testDownloadToProhibitedDirectory() 308 long dlRequest = mDownloadManager.enqueue(request); in testRelativeRedirect() 327 mDownloadManager.remove(dlRequest); in testRemoveDownload() 352 long dlRequest = mDownloadManager.enqueue(request); in testSetTitle() [all …]
|
H A D | DownloadManagerBaseTest.java | 65 protected DownloadManager mDownloadManager = null; field in DownloadManagerBaseTest 240 mDownloadManager = (DownloadManager)mContext.getSystemService(Context.DOWNLOAD_SERVICE); in setUp() 490 ParcelFileDescriptor pfd = mDownloadManager.openDownloadedFile(requestId); in verifyAndCleanupSingleFileDownload() 491 Cursor cursor = mDownloadManager.query(new Query().setFilterById(requestId)); in verifyAndCleanupSingleFileDownload() 502 mDownloadManager.remove(requestId); in verifyAndCleanupSingleFileDownload() 765 Cursor cursor = mDownloadManager.query(query); in doWaitForDownloadsOrTimeout() 894 Cursor cursor = mDownloadManager.query(new Query()); in removeAllCurrentDownloads() 908 mDownloadManager.remove(id); in removeAllCurrentDownloads() 911 cursor = mDownloadManager.query(new Query()); in removeAllCurrentDownloads() 961 return mDownloadManager.enqueue(request); in doEnqueue() [all …]
|
H A D | DownloadManagerStressTest.java | 92 long requestID = mDownloadManager.enqueue(request); in testMultipleDownloads() 96 Cursor cursor = mDownloadManager.query(new Query()); in testMultipleDownloads() 135 ParcelFileDescriptor pfd = mDownloadManager.openDownloadedFile(dlRequest); in testDownloadLargeFile()
|
/aosp12/packages/services/Telephony/testapps/EmbmsTestDownloadApp/src/com/android/phone/testapps/embmsdownload/ |
H A 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() 247 if (mDownloadManager == null) { in onCreate() 286 if (mDownloadManager == null) { in onCreate() 293 mDownloadManager.cancelDownload(request); in onCreate() 300 if (mDownloadManager == null) { in onCreate() 328 if (mDownloadManager == null) { in onCreate() 354 if (mDownloadManager == null) { in onCreate() [all …]
|
/aosp12/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/ |
H A D | DownloadPackageTask.java | 60 private final DownloadManager mDownloadManager; field in DownloadPackageTask 90 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;
|
/aosp12/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/ |
H A D | DownloadPackageTaskTest.java | 64 @Mock private DownloadManager mDownloadManager; field in DownloadPackageTaskTest 92 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()
|
/aosp12/packages/apps/Test/connectivity/UID/src/com/android/tests/connectivity/uid/ |
H A D | ConnectivityTestActivity.java | 42 DownloadManager mDownloadManager; field in ConnectivityTestActivity 57 mDownloadManager = (DownloadManager) in onCreate() 110 mDownloadManager.enqueue(request); in downloadData()
|
/aosp12/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
H A D | CarrierKeyDownloadManager.java | 108 public final DownloadManager mDownloadManager; field in CarrierKeyDownloadManager 125 mDownloadManager = (DownloadManager) mContext.getSystemService(Context.DOWNLOAD_SERVICE); in CarrierKeyDownloadManager() 334 Cursor cursor = mDownloadManager.query(query); in onDownloadComplete() 343 jsonStr = convertToString(mDownloadManager, carrierKeyDownloadIdentifier); in onDownloadComplete() 346 jsonStr = convertToStringNoGZip(mDownloadManager, in onDownloadComplete() 354 mDownloadManager.remove(carrierKeyDownloadIdentifier); in onDownloadComplete() 561 Long carrierKeyDownloadRequestId = mDownloadManager.enqueue(request); in downloadKey()
|
/aosp12/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/ |
H A D | AbstractDownloadProviderFunctionalTest.java | 142 private final DownloadManager mDownloadManager; field in AbstractDownloadProviderFunctionalTest.TestContext 149 mDownloadManager = mock(DownloadManager.class); in TestContext() 169 return mDownloadManager; in getSystemService()
|
H A 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()
|
/aosp12/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/util/ |
H A D | ConnectionUtil.java | 64 private DownloadManager mDownloadManager; field in ConnectionUtil 120 mDownloadManager = (DownloadManager)mContext.getSystemService(Context.DOWNLOAD_SERVICE); in initialize() 369 long enqueue = mDownloadManager.enqueue(request); in startDownloadAndWait() 418 Cursor c = mDownloadManager.query(query); in downloadSuccessful()
|
/aosp12/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
H A D | ContextFixture.java | 268 return mDownloadManager; in getSystemService() 663 private final DownloadManager mDownloadManager = mock(DownloadManager.class); field in ContextFixture
|