Home
last modified time | relevance | path

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

/packages/apps/TV/tests/robotests/src/com/android/tv/
DMainActivityRoboTest.java132 int trackIndex = in testFindBestCaptionTrack_bestTrackMatch() local
135 assertThat(trackIndex).isEqualTo(1); in testFindBestCaptionTrack_bestTrackMatch()
147 int trackIndex = in testFindBestCaptionTrack_selectedLanguageMatch() local
150 assertThat(trackIndex).isEqualTo(0); in testFindBestCaptionTrack_selectedLanguageMatch()
162 int trackIndex = in testFindBestCaptionTrack_preferredLanguageMatch() local
165 assertThat(trackIndex).isEqualTo(2); in testFindBestCaptionTrack_preferredLanguageMatch()
177 int trackIndex = in testFindBestCaptionTrack_higherPriorityPreferredLanguageMatch() local
180 assertThat(trackIndex).isEqualTo(2); in testFindBestCaptionTrack_higherPriorityPreferredLanguageMatch()
192 int trackIndex = in testFindBestCaptionTrack_noMatch() local
195 assertThat(trackIndex).isEqualTo(0); in testFindBestCaptionTrack_noMatch()
DShadowTvView.java91 private void replaceTrack(int type, int trackIndex) { in replaceTrack() argument
92 if (trackIndex >= 0) { in replaceTrack()
93 TvTrackInfo info = mTracks.get(type).get(trackIndex); in replaceTrack()
99 mTracks.get(type).set(trackIndex, info); in replaceTrack()
/packages/apps/TV/src/com/android/tv/ui/sidepanel/
DClosedCaptionFragment.java128 private String getLabel(TvTrackInfo track, Integer trackIndex) { in getLabel() argument
134 return getString(R.string.closed_caption_unknown_language, trackIndex + 1); in getLabel()
141 private ClosedCaptionOptionItem(TvTrackInfo track, Integer trackIndex) { in ClosedCaptionOptionItem() argument
142 super(getLabel(track, trackIndex)); in ClosedCaptionOptionItem()
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer2/
DMpegTsPlayerV2.java395 public void setSelectedTrack(int rendererIndex, int trackIndex) { in setSelectedTrack() argument
397 if (trackIndex >= getTrackCount(rendererIndex)) { in setSelectedTrack()
403 new DefaultTrackSelector.SelectionOverride(trackIndex, 0); in setSelectedTrack()
437 public Format getTrackFormat(int rendererIndex, int trackIndex) { in getTrackFormat() argument
441 TrackGroup trackGroup = trackGroupArray.get(trackIndex); in getTrackFormat()
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/
DMpegTsPlayer.java479 public void setSelectedTrack(int rendererIndex, int trackIndex) { in setSelectedTrack() argument
480 if (trackIndex >= getTrackCount(rendererIndex)) { in setSelectedTrack()
483 mPlayer.setSelectedTrack(rendererIndex, trackIndex); in setSelectedTrack()
504 public MediaFormat getTrackFormat(int rendererIndex, int trackIndex) { in getTrackFormat() argument
505 return mPlayer.getTrackFormat(rendererIndex, trackIndex); in getTrackFormat()
/packages/apps/TV/src/com/android/tv/
DTvOptionsManager.java89 public void onClosedCaptionsChanged(TvTrackInfo track, int trackIndex) { in onClosedCaptionsChanged() argument
96 R.string.closed_caption_unknown_language, trackIndex + 1); in onClosedCaptionsChanged()
DMainActivity.java2656 private void selectTrack(int type, TvTrackInfo track, int trackIndex) {
2664 mTvOptionsManager.onClosedCaptionsChanged(track, trackIndex);
2668 private void selectCaptionTrack(String selectedTrackId, TvTrackInfo track, int trackIndex) {
2670 selectTrack(TvTrackInfo.TYPE_SUBTITLE, track, trackIndex);
2673 mTvOptionsManager.onClosedCaptionsChanged(track, trackIndex);
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DVideoUtils.java197 int trackIndex = -1; in genVideoUsingMuxer() local
216 trackIndex = extractor.getSampleTrackIndex(); in genVideoUsingMuxer()
218 muxer.writeSampleData(indexMap.get(trackIndex), dstBuf, in genVideoUsingMuxer()
/packages/apps/TV/src/com/android/tv/dvr/ui/playback/
DDvrPlaybackSideFragment.java130 private String getTrackLabel(TvTrackInfo track, int trackIndex) {
135 ? getString(R.string.closed_caption_unknown_language, trackIndex + 1)
/packages/modules/Media/apex/framework/java/android/media/
DMediaParser.java396 void onTrackDataFound(int trackIndex, @NonNull TrackData trackData); in onTrackDataFound() argument
410 void onSampleDataFound(int trackIndex, @NonNull InputReader inputReader) throws IOException; in onSampleDataFound() argument
430 int trackIndex, in onSampleCompleted() argument
1628 int trackIndex = mTrackOutputAdapters.size(); in track() local
1629 trackOutput = new TrackOutputAdapter(trackIndex); in track()
1635 trackIndex, new TrackData(mediaFormat, /* drmInitData= */ null)); in track()
1687 private TrackOutputAdapter(int trackIndex) { in TrackOutputAdapter() argument
1688 mTrackIndex = trackIndex; in TrackOutputAdapter()
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/buffer/
DSampleChunkIoHelper.java573 for (int trackIndex : mSelectedTracks) { in releaseEvictedChunks()
576 currentStartPositionUs, mReadIoStates[trackIndex].getStartPositionUs()); in releaseEvictedChunks()
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer2/buffer/
DSampleChunkIoHelper.java618 for (int trackIndex : mSelectedTracks) { in releaseEvictedChunks()
621 currentStartPositionUs, mReadIoStates[trackIndex].getStartPositionUs()); in releaseEvictedChunks()