Home
last modified time | relevance | path

Searched refs:mTvView (Results 1 – 18 of 18) sorted by relevance

/packages/apps/TV/tests/robotests/src/com/android/tv/audio/
DAudioManagerHelperTest.java42 private TestTvView mTvView; field in AudioManagerHelperTest
48 mTvView = new TestTvView(); in setup()
51 mAudioManagerHelper = new AudioManagerHelper(testActivity, mTvView); in setup()
56 mTvView.mTimeShiftAvailable = false; in onAudioFocusChange_none_noTimeShift()
60 assertThat(mTvView.mPaused).isNull(); in onAudioFocusChange_none_noTimeShift()
61 assertThat(mTvView.mVolume).isZero(); in onAudioFocusChange_none_noTimeShift()
66 mTvView.mTimeShiftAvailable = true; in onAudioFocusChange_none_TimeShift()
70 assertThat(mTvView.mPaused).isTrue(); in onAudioFocusChange_none_TimeShift()
71 assertThat(mTvView.mVolume).isNull(); in onAudioFocusChange_none_TimeShift()
76 mTvView.mTimeShiftAvailable = false; in onAudioFocusChange_gain_noTimeShift()
[all …]
/packages/apps/TV/src/com/android/tv/dvr/
DDvrTvView.java39 private final AppLayerTvView mTvView; field in DvrTvView
48 mTvView = tvView; in DvrTvView()
60 mTvView.setStreamVolume(volume); in setStreamVolume()
77 mTvView.timeShiftPlay(mInputId, mRecordedProgramUri); in timeShiftPlay()
89 mTvView.timeShiftPause(); in timeShiftPause()
96 mTvView.timeShiftSetPlaybackParams(params); in timeShiftRewind()
103 mTvView.timeShiftSetPlaybackParams(params); in timeShiftFastForward()
108 mTvView.timeShiftSeekTo(timeMs); in timeShiftSeekTo()
117 mTvView.setCaptionEnabled(enabled); in setCaptionEnabled()
121 mTvView.timeShiftResume(); in timeShiftResume()
[all …]
/packages/apps/TV/src/com/android/tv/dvr/ui/playback/
DDvrPlayer.java52 private final DvrTvView mTvView; field in DvrPlayer
119 mTvView = new DvrTvView(context, tvView, this); in DvrPlayer()
120 mTvView.setCaptionEnabled(true); in DvrPlayer()
124 mTvView.init(); in DvrPlayer()
139 mTvView.timeShiftPlay(mProgram.getInputId(), mProgram.getUri()); in prepare()
157 mTvView.timeShiftResume(); in play()
175 mTvView.timeShiftPause(); in pause()
239 mTvView.timeShiftSeekTo(positionMs + mStartPositionMs); in seekTo()
243 mTvView.timeShiftResume(); in seekTo()
253 mTvView.reset(); in reset()
[all …]
DDvrPlaybackOverlayFragment.java83 private AppLayerTvView mTvView; field in DvrPlaybackOverlayFragment
173 mTvView = getActivity().findViewById(R.id.dvr_tv_view); in onActivityCreated()
174 mTvView.setUseSecureSurface( in onActivityCreated()
177 mDvrPlayer = new DvrPlayer(mTvView, getActivity()); in onActivityCreated()
219 mTvView.unblockContent(contentRating); in onActivityCreated()
234 mTvView.unblockContent(contentRating); in onActivityCreated()
433 ((ViewGroup) mTvView.getParent()).setPadding(0, 0, 0, 0); in updateAspectRatio()
436 ((ViewGroup) mTvView.getParent()).setPadding(newPadding, 0, newPadding, 0); in updateAspectRatio()
439 ((ViewGroup) mTvView.getParent()).setPadding(0, newPadding, 0, newPadding); in updateAspectRatio()
/packages/apps/TV/src/com/android/tv/ui/
DTvViewUiManager.java67 private final TunableTvView mTvView; field in TvViewUiManager
92 mTvView.setTvViewLayoutParams(layoutParams);
93 mTvView.setLayoutParams(mTvViewFrame);
99 mTvView.setFixedSurfaceSize(
135 mTvView = tvView; in TvViewUiManager()
170 applyDisplayMode(mTvView.getVideoDisplayAspectRatio(), false, true); in onConfigurationChanged()
191 mTvView.setIsUnderShrunken(true); in startShrunkenTvView()
205 mTvView.setIsUnderShrunken(false); in endShrunkenTvView()
227 float videoDisplayAspectRatio = mTvView.getVideoDisplayAspectRatio(); in isDisplayModeAvailable()
267 applyDisplayMode(mTvView.getVideoDisplayAspectRatio(), animate, false); in setDisplayMode()
[all …]
DTunableTvView.java136 private AppLayerTvView mTvView; field in TunableTvView
484 mTvView = findViewById(R.id.tv_view); in initialize()
485 mTvView.setUseSecureSurface(!BuildConfig.ENG && !mLegacyFlags.enableDeveloperFeatures()); in initialize()
492 mTvViewSession = mInputSessionManager.createTvViewSession(mTvView, this, mCallback); in initialize()
494 mTvView.setCallback(mCallback); in initialize()
508 mTvView.tune(inputId, channelUri); in warmUpInput()
555 mTvView.reset(); in resetInternal()
566 mTvView.setMain(); in setMain()
665 mTvView.setTimeShiftPositionCallback(null); in tuneTo()
671 mTvView.tune(mInputInfo.getId(), mCurrentChannel.getUri(), params); in tuneTo()
[all …]
DTvOverlayManager.java209 private final TunableTvView mTvView; field in TvOverlayManager
252 mTvView = tvView; in TvOverlayManager()
822 } else if (mTvView.isScreenBlocked()) { in updateChannelBannerAndShowIfNeeded()
824 } else if (mTvView.isContentBlocked() in updateChannelBannerAndShowIfNeeded()
826 && !mTvView.isVideoOrAudioAvailable())) { in updateChannelBannerAndShowIfNeeded()
838 mChannelBannerView.updateStreamInfo(mTvView); in updateChannelBannerAndShowIfNeeded()
849 mTvView.getChannelSignalStrength()); in updateChannelBannerAndShowIfNeeded()
1022 if (mTvView.isScreenBlocked()) { in onKeyUp()
/packages/apps/TV/src/com/android/tv/audio/
DAudioManagerHelper.java35 private final TunableTvViewPlayingApi mTvView; field in AudioManagerHelper
43 mTvView = tvView; in AudioManagerHelper()
74 if (mTvView.isPlaying()) { in setVolumeByAudioFocusStatus()
77 if (mTvView.isTimeShiftAvailable()) { in setVolumeByAudioFocusStatus()
78 mTvView.timeShiftPlay(); in setVolumeByAudioFocusStatus()
80 mTvView.setStreamVolume(AUDIO_MAX_VOLUME); in setVolumeByAudioFocusStatus()
93 if (mTvView.isTimeShiftAvailable()) { in setVolumeByAudioFocusStatus()
94 mTvView.timeShiftPause(); in setVolumeByAudioFocusStatus()
96 mTvView.setStreamVolume(AUDIO_MIN_VOLUME); in setVolumeByAudioFocusStatus()
100 if (mTvView.isTimeShiftAvailable()) { in setVolumeByAudioFocusStatus()
[all …]
/packages/apps/TV/src/com/android/tv/
DMainActivity.java313 @VisibleForTesting protected TunableTvView mTvView; field in MainActivity
399 checkChannelLockNeeded(mTvView, null);
423 Channel channel = mTvView.getCurrentChannel();
427 mMediaSessionWrapper.update(mTvView.isBlocked(), channel, program);
495 mTvView.onParentalControlChanged(parentalControlEnabled); in applyParentalControlSettings()
548 mTvView = findViewById(R.id.main_tunable_tv_view); in onCreate()
549 mTvView.initialize(mProgramDataManager, mTvInputManagerHelper, mLegacyFlags); in onCreate()
550 mTvView.setOnUnhandledInputEventListener( in onCreate()
574 mTvView.setBlockedInfoOnClickListener(v -> showPinDialogFragment()); in onCreate()
581 mTvView.warmUpInput(inputId, TvContract.buildChannelUri(channelId)); in onCreate()
[all …]
DTimeShiftManager.java579 private final TunableTvView mTvView; field in TimeShiftManager.PlayController
600 mTvView = tvView; in PlayController()
601 mTvView.setTimeShiftListener( in PlayController()
609 + mTvView.isTimeShiftAvailable() in PlayController()
676 boolean newAvailable = mTvView.isTimeShiftAvailable(); in onAvailabilityChanged()
719 Math.min(mTvView.timeShiftGetCurrentPositionMs(), currentTimeMs), in handleGetCurrentPosition()
757 mTvView.timeShiftPlay(); in play()
764 mTvView.timeShiftPause(); in pause()
787 mTvView.timeShiftRewind(mPlaybackSpeed); in rewind()
800 mTvView.timeShiftFastForward(mPlaybackSpeed); in fastForward()
[all …]
DInputSessionManager.java245 private final TvViewCompat mTvView; field in InputSessionManager.TvViewSession
261 mTvView = tvView; in TvViewSession()
265 mTvView.setCallback( in TvViewSession()
300 mTvView.tune(inputId, channelUri); in tune()
345 mTvView.tune(mInputId, mChannelUri, params); in tune()
370 mTvView.timeShiftPlay(inputId, recordedProgramUri); in timeShiftPlay()
378 mTvView.reset(); in reset()
/packages/apps/TV/src/com/android/tv/menu/
DMenuUpdater.java37 @Nullable private final TunableTvView mTvView; field in MenuUpdater
69 mTvView = tvView; in MenuUpdater()
71 if (mTvView != null) { in MenuUpdater()
72 mTvView.setOnScreenBlockedListener( in MenuUpdater()
113 if (mTvView != null) { in release()
114 mTvView.setOnScreenBlockedListener(null); in release()
DPlayControlsRow.java27 private final TunableTvView mTvView; field in PlayControlsRow
33 mTvView = tvView; in PlayControlsRow()
49 return mTvView; in getTvView()
DMenuRowFactory.java46 private final TunableTvView mTvView; field in MenuRowFactory
56 mTvView = tvView; in MenuRowFactory()
67 mMainActivity, mTvView, menu, mMainActivity.getTimeShiftManager()); in createMenuRow()
DPlayControlsRowView.java67 private TunableTvView mTvView; field in PlayControlsRowView
323 mTvView = playControlsRow.getTvView(); in onBind()
502 if (mTimeShiftManager.isAvailable() && !mTvView.isScreenBlocked()) { in updateAll()
/packages/apps/TV/tests/robotests/src/com/android/tv/
DMainActivityRoboTest.java223 mTvView = in onCreate()
229 mTvView.initialize( in onCreate()
233 mTvView.start(); in onCreate()
245 mTvView.setOnTuneListener(mListener); in onCreate()
249 return mTvView; in getTvView()
/packages/apps/TV/tests/func/src/com/android/tv/tests/ui/sidepanel/
DCustomizeChannelListFragmentTest.java46 private UiObject2 mTvView; field in CustomizeChannelListFragmentTest
53 mTvView = controller.getUiDevice().findObject(Constants.TV_VIEW); in setUp()
54 mNormalTvViewCenter = mTvView.getVisibleCenter(); in setUp()
64 Point currentTvViewCenter = mTvView.getVisibleCenter(); in assertShrunkenTvView()
/packages/apps/TV/src/com/android/tv/audiotvservice/
DAudioOnlyTvService.java39 private TunableTvView mTvView; field in AudioOnlyTvService
69 mTvView.tuneTo(channel, null, this); in tune()