Searched refs:videoFile (Results 1 – 4 of 4) sorted by relevance
/cts/hostsidetests/scopedstorage/legacy/src/android/scopedstorage/cts/legacy/ |
D | LegacyStorageTest.java | 538 final File videoFile = new File(TestUtils.getExternalStorageDir(), VIDEO_FILE_NAME); in testCanDeleteAllFiles_hasRW() local 542 assertThat(videoFile.createNewFile()).isTrue(); in testCanDeleteAllFiles_hasRW() 543 assertDirectoryContains(videoFile.getParentFile(), videoFile); in testCanDeleteAllFiles_hasRW() local 545 assertThat(getFileRowIdFromDatabase(videoFile)).isNotEqualTo(-1); in testCanDeleteAllFiles_hasRW() 547 assertThat(videoFile.delete()).isTrue(); in testCanDeleteAllFiles_hasRW() 549 assertThat(getFileRowIdFromDatabase(videoFile)).isEqualTo(-1); in testCanDeleteAllFiles_hasRW() 561 videoFile.delete(); in testCanDeleteAllFiles_hasRW() 574 final File videoFile = new File(TestUtils.getExternalStorageDir(), VIDEO_FILE_NAME); in testLegacyAppCanOwnAFile_hasW() local 576 assertThat(videoFile.createNewFile()).isTrue(); in testLegacyAppCanOwnAFile_hasW() 583 assertNotEquals(-1, getFileRowIdFromDatabase(videoFile)); in testLegacyAppCanOwnAFile_hasW() [all …]
|
/cts/tests/MediaProviderTranscode/src/android/mediaprovidertranscode/cts/ |
D | TranscodeTestUtils.java | 83 public static Uri stageHEVCVideoFile(File videoFile) throws IOException { in stageHEVCVideoFile() argument 84 return stageVideoFile(videoFile, R.raw.testvideo_HEVC); in stageHEVCVideoFile() 87 public static Uri stageSmallHevcVideoFile(File videoFile) throws IOException { in stageSmallHevcVideoFile() argument 88 return stageVideoFile(videoFile, R.raw.testVideo_HEVC_small); in stageSmallHevcVideoFile() 91 public static Uri stageMediumHevcVideoFile(File videoFile) throws IOException { in stageMediumHevcVideoFile() argument 92 return stageVideoFile(videoFile, R.raw.testVideo_HEVC_medium); in stageMediumHevcVideoFile() 95 public static Uri stageLongHevcVideoFile(File videoFile) throws IOException { in stageLongHevcVideoFile() argument 96 return stageVideoFile(videoFile, R.raw.testVideo_HEVC_long); in stageLongHevcVideoFile() 99 public static Uri stageLegacyVideoFile(File videoFile) throws IOException { in stageLegacyVideoFile() argument 100 return stageVideoFile(videoFile, R.raw.testVideo_Legacy); in stageLegacyVideoFile() [all …]
|
/cts/hostsidetests/scopedstorage/device/src/android/scopedstorage/cts/device/ |
D | ScopedStorageDeviceTest.java | 458 final File videoFile = new File(getExternalFilesDir(), VIDEO_FILE_NAME); in testReadWriteFilesInOtherAppExternalDir() local 462 if (!videoFile.exists()) { in testReadWriteFilesInOtherAppExternalDir() 463 assertThat(videoFile.createNewFile()).isTrue(); in testReadWriteFilesInOtherAppExternalDir() 467 assertThat(canOpenFileAs(APP_A_HAS_RES, videoFile, false /* forWrite */)).isFalse(); in testReadWriteFilesInOtherAppExternalDir() 468 assertThat(canOpenFileAs(APP_A_HAS_RES, videoFile, true /* forWrite */)).isFalse(); in testReadWriteFilesInOtherAppExternalDir() 471 assertThat(deleteFileAs(APP_A_HAS_RES, videoFile.getPath())).isFalse(); in testReadWriteFilesInOtherAppExternalDir() 474 assertThat(canOpen(videoFile, false /* forWrite */)).isTrue(); in testReadWriteFilesInOtherAppExternalDir() 475 assertThat(canOpen(videoFile, true /* forWrite */)).isTrue(); in testReadWriteFilesInOtherAppExternalDir() 477 assertThat(videoFile.delete()).isTrue(); in testReadWriteFilesInOtherAppExternalDir() 479 videoFile.delete(); in testReadWriteFilesInOtherAppExternalDir() [all …]
|
/cts/tests/tests/provider/src/android/provider/cts/media/ |
D | MediaStore_Video_MediaTest.java | 121 final File videoFile = ProviderTestUtils.stageFile(R.raw.testvideo, in testStoreVideoMediaExternal() local 124 final String externalVideoPath = videoFile.getAbsolutePath(); in testStoreVideoMediaExternal() 125 final long numBytes = videoFile.length(); in testStoreVideoMediaExternal() 127 ProviderTestUtils.waitUntilExists(videoFile); in testStoreVideoMediaExternal() 172 assertEquals(videoFile.getName(), c.getString(c.getColumnIndex(Media.DISPLAY_NAME))); in testStoreVideoMediaExternal()
|