Home
last modified time | relevance | path

Searched refs:testMime (Results 1 – 3 of 3) sorted by relevance

/cts/tests/media/jni/
DNativeExtractorTest.cpp51 const char *refMime = nullptr, *testMime = nullptr; in isFormatSimilar() local
53 bool hasTestMime = AMediaFormat_getString(testFormat, AMEDIAFORMAT_KEY_MIME, &testMime); in isFormatSimilar()
55 if (!hasRefMime || !hasTestMime || strcmp(refMime, testMime) != 0) return false; in isFormatSimilar()
449 const char *refMime = nullptr, *testMime = nullptr; in isFileFormatIdentical() local
451 bool hasTestKey = AMediaFormat_getString(testFormat, AMEDIAFORMAT_KEY_MIME, &testMime); in isFileFormatIdentical()
453 if (hasRefKey && hasTestKey && strcmp(refMime, testMime) == 0) { in isFileFormatIdentical()
456 ALOGE("file format exp/got : %s/%s", refMime, testMime); in isFileFormatIdentical()
DNativeCodecTestBase.cpp554 const char *refMime = nullptr, *testMime = nullptr; in isFormatSimilar() local
556 bool hasTestMime = AMediaFormat_getString(outFormat, AMEDIAFORMAT_KEY_MIME, &testMime); in isFormatSimilar()
569 (strncmp(testMime, "audio/", strlen("audio/")) == 0); in isFormatSimilar()
576 refHeight == testHeight && (strncmp(testMime, "video/", strlen("video/")) == 0); in isFormatSimilar()
/cts/tests/media/src/android/mediav2/cts/
DExtractorTest.java228 String testMime = testFormat.getString(MediaFormat.KEY_MIME); in isFormatSimilar() local
230 if (!refMime.equals(testMime)) return false; in isFormatSimilar()
421 String testMime = bundle.getString(MediaExtractor.MetricsConstants.MIME_TYPE); in areMetricsIdentical() local
423 testMime.equals(refMime); in areMetricsIdentical()
427 Log.d(LOG_TAG, " Mime exp/got: " + refMime + '/' + testMime); in areMetricsIdentical()