Searched refs:activity (Results 1 - 25 of 615) sorted by relevance

1234567891011>>

/packages/apps/UnifiedEmail/src/com/android/mail/ui/
H A DControllerFactory.java31 public static ActivityController forActivity(MailActivity activity, ViewMode viewMode, argument
33 return isTabletDevice ? new TwoPaneController(activity, viewMode)
34 : new OnePaneController(activity, viewMode);
/packages/apps/Contacts/src-bind/com/android/contactsbind/
H A DHelpUtils.java22 * Utility for starting help and feedback activity. This stub class is designed to be overwritten
36 public static void launchHelpAndFeedbackForMainScreen(Activity activity) { } argument
38 public static void launchHelpAndFeedbackForContactScreen(Activity activity) { } argument
H A DFeatureHighlightHelper.java26 public static boolean showHamburgerFeatureHighlight(final FragmentActivity activity) { argument
30 public static boolean tryRemoveHighlight(final FragmentActivity activity) { argument
/packages/apps/UnifiedEmail/tests/src/com/android/mail/compose/
H A DComposeActivityTest.java52 // The internal state of the activity instance may have the wrong mReplyFromAccount as
102 public void setAccount(ComposeActivity activity, String accountName) { argument
104 final Account account = getAccountForName(activity, accountName);
107 activity.setAccount(mAccount);
131 final ComposeActivity activity = getActivity();
132 setAccount(activity, "account3@mockuiprovider.com");
133 final Message refMessage = getRefMessage(activity.getContentResolver());
151 activity.mFromSpinner = new FromAddressSpinner(activity);
152 activity
[all...]
/packages/apps/DocumentsUI/src/com/android/documentsui/ui/
H A DSnackbars.java32 public static final void showDocumentsClipped(Activity activity, int docCount) { argument
34 activity, R.plurals.clipboard_files_clipped, docCount);
35 Snackbars.makeSnackbar(activity, msg, Snackbar.LENGTH_SHORT).show();
38 public static final void showMove(Activity activity, int docCount) { argument
39 CharSequence message = Shared.getQuantityString(activity, R.plurals.move_begin, docCount);
40 makeSnackbar(activity, message, Snackbar.LENGTH_SHORT).show();
43 public static final void showCopy(Activity activity, int docCount) { argument
44 CharSequence message = Shared.getQuantityString(activity, R.plurals.copy_begin, docCount);
45 makeSnackbar(activity, message, Snackbar.LENGTH_SHORT).show();
48 public static final void showCompress(Activity activity, in argument
53 showExtract(Activity activity, int docCount) argument
58 showDelete(Activity activity, int docCount) argument
63 showOperationRejected(Activity activity) argument
67 showOperationFailed(Activity activity) argument
71 showRenameFailed(Activity activity) argument
75 showInspectorError(Activity activity) argument
82 showCustomTextWithImage(Activity activity, String text, int imageRes) argument
93 makeSnackbar(Activity activity, @StringRes int messageId, int duration) argument
99 makeSnackbar( Activity activity, CharSequence message, int duration) argument
[all...]
/packages/apps/Contacts/src/com/android/contacts/compat/
H A DMultiWindowCompat.java23 * Returns true if the activity is currently in multi-window mode.
25 public static boolean isInMultiWindowMode(Activity activity) { argument
26 return CompatUtils.isNCompatible() ? activity.isInMultiWindowMode() : false;
/packages/apps/Email/provider_src/com/android/email/activity/setup/
H A DForwardingIntent.java17 package com.android.email.activity.setup;
26 public ForwardingIntent(Context activity, Class klass) { argument
27 super(activity, klass);
/packages/apps/Settings/src/com/android/settings/survey/
H A DSurveyMixin.java52 Activity activity = mFragment.getActivity();
54 // guard against the activity not existing yet or the feature being disabled
55 if (activity != null) {
57 FeatureFactory.getFactory(activity).getSurveyFeatureProvider(activity);
61 String id = provider.getSurveyId(activity, mName);
62 if (provider.getSurveyExpirationDate(activity, id) <= -1) {
64 mReceiver = provider.createAndRegisterReceiver(activity);
65 provider.downloadSurvey(activity, id, null /* data */);
67 provider.showSurveyIfAvailable(activity, i
[all...]
/packages/apps/Settings/src/com/android/settings/overlay/
H A DSurveyFeatureProvider.java33 * @param activity A valid context.
37 void downloadSurvey(Activity activity, String surveyId, @Nullable String data); argument
40 * Shows a previously downloaded survey/prompt if possible in the activity provided.
42 * @param activity The host activity to show the survey in.
46 boolean showSurveyIfAvailable(Activity activity, String surveyId); argument
71 * Registers an activity to show surveys/prompts as soon as they are downloaded. The receiver
72 * should be unregistered prior to destroying the activity to avoid undefined behavior by
74 * @param activity The activity tha
78 createAndRegisterReceiver(Activity activity) argument
85 unregisterReceiver(Activity activity, BroadcastReceiver receiver) argument
[all...]
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/files/
H A DTestActivity.java27 TestActivity activity = Mockito.mock(TestActivity.class, Mockito.CALLS_REAL_METHODS);
28 activity.init(env);
29 return activity;
/packages/apps/DeskClock/src/com/android/deskclock/actionbarmenu/
H A DMenuItemProvider.java29 MenuItemController provide(Activity activity); argument
/packages/apps/Dialer/java/com/android/voicemail/impl/settings/
H A DVoicemailChangePinActivity.java65 * traditional voicemail through phone call. The intent to launch this activity must contain {@link
122 public void onEnter(VoicemailChangePinActivity activity) {
123 activity.setHeader(R.string.change_pin_enter_old_pin_header);
124 activity.mHintText.setText(R.string.change_pin_enter_old_pin_hint);
125 activity.mNextButton.setText(R.string.change_pin_continue_label);
126 activity.mErrorText.setText(null);
130 public void onInputChanged(VoicemailChangePinActivity activity) {
131 activity.setNextEnabled(activity.getCurrentPasswordInput().length() > 0);
135 public void handleNext(VoicemailChangePinActivity activity) {
307 onEnter(VoicemailChangePinActivity activity) argument
315 onInputChanged(VoicemailChangePinActivity activity) argument
320 handleResult(VoicemailChangePinActivity activity, @ChangePinResult int result) argument
325 handleNext(VoicemailChangePinActivity activity) argument
330 onLeave(VoicemailChangePinActivity activity) argument
[all...]
/packages/apps/LegacyCamera/src/com/android/camera/
H A DMenuHelper.java80 private static void startCameraActivity(Activity activity, Intent intent, argument
84 intent.setClassName(activity.getPackageName(), className);
91 activity.startActivity(intent);
94 activity.startActivity(intent);
96 activity.overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out);
99 public static void gotoMode(int mode, Activity activity) { argument
118 startCameraActivity(activity, new Intent(action), className);
121 public static void gotoVideoMode(Activity activity, boolean resetEffect) { argument
124 startCameraActivity(activity, intent, VIDEO_CAMERA_CLASS);
127 public static void gotoCameraMode(Activity activity) { argument
132 gotoVideoMode(Activity activity, Intent intent) argument
136 gotoCameraMode(Activity activity, Intent intent) argument
140 gotoCameraImageGallery(Activity activity) argument
144 gotoCameraVideoGallery(Activity activity) argument
148 gotoGallery(Activity activity, int windowTitleId, int mediaTypes) argument
[all...]
/packages/apps/Dialer/java/com/android/dialer/compat/
H A DActivityCompat.java26 public static boolean isInMultiWindowMode(Activity activity) { argument
27 return VERSION.SDK_INT >= VERSION_CODES.N && activity.isInMultiWindowMode();
/packages/apps/Gallery/src/com/android/camera/
H A DMonitoredActivity.java30 public void onActivityCreated(MonitoredActivity activity); argument
31 public void onActivityDestroyed(MonitoredActivity activity); argument
32 public void onActivityStarted(MonitoredActivity activity); argument
33 public void onActivityStopped(MonitoredActivity activity); argument
37 public void onActivityCreated(MonitoredActivity activity) { argument
40 public void onActivityDestroyed(MonitoredActivity activity) { argument
43 public void onActivityStarted(MonitoredActivity activity) { argument
46 public void onActivityStopped(MonitoredActivity activity) { argument
/packages/apps/Dialer/java/com/android/incallui/answer/impl/answermethod/
H A DAnswerMethodFactory.java30 public static AnswerMethod createAnswerMethod(@NonNull Activity activity) { argument
31 if (needTwoButton(activity)) {
48 private static boolean needTwoButton(@NonNull Activity activity) { argument
49 return AccessibilityUtil.isTouchExplorationEnabled(activity)
50 || ActivityCompat.isInMultiWindowMode(activity);
/packages/apps/Dialer/java/com/android/dialer/postcall/
H A DPostCall.java52 public static void promptUserForMessageIfNecessary(Activity activity, View rootView) { argument
53 if (isEnabled(activity)) {
54 if (shouldPromptUserToViewSentMessage(activity)) {
55 promptUserToViewSentMessage(activity, rootView);
56 } else if (shouldPromptUserToSendMessage(activity)) {
57 promptUserToSendMessage(activity, rootView);
59 clear(activity);
71 private static void promptUserToSendMessage(Activity activity, View rootView) { argument
73 String message = activity.getString(R.string.post_call_message);
74 EnrichedCallManager manager = EnrichedCallComponent.get(activity)
111 promptUserToViewSentMessage(Activity activity, View rootView) argument
[all...]
/packages/apps/UnifiedEmail/src/com/android/mail/drawer/
H A DDrawerItem.java77 /** The parent activity */
105 * @param activity the underlying activity
112 protected DrawerItem(ControllableActivity activity, Folder folder, argument
114 mActivity = activity;
118 mInflater = LayoutInflater.from(activity.getActivityContext());
124 * @param activity the underlying activity
130 public static DrawerItem ofFolder(ControllableActivity activity, Folder folder, argument
132 return new FolderDrawerItem(activity, folde
143 ofAccount(ControllableActivity activity, Account account, int unreadCount, boolean isCurrentAccount, BitmapCache cache, ContactResolver contactResolver) argument
157 ofHeader(ControllableActivity activity, int resource) argument
161 ofBlankHeader(ControllableActivity activity) argument
165 ofBottomSpace(ControllableActivity activity) argument
175 ofWaitView(ControllableActivity activity) argument
179 ofHelpItem(ControllableActivity activity, Account account, FolderListFragment.DrawerStateListener drawerListener) argument
184 ofSettingsItem(ControllableActivity activity, Account account, FolderListFragment.DrawerStateListener drawerListener) argument
[all...]
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
H A DCellBroadcastOptOutActivity.java27 * Container activity for CMAS opt-in/opt-out alert dialog.
35 Log.d(TAG, "created activity");
40 * Show the opt-out dialog. Uses the CellBroadcastAlertDialog activity unless the device is
45 static void showOptOutDialog(final Activity activity) { argument
46 AlertDialog.Builder builder = new AlertDialog.Builder(activity);
53 activity.finish();
61 Intent intent = new Intent(activity, CellBroadcastSettings.class);
62 activity.startActivity(intent);
63 activity.finish();
73 activity
[all...]
/packages/apps/TV/src/com/android/tv/
H A DMainActivityWrapper.java39 * Returns the current main activity.
47 * Checks if the given {@code activity} is the current main activity.
49 boolean isCurrent(MainActivity activity) { argument
50 return activity != null && mActivity == activity;
54 * Sets the currently created main activity instance.
56 public void onMainActivityCreated(@NonNull MainActivity activity) { argument
57 mActivity = activity;
61 * Unsets the main activity instanc
63 onMainActivityDestroyed(@onNull MainActivity activity) argument
[all...]
/packages/apps/Contacts/src/com/android/contacts/compat/telecom/
H A DTelecomManagerCompat.java33 * @param activity {@link Activity} used to start another activity for the given intent
37 public static void placeCall(@Nullable Activity activity, argument
39 if (activity == null || telecomManager == null || intent == null) {
46 activity.startActivityForResult(intent, 0);
/packages/apps/DocumentsUI/src/com/android/documentsui/picker/
H A DLastAccessedStorage.java43 Activity activity, ProvidersAccess providers, State state);
45 void setLastAccessed(Activity activity, DocumentStack stack); argument
47 void setLastAccessedToExternalApp(Activity activity); argument
61 Activity activity, ProvidersAccess providers, State state) {
62 final String packageName = Shared.getCallingPackageName(activity);
64 final ContentResolver resolver = activity.getContentResolver();
79 public void setLastAccessed(Activity activity, DocumentStack stack) { argument
80 String packageName = Shared.getCallingPackageName(activity);
81 LastAccessedProvider.setLastAccessed(activity.getContentResolver(), packageName, stack);
85 public void setLastAccessedToExternalApp(Activity activity) { argument
42 getLastAccessed( Activity activity, ProvidersAccess providers, State state) argument
60 getLastAccessed( Activity activity, ProvidersAccess providers, State state) argument
[all...]
/packages/apps/DeskClock/src/com/android/deskclock/controller/
H A DVoiceController.java32 * If the {@code activity} is currently hosting a voice interaction session, indicate the voice
35 * @param activity an Activity that may be hosting a voice interaction session
38 void notifyVoiceSuccess(Activity activity, String message) { argument
43 final VoiceInteractor voiceInteractor = activity.getVoiceInteractor();
51 * If the {@code activity} is currently hosting a voice interaction session, indicate the voice
54 * @param activity an Activity that may be hosting a voice interaction session
57 void notifyVoiceFailure(Activity activity, String message) { argument
62 final VoiceInteractor voiceInteractor = activity.getVoiceInteractor();
/packages/apps/Gallery2/src_pd/com/android/gallery3d/util/
H A DPanoramaViewHelper.java23 public PanoramaViewHelper(Activity activity) { argument
/packages/apps/Camera2/src_pd/com/android/camera/util/
H A DReleaseHelper.java25 public static void showReleaseInfoDialogOnStart(Activity activity, argument
30 public static void showReleaseInfoDialog(Activity activity, Callback<Void> callback) { argument

Completed in 859 milliseconds

1234567891011>>