Home
last modified time | relevance | path

Searched refs:trackIndex (Results 1 – 22 of 22) sorted by relevance

/cts/tests/tests/media/drmframework/src/android/media/drmframework/cts/
DMediaDrmCodecBlockModelTest.java158 int trackIndex; in getMediaExtractorForMimeType() local
159 for (trackIndex = 0; trackIndex < mediaExtractor.getTrackCount(); trackIndex++) { in getMediaExtractorForMimeType()
160 MediaFormat trackMediaFormat = mediaExtractor.getTrackFormat(trackIndex); in getMediaExtractorForMimeType()
162 mediaExtractor.selectTrack(trackIndex); in getMediaExtractorForMimeType()
166 if (trackIndex == mediaExtractor.getTrackCount()) { in getMediaExtractorForMimeType()
/cts/tests/tests/media/decoder/src/android/media/decoder/cts/
DDecoderSetup.java51 int trackIndex = -1; in getFirstTrackWithMimePrefix() local
55 trackIndex = i; in getFirstTrackWithMimePrefix()
59 assertTrue("Track matching mime '" + prefix + "' not found.", trackIndex >= 0); in getFirstTrackWithMimePrefix()
60 return trackIndex; in getFirstTrackWithMimePrefix()
DHDRDecoderTest.java270 int trackIndex = -1; in testHdrMetadata() local
274 trackIndex = i; in testHdrMetadata()
280 format != null && trackIndex >= 0); in testHdrMetadata()
286 mExtractor.selectTrack(trackIndex); in testHdrMetadata()
445 int trackIndex = -1; in testHdrToSdr() local
449 trackIndex = i; in testHdrToSdr()
454 mExtractor.selectTrack(trackIndex); in testHdrToSdr()
DDecoderLowLatencyTest.java189 int trackIndex = -1; in testLowLatencyVideo() local
193 trackIndex = i; in testLowLatencyVideo()
198 assertTrue("No video track was found", trackIndex >= 0); in testLowLatencyVideo()
200 extractor.selectTrack(trackIndex); in testLowLatencyVideo()
DDecodeOnlyTest.java735 int trackIndex = -1; in getFirstTrackWithMimePrefix() local
739 trackIndex = i; in getFirstTrackWithMimePrefix()
743 assertTrue("Video track was not found.", trackIndex >= 0); in getFirstTrackWithMimePrefix()
744 return trackIndex; in getFirstTrackWithMimePrefix()
DVideoDecoderPerfTest.java242 int trackIndex = extractor.getSampleTrackIndex(); in doDecode() local
243 MediaFormat format = extractor.getTrackFormat(trackIndex); in doDecode()
DDecoderTest.java2739 int trackIndex = extractor.getSampleTrackIndex();
2740 MediaFormat format = extractor.getTrackFormat(trackIndex);
/cts/tests/tests/mediacujtest/common/src/android/media/cujcommon/cts/
DPlayerListener.java269 int trackIndex) { in createSwitchTrackMessage() argument
278 trackIndex)) in createSwitchTrackMessage()
282 .getTrackFormat(trackIndex); in createSwitchTrackMessage()
302 for (int trackIndex = 0; trackIndex < currentTrackGroup.length; trackIndex++) { in onTracksChanged()
303 if (currentTrackGroup.isTrackSelected(trackIndex)) { in onTracksChanged()
305 mStartTrackFormat = currentTrackGroup.getTrackFormat(trackIndex); in onTracksChanged()
307 mCurrentTrackFormat = currentTrackGroup.getTrackFormat(trackIndex); in onTracksChanged()
DAdaptivePlaybackTestPlayerListener.java151 for (int trackIndex = 0; trackIndex < mVideoTrackGroup.length; trackIndex++) { in getVideoFormatList()
152 Format trackFormat = mVideoTrackGroup.getTrackFormat(trackIndex); in getVideoFormatList()
/cts/tests/tests/mediaparser/src/android/media/mediaparser/cts/
DMockMediaParserOutputConsumer.java109 public void onTrackDataFound(int trackIndex, MediaParser.TrackData trackData) { in onTrackDataFound() argument
110 while (mTrackOutputs.size() <= trackIndex) { in onTrackDataFound()
111 mTrackOutputs.add(mFakeExtractorOutput.track(trackIndex, C.TRACK_TYPE_UNKNOWN)); in onTrackDataFound()
113 mTrackOutputs.get(trackIndex).format(toExoPlayerFormat(trackData)); in onTrackDataFound()
117 public void onSampleDataFound(int trackIndex, MediaParser.InputReader inputReader) in onSampleDataFound() argument
120 .track(trackIndex, C.TRACK_TYPE_UNKNOWN) in onSampleDataFound()
127 int trackIndex, in onSampleCompleted() argument
/cts/tests/tests/media/codec/src/android/media/codec/cts/
DMediaCodecBlockModelTest.java450 int trackIndex; in getMediaExtractorForMimeType() local
451 for (trackIndex = 0; trackIndex < mediaExtractor.getTrackCount(); trackIndex++) { in getMediaExtractorForMimeType()
452 MediaFormat trackMediaFormat = mediaExtractor.getTrackFormat(trackIndex); in getMediaExtractorForMimeType()
454 mediaExtractor.selectTrack(trackIndex); in getMediaExtractorForMimeType()
458 if (trackIndex == mediaExtractor.getTrackCount()) { in getMediaExtractorForMimeType()
DEncodeVirtualDisplayTest.java328 int trackIndex = -1; in doTestEncodeVirtual() local
439 if (muxer != null && trackIndex == -1) { in doTestEncodeVirtual()
440 trackIndex = muxer.addTrack(newFormat); in doTestEncodeVirtual()
456 muxer.writeSampleData(trackIndex, encodedData, info); in doTestEncodeVirtual()
DMediaCodecTest.java2009 int trackIndex; in getMediaExtractorForMimeType() local
2010 for (trackIndex = 0; trackIndex < mediaExtractor.getTrackCount(); trackIndex++) { in getMediaExtractorForMimeType()
2011 MediaFormat trackMediaFormat = mediaExtractor.getTrackFormat(trackIndex); in getMediaExtractorForMimeType()
2013 mediaExtractor.selectTrack(trackIndex); in getMediaExtractorForMimeType()
2017 if (trackIndex == mediaExtractor.getTrackCount()) { in getMediaExtractorForMimeType()
2445 int trackIndex = extractor.getSampleTrackIndex(); in doFlushAfterFirstBuffer() local
2446 MediaFormat format = extractor.getTrackFormat(trackIndex); in doFlushAfterFirstBuffer()
/cts/tests/tests/media/muxer/src/android/media/muxer/cts/
DMediaMuxerTest.java801 int trackIndex = extractor.getSampleTrackIndex(); in cloneMediaUsingMuxer() local
803 muxer.writeSampleData(indexMap.get(trackIndex), dstBuf, in cloneMediaUsingMuxer()
812 " TrackIndex:" + trackIndex + in cloneMediaUsingMuxer()
1051 int trackIndex = extractor.getSampleTrackIndex(); in simulateVideoFramesDropIssuesAndMux() local
1053 if (trackIndex == 0) { in simulateVideoFramesDropIssuesAndMux()
1061 muxer.writeSampleData(indexMap.get(trackIndex), dstBuf, bufferInfo); in simulateVideoFramesDropIssuesAndMux()
1066 muxer.writeSampleData(indexMap.get(trackIndex), dstBuf, bufferInfo); in simulateVideoFramesDropIssuesAndMux()
1076 muxer.writeSampleData(indexMap.get(trackIndex), dstBuf, bufferInfo); in simulateVideoFramesDropIssuesAndMux()
1084 " TrackIndex:" + trackIndex + in simulateVideoFramesDropIssuesAndMux()
1234 int trackIndex = extractor.getSampleTrackIndex(); in cloneMediaWithSamplesDropAndStartOffsets() local
[all …]
/cts/tests/media/jni/
DNativeMuxerTest.cpp263 int trackIndex = mInpIndexMap.at(trackID); in writeAFewSamplesData() local
264 ALOGV("trackID:%d, trackIndex:%d, frameCount:%d", trackID, trackIndex, in writeAFewSamplesData()
265 frameCount[trackIndex]); in writeAFewSamplesData()
266 AMediaCodecBufferInfo* info = mBufferInfo[trackIndex][frameCount[trackIndex]]; in writeAFewSamplesData()
268 if (AMediaMuxer_writeSampleData(muxer, mOutIndexMap.at(trackIndex), mBuffer, info) != in writeAFewSamplesData()
274 ++frameCount[trackIndex]; in writeAFewSamplesData()
295 int trackIndex = mInpIndexMap.at(trackID); in writeAFewSamplesDataFromTime() local
296 ALOGV("trackID:%d, trackIndex:%d, frameCount:%d", trackID, trackIndex, in writeAFewSamplesDataFromTime()
297 frameCount[trackIndex]); in writeAFewSamplesDataFromTime()
298 AMediaCodecBufferInfo* info = mBufferInfo[trackIndex][frameCount[trackIndex]]; in writeAFewSamplesDataFromTime()
[all …]
DNativeExtractorTest.cpp120 int trackIndex = AMediaExtractor_getSampleTrackIndex(refExtractor); in isMediaSimilar() local
121 if (trackIndex != refTrackID) { in isMediaSimilar()
123 trackIndex); in isMediaSimilar()
127 trackIndex = AMediaExtractor_getSampleTrackIndex(testExtractor); in isMediaSimilar()
128 if (trackIndex != testTrackID) { in isMediaSimilar()
130 trackIndex); in isMediaSimilar()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DMediaUtils.java816 int trackIndex; in getTrackFormatForExtractor() local
818 for (trackIndex = 0; trackIndex < extractor.getTrackCount(); trackIndex++) { in getTrackFormatForExtractor()
819 MediaFormat trackMediaFormat = extractor.getTrackFormat(trackIndex); in getTrackFormatForExtractor()
847 int trackIndex; in createMediaExtractorForMimeType() local
848 for (trackIndex = 0; trackIndex < extractor.getTrackCount(); trackIndex++) { in createMediaExtractorForMimeType()
849 MediaFormat trackMediaFormat = extractor.getTrackFormat(trackIndex); in createMediaExtractorForMimeType()
851 extractor.selectTrack(trackIndex); in createMediaExtractorForMimeType()
855 if (trackIndex == extractor.getTrackCount()) { in createMediaExtractorForMimeType()
1268 int trackIndex = ex.getSampleTrackIndex(); in verifyDecoder() local
1269 MediaFormat format = ex.getTrackFormat(trackIndex); in verifyDecoder()
/cts/tests/tests/media/decoder/jni/
Dnative-media-jni.cpp527 int trackIndex = -1; in testNonTunneledTrickPlay() local
535 trackIndex = trackID; in testNonTunneledTrickPlay()
541 if (trackIndex < 0) { in testNonTunneledTrickPlay()
542 ALOGE("No video track found for track index: %d", trackIndex); in testNonTunneledTrickPlay()
547 AMediaExtractor_selectTrack(extractor, trackIndex); in testNonTunneledTrickPlay()
548 AMediaFormat *format = AMediaExtractor_getTrackFormat(extractor, trackIndex); in testNonTunneledTrickPlay()
/cts/tests/tests/media/common/src/android/media/cts/
DMediaCodecTunneledPlayer.java258 private boolean addTrack(int trackIndex, MediaFormat format) throws IOException { in addTrack() argument
305 trackIndex, format, codec, true, mIsTunneled, mAudioSessionId); in addTrack()
306 mVideoCodecStates.put(Integer.valueOf(trackIndex), state); in addTrack()
309 trackIndex, format, codec, true, mIsTunneled, mAudioSessionId); in addTrack()
310 mAudioCodecStates.put(Integer.valueOf(trackIndex), state); in addTrack()
DMediaCodecClearKeyPlayer.java403 private void addTrack(int trackIndex, MediaFormat format, in addTrack() argument
435 trackIndex, format, codec, true, false, in addTrack()
437 mVideoCodecStates.put(Integer.valueOf(trackIndex), state); in addTrack()
440 trackIndex, format, codec, true, false, in addTrack()
442 mAudioCodecStates.put(Integer.valueOf(trackIndex), state); in addTrack()
/cts/tests/media/src/android/mediav2/cts/
DExtractorTest.java346 int trackIndex = refExtractor.getSampleTrackIndex(); in isMediaSimilar() local
347 if (trackIndex != refTrackID) { in isMediaSimilar()
350 + refTrackID + '/' + trackIndex); in isMediaSimilar()
355 trackIndex = testExtractor.getSampleTrackIndex(); in isMediaSimilar()
356 if (trackIndex != testTrackID) { in isMediaSimilar()
359 + testTrackID + '/' + trackIndex); in isMediaSimilar()
1718 public ExtractorTimeStampTest(String refFile, String textFile, int trackIndex) {
1721 mTrackIndex = trackIndex;
/cts/tests/tests/media/player/src/android/media/player/cts/
DMediaPlayerTest.java1858 int trackIndex = mSubtitleTrackIndex.get(index); in selectSubtitleTrack() local
1859 mMediaPlayer.selectTrack(trackIndex); in selectSubtitleTrack()
1864 int trackIndex = mSubtitleTrackIndex.get(index); in deselectSubtitleTrack() local
1865 mMediaPlayer.deselectTrack(trackIndex); in deselectSubtitleTrack()
2096 int trackIndex = mTimedTextTrackIndex.get(index); in selectTimedTextTrack() local
2097 mMediaPlayer.selectTrack(trackIndex); in selectTimedTextTrack()
2102 int trackIndex = mTimedTextTrackIndex.get(index); in deselectTimedTextTrack() local
2103 mMediaPlayer.deselectTrack(trackIndex); in deselectTimedTextTrack()