Home
last modified time | relevance | path

Searched refs:Helpers (Results 1 – 11 of 11) sorted by relevance

/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
DHelpersTest.java90 final String actual = Helpers.generateSaveFile(getContext(), in testGenerateSaveFile()
98 final String actual1 = Helpers.generateSaveFile(getContext(), "http://example.com/file.txt", in testGenerateSaveFileDupes()
102 final String actual2 = Helpers.generateSaveFile(getContext(), "http://example.com/file.txt", in testGenerateSaveFileDupes()
111 final String actual = Helpers.generateSaveFile(getContext(), in testGenerateSaveFileNoExtension()
122 final String actual = Helpers.generateSaveFile(getContext(), "url", hint, in testGenerateSaveFileHint()
129 final String actual = Helpers.generateSaveFile(getContext(), in testGenerateSaveFileDisposition()
136 assertTrue(Helpers.isFileInExternalAndroidDirs( in testIsFileInExternalAndroidDirs()
138 assertTrue(Helpers.isFileInExternalAndroidDirs( in testIsFileInExternalAndroidDirs()
140 assertTrue(Helpers.isFileInExternalAndroidDirs( in testIsFileInExternalAndroidDirs()
142 assertTrue(Helpers.isFileInExternalAndroidDirs( in testIsFileInExternalAndroidDirs()
[all …]
DAbstractDownloadProviderFunctionalTest.java209 Helpers.setSystemFacade(mSystemFacade); in setUp()
DPublicApiFunctionalTest.java549 Helpers.setSystemFacade(mSystemFacade); in testNotificationClickedBroadcast()
571 Helpers.setSystemFacade(mSystemFacade); in testNotificationCancelDownloadClicked()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadReceiver.java24 import static com.android.providers.downloads.Helpers.getAsyncHandler;
25 import static com.android.providers.downloads.Helpers.getDownloadNotifier;
26 import static com.android.providers.downloads.Helpers.getInt;
27 import static com.android.providers.downloads.Helpers.getString;
28 import static com.android.providers.downloads.Helpers.getSystemFacade;
129 Helpers.scheduleJob(context, info); in handleBootCompleted()
140 Helpers.handleRemovedUidEntries(context, cpc.getLocalContentProvider(), in handleRemovedUidEntries()
153 Helpers.handleRemovedUidEntries(context, cpc.getLocalContentProvider(), uid); in handleUidRemoved()
DDownloadJobService.java95 Helpers.scheduleJob(this, DownloadInfo.queryDownloadInfo(this, id)); in onStopJob()
107 Helpers.scheduleJob(this, DownloadInfo.queryDownloadInfo(this, id)); in jobFinishedInternal()
117 private ContentObserver mObserver = new ContentObserver(Helpers.getAsyncHandler()) {
120 Helpers.getDownloadNotifier(DownloadJobService.this).update();
DDownloadProvider.java32 import static com.android.providers.downloads.Helpers.convertToMediaStoreDownloadsUri;
33 import static com.android.providers.downloads.Helpers.triggerMediaScan;
867 Helpers.getPackageForUid(getContext(), in insert()
901 final String callingPackage = Helpers.getPackageForUid(getContext(), in insert()
912 Helpers.scheduleJob(getContext(), rowID); in insert()
932 Helpers.getContentUriForPath(getContext(), filePath), in updateMediaProvider()
961 Helpers.getContentUriForPath(getContext(), filePath)); in getMediaStoreUri()
984 mediaValues.put(MediaStore.Downloads.VOLUME_NAME, Helpers.extractVolumeName(filePath)); in convertToMediaProviderValues()
985 mediaValues.put(MediaStore.Downloads.RELATIVE_PATH, Helpers.extractRelativePath(filePath)); in convertToMediaProviderValues()
986 mediaValues.put(MediaStore.Downloads.DISPLAY_NAME, Helpers.extractDisplayName(filePath)); in convertToMediaProviderValues()
[all …]
DDownloadThread.java249 mSystemFacade = Helpers.getSystemFacade(mContext); in DownloadThread()
250 mNotifier = Helpers.getDownloadNotifier(mContext); in DownloadThread()
680 if (Helpers.isFileInExternalAndroidDirs(mInfoDelta.mFileName)) { in finalizeDestination()
691 final File beforeDir = Helpers.getRunningDestinationDirectory( in finalizeDestination()
693 final File afterDir = Helpers.getSuccessDestinationDirectory( in finalizeDestination()
781 mInfoDelta.mFileName = Helpers.generateSaveFile(mContext, mInfoDelta.mUri, in parseOkHeaders()
DMediaScanTriggerJob.java62 Helpers.getAsyncHandler().post(() -> { in onStartJob()
105 final Uri mediaStoreUri = Helpers.triggerMediaScan(mediaProviderClient, in onStartJob()
DHelpers.java77 public class Helpers { class
98 private Helpers() { in Helpers() method in Helpers
789 Helpers.buildQueryWithIds(idsToOrphan), null); in handleRemovedUidEntries()
795 Helpers.buildQueryWithIds(idsToDelete), null); in handleRemovedUidEntries()
DDownloadInfo.java199 mSystemFacade = Helpers.getSystemFacade(context); in DownloadInfo()
275 return delay + Helpers.sRandom.nextInt((int) (delay / 2)); in fuzzDelay()
DDownloadIdleService.java75 Helpers.getAsyncHandler().post(new IdleRunnable(params)); in onStartJob()