Searched refs:Helpers (Results 1 – 12 of 12) sorted by relevance
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/ |
D | HelpersTest.java | 91 final String actual = Helpers.generateSaveFile(getContext(), in testGenerateSaveFile() 99 final String actual1 = Helpers.generateSaveFile(getContext(), "http://example.com/file.txt", in testGenerateSaveFileDupes() 103 final String actual2 = Helpers.generateSaveFile(getContext(), "http://example.com/file.txt", in testGenerateSaveFileDupes() 112 final String actual = Helpers.generateSaveFile(getContext(), in testGenerateSaveFileNoExtension() 123 final String actual = Helpers.generateSaveFile(getContext(), "url", hint, in testGenerateSaveFileHint() 134 final String actual = Helpers.generateSaveFile(getContext(), "url", hint, in testGenerateSaveFileHintWithInvalidChars() 143 Helpers.DEFAULT_DOWNLOAD_FILE_NAME_PREFIX); in testGenerateSaveFileHintWithInvalidCharsOnly() 146 final String actual = Helpers.generateSaveFile(getContext(), "url", hint, in testGenerateSaveFileHintWithInvalidCharsOnly() 153 final String actual = Helpers.generateSaveFile(getContext(), in testGenerateSaveFileDisposition() 160 assertTrue(Helpers.isFileInExternalAndroidDirs( in testIsFileInExternalAndroidDirs() [all …]
|
D | AbstractDownloadProviderFunctionalTest.java | 209 Helpers.setSystemFacade(mSystemFacade); in setUp()
|
D | PublicApiFunctionalTest.java | 549 Helpers.setSystemFacade(mSystemFacade); in testNotificationClickedBroadcast() 571 Helpers.setSystemFacade(mSystemFacade); in testNotificationCancelDownloadClicked()
|
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
D | DownloadReceiver.java | 24 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()
|
D | DownloadJobService.java | 106 Helpers.scheduleJob(this, DownloadInfo.queryDownloadInfo(this, id)); in jobFinishedInternal() 116 private ContentObserver mObserver = new ContentObserver(Helpers.getAsyncHandler()) { 119 Helpers.getDownloadNotifier(DownloadJobService.this).update();
|
D | DownloadProvider.java | 32 import static com.android.providers.downloads.Helpers.convertToMediaStoreDownloadsUri; 33 import static com.android.providers.downloads.Helpers.triggerMediaScan; 885 Helpers.getPackageForUid(getContext(), in insert() 919 final String callingPackage = Helpers.getPackageForUid(getContext(), in insert() 930 Helpers.scheduleJob(getContext(), rowID); in insert() 950 Helpers.getContentUriForPath(getContext(), filePath), in updateMediaProvider() 979 Helpers.getContentUriForPath(getContext(), filePath)); in getMediaStoreUri() 1002 mediaValues.put(MediaStore.Downloads.VOLUME_NAME, Helpers.extractVolumeName(filePath)); in convertToMediaProviderValues() 1003 mediaValues.put(MediaStore.Downloads.RELATIVE_PATH, Helpers.extractRelativePath(filePath)); in convertToMediaProviderValues() 1004 mediaValues.put(MediaStore.Downloads.DISPLAY_NAME, Helpers.extractDisplayName(filePath)); in convertToMediaProviderValues() [all …]
|
D | DownloadThread.java | 249 mSystemFacade = Helpers.getSystemFacade(mContext); in DownloadThread() 250 mNotifier = Helpers.getDownloadNotifier(mContext); in DownloadThread() 681 if (Helpers.isFileInExternalAndroidDirs(mInfoDelta.mFileName)) { in finalizeDestination() 692 final File beforeDir = Helpers.getRunningDestinationDirectory( in finalizeDestination() 694 final File afterDir = Helpers.getSuccessDestinationDirectory( in finalizeDestination() 782 mInfoDelta.mFileName = Helpers.generateSaveFile(mContext, mInfoDelta.mUri, in parseOkHeaders()
|
D | MediaScanTriggerJob.java | 62 Helpers.getAsyncHandler().post(() -> { in onStartJob() 105 final Uri mediaStoreUri = Helpers.triggerMediaScan(mediaProviderClient, in onStartJob()
|
D | DownloadInfo.java | 199 mSystemFacade = Helpers.getSystemFacade(context); in DownloadInfo() 275 return delay + Helpers.sRandom.nextInt((int) (delay / 2)); in fuzzDelay()
|
D | DownloadIdleService.java | 75 Helpers.getAsyncHandler().post(new IdleRunnable(params)); in onStartJob()
|
D | Helpers.java | 81 public class Helpers { class 108 private Helpers() { in Helpers() method in Helpers
|
D | DownloadNotifier.java | 426 return Helpers.removeInvalidCharsAndGenerateName(title); in getDownloadTitle()
|