Home
last modified time | relevance | path

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

123

/packages/apps/TV/src/com/android/tv/ui/
DTvOverlayManager.java38 import com.android.tv.MainActivity;
39 import com.android.tv.MainActivity.KeyHandlerResultType;
203 private final MainActivity mMainActivity;
232 MainActivity mainActivity, in TvOverlayManager()
921 mTracker.sendScreenView(MainActivity.SCREEN_NAME); in onOverlayClosed()
978 return MainActivity.KEY_EVENT_HANDLER_RESULT_HANDLED; in onKeyDown()
983 return MainActivity.KEY_EVENT_HANDLER_RESULT_HANDLED; in onKeyDown()
990 return MainActivity.KEY_EVENT_HANDLER_RESULT_DISPATCH_TO_OVERLAY; in onKeyDown()
994 ? MainActivity.KEY_EVENT_HANDLER_RESULT_HANDLED in onKeyDown()
995 : 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()
/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.java72 import com.android.tv.MainActivity.MySingletons;
191 public class MainActivity extends Activity class
462 GtvUtils.broadcastInputId(MainActivity.this, currentChannel.getInputId());
475 && CommonPreferences.shouldShowSetupActivity(MainActivity.this)) {
483 .createSetupIntent(MainActivity.this);
485 CommonPreferences.setShouldShowSetupActivity(MainActivity.this, false);
719 Intent nowPlayingIntent = new Intent(this, MainActivity.class); in onCreate()
887 MainActivity.this, failedScheduledRecordingInfoSet)); in onResume()
1349 Utils.setLastWatchedChannel(MainActivity.this, channel); in endShrunkenTvView()
1394 Toast.makeText(MainActivity.this, text, Toast.LENGTH_SHORT).show(); in onActivityResult()
[all …]
/packages/services/Telephony/testapps/TestRcsApp/TestApp/src/com/google/android/sample/rcsclient/
DMainActivity.java33 public class MainActivity extends AppCompatActivity { class
61 MainActivity.this.startActivity(intent); in onCreate()
66 MainActivity.this.startActivity(intent); in onCreate()
71 MainActivity.this.startActivity(intent); in onCreate()
76 MainActivity.this.startActivity(intent); in onCreate()
80 MainActivity.this.startActivity(intent); in onCreate()
84 MainActivity.this.startActivity(intent); in onCreate()
/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/src/com/android/tv/dvr/ui/
DDvrHalfSizedDialogFragment.java29 import com.android.tv.MainActivity;
54 if (activity instanceof MainActivity) { in onAttach()
56 ((MainActivity) activity).getOverlayManager().getProgramGuide(); in onAttach()
67 if (activity instanceof MainActivity) { in onDetach()
69 ((MainActivity) activity).getOverlayManager().getProgramGuide(); in onDetach()
DDvrConflictFragment.java32 import com.android.tv.MainActivity;
302 ConflictChecker checker = ((MainActivity) getContext()).getDvrConflictChecker(); in onCreateView()
352 ConflictChecker checker = ((MainActivity) getContext()).getDvrConflictChecker(); in onTrackedGuidedActionClicked()
387 ConflictChecker checker = ((MainActivity) getContext()).getDvrConflictChecker(); in onDetach()
396 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.java42 import com.android.tv.MainActivity;
154 public static void showChannelWatchConflictDialog(MainActivity activity, Channel channel) { in showChannelWatchConflictDialog()
165 MainActivity activity, Set<String> failedScheduledRecordingInfoSet) { in showDvrInsufficientSpaceErrorDialog()
357 if (activity instanceof MainActivity) { in showDialogFragment()
358 ((MainActivity) activity) in showDialogFragment()
372 public static boolean isChannelWatchConflictDialogShown(MainActivity activity) { in isChannelWatchConflictDialogShown()
/packages/apps/TV/tests/robotests/src/com/android/tv/
DMainActivityRoboTest.java133 MainActivity.findBestCaptionTrackIndex( in testFindBestCaptionTrack_bestTrackMatch()
148 MainActivity.findBestCaptionTrackIndex( in testFindBestCaptionTrack_selectedLanguageMatch()
163 MainActivity.findBestCaptionTrackIndex( in testFindBestCaptionTrack_preferredLanguageMatch()
178 MainActivity.findBestCaptionTrackIndex( in testFindBestCaptionTrack_higherPriorityPreferredLanguageMatch()
193 MainActivity.findBestCaptionTrackIndex( in testFindBestCaptionTrack_noMatch()
217 public static class FakeMainActivity extends MainActivity {
/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/
DMenuRowFactory.java23 import com.android.tv.MainActivity;
42 MenuRowFactory create(MainActivity mainActivity, TunableTvView tvView); in create()
45 private final MainActivity mMainActivity;
52 MainActivity mainActivity, in MenuRowFactory()
DItemListRowView.java28 import com.android.tv.MainActivity;
128 private final MainActivity mMainActivity;
135 mMainActivity = (MainActivity) context; in ItemListAdapter()
160 protected MainActivity getMainActivity() { in getMainActivity()
DChannelCardView.java30 import com.android.tv.MainActivity;
53 private final MainActivity mMainActivity;
67 mMainActivity = (MainActivity) context; in ChannelCardView()
/packages/services/Car/tests/NetworkPreferenceApp/src/com/google/android/car/networking/preferenceupdater/
DMainActivity.java31 public final class MainActivity extends FragmentActivity { class
32 private static final String TAG = MainActivity.class.getSimpleName();
37 add("Quit", MainActivity.this::finish);
133 MainActivity.this.showFragment(fragment); in onClick()
/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.java29 import com.android.tv.MainActivity;
92 public static String getDescription(MainActivity tvActivity) { in getDescription()
387 private final MainActivity mMainActivity;
389 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.java28 public class MainActivity extends FragmentActivity { class
34 add("Quit", MainActivity.this::finish);
136 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();

123