/cts/hostsidetests/scopedstorage/bypassdatabase/src/android/scopedstorage/cts/bypassdatabase/ |
D | BypassDatabaseOperationsTest.java | 266 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/ |
D | MediaStoreTrashedTest.java | 83 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()
|
D | MediaProviderTestUtils.java | 225 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()
|
D | MediaStore_Images_MediaTest.java | 322 assertNotNull(MediaStore.scanFile(mContentResolver, file)); 337 Uri scannedUri = MediaStore.scanFile(mContentResolver, file); 366 final Uri scannedUri = MediaStore.scanFile(mContentResolver, file);
|
D | MediaStorePlacementTest.java | 219 final Uri uri = MediaProviderTestUtils.scanFile(file); in testDirectory_InsideSandbox()
|
/cts/hostsidetests/scopedstorage/device/src/android/scopedstorage/cts/device/ |
D | OwnedFilesRule.java | 72 Uri uri = MediaStore.scanFile(mContentResolver, imageFile); in createFile() 80 Uri uri = MediaStore.scanFile(mContentResolver, file); in createFile()
|
D | OtherAppFilesRule.java | 145 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);
|
D | StorageOtherAndOwnedFilesTest.java | 157 final Uri expectedMediaUri = MediaStore.scanFile(sContentResolver, in test_latestSelectionOnly_withOwnedAndGrantedItems()
|
D | StorageOwnedFilesTest.java | 195 final Uri expectedMediaUri = MediaStore.scanFile(sContentResolver, in owned_grantOwnedItemBySelection()
|
D | StorageOtherFilesTest.java | 224 final Uri uri = MediaStore.scanFile(sContentResolver, testFile); in testDeleteWithParamDeleteData()
|
D | StableUrisTest.java | 232 final Uri uri = MediaStore.scanFile(mContentResolver, file); in createFiles()
|
/cts/hostsidetests/appcloning/test-apps/AppCloningStorageStatsTest/src/com/android/cts/storagestatsapp/ |
D | StorageStatsTest.java | 97 MediaStore.scanFile(mContext.getContentResolver(), dir); in testVerifyStatsExternal() 98 MediaStore.scanFile(mContext.getContentResolver(), downloadsDir); in testVerifyStatsExternal()
|
/cts/hostsidetests/scopedstorage/legacy/src/android/scopedstorage/cts/legacy/ |
D | LegacyStorageTest.java | 181 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/ |
D | ScopedStorageTest.java | 547 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/ |
D | ScopedStorageDeviceTest.java | 528 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/ |
D | MediaScannerTest.java | 160 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()
|
D | MediaScannerConnectionTest.java | 89 mMediaScannerConnection.scanFile(mMediaFile.getAbsolutePath(), MEDIA_TYPE); in testMediaScannerConnection()
|
/cts/hostsidetests/scopedstorage/redacturi/src/android/scopedstorage/cts/redacturi/ |
D | RedactUriDeviceTest.java | 137 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/ |
D | WriteExternalStorageTest.java | 109 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/ |
D | RedactionTestHelper.java | 154 Uri uri = MediaStore.scanFile(getContext().getContentResolver(), file); in assertConsistentNonRedactedAccess()
|
/cts/tests/providerui/src/android/providerui/cts/ |
D | MediaStoreUiTest.java | 423 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/ |
D | MediaStorageTest.java | 122 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/ |
D | StorageStatsTest.java | 272 MediaStore.scanFile(getContext().getContentResolver(), dir); in testVerifyStatsExternal() 273 MediaStore.scanFile(getContext().getContentResolver(), downloadsDir); in testVerifyStatsExternal()
|
/cts/tests/MediaProviderTranscode/src/android/mediaprovidertranscode/cts/ |
D | TranscodeTestUtils.java | 122 return MediaStore.scanFile(getContext().getContentResolver(), videoFile); in stageVideoFile()
|
/cts/tests/JobScheduler/src/android/jobscheduler/cts/ |
D | TriggerContentTest.java | 78 MediaScannerConnection.scanFile(context, in scan()
|