/packages/apps/TV/tests/robotests/src/com/android/tv/ |
D | MainActivityRoboTest.java | 55 private FakeMainActivity mMainActivity; field in MainActivityRoboTest 59 mMainActivity = Robolectric.buildActivity(FakeMainActivity.class).create().get(); in setUp() 60 mShadowTvView = Shadow.extract(mMainActivity.getTvView().getTvView()); in setUp() 61 mShadowTvView.listener = mMainActivity.getListener(); in setUp() 71 mMainActivity.selectAudioTrack("FR audio 1"); in testSelectAudioTrack_autoSelect() 72 assertThat(mMainActivity.getSelectedTrack(TvTrackInfo.TYPE_AUDIO)).isEqualTo("FR audio 1"); in testSelectAudioTrack_autoSelect() 79 mMainActivity.applyMultiAudio(null); in testSelectAudioTrack_autoSelect() 81 assertThat(mMainActivity.getSelectedTrack(TvTrackInfo.TYPE_AUDIO)).isEqualTo("FR audio 2"); in testSelectAudioTrack_autoSelect() 91 mMainActivity.selectAudioTrack("FR audio 1"); in testSelectAudioTrack_audioTrackCountChanged() 92 assertThat(mMainActivity.getSelectedTrack(TvTrackInfo.TYPE_AUDIO)).isEqualTo("FR audio 1"); in testSelectAudioTrack_audioTrackCountChanged() [all …]
|
/packages/apps/TV/src/com/android/tv/ui/ |
D | TvOverlayManager.java | 203 private final MainActivity mMainActivity; field in TvOverlayManager 246 mMainActivity = mainActivity; in TvOverlayManager() 329 mMainActivity.addOnActionClickListener( in TvOverlayManager() 340 mMainActivity.showMerchantCollection(); in TvOverlayManager() 350 mMainActivity.startSetupActivity(input, true); in TvOverlayManager() 412 return mMainActivity.getFragmentManager().findFragmentByTag(FRAGMENT_TAG_SETUP_SOURCES); in getSetupSourcesFragment() 422 return mMainActivity.getFragmentManager().findFragmentByTag(FRAGMENT_TAG_NEW_SOURCES); in getNewSourcesFragment() 439 if (mMainActivity.getTimeShiftManager().isPaused()) { in showMenuWithTimeShiftPauseIfNeeded() 478 dialog.show(mMainActivity.getFragmentManager(), tag); in showDialogFragment() 497 final FragmentManager manager = mMainActivity.getFragmentManager(); in runAfterSideFragmentsAreClosed() [all …]
|
D | TvTransitionManager.java | 56 private final MainActivity mMainActivity; field in TvTransitionManager 84 mMainActivity = mainActivity; in TvTransitionManager() 92 mMainActivity in TvTransitionManager() 117 Channel channel = mMainActivity.getCurrentChannel(); in goToChannelBannerScene() 145 mSelectInputView.setCurrentChannel(mMainActivity.getCurrentChannel()); in goToSelectInputScene() 171 AnimatorInflater.loadAnimator(mMainActivity, R.animator.channel_banner_enter); in initIfNeeded() 173 AnimatorInflater.loadAnimator(mMainActivity, R.animator.channel_banner_exit); in initIfNeeded() 218 TransitionInflater ti = TransitionInflater.from(mMainActivity); in initIfNeeded() 253 mMainActivity.updateKeyInputFocus(); in setCurrentScene()
|
D | KeypadChannelSwitchView.java | 59 private final MainActivity mMainActivity; field in KeypadChannelSwitchView 79 mMainActivity.tuneToChannel(mSelectedChannel); 82 mMainActivity 118 mMainActivity = (MainActivity) context; in KeypadChannelSwitchView() 153 mMainActivity.tuneToChannel(channel); in onFinishInflate()
|
/packages/apps/TV/src/com/android/tv/search/ |
D | ProgramGuideSearchFragment.java | 58 ImageCardView cardView = new ImageCardView(mMainActivity); 63 Resources res = mMainActivity.getResources(); 80 mMainActivity, 87 mMainActivity.getDrawable(R.drawable.ic_tv_app_96x96)); 137 mMainActivity.getFragmentManager().popBackStack(); 138 mMainActivity.tuneToChannel( 139 mMainActivity 147 private MainActivity mMainActivity; 157 mMainActivity = (MainActivity) getActivity(); 158 if (PermissionUtils.hasAccessAllEpg(mMainActivity)) { [all …]
|
/packages/apps/TV/src/com/android/tv/menu/ |
D | MenuRowFactory.java | 45 private final MainActivity mMainActivity; field in MenuRowFactory 55 mMainActivity = mainActivity; in MenuRowFactory() 67 mMainActivity, mTvView, menu, mMainActivity.getTimeShiftManager()); in createMenuRow() 69 return new ChannelsRow(mMainActivity, menu, mMainActivity.getProgramDataManager()); in createMenuRow() 75 return new PartnerRow(mMainActivity, menu, title, customActions); in createMenuRow() 80 mMainActivity, in createMenuRow()
|
D | PlayControlsRowView.java | 71 private final MainActivity mMainActivity; field in PlayControlsRowView 94 Channel currentChannel = mMainActivity.getCurrentChannel(); 137 mMainActivity = (MainActivity) context; in PlayControlsRowView() 250 Channel currentChannel = mMainActivity.getCurrentChannel(); in isCurrentChannelRecording() 258 Channel currentChannel = mMainActivity.getCurrentChannel(); in onRecordButtonClicked() 268 mMainActivity, in onRecordButtonClicked() 274 TvSingletons.getSingletons(mMainActivity) in onRecordButtonClicked() 278 mMainActivity, in onRecordButtonClicked() 282 mMainActivity, currentChannel, program, true)); in onRecordButtonClicked() 286 mMainActivity, in onRecordButtonClicked() [all …]
|
D | ChannelCardView.java | 53 private final MainActivity mMainActivity; field in ChannelCardView 67 mMainActivity = (MainActivity) context; in ChannelCardView() 104 ParentalControlSettings parental = mMainActivity.getParentalControlSettings(); in updateProgram() 110 mMainActivity.getProgramDataManager().getCurrentProgram(mChannel.getId()); in updateProgram()
|
D | ItemListRowView.java | 128 private final MainActivity mMainActivity; field in ItemListRowView.ItemListAdapter 135 mMainActivity = (MainActivity) context; in ItemListAdapter() 161 return mMainActivity; in getMainActivity()
|
/packages/apps/TV/src/com/android/tv/dvr/recorder/ |
D | ConflictChecker.java | 76 private final MainActivity mMainActivity; field in ConflictChecker 135 mMainActivity = mainActivity; in ConflictChecker() 249 && !DvrUiHelper.isChannelWatchConflictDialogShown(mMainActivity)) { in onCheckConflict() 253 DvrUiHelper.showChannelWatchConflictDialog(mMainActivity, channel); in onCheckConflict()
|
/packages/apps/TV/src/com/android/tv/ui/sidepanel/parentalcontrols/ |
D | RatingsFragment.java | 387 private final MainActivity mMainActivity; field in RatingsFragment.AttributionItem 390 mMainActivity = mainActivity; in AttributionItem() 403 mMainActivity.getString(R.string.option_attribution), in onSelected() 405 mMainActivity.getOverlayManager().showDialogFragment(DIALOG_TAG, dialog, false); in onSelected()
|