Searched refs:activity (Results 1 - 25 of 443) 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/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
/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/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/ContactsCommon/src/com/android/contacts/common/activity/
H A DRequestImportVCardPermissionsActivity.java17 package com.android.contacts.common.activity;
46 * to prompt the user for these permissions. Moreover, finish the current activity.
50 public static boolean startPermissionActivity(Activity activity) { argument
51 return startPermissionActivity(activity, REQUIRED_PERMISSIONS,
H A DRequestPermissionsActivity.java17 package com.android.contacts.common.activity;
51 public static boolean startPermissionActivity(Activity activity) { argument
52 return startPermissionActivity(activity, REQUIRED_PERMISSIONS,
H A DRequestPermissionsActivityBase.java17 package com.android.contacts.common.activity;
63 // Only start a requestPermissions() flow when first starting this activity the first time.
73 * to prompt the user for these permissions. Moreover, finish the current activity.
77 protected static boolean startPermissionActivity(Activity activity, argument
79 if (!RequestPermissionsActivity.hasPermissions(activity, requiredPermissions)) {
80 final Intent intent = new Intent(activity, newActivityClass);
81 intent.putExtra(PREVIOUS_ACTIVITY_INTENT, activity.getIntent());
82 activity.startActivity(intent);
83 activity.finish();
91 AccountTypeManager.getInstance(activity);
[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/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/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/ContactsCommon/src/com/android/contacts/commonbind/analytics/
H A DAnalyticsUtil.java11 * Initialize this class and setup automatic activity tracking.
20 public static void sendScreenView(Fragment fragment, Activity activity) {} argument
22 public static void sendScreenView(Fragment fragment, Activity activity, String tag) {} argument
24 public static void sendScreenView(String fragmentName, Activity activity, String tag) {} argument
/packages/apps/Gallery2/src_pd/com/android/gallery3d/util/
H A DPanoramaViewHelper.java23 public PanoramaViewHelper(Activity activity) { argument
/packages/apps/Settings/src/com/android/settings/
H A DSetupEncryptionInterstitial.java88 Activity activity = getActivity();
89 if (activity != null) {
90 activity.setTitle(R.string.encryption_interstitial_header);
91 SetupWizardUtils.setImmersiveMode(activity);
97 final Activity activity = getActivity();
98 if (activity != null) {
99 activity.onBackPressed();
105 final SetupEncryptionInterstitial activity =
107 if (activity != null) {
108 activity
[all...]
H A DSetupWizardUtils.java32 public static boolean isUsingWizardManager(Activity activity) { argument
33 return activity.getIntent().hasExtra(EXTRA_SCRIPT_URI);
46 * activity.
48 public static void setImmersiveMode(Activity activity) { argument
49 final boolean useImmersiveMode = activity.getIntent().getBooleanExtra(
52 SystemBarHelper.hideSystemBars(activity.getWindow());
/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
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/dialog/
H A DSafeDismissDialogFragment.java30 public void onAttach(Activity activity) { argument
31 super.onAttach(activity);
/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();
/packages/apps/Messaging/src/com/android/messaging/util/
H A DChangeDefaultSmsAppHelper.java47 * @param activity - calling activity
48 * @param fragment - calling fragment, may be null if called directly from an activity
53 final Activity activity, final Fragment fragment) {
69 mChangeSmsAppSettingRunnable = new ChangeSmsAppSettingRunnable(activity, fragment);
71 composeView, rootView, activity);
83 final Activity activity) {
86 ImeUtil.hideSoftInput(activity, composeView);
94 UiUtils.showSnackBarWithCustomAction(activity,
96 activity
50 warnOfMissingActionConditions(final boolean sending, final Runnable runAfterMadeDefault, final View composeView, final View rootView, final Activity activity, final Fragment fragment) argument
80 promptToChangeDefaultSmsApp(final boolean sending, final Runnable runAfterMadeDefault, final View composeView, final View rootView, final Activity activity) argument
109 ChangeSmsAppSettingRunnable(final Activity activity, final Fragment fragment) argument
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/category/
H A DCategoryPanel.java47 public void onAttach(Activity activity) { argument
48 super.onAttach(activity);
53 FilterShowActivity activity = (FilterShowActivity) getActivity();
56 mAdapter = activity.getCategoryLooksAdapter();
60 activity.updateCategories();
64 mAdapter = activity.getCategoryBordersAdapter();
68 activity.updateCategories();
72 mAdapter = activity.getCategoryGeometryAdapter();
79 mAdapter = activity.getCategoryFiltersAdapter();
86 mAdapter = activity
[all...]
/packages/apps/Messaging/src/com/android/messaging/ui/conversationlist/
H A DShareIntentFragment.java66 final Activity activity = getActivity();
67 final LayoutInflater inflater = activity.getLayoutInflater();
75 final LinearLayoutManager manager = new LinearLayoutManager(activity) {
83 mAdapter = new ShareIntentAdapter(activity, null, this);
88 final Builder dialogBuilder = new AlertDialog.Builder(activity)
109 final Activity activity = getActivity();
110 if (activity != null) {
111 activity.finish();
126 public void onAttach(final Activity activity) { argument
127 super.onAttach(activity);
[all...]
/packages/apps/Calendar/src/com/android/calendar/
H A DAboutPreferences.java35 final Activity activity = getActivity();
38 activity.getPackageManager().getPackageInfo(activity.getPackageName(), 0);
H A DQuickResponseSettings.java70 public void onAttach(Activity activity) { argument
71 super.onAttach(activity);
72 ((CalendarSettingsActivity) activity).hideMenuButtons();
78 CalendarSettingsActivity activity = (CalendarSettingsActivity) getActivity();
79 if (!activity.isMultiPane()) {
80 activity.setTitle(R.string.quick_response_settings_title);
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/presets/
H A DPresetManagementDialog.java39 FilterShowActivity activity = (FilterShowActivity) getActivity();
40 mAdapter = activity.getUserPresetsAdapter();
50 FilterShowActivity activity = (FilterShowActivity) getActivity();
55 activity.updateUserPresetsFromAdapter(mAdapter);
60 activity.saveCurrentImagePreset(text);
62 activity.updateUserPresetsFromAdapter(mAdapter);
/packages/apps/UnifiedEmail/tests/src/com/android/mail/ui/settings/
H A DGeneralPrefsFragmentTest.java52 final MailPreferenceActivity activity = getActivity();
57 activity.getFragmentManager().executePendingTransactions();
60 final GeneralPrefsFragment fragment = activity.getGeneralPrefsFragment();
61 fragment.mMailPrefs = new MailPrefs(activity, PREFS_NAME_TEST);
67 final MailPreferenceActivity activity = getActivity();
68 final GeneralPrefsFragment fragment = activity.getGeneralPrefsFragment();
/packages/apps/Tag/src/com/android/apps/tag/record/
H A DRecordUtils.java50 public Activity activity; field in class:RecordUtils.ClickInfo
53 public ClickInfo(Activity activity, Intent intent) { argument
54 this.activity = activity;
63 public static View getViewsForIntent(Activity activity, LayoutInflater inflater, argument
66 PackageManager pm = activity.getPackageManager();
75 return buildActivityView(activity, activities.get(0), pm, inflater, parent, listener,
79 LinearLayout container = new LinearLayout(activity);
84 // Create an entry for each activity that can handle the URI
95 container.addView(buildActivityView(activity, resolveInf
105 buildActivityView(Activity activity, ResolveInfo resolveInfo, PackageManager pm, LayoutInflater inflater, ViewGroup parent, OnClickListener listener, Intent intent, String defaultText) argument
[all...]

Completed in 862 milliseconds

1234567891011>>