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

1234567891011

/packages/apps/Camera/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
H A DMenuHelper.java262 final Activity activity) {
282 Toast.makeText(activity,
296 activity.startActivity(new Intent(
315 Activity activity) {
343 setLatLngDetails(d, activity, exif);
368 final Activity activity) {
376 new AlertDialog.Builder(activity);
378 final View d = View.inflate(activity, R.layout.detailsview,
392 : Formatter.formatFileSize(activity, length);
419 activity
260 onShowMapClicked(MenuInvoker onInvoke, final Handler handler, final Activity activity) argument
314 showExifInformation(IImage image, View d, Activity activity) argument
366 onDetailsClicked(MenuInvoker onInvoke, final Handler handler, final Activity activity) argument
487 onCropClicked(MenuInvoker onInvoke, final Activity activity) argument
506 onSetAsClicked(MenuInvoker onInvoke, final Activity activity) argument
523 onImageShareClicked(MenuInvoker onInvoke, final Activity activity) argument
552 onViewPlayClicked(MenuInvoker onInvoke, final Activity activity) argument
566 onDeleteClicked(MenuInvoker onInvoke, final Activity activity, final Runnable onDelete) argument
577 addImageMenuItems( Menu menu, int inclusions, final Activity activity, final Handler handler, final Runnable onDelete, final MenuInvoker onInvoke) argument
762 deletePhoto(Activity activity, Runnable onDelete) argument
766 deleteImage( Activity activity, Runnable onDelete, IImage image) argument
771 deleteImpl( Activity activity, Runnable onDelete, boolean isImage) argument
821 addCapturePictureMenuItems(Menu menu, final Activity activity) argument
832 onCapturePictureClicked(Activity activity) argument
843 addCaptureVideoMenuItems(Menu menu, final Activity activity) argument
854 onCaptureVideoClicked(Activity activity) argument
865 addCaptureMenuItems(Menu menu, final Activity activity) argument
887 showStorageToast(Activity activity) argument
891 showStorageToast(Activity activity, int remaining) argument
[all...]
/packages/apps/Calendar/src/com/android/calendar/
H A DAboutPreferences.java33 final Activity activity = getActivity();
36 activity.getPackageManager().getPackageInfo(activity.getPackageName(), 0);
/packages/apps/Email/src/com/android/email/activity/
H A DFragmentInstallable.java17 package com.android.email.activity;
27 * Called when a {@link Fragment} wants to be installed to the host activity.
38 * Called when a {@link Fragment} wants to be uninstalled from the host activity.
H A DActivityHelper.java17 package com.android.email.activity;
30 import com.android.email.activity.setup.AccountSecurity;
55 * @param activity parent activity
62 public static boolean openUrlInMessage(Activity activity, String url, long senderAccountId) { argument
65 return MessageCompose.actionCompose(activity, url, senderAccountId);
72 intent.putExtra(Browser.EXTRA_APPLICATION_ID, activity.getPackageName());
75 activity.startActivity(intent);
86 public static void openCalendar(Activity activity, long epochEventStartTime) { argument
92 activity
125 debugSetWindowFlags(Activity activity) argument
[all...]
H A DNfcHandler.java17 package com.android.email.activity;
34 * enabled when the activity is in the foreground and resumed.
45 public static NfcHandler register(UIControllerBase controller, Activity activity) { argument
46 NfcAdapter adapter = NfcAdapter.getDefaultAdapter(activity);
50 NfcHandler nfcHandler = new NfcHandler(controller, activity);
51 adapter.setNdefPushMessageCallback(nfcHandler, activity);
55 public NfcHandler(UIControllerBase controller, Activity activity) { argument
57 mActivity = activity;
H A DMessageFileViewFragment.java17 package com.android.email.activity;
90 * Called by the host activity to set the URL to the EML file to open.
113 protected Message openMessageSync(Activity activity) { argument
118 Utility.showToast(activity, R.string.message_view_parse_message_toast);
122 Utility.showToast(activity, R.string.message_view_display_attachment_toast);
129 protected Message reloadMessageSync(Activity activity) { argument
/packages/apps/Gallery2/src/com/android/gallery3d/util/
H A DSpinnerVisibilitySetter.java78 * Gets the <code>SpinnerVisibilitySetter</code> for the given <code>activity</code>.
82 public static SpinnerVisibilitySetter getInstance(Activity activity) { argument
84 SpinnerVisibilitySetter setter = sInstanceMap.get(activity);
86 setter = new SpinnerVisibilitySetter(activity);
87 sInstanceMap.put(activity, setter);
93 private SpinnerVisibilitySetter(Activity activity) { argument
94 mActivity = activity;
/packages/apps/Contacts/src/com/android/contacts/util/
H A DAccountPromptUtils.java95 public static void launchAccountPrompt(Activity activity) { argument
97 options.putCharSequence(KEY_INTRO_MESSAGE, activity.getString(R.string.no_account_prompt));
99 AccountManager.get(activity).addAccount(GoogleAccountType.ACCOUNT_TYPE, null, null, options,
100 activity, getAccountManagerCallback(activity), null);
104 final Activity activity) {
110 activity.finish();
116 AccountPromptUtils.neverShowAccountPromptAgain(activity);
103 getAccountManagerCallback( final Activity activity) argument
/packages/apps/Settings/src/com/android/settings/nfc/
H A DAndroidBeam.java46 Activity activity = getActivity();
48 mActionBarSwitch = new Switch(activity);
50 if (activity instanceof PreferenceActivity) {
51 PreferenceActivity preferenceActivity = (PreferenceActivity) activity;
53 final int padding = activity.getResources().getDimensionPixelSize(
56 activity.getActionBar().setDisplayOptions(ActionBar.DISPLAY_SHOW_CUSTOM,
58 activity.getActionBar().setCustomView(mActionBarSwitch, new ActionBar.LayoutParams(
62 activity.getActionBar().setTitle(R.string.android_beam_settings_title);
/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...]
/packages/apps/Contacts/src/com/android/contacts/interactions/
H A DGroupCreationDialogFragment.java64 Activity activity = getActivity();
65 activity.startService(ContactSaveService.createNewGroupIntent(activity,
68 activity.getClass(), Intent.ACTION_EDIT));
/packages/apps/Settings/src/com/android/settings/inputmethod/
H A DUserDictionaryList.java46 static Set<String> getUserDictionaryLocalesList(Activity activity) { argument
48 final Cursor cursor = activity.managedQuery(UserDictionary.Words.CONTENT_URI,
71 final Activity activity = getActivity();
73 final Set<String> localeList = UserDictionaryList.getUserDictionaryLocalesList(activity);
76 userDictGroup.addPreference(createUserDictionaryPreference(null, activity));
79 userDictGroup.addPreference(createUserDictionaryPreference(locale, activity));
89 protected Preference createUserDictionaryPreference(String locale, Activity activity) { argument
/packages/apps/Browser/src/com/android/browser/
H A DNfcHandler.java31 * when the activity is in the foreground and resumed.
43 public static void register(Activity activity, Controller controller) { argument
44 NfcAdapter adapter = NfcAdapter.getDefaultAdapter(activity.getApplicationContext());
53 adapter.setNdefPushMessageCallback(handler, activity);
56 public static void unregister(Activity activity) { argument
58 // the callback and release the ref to out activity.
59 register(activity, null);
H A DDownloadHandler.java51 * @param activity Activity requesting the download.
58 public static void onDownloadStart(Activity activity, String url, argument
71 ResolveInfo info = activity.getPackageManager().resolveActivity(intent,
74 ComponentName myName = activity.getComponentName();
84 activity.startActivity(intent);
88 Log.d(LOGTAG, "activity not found for " + mimetype
98 onDownloadStartNoStream(activity, url, userAgent, contentDisposition,
135 * @param activity Activity requesting the download.
142 /*package */ static void onDownloadStartNoStream(Activity activity, argument
157 msg = activity
[all...]
/packages/apps/Settings/src/com/android/settings/
H A DChooseLockSettingsHelper.java34 public ChooseLockSettingsHelper(Activity activity) { argument
35 mActivity = activity;
36 mLockPatternUtils = new LockPatternUtils(activity);
39 public ChooseLockSettingsHelper(Activity activity, Fragment fragment) { argument
40 this(activity);
52 * @return true if one exists and we launched an activity to confirm it
77 * @return true if we launched an activity to confirm pattern
99 * @return true if we launched an activity to confirm password
/packages/apps/Camera/src/com/android/camera/ui/
H A DRotateTextToast.java35 public RotateTextToast(Activity activity, int textResourceId, int orientation) { argument
36 mLayoutRoot = (ViewGroup) activity.getWindow().getDecorView();
37 LayoutInflater inflater = activity.getLayoutInflater();
/packages/apps/Email/tests/src/com/android/email/activity/
H A DMessageFileViewTest.java17 package com.android.email.activity;
72 * Set up an EML file, and open it in the activity.
79 final MessageFileView activity = getActivity();
84 MessageFileViewFragment f = activity.getFragment();
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DCacheStorageUsageInfo.java46 public CacheStorageUsageInfo(GalleryActivity activity) { argument
47 mActivity = activity;
48 mContext = activity.getAndroidContext();
/packages/apps/Mms/src/com/android/mms/
H A DLogTag.java99 public static void warnPossibleRecipientMismatch(final String msg, final Activity activity) { argument
103 dumpInternalTables(activity);
104 activity.runOnUiThread(new Runnable() {
106 new AlertDialog.Builder(activity)
109 .setMessage(msg + "\n\n" + activity.getString(R.string.error_state_text))
/packages/apps/Gallery2/src/com/android/gallery3d/app/
H A DActivityState.java72 void initialize(GalleryActivity activity, Bundle data) { argument
73 mActivity = activity;
137 Activity activity = (Activity) mActivity;
138 ActionBar actionBar = activity.getActionBar();
152 activity.invalidateOptionsMenu();
154 final Window win = activity.getWindow();
176 activity.registerReceiver(mPowerIntentReceiver, filter);
H A DManageCachePage.java112 Activity activity = (Activity) mActivity;
113 int slotViewTop = GalleryActionBar.getHeight(activity);
116 View footer = activity.findViewById(R.id.footer);
287 Activity activity = (Activity) mActivity;
291 mStaticBackground = new StaticBackground(activity);
294 Config.ManageCachePage config = Config.ManageCachePage.get(activity);
320 Activity activity = (Activity) mActivity;
322 FrameLayout footer = (FrameLayout) activity.findViewById(R.id.footer);
323 LayoutInflater inflater = activity.getLayoutInflater();
349 Activity activity
[all...]
/packages/apps/Email/src/com/android/email/activity/setup/
H A DAccountSecurity.java17 package com.android.email.activity.setup;
35 import com.android.email.activity.ActivityHelper;
41 * Psuedo-activity (no UI) to bootstrap the user up to a higher desired security level. This
69 * Used for generating intent for this activity (which is intended to be launched
88 * Used for generating intent for this activity (which is intended to be launched
89 * from a notification.) This is a special mode of this activity which exists only
199 // try to become active - must happen here in activity, to get result
244 // launch the activity to have the user set a new password.
264 // launch the activity to start up encryption.
297 * we repost the notification and finish() the activity
[all...]
/packages/apps/Contacts/src/com/android/contacts/voicemail/
H A DVoicemailPlaybackFragment.java212 Activity activity = mActivityReference.get();
213 if (activity != null) {
214 activity.finish();
220 Activity activity = mActivityReference.get();
221 if (activity != null) {
222 activity.runOnUiThread(runnable);
274 // Only change the state if the activity is still around.
275 Activity activity = mActivityReference.get();
276 if (activity != null && activity instanceo
[all...]

Completed in 538 milliseconds

1234567891011