Home
last modified time | relevance | path

Searched refs:srcFile (Results 1 – 14 of 14) sorted by relevance

/cts/tests/media/src/android/mediav2/cts/
DExtractorTest.java893 private ArrayList<MediaCodec.BufferInfo> getSeekablePoints(String srcFile, String mediaType)
898 Preconditions.assertTestFileExists(MEDIA_DIR + srcFile);
899 extractor.setDataSource(MEDIA_DIR + srcFile);
921 private ArrayList<SeekTestParams> generateSeekTestArgs(String srcFile, String mediaType,
925 Preconditions.assertTestFileExists(MEDIA_DIR + srcFile);
928 extractor.setDataSource(MEDIA_DIR + srcFile);
950 ArrayList<MediaCodec.BufferInfo> bookmarks = getSeekablePoints(srcFile, mediaType);
1005 int checkSeekPoints(String srcFile, String mediaType,
1008 Preconditions.assertTestFileExists(MEDIA_DIR + srcFile);
1010 extractor.setDataSource(MEDIA_DIR + srcFile);
[all …]
DCodecDecoderPauseTest.java56 public CodecDecoderPauseTest(String decoder, String mediaType, String srcFile, in CodecDecoderPauseTest() argument
58 super(decoder, mediaType, MEDIA_DIR + srcFile, allTestParams); in CodecDecoderPauseTest()
DMuxerTest.java448 public TestApi(int outFormat, String srcFile, int trackCount, String testName) { in TestApi() argument
450 mSrcFile = srcFile; in TestApi()
912 private native boolean nativeTestOffsetPts(int format, String srcFile, String dstFile, in nativeTestOffsetPts() argument
1018 public TestSimpleAppend(int outFormat, String srcFile, int trackCount, String testName) { in TestSimpleAppend() argument
1020 mSrcFile = srcFile; in TestSimpleAppend()
1089 public TestSimpleMux(String mediaType, String srcFile, String testName) { in TestSimpleMux() argument
1091 mSrcFile = srcFile; in TestSimpleMux()
/cts/tests/media/common/src/android/mediav2/common/cts/
DCodecDecoderTestBase.java113 protected MediaFormat setUpSource(String srcFile) throws IOException { in setUpSource() argument
114 Preconditions.assertTestFileExists(srcFile); in setUpSource()
116 mExtractor.setDataSource(srcFile); in setUpSource()
125 getMaxSampleSizeForMediaType(srcFile, mMediaType)); in setUpSource()
132 if (!selectHBD && srcFile.contains("10bit")) { in setUpSource()
153 mIsInterlaced = srcFile.contains("_interlaced_"); in setUpSource()
157 fail("No track with mediaType: " + mMediaType + " found in file: " + srcFile + "\n" in setUpSource()
DCodecEncoderSurfaceTestBase.java202 protected MediaFormat setUpSource(String srcFile) throws IOException { in setUpSource() argument
203 Preconditions.assertTestFileExists(srcFile); in setUpSource()
205 mExtractor.setDataSource(srcFile); in setUpSource()
220 fail("No video track found in file: " + srcFile + ". \n" + mTestConfig + mTestEnv); in setUpSource()
/cts/tests/tests/media/misc/src/android/media/misc/cts/
DExifInterfaceTest.java541 File srcFile = new File(mInpPrefix, fileName); in writeToFilesWithExif() local
542 File imageFile = clone(srcFile); in writeToFilesWithExif()
549 assertBitmapsEquivalent(srcFile, imageFile); in writeToFilesWithExif()
626 File srcFile = new File(mInpPrefix, fileName); in writeToFilesWithoutExif() local
627 File imageFile = clone(srcFile); in writeToFilesWithoutExif()
633 assertBitmapsEquivalent(srcFile, imageFile); in writeToFilesWithoutExif()
778 File srcFile = new File(mInpPrefix, JPEG_WITH_DATETIME_TAG); in testGetSetDateTime() local
779 File imageFile = clone(srcFile); in testGetSetDateTime()
835 File srcFile = new File(mInpPrefix, JPEG_WITH_EXIF_BYTE_ORDER_MM); in testSetAttribute() local
836 File imageFile = clone(srcFile); in testSetAttribute()
[all …]
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DPackageUtil.java174 private static String computeFileHash(File srcFile) { in computeFileHash() argument
183 try (FileInputStream fis = new FileInputStream(srcFile)) { in computeFileHash()
/cts/tests/media/jni/
DNativeExtractorTest.cpp262 static std::vector<AMediaCodecBufferInfo*> getSeekablePoints(const char* srcFile, in getSeekablePoints() argument
266 FILE* srcFp = fopen(srcFile, "rbe"); in getSeekablePoints()
268 ALOGE("fopen failed for srcFile %s", srcFile); in getSeekablePoints()
306 static std::vector<SeekTestParams*> generateSeekTestArgs(const char* srcFile, const char* mediaType, in generateSeekTestArgs() argument
313 FILE* srcFp = fopen(srcFile, "rbe"); in generateSeekTestArgs()
315 ALOGE("fopen failed for srcFile %s", srcFile); in generateSeekTestArgs()
354 std::vector<AMediaCodecBufferInfo*> bookmarks = getSeekablePoints(srcFile, mediaType); in generateSeekTestArgs()
413 static int checkSeekPoints(const char* srcFile, const char* mediaType, in checkSeekPoints() argument
416 FILE* srcFp = fopen(srcFile, "rbe"); in checkSeekPoints()
DNativeCodecDecoderTestCommon.cpp48 bool setUpExtractor(const char* srcFile, int colorFormat);
109 bool CodecDecoderTest::setUpExtractor(const char* srcFile, int colorFormat) { in setUpExtractor() argument
110 FILE* fp = fopen(srcFile, "rbe"); in setUpExtractor()
111 RETURN_IF_NULL(fp, StringFormat("Unable to open file %s", srcFile)) in setUpExtractor()
138 mIsInterlaced = strstr(srcFile, "_interlaced_") != nullptr; in setUpExtractor()
148 srcFile)) in setUpExtractor()
DNativeCodecEncoderSurfaceTest.cpp63 bool setUpExtractor(const char* srcFile, const char* srcMediaType, int colorFormat);
146 bool CodecEncoderSurfaceTest::setUpExtractor(const char* srcFile, const char* srcMediaType, in setUpExtractor() argument
148 FILE* fp = fopen(srcFile, "rbe"); in setUpExtractor()
/cts/tests/mediapc/src/android/mediapc/cts/
DCodecTestBase.java577 MediaFormat setUpSource(String srcFile) throws IOException { in setUpSource() argument
578 return setUpSource(mInpPrefix, srcFile); in setUpSource()
671 MediaFormat setUpSource(String prefix, String srcFile) throws IOException { in setUpSource() argument
673 mExtractor.setDataSource(prefix + srcFile); in setUpSource()
687 mIsInterlaced = srcFile.contains("_interlaced_"); in setUpSource()
691 fail("No track with mediaType: " + mMediaType + " found in file: " + srcFile); in setUpSource()
772 void setUpSource(String srcFile) throws IOException { in setUpSource() argument
773 String inpPath = mInpPrefix + srcFile; in setUpSource()
DPlaybackFrameDrop.java207 for (String srcFile : mTestFiles) { in setUpSourceFiles()
208 File file = new File(mInpPrefix + srcFile); in setUpSourceFiles()
DCodecTranscoderTestBase.java92 MediaFormat setUpSource(String srcFile) throws IOException { in setUpSource() argument
94 mExtractor.setDataSource(mInpPrefix + srcFile); in setUpSource()
107 fail("No video track found in file: " + srcFile); in setUpSource()
/cts/tools/vm-tests-tf/build/src/util/build/
DBuildDalvikSuite.java282 File srcFile = new File(sourceFolder, fileName + ".java"); in generateBuildStepForDependant() local
283 if (srcFile.exists()) { in generateBuildStepForDependant()