Searched refs:videoFile (Results 1 – 5 of 5) sorted by relevance
/cts/tests/MediaProviderTranscode/src/android/mediaprovidertranscode/cts/ |
D | TranscodeTestUtils.java | 89 public static Uri stageHEVCVideoFile(File videoFile) throws IOException { in stageHEVCVideoFile() argument 90 return stageVideoFile(videoFile, R.raw.testvideo_HEVC); in stageHEVCVideoFile() 93 public static Uri stageSmallHevcVideoFile(File videoFile) throws IOException { in stageSmallHevcVideoFile() argument 94 return stageVideoFile(videoFile, R.raw.testVideo_HEVC_small); in stageSmallHevcVideoFile() 97 public static Uri stageMediumHevcVideoFile(File videoFile) throws IOException { in stageMediumHevcVideoFile() argument 98 return stageVideoFile(videoFile, R.raw.testVideo_HEVC_medium); in stageMediumHevcVideoFile() 101 public static Uri stageLongHevcVideoFile(File videoFile) throws IOException { in stageLongHevcVideoFile() argument 102 return stageVideoFile(videoFile, R.raw.testVideo_HEVC_long); in stageLongHevcVideoFile() 105 public static Uri stageLegacyVideoFile(File videoFile) throws IOException { in stageLegacyVideoFile() argument 106 return stageVideoFile(videoFile, R.raw.testVideo_Legacy); in stageLegacyVideoFile() [all …]
|
/cts/hostsidetests/scopedstorage/legacy/src/android/scopedstorage/cts/legacy/ |
D | LegacyStorageTest.java | 565 final File videoFile = new File(TestUtils.getExternalStorageDir(), VIDEO_FILE_NAME); in testCanDeleteAllFiles_hasRW() local 569 assertThat(videoFile.createNewFile()).isTrue(); in testCanDeleteAllFiles_hasRW() 570 assertDirectoryContains(videoFile.getParentFile(), videoFile); in testCanDeleteAllFiles_hasRW() local 572 assertThat(getFileRowIdFromDatabase(videoFile)).isNotEqualTo(-1); in testCanDeleteAllFiles_hasRW() 574 assertThat(videoFile.delete()).isTrue(); in testCanDeleteAllFiles_hasRW() 576 assertThat(getFileRowIdFromDatabase(videoFile)).isEqualTo(-1); in testCanDeleteAllFiles_hasRW() 588 videoFile.delete(); in testCanDeleteAllFiles_hasRW() 601 final File videoFile = new File(TestUtils.getExternalStorageDir(), VIDEO_FILE_NAME); in testLegacyAppCanOwnAFile_hasW() local 603 assertThat(videoFile.createNewFile()).isTrue(); in testLegacyAppCanOwnAFile_hasW() 610 assertNotEquals(-1, getFileRowIdFromDatabase(videoFile)); in testLegacyAppCanOwnAFile_hasW() [all …]
|
/cts/hostsidetests/scopedstorage/general/src/android/scopedstorage/cts/general/ |
D | ScopedStorageDeviceTest.java | 479 final File videoFile = new File(getExternalFilesDir(), VIDEO_FILE_NAME); in testReadWriteFilesInOtherAppExternalDir() local 483 if (!videoFile.exists()) { in testReadWriteFilesInOtherAppExternalDir() 484 assertThat(videoFile.createNewFile()).isTrue(); in testReadWriteFilesInOtherAppExternalDir() 488 assertThat(canOpenFileAs(APP_A_HAS_RES, videoFile, false /* forWrite */)).isFalse(); in testReadWriteFilesInOtherAppExternalDir() 489 assertThat(canOpenFileAs(APP_A_HAS_RES, videoFile, true /* forWrite */)).isFalse(); in testReadWriteFilesInOtherAppExternalDir() 492 assertThat(deleteFileAs(APP_A_HAS_RES, videoFile.getPath())).isFalse(); in testReadWriteFilesInOtherAppExternalDir() 495 assertThat(canOpen(videoFile, false /* forWrite */)).isTrue(); in testReadWriteFilesInOtherAppExternalDir() 496 assertThat(canOpen(videoFile, true /* forWrite */)).isTrue(); in testReadWriteFilesInOtherAppExternalDir() 498 assertThat(videoFile.delete()).isTrue(); in testReadWriteFilesInOtherAppExternalDir() 500 videoFile.delete(); in testReadWriteFilesInOtherAppExternalDir() [all …]
|
/cts/tests/mediaprovider/src/android/provider/cts/media/ |
D | MediaStore_Video_MediaTest.java | 123 final File videoFile = MediaProviderTestUtils.stageFile(R.raw.testvideo, in testStoreVideoMediaExternal() local 126 final String externalVideoPath = videoFile.getAbsolutePath(); in testStoreVideoMediaExternal() 127 final long numBytes = videoFile.length(); in testStoreVideoMediaExternal() 129 MediaProviderTestUtils.waitUntilExists(videoFile); in testStoreVideoMediaExternal() 174 assertEquals(videoFile.getName(), c.getString(c.getColumnIndex(Media.DISPLAY_NAME))); in testStoreVideoMediaExternal()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/ |
D | RVCVXCheckTestActivity.java | 152 File videoFile = new File(mRecPath,"video.mp4"); in activitySetUp() local 153 if (("".equals(mRecPath)) || (!videoFile.exists())) { in activitySetUp()
|