Home
last modified time | relevance | path

Searched refs:trackType (Results 1 – 9 of 9) sorted by relevance

/packages/apps/TV/src/com/android/tv/dvr/ui/playback/
DDvrPlayer.java294 public void setOnTrackSelectedListener(int trackType, OnTrackSelectedListener listener) { in setOnTrackSelectedListener() argument
295 if (trackType == TvTrackInfo.TYPE_AUDIO) { in setOnTrackSelectedListener()
297 } else if (trackType == TvTrackInfo.TYPE_SUBTITLE) { in setOnTrackSelectedListener()
303 public OnTrackSelectedListener getOnTrackSelectedListener(int trackType) { in getOnTrackSelectedListener() argument
304 if (trackType == TvTrackInfo.TYPE_AUDIO) { in getOnTrackSelectedListener()
306 } else if (trackType == TvTrackInfo.TYPE_SUBTITLE) { in getOnTrackSelectedListener()
361 public String getSelectedTrackId(int trackType) { in getSelectedTrackId() argument
362 if (trackType == TvTrackInfo.TYPE_AUDIO) { in getSelectedTrackId()
364 } else if (trackType == TvTrackInfo.TYPE_SUBTITLE) { in getSelectedTrackId()
385 String selectTrack(int trackType, TvTrackInfo selectedTrack) { in selectTrack() argument
[all …]
DDvrPlaybackOverlayFragment.java343 public ArrayList<TvTrackInfo> getTracks(int trackType) { in getTracks() argument
344 if (trackType == TvTrackInfo.TYPE_AUDIO) { in getTracks()
346 } else if (trackType == TvTrackInfo.TYPE_SUBTITLE) { in getTracks()
353 public String getSelectedTrackId(int trackType) { in getSelectedTrackId() argument
354 return mDvrPlayer.getSelectedTrackId(trackType); in getSelectedTrackId()
364 TvTrackInfo getTrackSetting(int trackType) { in getTrackSetting() argument
365 return TvSettings.getDvrPlaybackTrackSettings(getContext(), trackType); in getTrackSetting()
376 void selectTrack(int trackType, TvTrackInfo selectedTrack) { in selectTrack() argument
378 mDvrPlayer.selectTrack(trackType, selectedTrack); in selectTrack()
398 private void selectBestMatchedTrack(int trackType) { in selectBestMatchedTrack() argument
[all …]
DDvrPlaybackControlHelper.java154 int trackType; in onActionClicked() local
156 trackType = TvTrackInfo.TYPE_SUBTITLE; in onActionClicked()
158 trackType = TvTrackInfo.TYPE_AUDIO; in onActionClicked()
163 ArrayList<TvTrackInfo> trackInfos = mFragment.getTracks(trackType); in onActionClicked()
165 showSideFragment(trackInfos, mFragment.getSelectedTrackId(trackType)); in onActionClicked()
/packages/apps/TV/src/com/android/tv/util/
DTvSettings.java112 Context context, int trackType, TvTrackInfo info) { in setDvrPlaybackTrackSettings() argument
113 if (trackType == TvTrackInfo.TYPE_AUDIO) { in setDvrPlaybackTrackSettings()
127 } else if (trackType == TvTrackInfo.TYPE_SUBTITLE) { in setDvrPlaybackTrackSettings()
143 public static TvTrackInfo getDvrPlaybackTrackSettings(Context context, int trackType) { in getDvrPlaybackTrackSettings() argument
148 if (trackType == TvTrackInfo.TYPE_AUDIO) { in getDvrPlaybackTrackSettings()
155 return new TvTrackInfo.Builder(trackType, trackId) in getDvrPlaybackTrackSettings()
159 } else if (trackType == TvTrackInfo.TYPE_SUBTITLE) { in getDvrPlaybackTrackSettings()
165 return new TvTrackInfo.Builder(trackType, trackId).setLanguage(language).build(); in getDvrPlaybackTrackSettings()
DTvTrackInfoUtils.java221 private static String trackTypeToString(int trackType) {
222 switch (trackType) {
235 int trackType = info.getType();
238 + trackTypeToString(trackType)
245 + (trackType == TvTrackInfo.TYPE_AUDIO
251 + (trackType == TvTrackInfo.TYPE_VIDEO
/packages/apps/TV/tests/unit/src/com/android/tv/menu/
DTvOptionsRowAdapterTest.java140 private void waitUntilTracksHaveSize(int trackType, int expected) { in waitUntilTracksHaveSize() argument
145 List<TvTrackInfo> tracks = mActivity.getTracks(trackType); in waitUntilTracksHaveSize()
171 private void waitUntilTrackSelected(int trackType, String trackId) { in waitUntilTrackSelected() argument
176 selectedTrackId = mActivity.getSelectedTrack(trackType); in waitUntilTrackSelected()
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer2/
DMpegTsPlayerV2.java361 private boolean hasRendererType(int trackType) { in hasRendererType() argument
366 if (mappedTrackInfo.getRendererType(rendererIndex) == trackType) { in hasRendererType()
/packages/apps/TV/tuner/src/com/android/tv/tuner/tvinput/
DTunerSessionWorkerExoV2.java1483 private void removeTvTracks(int trackType) { in removeTvTracks() argument
1487 if (tvTrackInfo.getType() == trackType) { in removeTvTracks()
DTunerSessionWorker.java1561 private void removeTvTracks(int trackType) { in removeTvTracks() argument
1565 if (tvTrackInfo.getType() == trackType) { in removeTvTracks()