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.java38 import com.android.tv.MainActivity;
39 import com.android.tv.MainActivity.KeyHandlerResultType;
208 private final MainActivity mMainActivity;
235 public TvOverlayManager(MainActivity mainActivity, ChannelTuner channelTuner, in TvOverlayManager()
917 mTracker.sendScreenView(MainActivity.SCREEN_NAME); in onOverlayClosed()
977 return MainActivity.KEY_EVENT_HANDLER_RESULT_HANDLED; in onKeyDown()
982 return MainActivity.KEY_EVENT_HANDLER_RESULT_HANDLED; in onKeyDown()
986 return MainActivity.KEY_EVENT_HANDLER_RESULT_DISPATCH_TO_OVERLAY; in onKeyDown()
990 MainActivity.KEY_EVENT_HANDLER_RESULT_HANDLED in onKeyDown()
991 : 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()
DTvTransitionManager.java34 import com.android.tv.MainActivity;
52 private final MainActivity mMainActivity;
73 public TvTransitionManager(MainActivity mainActivity, ViewGroup sceneContainer, in TvTransitionManager()
DKeypadChannelSwitchView.java39 import com.android.tv.MainActivity;
61 private final MainActivity mMainActivity;
114 mMainActivity = (MainActivity) context; in KeypadChannelSwitchView()
/packages/apps/TV/src/com/android/tv/
DMainActivityWrapper.java34 private MainActivity mActivity;
42 MainActivity getMainActivity() { in getMainActivity()
49 boolean isCurrent(MainActivity activity) { in isCurrent()
56 public void onMainActivityCreated(@NonNull MainActivity activity) { in onMainActivityCreated()
63 public void onMainActivityDestroyed(@NonNull MainActivity activity) { in onMainActivityDestroyed()
72 void notifyCurrentChannelChange(@NonNull MainActivity caller, @Nullable Channel channel) { in notifyCurrentChannelChange()
DMainActivity.java156 public class MainActivity extends Activity implements OnActionClickListener, OnPinCheckedListener { class
367 SetupUtils.getInstance(MainActivity.this).markNewChannelsBrowsable();
403 if (Features.TUNER.isEnabled(MainActivity.this) && mTunerInputId.equals(inputId)
404 && TunerPreferences.shouldShowSetupActivity(MainActivity.this)) {
405 Intent intent = TunerSetupActivity.createSetupActivity(MainActivity.this);
407 TunerPreferences.setShouldShowSetupActivity(MainActivity.this, false);
408 SetupUtils.getInstance(MainActivity.this).markAsKnownInput(mTunerInputId);
763 DvrUiHelper.showDvrInsufficientSpaceErrorDialog(MainActivity.this, in onResume()
1223 Utils.setLastWatchedChannel(MainActivity.this, channel); in endShrunkenTvView()
1265 Toast.makeText(MainActivity.this, text, Toast.LENGTH_SHORT).show(); in onActivityResult()
[all …]
/packages/apps/TV/src/com/android/tv/dvr/ui/
DDvrHalfSizedDialogFragment.java29 import com.android.tv.MainActivity;
70 if (activity instanceof MainActivity) { in onAttach()
72 ((MainActivity) activity).getOverlayManager().getProgramGuide(); in onAttach()
83 if (activity instanceof MainActivity) { in onDetach()
85 ((MainActivity) activity).getOverlayManager().getProgramGuide(); in onDetach()
DDvrConflictFragment.java31 import com.android.tv.MainActivity;
277 ConflictChecker checker = ((MainActivity) getContext()).getDvrConflictChecker(); in onCreateView()
324 ConflictChecker checker = ((MainActivity) getContext()).getDvrConflictChecker(); in onTrackedGuidedActionClicked()
359 ConflictChecker checker = ((MainActivity) getContext()).getDvrConflictChecker(); in onDetach()
368 ConflictChecker checker = ((MainActivity) getContext()).getDvrConflictChecker(); in onUpcomingConflictChange()
DDvrUiHelper.java41 import com.android.tv.MainActivity;
157 public static void showChannelWatchConflictDialog(MainActivity activity, Channel channel) { in showChannelWatchConflictDialog()
169 public static void showDvrInsufficientSpaceErrorDialog(MainActivity activity, in showDvrInsufficientSpaceErrorDialog()
346 if (activity instanceof MainActivity) { in showDialogFragment()
347 ((MainActivity) activity).getOverlayManager() in showDialogFragment()
359 public static boolean isChannelWatchConflictDialogShown(MainActivity activity) { in isChannelWatchConflictDialogShown()
DDvrGuidedStepFragment.java31 import com.android.tv.MainActivity;
109 if (getActivity() instanceof MainActivity) { in dismissDialog()
111 ((MainActivity) getActivity()).getOverlayManager().getCurrentDialog(); in dismissDialog()
/packages/apps/TV/src/com/android/tv/dialog/
DSafeDismissDialogFragment.java22 import com.android.tv.MainActivity;
32 private MainActivity mActivity;
41 if (activity instanceof MainActivity) { in onAttach()
42 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/services/Car/TrustAgent/src/com/android/car/trust/
DMainActivity.java28 public class MainActivity extends Activity { class
46 Intent intent = new Intent(MainActivity.this /* context */, in onCreate()
55 Intent intent = new Intent(MainActivity.this /* context */, in onCreate()
64 Intent intent = new Intent(MainActivity.this /* context */, in onCreate()
/packages/apps/TV/src/com/android/tv/menu/
DItemListRowView.java29 import com.android.tv.MainActivity;
120 private final MainActivity mMainActivity;
127 mMainActivity = (MainActivity) context; in ItemListAdapter()
157 protected MainActivity getMainActivity() { in getMainActivity()
DMenuRowFactory.java23 import com.android.tv.MainActivity;
35 private final MainActivity mMainActivity;
42 public MenuRowFactory(MainActivity mainActivity, TunableTvView tvView) { in MenuRowFactory()
DChannelCardView.java30 import com.android.tv.MainActivity;
55 private final MainActivity mMainActivity;
69 mMainActivity = (MainActivity) context; in ChannelCardView()
/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;
83 public static String getDescription(MainActivity tvActivity) { in getDescription()
363 private final MainActivity mMainActivity;
365 public AttributionItem(MainActivity mainActivity) { in AttributionItem()
DProgramRestrictionsFragment.java19 import com.android.tv.MainActivity;
38 public static String getDescription(MainActivity tvActivity) { in getDescription()
/packages/apps/Dialer/java/com/android/dialer/main/impl/
DMainImpl.java65 new ComponentName(context, MainActivity.class), in enableComponent()
75 .setIntent(MainActivity.getIntent(context)) in createLauncherShortcutO()
87 intent.putExtra(Intent.EXTRA_SHORTCUT_INTENT, MainActivity.getIntent(context)); in createLauncherShortcutPreO()
/packages/apps/TV/tests/unit/src/com/android/tv/
DBaseMainActivityTestCase.java46 public ActivityTestRule<MainActivity> mActivityTestRule =
47 new ActivityTestRule<>(MainActivity.class);
51 protected MainActivity mActivity;
/packages/apps/TV/src/com/android/tv/dvr/recorder/
DConflictChecker.java34 import com.android.tv.MainActivity;
77 private final MainActivity mMainActivity;
119 public ConflictChecker(MainActivity mainActivity) { in ConflictChecker()
/packages/apps/TV/src/com/android/tv/search/
DProgramGuideSearchFragment.java42 import com.android.tv.MainActivity;
136 private MainActivity mMainActivity;
146 mMainActivity = (MainActivity) getActivity();
/packages/apps/TV/src/com/android/tv/ui/sidepanel/
DSideFragment.java32 import com.android.tv.MainActivity;
167 protected MainActivity getMainActivity() { in getMainActivity()
168 return (MainActivity) getActivity(); in getMainActivity()

12