Home
last modified time | relevance | path

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

12

/cts/hostsidetests/scopedstorage/bypassdatabase/src/android/scopedstorage/cts/bypassdatabase/
DBypassDatabaseOperationsTest.java266 assertNotNull(MediaStore.scanFile(getContentResolver(), file)); in testAppBypassesDatabaseOps()
274 assertNull(MediaStore.scanFile(getContentResolver(), file)); in testAppBypassesDatabaseOps()
275 assertNotNull(MediaStore.scanFile(getContentResolver(), renamedFile)); in testAppBypassesDatabaseOps()
288 MediaStore.scanFile(getContentResolver(), file); in testAppBypassesDatabaseOps()
289 MediaStore.scanFile(getContentResolver(), renamedFile); in testAppBypassesDatabaseOps()
/cts/tests/mediaprovider/src/android/provider/cts/media/
DMediaStoreTrashedTest.java83 final Uri uri = MediaProviderTestUtils.scanFile(file); in testOwned()
99 final Uri uri = MediaProviderTestUtils.scanFile(file); in testUnowned()
115 final Uri uri = MediaProviderTestUtils.scanFile(file); in testAtypical()
DMediaProviderTestUtils.java225 public static Uri scanFile(File file) throws Exception { in scanFile() method
226 final Uri uri = MediaStore.scanFile(InstrumentationRegistry.getInstrumentation() in scanFile()
233 return scanFile(file); in scanFileFromShell()
DMediaStore_Images_MediaTest.java322 assertNotNull(MediaStore.scanFile(mContentResolver, file));
337 Uri scannedUri = MediaStore.scanFile(mContentResolver, file);
366 final Uri scannedUri = MediaStore.scanFile(mContentResolver, file);
DMediaStorePlacementTest.java219 final Uri uri = MediaProviderTestUtils.scanFile(file); in testDirectory_InsideSandbox()
/cts/hostsidetests/scopedstorage/device/src/android/scopedstorage/cts/device/
DOwnedFilesRule.java72 Uri uri = MediaStore.scanFile(mContentResolver, imageFile); in createFile()
80 Uri uri = MediaStore.scanFile(mContentResolver, file); in createFile()
DOtherAppFilesRule.java145 final Uri mediaUri = MediaStore.scanFile(mContentResolver, newFile); in createFileAsOther()
155 final Uri mediaUri = MediaStore.scanFile(mContentResolver, file); in createEmptyFileAsOther()
204 final Uri originalUri = MediaStore.scanFile(getContentResolver(), imageFile);
DStorageOtherAndOwnedFilesTest.java157 final Uri expectedMediaUri = MediaStore.scanFile(sContentResolver, in test_latestSelectionOnly_withOwnedAndGrantedItems()
DStorageOwnedFilesTest.java195 final Uri expectedMediaUri = MediaStore.scanFile(sContentResolver, in owned_grantOwnedItemBySelection()
DStorageOtherFilesTest.java224 final Uri uri = MediaStore.scanFile(sContentResolver, testFile); in testDeleteWithParamDeleteData()
DStableUrisTest.java232 final Uri uri = MediaStore.scanFile(mContentResolver, file); in createFiles()
/cts/hostsidetests/appcloning/test-apps/AppCloningStorageStatsTest/src/com/android/cts/storagestatsapp/
DStorageStatsTest.java97 MediaStore.scanFile(mContext.getContentResolver(), dir); in testVerifyStatsExternal()
98 MediaStore.scanFile(mContext.getContentResolver(), downloadsDir); in testVerifyStatsExternal()
/cts/hostsidetests/scopedstorage/legacy/src/android/scopedstorage/cts/legacy/
DLegacyStorageTest.java181 MediaStore.scanFile(getContentResolver(), getShellFile()); in teardown()
273 MediaStore.scanFile(getContentResolver(), existingFile); in testCantAccessExternalStorage()
326 MediaStore.scanFile(getContentResolver(), existingFile); in testReadOnlyExternalStorage_hasR()
368 MediaStore.scanFile(getContentResolver(), getShellFile()); in testListFiles_hasR()
390 MediaStore.scanFile(getContentResolver(), hiddenImageFile); in testInsertHiddenFile()
451 final Uri otherVideoUri = MediaStore.scanFile(getContentResolver(), otherVideoFile); in testCanTrashOtherAndroidMediaFiles_hasRW()
480 MediaStore.scanFile(getContentResolver(), shellFile1); in testCantRename_hasR()
515 MediaStore.scanFile(getContentResolver(), shellFile1); in testCantRename_noStoragePermission()
680 final Uri scannedUri = MediaStore.scanFile(cr, imageFile); in testRenameDoesntInvalidateUri_hasRW()
712 MediaStore.scanFile(cr, directoryNoMedia); in testCanRenameAFileWithNoDBRow_hasRW()
[all …]
/cts/hostsidetests/scopedstorage/src/android/scopedstorage/cts/
DScopedStorageTest.java547 MediaStore.scanFile(getContentResolver(), shellPdfAtRoot); in testAccess_file()
553 MediaStore.scanFile(getContentResolver(), shellPdfAtRoot); in testAccess_file()
685 MediaStore.scanFile(getContentResolver(), otherTopLevelFile); in testManageExternalStorageReaddir()
698 MediaStore.scanFile(getContentResolver(), otherTopLevelFile); in testManageExternalStorageReaddir()
742 MediaStore.scanFile(getContentResolver(), nomediaDir); in testManageExternalStorageDoesntSkipScanningDirtyNomediaDir()
745 MediaStore.scanFile(getContentResolver(), nomediaDir); in testManageExternalStorageDoesntSkipScanningDirtyNomediaDir()
749 MediaStore.scanFile(getContentResolver(), nomediaDir); in testManageExternalStorageDoesntSkipScanningDirtyNomediaDir()
753 MediaStore.scanFile(getContentResolver(), nomediaDir); in testManageExternalStorageDoesntSkipScanningDirtyNomediaDir()
782 MediaStore.scanFile(getContentResolver(), nomediaDir); in testScanDoesntSkipDirtySubtree()
799 MediaStore.scanFile(getContentResolver(), nomediaDir); in testScanDoesntSkipDirtySubtree()
[all …]
/cts/hostsidetests/scopedstorage/general/src/android/scopedstorage/cts/general/
DScopedStorageDeviceTest.java528 assertThat(MediaStore.scanFile(getContentResolver(), imageFile)).isNotNull(); in testContributeMediaFile()
651 final Uri uri = MediaStore.scanFile(getContentResolver(), nonMediaFile); in testDeleteAlreadyUnlinkedFile()
1082 final Uri uri = MediaStore.scanFile(getContentResolver(), oldFile); in testContentResolverUpdate()
1629 MediaStore.scanFile(getContentResolver(), musicFile); in testSystemGalleryCanRenameImagesAndVideos()
1712 final Uri uriVideoFile1 = MediaStore.scanFile(cr, videoFile1); in testRenameAndReplaceFile()
1713 final Uri uriVideoFile2 = MediaStore.scanFile(cr, videoFile2); in testRenameAndReplaceFile()
1751 assertThat(MediaStore.scanFile(getContentResolver(), mpegFile)).isNotNull(); in testScanUpdatesMimeTypeForRenameFileExtension()
1758 assertThat(MediaStore.scanFile(getContentResolver(), nonMpegFile)).isNotNull(); in testScanUpdatesMimeTypeForRenameFileExtension()
1987 MediaStore.scanFile(getContentResolver(), file); in testInodeStatConsistency()
2090 MediaStore.scanFile(getContentResolver(), directoryNoMedia); in testHiddenDirectory_nomedia()
[all …]
/cts/tests/tests/media/misc/src/android/media/misc/cts/
DMediaScannerTest.java160 mMediaScannerConnection.scanFile(unlocalizablePath, null); in testLocalizeRingtoneTitles()
177 mMediaScannerConnection.scanFile(localizablePath, null); in testLocalizeRingtoneTitles()
204 mMediaScannerConnection.scanFile(mMediaFile.getAbsolutePath(), MEDIA_TYPE); in testMediaScanner()
328 mMediaScannerConnection.scanFile(file1, MEDIA_TYPE); in testWildcardPaths()
335 mMediaScannerConnection.scanFile(file2, MEDIA_TYPE); in testWildcardPaths()
415 mMediaScannerConnection.scanFile(fileName, MEDIA_TYPE); in canonicalizeTest()
439 mMediaScannerConnection.scanFile(fileName2, MEDIA_TYPE); in canonicalizeTest()
DMediaScannerConnectionTest.java89 mMediaScannerConnection.scanFile(mMediaFile.getAbsolutePath(), MEDIA_TYPE); in testMediaScannerConnection()
/cts/hostsidetests/scopedstorage/redacturi/src/android/scopedstorage/cts/redacturi/
DRedactUriDeviceTest.java137 final Uri uri = MediaStore.scanFile(getContentResolver(), img); in testRedactedUri_single()
155 uris.add(MediaStore.scanFile(getContentResolver(), file)); in testRedactedUri_list()
173 final Uri uri = MediaStore.scanFile(getContentResolver(), img); in testQueryOnRedactionUri()
522 final Uri uri = MediaStore.scanFile(getContentResolver(), file); in getRedactedUri()
/cts/hostsidetests/appsecurity/test-apps/WriteExternalStorageApp/src/com/android/cts/writeexternalstorageapp/
DWriteExternalStorageTest.java109 MediaStore.scanFile(getContext().getContentResolver(), TEST_FILE), "rw"); in testWriteExternalStorage()
289 MediaStore.scanFile(getContext().getContentResolver(), path); in testVerifyNoMediaCreated()
/cts/hostsidetests/scopedstorage/libs/ScopedStorageTestLib/src/android/scopedstorage/cts/lib/
DRedactionTestHelper.java154 Uri uri = MediaStore.scanFile(getContext().getContentResolver(), file); in assertConsistentNonRedactedAccess()
/cts/tests/providerui/src/android/providerui/cts/
DMediaStoreUiTest.java423 mMediaStoreUri = MediaStore.scanFile(mContext.getContentResolver(), mFile); in prepareFile()
434 mMediaStoreUri = MediaStore.scanFile(mContext.getContentResolver(), mFile); in prepareFile()
446 Uri uri = MediaStore.scanFile(mContext.getContentResolver(), stagedFile); in prepareFileAndFetchDetails()
/cts/hostsidetests/appsecurity/test-apps/MediaStorageApp/src/com/android/cts/mediastorageapp/
DMediaStorageTest.java122 final Uri jpgUri = MediaStore.scanFile(mContentResolver, TEST_JPG); in testLegacy()
123 final Uri pdfUri = MediaStore.scanFile(mContentResolver, TEST_PDF); in testLegacy()
149 assertNull(MediaStore.scanFile(mContentResolver, TEST_JPG)); in testClearFiles()
151 assertNull(MediaStore.scanFile(mContentResolver, TEST_PDF)); in testClearFiles()
/cts/hostsidetests/appsecurity/test-apps/StorageStatsApp/src/com/android/cts/storagestatsapp/
DStorageStatsTest.java272 MediaStore.scanFile(getContext().getContentResolver(), dir); in testVerifyStatsExternal()
273 MediaStore.scanFile(getContext().getContentResolver(), downloadsDir); in testVerifyStatsExternal()
/cts/tests/MediaProviderTranscode/src/android/mediaprovidertranscode/cts/
DTranscodeTestUtils.java122 return MediaStore.scanFile(getContext().getContentResolver(), videoFile); in stageVideoFile()
/cts/tests/JobScheduler/src/android/jobscheduler/cts/
DTriggerContentTest.java78 MediaScannerConnection.scanFile(context, in scan()

12