Home
last modified time | relevance | path

Searched refs:mediaFile (Results 1 – 4 of 4) sorted by relevance

/cts/hostsidetests/appsecurity/test-apps/WriteExternalStorageApp/src/com/android/cts/writeexternalstorageapp/
DChangeDefaultUris.java38 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/
DCameraVideoActivity.java158 File mediaFile; in getOutputMediaFile() local
160 mediaFile = new File(mediaStorageDir.getPath() + File.separator + in getOutputMediaFile()
163 mediaFile = new File(mediaStorageDir.getPath() + File.separator + in getOutputMediaFile()
166 Log.v(TAG, "getOutputMediaFile: output file " + mediaFile.getPath()); in getOutputMediaFile()
172 return mediaFile; in getOutputMediaFile()
/cts/hostsidetests/scopedstorage/src/android/scopedstorage/cts/
DScopedStorageTest.java468 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/
DScopedStorageDeviceTest.java553 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 …]