Home
last modified time | relevance | path

Searched refs:MainActivity (Results 1 – 25 of 45) sorted by relevance

12

/packages/apps/TV/src/com/android/tv/ui/
DTvOverlayManager.java43 import com.android.tv.MainActivity;
44 import com.android.tv.MainActivity.KeyHandlerResultType;
143 private final MainActivity mMainActivity;
165 public TvOverlayManager(MainActivity mainActivity, ChannelTuner channelTuner, in TvOverlayManager()
675 mTracker.sendScreenView(MainActivity.SCREEN_NAME); in onOverlayClosed()
719 return MainActivity.KEY_EVENT_HANDLER_RESULT_HANDLED; in onKeyDown()
724 return MainActivity.KEY_EVENT_HANDLER_RESULT_HANDLED; in onKeyDown()
728 return MainActivity.KEY_EVENT_HANDLER_RESULT_DISPATCH_TO_OVERLAY; in onKeyDown()
732 MainActivity.KEY_EVENT_HANDLER_RESULT_HANDLED in onKeyDown()
733 : MainActivity.KEY_EVENT_HANDLER_RESULT_NOT_HANDLED; in onKeyDown()
[all …]
DInputBannerView.java27 import com.android.tv.MainActivity;
37 ((MainActivity) getContext()).getOverlayManager().hideOverlays(
71 MainActivity mainActivity = (MainActivity) getContext(); in updateLabel()
DFullscreenDialogView.java30 import com.android.tv.MainActivity;
43 private MainActivity mActivity;
75 protected MainActivity getActivity() { in getActivity()
99 public void initialize(MainActivity activity, Dialog dialog) { in initialize()
DOverlayRootView.java24 import com.android.tv.MainActivity;
28 private final MainActivity mMainActivity;
44 mMainActivity = (MainActivity) context; in OverlayRootView()
/packages/apps/TV/src/com/android/tv/
DMainActivityWrapper.java35 private MainActivity mActivity;
43 MainActivity getMainActivity() { in getMainActivity()
50 boolean isCurrent(MainActivity activity) { in isCurrent()
58 public void onMainActivityCreated(@NonNull MainActivity activity) { in onMainActivityCreated()
66 public void onMainActivityDestroyed(@NonNull MainActivity activity) { in onMainActivityDestroyed()
75 void notifyCurrentChannelChange(@NonNull MainActivity caller, @Nullable Channel channel) { in notifyCurrentChannelChange()
DMainActivity.java154 public class MainActivity extends Activity implements AudioManager.OnAudioFocusChangeListener { class
387 SetupUtils.getInstance(MainActivity.this).markNewChannelsBrowsable();
429 && UsbTunerPreferences.shouldShowSetupActivity(MainActivity.this)) {
430 Intent intent = TunerSetupActivity.createSetupActivity(MainActivity.this);
432 UsbTunerPreferences.setShouldShowSetupActivity(MainActivity.this, false);
433 SetupUtils.getInstance(MainActivity.this).markAsKnownInput(mUsbTunerInputId);
776 int result = mAudioManager.requestAudioFocus(MainActivity.this, in onResume()
1286 Utils.setLastWatchedChannel(MainActivity.this, channel); in endShrunkenTvView()
1328 Toast.makeText(MainActivity.this, text, Toast.LENGTH_SHORT).show(); in onActivityResult()
1350 Toast.makeText(MainActivity.this, errorMessage, Toast.LENGTH_SHORT).show(); in onActivityResult()
[all …]
/packages/apps/TV/src/com/android/tv/menu/
DMenuRowFactory.java23 import com.android.tv.MainActivity;
34 private final MainActivity mMainActivity;
40 public MenuRowFactory(MainActivity mainActivity) { in MenuRowFactory()
93 private final MainActivity mMainActivity;
98 mMainActivity = (MainActivity) context; in PipOptionsRow()
DItemListRowView.java29 import com.android.tv.MainActivity;
117 private final MainActivity mMainActivity;
124 mMainActivity = (MainActivity) context; in ItemListAdapter()
154 protected MainActivity getMainActivity() { in getMainActivity()
DChannelCardView.java31 import com.android.tv.MainActivity;
61 private final MainActivity mMainActivity;
84 mMainActivity = (MainActivity) context; in ChannelCardView()
213 if (!(getContext() instanceof MainActivity)) {
DChannelsRowAdapter.java26 import com.android.tv.MainActivity;
173 Channel currentChannel = ((MainActivity) mContext).getCurrentChannel(); in update()
229 if (count < mMinCount && mContext instanceof MainActivity) { in getRecentChannels()
230 for (long channelId : ((MainActivity) mContext).getRecentChannels()) { in getRecentChannels()
DPipOptionsRowAdapter.java22 import com.android.tv.MainActivity;
85 MainActivity tvActivity = getMainActivity(); in updateSelectInputAction()
/packages/apps/TV/src/com/android/tv/ui/sidepanel/
DSettingsFragment.java22 import com.android.tv.MainActivity;
53 private final MainActivity mMainActivity;
55 public LicenseActionItem(MainActivity mainActivity) { in LicenseActionItem()
104 final MainActivity activity = getMainActivity(); in getItemList()
124 final MainActivity tvActivity = getMainActivity(); in getItemList()
/packages/apps/TV/src/com/android/tv/dvr/ui/
DDvrDialogFragment.java11 import com.android.tv.MainActivity;
26 ((MainActivity) getActivity()).getOverlayManager().getProgramGuide(); in onAttach()
45 ((MainActivity) getActivity()).getOverlayManager().getProgramGuide(); in onDetach()
DDvrRecordConflictFragment.java8 import com.android.tv.MainActivity;
43 final MainActivity tvActivity = (MainActivity) getActivity(); in onCreateGuidance()
DDvrGuidedStepFragment.java12 import com.android.tv.MainActivity;
68 ((MainActivity) getActivity()).getOverlayManager().getCurrentDialog();
DDvrRecordScheduleFragment.java15 import com.android.tv.MainActivity;
60 ((MainActivity) getActivity()).getOverlayManager().getCurrentDialog(); in onGuidedActionClicked()
/packages/apps/TV/src/com/android/tv/guide/
DProgramItemView.java39 import com.android.tv.MainActivity;
95 final MainActivity tvActivity = (MainActivity) view.getContext();
109 final MainActivity tvActivity = (MainActivity) view.getContext();
128 ((MainActivity) view.getContext()).getOverlayManager().showDialogFragment(
135 ((MainActivity) view.getContext()).getOverlayManager().showDialogFragment(
/packages/apps/TV/src/com/android/tv/dialog/
DSafeDismissDialogFragment.java26 import com.android.tv.MainActivity;
36 private MainActivity mActivity;
50 mActivity = (MainActivity) activity; in onAttach()
DFullscreenDialogFragment.java27 import com.android.tv.MainActivity;
65 mDialogView.initialize((MainActivity) getActivity(), dialog); in onCreateDialog()
110 void initialize(MainActivity activity, Dialog dialog); in initialize()
/packages/apps/TV/src/com/android/tv/ui/sidepanel/parentalcontrols/
DRatingSystemsFragment.java21 import com.android.tv.MainActivity;
43 setDefaultRatingSystemsIfNeeded((MainActivity) getActivity()); in onCreate()
46 public static String getDescription(MainActivity tvActivity) { in getDescription()
129 private static void setDefaultRatingSystemsIfNeeded(MainActivity tvActivity) { in setDefaultRatingSystemsIfNeeded()
DRatingsFragment.java27 import com.android.tv.MainActivity;
82 public static String getDescription(MainActivity tvActivity) { in getDescription()
327 private final MainActivity mMainActivity;
329 public AttributionItem(MainActivity mainActivity) { in AttributionItem()
DProgramRestrictionsFragment.java19 import com.android.tv.MainActivity;
38 public static String getDescription(MainActivity tvActivity) { in getDescription()
/packages/apps/TV/tests/unit/src/com/android/tv/
DBaseMainActivityTestCase.java37 extends ActivityInstrumentationTestCase2<MainActivity> {
43 protected MainActivity mActivity;
45 public BaseMainActivityTestCase(Class<MainActivity> activityClass) { in BaseMainActivityTestCase()
/packages/apps/TV/tests/unit/src/com/android/tv/menu/
DTvOptionsRowAdapterTest.java23 import com.android.tv.MainActivity;
44 super(MainActivity.class); in TvOptionsRowAdapterTest()
/packages/apps/TV/src/com/android/tv/search/
DProgramGuideSearchFragment.java42 import com.android.tv.MainActivity;
136 private MainActivity mMainActivity;
146 mMainActivity = (MainActivity) getActivity();

12