Home
last modified time | relevance | path

Searched refs:scanFile (Results 1 – 25 of 25) sorted by relevance

/packages/providers/MediaProvider/tests/src/com/android/providers/media/scan/
DModernMediaScannerTest.java716 assertNotNull(mModern.scanFile(image, REASON_UNKNOWN)); in testScan_Nomedia_File()
721 assertNotNull(mModern.scanFile(image, REASON_UNKNOWN)); in testScan_Nomedia_File()
726 assertNotNull(mModern.scanFile(image, REASON_UNKNOWN)); in testScan_Nomedia_File()
733 assertThat(mModern.scanFile(image, REASON_UNKNOWN)).isNull(); in testScan_missingFile()
736 assertThat(mModern.scanFile(image, REASON_UNKNOWN)).isNull(); in testScan_missingFile()
748 assertNotNull(mModern.scanFile(image, REASON_UNKNOWN, thisPackageName)); in testScanFileAndUpdateOwnerPackageName()
794 mModern.scanFile(audio, REASON_UNKNOWN); in testScan_audio_empty_title()
813 mModern.scanFile(audio, REASON_UNKNOWN); in testScan_audio_recording()
833 final Uri uri = mModern.scanFile(file, REASON_UNKNOWN); in testScan_148316354()
853 mModern.scanFile(file, REASON_UNKNOWN); in testScan_audioMp4_notRescanIfUnchanged()
[all …]
DNullMediaScannerTest.java40 scanner.scanFile(new File("/dev/null"), MediaScanner.REASON_UNKNOWN); in testSimple()
41 scanner.scanFile(new File("/dev/null"), MediaScanner.REASON_UNKNOWN, in testSimple()
DLegacyMediaScannerTest.java46 scanner.scanFile(new File("/dev/null"), MediaScanner.REASON_UNKNOWN); in testSimple()
51 scanner.scanFile(new File("/dev/null"), MediaScanner.REASON_UNKNOWN, in testSimple()
DDrmTest.java207 final Uri flUri = MediaStore.scanFile(mContext.getContentResolver(), flPath); in doForwardLock()
/packages/providers/MediaProvider/src/com/android/providers/media/scan/
DLegacyMediaScanner.java47 public Uri scanFile(File file, int reason) { in scanFile() method in LegacyMediaScanner
52 public Uri scanFile(File file, int reason, @Nullable String ownerPackage) { in scanFile() method in LegacyMediaScanner
DMediaScanner.java41 public Uri scanFile(File file, int reason); in scanFile() method
42 public Uri scanFile(File file, int reason, @Nullable String ownerPackage); in scanFile() method
DNullMediaScanner.java54 public Uri scanFile(File file, int reason) { in scanFile() method in NullMediaScanner
60 public Uri scanFile(File file, int reason, @Nullable String ownerPackage) { in scanFile() method in NullMediaScanner
DModernMediaScanner.java256 public Uri scanFile(File file, int reason) { in scanFile() method in ModernMediaScanner
257 return scanFile(file, reason, /*ownerPackage*/ null); in scanFile()
261 public Uri scanFile(File file, int reason, @Nullable String ownerPackage) { in scanFile() method in ModernMediaScanner
/packages/providers/MediaProvider/tests/src/com/android/providers/media/
DIdleServiceTest.java104 final Uri uri = MediaStore.scanFile(resolver, file); in testPruneThumbnails()
149 final Uri uri = MediaStore.scanFile(resolver, file); in testExtendTrashedItemExpiresOverOneWeek()
187 final Uri uri = MediaStore.scanFile(resolver, file); in testDeleteExpiredTrashedItem()
DMediaProviderTest.java267 final Uri uri = MediaStore.scanFile(sIsolatedResolver, file); in testCanonicalize()
347 final Uri uri = MediaStore.scanFile(sIsolatedResolver, file); in testActionLongFileNameItemHasTrimmedFileName()
1419 uris.add(MediaStore.scanFile(sIsolatedResolver, file)); in testRedactionForInvalidAndValidUris()
1451 uris.add(MediaStore.scanFile(sIsolatedResolver, file)); in testRedactionForFileExtension()
DPermissionActivityTest.java278 final Uri uri = MediaStore.scanFile(context.getContentResolver(), file); in createIntent()
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/
DIngestService.java309 mScannerConnection.scanFile(path, null); in scanPath()
323 mScannerConnection.scanFile(path, null); in onMediaScannerConnected()
/packages/providers/MediaProvider/apex/framework/api/
Dsystem-current.txt6 …method @NonNull @WorkerThread public static android.net.Uri scanFile(@NonNull android.content.Cont…
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadScanner.java64 conn.scanFile(path, mimeType); in exec()
DDownloadStorageProvider.java789 final Uri newUri = MediaStore.scanFile(getContext().getContentResolver(), in renameMediaStoreDownload()
796 MediaStore.scanFile(getContext().getContentResolver(), before); in renameMediaStoreDownload()
798 final Uri newUri = MediaStore.scanFile(getContext().getContentResolver(), after); in renameMediaStoreDownload()
DHelpers.java507 return MediaStore.scanFile(ContentResolver.wrap(mediaProviderClient), file); in triggerMediaScan()
DDownloadProvider.java858 final Uri mediaStoreUri = MediaStore.scanFile(getContext().getContentResolver(), in insert()
1696 MediaStore.scanFile(getContext().getContentResolver(), file); in delete()
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DCalendarDebugActivity.java154 MediaScannerConnection.scanFile(CalendarDebugActivity.this, new String[] { in doInBackground()
/packages/providers/MediaProvider/src/com/android/providers/media/
DMediaService.java215 return provider.scanFile(file, REASON_DEMAND); in onScanFile()
DMediaProvider.java1274 public Uri scanFile(File file, int reason) { in scanFile() method in MediaProvider
1275 return scanFile(file, reason, null); in scanFile()
1278 public Uri scanFile(File file, int reason, String ownerPackage) { in scanFile() method in MediaProvider
1279 return mMediaScanner.scanFile(file, reason, ownerPackage); in scanFile()
1285 return scanFile(file, REASON_DEMAND); in scanFileAsMediaProvider()
5567 res.putParcelable(Intent.EXTRA_STREAM, scanFile(file, REASON_DEMAND));
/packages/providers/MediaProvider/tests/client/src/com/android/providers/media/client/
DLegacyProviderMigrationTest.java322 MediaStore.scanFile(context.getContentResolver(), in testLegacy_PlaylistMap()
335 MediaStore.scanFile(context.getContentResolver(), playlistFile); in testLegacy_PlaylistMap()
/packages/apps/Contacts/src/com/android/contacts/vcard/
DVCardService.java78 mConnection.scanFile(mPath, null); in onMediaScannerConnected()
/packages/apps/Nfc/src/com/android/nfc/beam/
DBeamTransferManager.java440 MediaScannerConnection.scanFile(mContext, mPaths.toArray(arrayPaths), null, this); in processFiles()
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppService.java1126 mConnection.scanFile(mInfo.mFilename, mInfo.mMimetype); in onMediaScannerConnected()
/packages/providers/MediaProvider/apex/framework/java/android/provider/
DMediaStore.java4368 public static @NonNull Uri scanFile(@NonNull ContentResolver resolver, @NonNull File file) { in scanFile() method in MediaStore