Home
last modified time | relevance | path

Searched refs:mediaExtractor (Results 1 – 5 of 5) sorted by relevance

/cts/hostsidetests/media/app/MediaExtractorTest/src/android/media/cts/
DMediaExtractorDeviceSideTest.java52 MediaExtractor mediaExtractor = new MediaExtractor(); in testEntryPointSdk() local
56 mediaExtractor.setDataSource(fileDescriptor); in testEntryPointSdk()
58 mediaExtractor.release(); in testEntryPointSdk()
73 MediaExtractor mediaExtractor = new MediaExtractor(); in testLogSessionId() local
77 mediaExtractor.setDataSource(fileDescriptor); in testLogSessionId()
78 assertThat(mediaExtractor.getLogSessionId()) in testLogSessionId()
80 mediaExtractor.setLogSessionId(new LogSessionId("FakeLogSessionId")); in testLogSessionId()
81 assertThat(mediaExtractor.getLogSessionId().getStringId()) in testLogSessionId()
84 mediaExtractor.release(); in testLogSessionId()
/cts/hostsidetests/media/app/MediaExtractorTest/jni/
DMediaExtractorDeviceSideTestNative.cpp35 AMediaExtractor* mediaExtractor = AMediaExtractor_new(); in Java_android_media_cts_MediaExtractorDeviceSideTest_extractUsingNdkMediaExtractor() local
36 AMediaExtractor_setDataSourceFd(mediaExtractor, fd, start, length); in Java_android_media_cts_MediaExtractorDeviceSideTest_extractUsingNdkMediaExtractor()
37 AMediaExtractor_delete(mediaExtractor); in Java_android_media_cts_MediaExtractorDeviceSideTest_extractUsingNdkMediaExtractor()
/cts/tests/tests/media/src/android/media/cts/
DMediaCodecBlockModelTest.java560 MediaExtractor mediaExtractor, in runDecodeShortVideo() argument
571 MediaFormat mediaFormat = mediaExtractor.getTrackFormat( in runDecodeShortVideo()
572 mediaExtractor.getSampleTrackIndex()); in runDecodeShortVideo()
603 .setExtractor(mediaExtractor) in runDecodeShortVideo()
624 if (mediaExtractor != null) { in runDecodeShortVideo()
625 mediaExtractor.release(); in runDecodeShortVideo()
640 MediaExtractor mediaExtractor = null; in runDecodeShortAudio() local
643 mediaExtractor = getMediaExtractorForMimeType(inputResource, "audio/"); in runDecodeShortAudio()
645 mediaExtractor.getTrackFormat(mediaExtractor.getSampleTrackIndex()); in runDecodeShortAudio()
662 .setExtractor(mediaExtractor) in runDecodeShortAudio()
[all …]
DMediaCodecTest.java787 final MediaExtractor mediaExtractor = getMediaExtractorForMimeType( in testAsyncReset() local
789 MediaFormat mediaFormat = mediaExtractor.getTrackFormat( in testAsyncReset()
790 mediaExtractor.getSampleTrackIndex()); in testAsyncReset()
806 assertTrue(runDecodeTillFirstOutput(mediaCodec, mediaExtractor)); in testAsyncReset()
850 if (mediaExtractor != null) { in testAsyncReset()
851 mediaExtractor.release(); in testAsyncReset()
1232 MediaExtractor mediaExtractor = null; in testDecodeAfterFlush()
1239 mediaExtractor = getMediaExtractorForMimeType(INPUT_RESOURCE, mimeTypePrefix); in testDecodeAfterFlush()
1241 mediaExtractor.getTrackFormat(mediaExtractor.getSampleTrackIndex()); in testDecodeAfterFlush()
1252 if (!runDecodeTillFirstOutput(mediaCodec, mediaExtractor)) { in testDecodeAfterFlush()
[all …]
DExtractDecodeEditEncodeMuxTest.java507 MediaExtractor mediaExtractor = null; in extractDecodeEditEncodeMux() local
509 mediaExtractor = new MediaExtractor(); in extractDecodeEditEncodeMux()
510 mediaExtractor.setDataSource(mOutputFile); in extractDecodeEditEncodeMux()
513 mediaExtractor.getTrackCount()); in extractDecodeEditEncodeMux()
516 for (int i = 0; i < mediaExtractor.getTrackCount(); i++) { in extractDecodeEditEncodeMux()
517 MediaFormat trackFormat = mediaExtractor.getTrackFormat(i); in extractDecodeEditEncodeMux()
537 if (mediaExtractor != null) { in extractDecodeEditEncodeMux()
538 mediaExtractor.release(); in extractDecodeEditEncodeMux()