Home
last modified time | relevance | path

Searched refs:mDvrPlayer (Results 1 – 4 of 4) sorted by relevance

/packages/apps/TV/src/com/android/tv/dvr/ui/playback/
DDvrPlaybackMediaSessionHelper.java48 private DvrPlayer mDvrPlayer; field in DvrPlaybackMediaSessionHelper
59 mDvrPlayer = dvrPlayer; in DvrPlaybackMediaSessionHelper()
63 mDvrPlayer.setCallback( in DvrPlaybackMediaSessionHelper()
76 if (mDvrPlayer.isPlaybackPrepared()) { in DvrPlaybackMediaSessionHelper()
78 mDvrPlayer.getProgram().getId(), positionMs); in DvrPlaybackMediaSessionHelper()
86 overlayFragment.getNextEpisode(mDvrPlayer.getProgram()); in DvrPlaybackMediaSessionHelper()
88 mDvrPlayer.reset(); in DvrPlaybackMediaSessionHelper()
108 if (mDvrPlayer != null) { in release()
109 mDvrPlayer.reset(); in release()
122 mDvrPlayer.getPlaybackState(), in updateMediaSessionPlaybackState()
[all …]
DDvrPlaybackOverlayFragment.java76 private DvrPlayer mDvrPlayer; field in DvrPlaybackOverlayFragment
177 mDvrPlayer = new DvrPlayer(mTvView, getActivity()); in onActivityCreated()
180 getActivity(), MEDIA_SESSION_TAG, mDvrPlayer, this); in onActivityCreated()
183 mDvrPlayer.setOnTracksAvailabilityChangedListener( in onActivityCreated()
190 mDvrPlayer.setOnTrackSelectedListener( in onActivityCreated()
194 mDvrPlayer.setOnTrackSelectedListener(TvTrackInfo.TYPE_SUBTITLE, null); in onActivityCreated()
203 mDvrPlayer.setOnAspectRatioChangedListener( in onActivityCreated()
214 mDvrPlayer.setOnContentBlockedListener( in onActivityCreated()
272 mAudioManagerHelper = new AudioManagerHelper(getActivity(), mDvrPlayer.getView()); in onActivityCreated()
305 mDvrPlayer.release(); in onDestroy()
[all …]
/packages/apps/TV/tests/robotests/src/com/android/tv/dvr/ui/playback/
DDvrPlayerTest.java47 private DvrPlayer mDvrPlayer; field in DvrPlayerTest
53 mDvrPlayer = new DvrPlayer(tvView, RuntimeEnvironment.application); in setUp()
59 assertThat(mDvrPlayer.getAudioTracks()).isNotNull(); in testGetAudioTracks_null()
60 assertThat(mDvrPlayer.getAudioTracks()).isEmpty(); in testGetAudioTracks_null()
66 assertThat(mDvrPlayer.getAudioTracks()).isNotNull(); in testGetAudioTracks_empty()
67 assertThat(mDvrPlayer.getAudioTracks()).isEmpty(); in testGetAudioTracks_empty()
74 assertThat(mDvrPlayer.getAudioTracks()).containsExactly(info); in testGetAudioTracks_nonEmpty()
/packages/apps/TV/src/com/android/tv/dvr/
DDvrTvView.java40 private DvrPlayer mDvrPlayer; field in DvrTvView
49 mDvrPlayer = player; in DvrTvView()
55 return mDvrPlayer.getPlaybackState() == PlaybackState.STATE_PLAYING; in isPlaying()
113 return mDvrPlayer.getPlaybackPosition(); in timeShiftGetCurrentPositionMs()
156 mDvrPlayer = null; in release()