Searched refs:mediaFile (Results 1 – 4 of 4) sorted by relevance
/cts/hostsidetests/appsecurity/test-apps/WriteExternalStorageApp/src/com/android/cts/writeexternalstorageapp/ |
D | ChangeDefaultUris.java | 38 File mediaFile = in testChangeDefaultUris() local 42 copyToExternalStorage(R.raw.ringer, mediaFile); in testChangeDefaultUris() 45 values.put(MediaStore.MediaColumns.DATA, mediaFile.getPath()); in testChangeDefaultUris()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/video/ |
D | CameraVideoActivity.java | 153 File mediaFile; in getOutputMediaFile() local 155 mediaFile = new File(mediaStorageDir.getPath() + File.separator + in getOutputMediaFile() 158 mediaFile = new File(mediaStorageDir.getPath() + File.separator + in getOutputMediaFile() 161 Log.v(TAG, "getOutputMediaFile: output file " + mediaFile.getPath()); in getOutputMediaFile() 167 return mediaFile; in getOutputMediaFile()
|
/cts/hostsidetests/scopedstorage/src/android/scopedstorage/cts/ |
D | ScopedStorageTest.java | 468 final File mediaFile = new File(nomediaDir, IMAGE_FILE_NAME); in testManageExternalStorageDoesntSkipScanningDirtyNomediaDir() local 477 assertThat(mediaFile.createNewFile()).isTrue(); in testManageExternalStorageDoesntSkipScanningDirtyNomediaDir() 479 assertThat(getFileRowIdFromDatabase(mediaFile)).isNotEqualTo(-1); in testManageExternalStorageDoesntSkipScanningDirtyNomediaDir() 481 assertThat(mediaFile.renameTo(renamedMediaFile)).isTrue(); in testManageExternalStorageDoesntSkipScanningDirtyNomediaDir() 490 mediaFile.delete(); in testManageExternalStorageDoesntSkipScanningDirtyNomediaDir()
|
/cts/hostsidetests/scopedstorage/device/src/android/scopedstorage/cts/device/ |
D | ScopedStorageDeviceTest.java | 553 final File mediaFile = new File(getPicturesDir(), IMAGE_FILE_NAME); in testCantAccessOtherAppsContents() local 556 assertThat(createFileAs(APP_B_NO_PERMS, mediaFile.getPath())).isTrue(); in testCantAccessOtherAppsContents() 560 assertThat(mediaFile.exists()).isTrue(); in testCantAccessOtherAppsContents() 564 assertThat(canOpen(mediaFile, /* forWrite */ false)).isFalse(); in testCantAccessOtherAppsContents() 566 assertThat(canOpen(mediaFile, /* forWrite */ false)).isFalse(); in testCantAccessOtherAppsContents() 570 deleteFileAsNoThrow(APP_B_NO_PERMS, mediaFile.getPath()); in testCantAccessOtherAppsContents() 577 final File mediaFile = new File(dirInDownload, IMAGE_FILE_NAME); in testCantDeleteOtherAppsContents() local 582 assertThat(createFileAs(APP_B_NO_PERMS, mediaFile.getPath())).isTrue(); in testCantDeleteOtherAppsContents() 598 assertThat(deleteFileAs(APP_B_NO_PERMS, mediaFile.getPath())).isTrue(); in testCantDeleteOtherAppsContents() 613 deleteFileAsNoThrow(APP_B_NO_PERMS, mediaFile.getPath()); in testCantDeleteOtherAppsContents() [all …]
|