Home
last modified time | relevance | path

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

12

/packages/apps/TV/src/com/android/tv/ui/
DTvOverlayManager.java37 import com.android.tv.MainActivity;
38 import com.android.tv.MainActivity.KeyHandlerResultType;
195 private final MainActivity mMainActivity;
223 MainActivity mainActivity, in TvOverlayManager()
907 mTracker.sendScreenView(MainActivity.SCREEN_NAME); in onOverlayClosed()
964 return MainActivity.KEY_EVENT_HANDLER_RESULT_HANDLED; in onKeyDown()
969 return MainActivity.KEY_EVENT_HANDLER_RESULT_HANDLED; in onKeyDown()
976 return MainActivity.KEY_EVENT_HANDLER_RESULT_DISPATCH_TO_OVERLAY; in onKeyDown()
980 ? MainActivity.KEY_EVENT_HANDLER_RESULT_HANDLED in onKeyDown()
981 : MainActivity.KEY_EVENT_HANDLER_RESULT_NOT_HANDLED; in onKeyDown()
[all …]
DInputBannerView.java26 import com.android.tv.MainActivity;
35 ((MainActivity) getContext())
68 MainActivity mainActivity = (MainActivity) getContext(); in updateLabel()
DFullscreenDialogView.java29 import com.android.tv.MainActivity;
42 private MainActivity mActivity;
75 protected MainActivity getActivity() { in getActivity()
90 public void initialize(MainActivity activity, Dialog dialog) { in initialize()
DTvTransitionManager.java33 import com.android.tv.MainActivity;
56 private final MainActivity mMainActivity;
78 MainActivity mainActivity, in TvTransitionManager()
/packages/apps/TV/src/com/android/tv/
DMainActivityWrapper.java32 private MainActivity mActivity;
40 MainActivity getMainActivity() { in getMainActivity()
45 boolean isCurrent(MainActivity activity) { in isCurrent()
50 public void onMainActivityCreated(@NonNull MainActivity activity) { in onMainActivityCreated()
55 public void onMainActivityDestroyed(@NonNull MainActivity activity) { in onMainActivityDestroyed()
62 void notifyCurrentChannelChange(@NonNull MainActivity caller, @Nullable Channel channel) { in notifyCurrentChannelChange()
DMainActivity.java68 import com.android.tv.MainActivity.MySingletons;
170 public class MainActivity extends Activity class
444 && CommonPreferences.shouldShowSetupActivity(MainActivity.this)) {
452 .createSetupIntent(MainActivity.this);
454 CommonPreferences.setShouldShowSetupActivity(MainActivity.this, false);
690 Intent nowPlayingIntent = new Intent(this, MainActivity.class); in onCreate()
871 MainActivity.this, failedScheduledRecordingInfoSet)); in onResume()
1325 Utils.setLastWatchedChannel(MainActivity.this, channel); in endShrunkenTvView()
1370 Toast.makeText(MainActivity.this, text, Toast.LENGTH_SHORT).show(); in onActivityResult()
1394 Toast.makeText(MainActivity.this, errorMessage, Toast.LENGTH_SHORT).show(); in onActivityResult()
[all …]
/packages/apps/TV/src/com/android/tv/dvr/ui/
DDvrHalfSizedDialogFragment.java28 import com.android.tv.MainActivity;
52 if (activity instanceof MainActivity) { in onAttach()
54 ((MainActivity) activity).getOverlayManager().getProgramGuide(); in onAttach()
65 if (activity instanceof MainActivity) { in onDetach()
67 ((MainActivity) activity).getOverlayManager().getProgramGuide(); in onDetach()
DDvrConflictFragment.java30 import com.android.tv.MainActivity;
295 ConflictChecker checker = ((MainActivity) getContext()).getDvrConflictChecker(); in onCreateView()
345 ConflictChecker checker = ((MainActivity) getContext()).getDvrConflictChecker(); in onTrackedGuidedActionClicked()
380 ConflictChecker checker = ((MainActivity) getContext()).getDvrConflictChecker(); in onDetach()
389 ConflictChecker checker = ((MainActivity) getContext()).getDvrConflictChecker(); in onUpcomingConflictChange()
DDvrGuidedStepFragment.java29 import com.android.tv.MainActivity;
101 if (getActivity() instanceof MainActivity) { in dismissDialog()
103 ((MainActivity) getActivity()).getOverlayManager().getCurrentDialog(); in dismissDialog()
DDvrUiHelper.java41 import com.android.tv.MainActivity;
152 public static void showChannelWatchConflictDialog(MainActivity activity, Channel channel) { in showChannelWatchConflictDialog()
163 MainActivity activity, Set<String> failedScheduledRecordingInfoSet) { in showDvrInsufficientSpaceErrorDialog()
351 if (activity instanceof MainActivity) { in showDialogFragment()
352 ((MainActivity) activity) in showDialogFragment()
366 public static boolean isChannelWatchConflictDialogShown(MainActivity activity) { in isChannelWatchConflictDialogShown()
/packages/apps/TV/src/com/android/tv/dialog/
DSafeDismissDialogFragment.java21 import com.android.tv.MainActivity;
28 private MainActivity mActivity;
37 if (activity instanceof MainActivity) { in onAttach()
38 mActivity = (MainActivity) activity; in onAttach()
DFullscreenDialogFragment.java26 import com.android.tv.MainActivity;
62 mDialogView.initialize((MainActivity) getActivity(), dialog); in onCreateDialog()
103 void initialize(MainActivity activity, Dialog dialog); in initialize()
/packages/apps/TV/tests/common/src/com/android/tv/testing/activities/
DBaseMainActivityTestCase.java24 import com.android.tv.MainActivity;
42 public ActivityTestRule<MainActivity> mActivityTestRule =
43 new ActivityTestRule<>(MainActivity.class);
47 protected MainActivity mActivity;
/packages/apps/TV/src/com/android/tv/menu/
DItemListRowView.java28 import com.android.tv.MainActivity;
119 private final MainActivity mMainActivity;
126 mMainActivity = (MainActivity) context; in ItemListAdapter()
151 protected MainActivity getMainActivity() { in getMainActivity()
DMenuRowFactory.java22 import com.android.tv.MainActivity;
31 private final MainActivity mMainActivity;
36 public MenuRowFactory(MainActivity mainActivity, TunableTvView tvView) { in MenuRowFactory()
DChannelCardView.java29 import com.android.tv.MainActivity;
51 private final MainActivity mMainActivity;
65 mMainActivity = (MainActivity) context; in ChannelCardView()
/packages/apps/TV/src/com/android/tv/ui/sidepanel/parentalcontrols/
DRatingSystemsFragment.java20 import com.android.tv.MainActivity;
41 setDefaultRatingSystemsIfNeeded((MainActivity) getActivity()); in onCreate()
44 public static String getDescription(MainActivity tvActivity) { in getDescription()
130 private static void setDefaultRatingSystemsIfNeeded(MainActivity tvActivity) { in setDefaultRatingSystemsIfNeeded()
DRatingsFragment.java27 import com.android.tv.MainActivity;
81 public static String getDescription(MainActivity tvActivity) { in getDescription()
370 private final MainActivity mMainActivity;
372 public AttributionItem(MainActivity mainActivity) { in AttributionItem()
DProgramRestrictionsFragment.java19 import com.android.tv.MainActivity;
38 public static String getDescription(MainActivity tvActivity) { in getDescription()
/packages/services/Car/tests/GarageModeTestApp/src/com/google/android/car/garagemode/testapp/
DMainActivity.java27 public class MainActivity extends FragmentActivity { class
34 add("Quit", MainActivity.this::finish);
135 MainActivity.this.showFragment(fragment); in onClick()
/packages/apps/SampleLocationAttribution/src/com/example/android/locationattribution/
DMainActivity.java51 public class MainActivity extends AppCompatActivity { class
97 if (ActivityCompat.shouldShowRequestPermissionRationale(MainActivity.this, in createModifyLocationSettingsButtonClickListener()
117 if (ActivityCompat.shouldShowRequestPermissionRationale(MainActivity.this, in createModifyLocationSettingsButtonClickListener()
/packages/apps/TV/src/com/android/tv/dvr/recorder/
DConflictChecker.java32 import com.android.tv.MainActivity;
76 private final MainActivity mMainActivity;
134 public ConflictChecker(MainActivity mainActivity) { in ConflictChecker()
/packages/apps/TV/src/com/android/tv/search/
DProgramGuideSearchFragment.java41 import com.android.tv.MainActivity;
147 private MainActivity mMainActivity;
157 mMainActivity = (MainActivity) getActivity();
/packages/apps/TV/src/com/android/tv/modules/
DTvApplicationModule.java19 import com.android.tv.MainActivity;
38 MainActivity.Module.class,
/packages/apps/TV/src/com/android/tv/ui/sidepanel/
DSideFragment.java31 import com.android.tv.MainActivity;
166 protected MainActivity getMainActivity() { in getMainActivity()
167 return (MainActivity) getActivity(); in getMainActivity()

12