Searched refs:activity (Results 201 - 225 of 362) sorted by relevance

1234567891011>>

/packages/apps/Gallery2/src/com/android/gallery3d/app/
H A DSinglePhotoDataAdapter.java57 AbstractGalleryActivity activity, PhotoView view, MediaItem item) {
62 mHandler = new SynchronizedHandler(activity.getGLRoot()) {
74 mThreadPool = activity.getThreadPool();
56 SinglePhotoDataAdapter( AbstractGalleryActivity activity, PhotoView view, MediaItem item) argument
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/category/
H A DCategoryAdapter.java185 FilterShowActivity activity = (FilterShowActivity) getContext();
187 activity.removeLook(action);
189 activity.removeVersion(action);
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DAlbumSlotRenderer.java53 public AlbumSlotRenderer(AbstractGalleryActivity activity, SlotView slotView, argument
55 super(activity);
56 mActivity = activity;
H A DAlbumSetSlidingWindow.java94 public AlbumSetSlidingWindow(AbstractGalleryActivity activity, argument
100 mThreadPool = activity.getThreadPool();
102 mLabelMaker = new AlbumLabelMaker(activity.getAndroidContext(), labelSpec);
103 mLoadingText = activity.getAndroidContext().getString(R.string.loading);
104 mContentUploader = new TiledTexture.Uploader(activity.getGLRoot());
105 mLabelUploader = new TextureUploader(activity.getGLRoot());
107 mHandler = new SynchronizedHandler(activity.getGLRoot()) {
H A DMenuExecutor.java92 AbstractGalleryActivity activity, SelectionManager selectionManager) {
93 mActivity = Utils.checkNotNull(activity);
257 Activity activity = mActivity;
258 activity.startActivity(Intent.createChooser(
259 intent, activity.getString(R.string.set_as)));
338 Activity activity = mActivity;
340 mDialog = createProgressDialog(activity, title, ids.size());
91 MenuExecutor( AbstractGalleryActivity activity, SelectionManager selectionManager) argument
/packages/apps/Gallery2/src/com/android/photos/
H A DMultiSelectGridFragment.java74 public void onAttach(Activity activity) { argument
75 super.onAttach(activity);
76 mHost = (MultiChoiceManager.Provider) activity;
168 * Get the activity's grid view widget.
266 * Get the ListAdapter associated with this activity's GridView.
H A DMultiChoiceManager.java71 public MultiChoiceManager(Activity activity) { argument
72 mContext = activity;
73 mSelectionManager = new SelectionManager(activity);
/packages/apps/Settings/src/com/android/settings/location/
H A DRecentLocationApps.java56 public RecentLocationApps(SettingsActivity activity) { argument
57 mActivity = activity;
58 mPackageManager = activity.getPackageManager();
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/dialog/old/
H A DContentFragment.java102 public void onAttach(Activity activity) { argument
103 mBase.onAttach(activity);
104 super.onAttach(activity);
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
H A DHelpFragment.java105 final Activity activity = getActivity();
106 if (activity != null) {
107 activity.finish();
H A DSecureConversationViewFragment.java75 // Ignore unsafe calls made after a fragment is detached from an activity.
119 * Constructor needs to be public to handle orientation changes and activity
206 // Ignore unsafe calls made after a fragment is detached from an activity
207 final ControllableActivity activity = (ControllableActivity) getActivity();
209 if (activity == null || mConversation == null || message == null) {
216 activity.getConversationUpdater().markConversationMessagesUnread(mConversation, uris,
H A DOnePaneController.java44 * Controller for one-pane Mail activity. One Pane is used for phones, where screen real estate is
65 public OnePaneController(MailActivity activity, ViewMode viewMode) { argument
66 super(activity, viewMode);
154 protected ActionableToastBar findActionableToastBar(MailActivity activity) { argument
155 final ActionableToastBar tb = super.findActionableToastBar(activity);
159 tb.setFloatingActionButton(activity.findViewById(R.id.compose_button));
254 // FragmentManager#findFragmentById can return fragments that are not added to the activity.
256 // activity, as when the transaction is popped off, the FragmentManager will attempt to
374 // We are in an activity on top of the main navigation activity
[all...]
/packages/apps/Browser/src/com/android/browser/
H A DIntentHandler.java250 * Launches the default web search activity with the query parameters if the given intent's data
252 * @return true if the intent was handled and web search activity was launched, false if not.
254 static boolean handleWebSearchIntent(Activity activity, argument
268 return handleWebSearchRequest(activity, controller, url,
274 * Launches the default web search activity with the query parameters if the given url string
276 * @return true if the request was handled and web search activity was launched, false if not.
278 private static boolean handleWebSearchRequest(Activity activity, argument
295 final ContentResolver cr = activity.getContentResolver();
312 searchEngine.startSearch(activity, url, appData, extraData);
H A DNavigationBarPhone.java173 Activity activity = mUiController.getActivity();
178 if (!activity.onCreateOptionsMenu(mPopupMenu.getMenu())) {
184 if (activity.onPrepareOptionsMenu(menu)) {
/packages/apps/Settings/src/com/android/settings/
H A DSettingsPreferenceFragment.java499 final Activity activity = getActivity();
500 if (activity instanceof SettingsActivity) {
501 SettingsActivity sa = (SettingsActivity) activity;
504 } else if (activity instanceof PreferenceActivity) {
505 PreferenceActivity sa = (PreferenceActivity) activity;
H A DWirelessSettings.java266 final Activity activity = getActivity();
272 mAirplaneModeEnabler = new AirplaneModeEnabler(activity, mAirplaneModePreference);
273 mNfcEnabler = new NfcEnabler(activity, nfc, androidBeam);
281 //mNsdEnabler = new NsdEnabler(activity, nsd);
283 String toggleable = Settings.Global.getString(activity.getContentResolver(),
323 mNfcAdapter = NfcAdapter.getDefaultAdapter(activity);
361 activity.getSystemService(Context.DEVICE_POLICY_SERVICE);
368 (ConnectivityManager) activity.getSystemService(Context.CONNECTIVITY_SERVICE);
H A DApnSettings.java350 Activity activity = getActivity();
351 if (activity == null) {
360 activity,
/packages/apps/Email/src/com/android/email/activity/setup/
H A DAccountSettingsFragment.java17 package com.android.email.activity.setup;
168 public void onAttach(Activity activity) { argument
169 super.onAttach(activity);
170 mContext = activity;
194 // If not, activity must call startLoadingAccount() directly
534 final Activity activity = getActivity();
535 if (activity == null) {
539 activity.finish();
551 activity.finish();
558 activity
[all...]
/packages/apps/DeskClock/src/com/android/deskclock/
H A DDeskClock.java372 // No activity found to match the intent - ignore
461 public TabsAdapter(Activity activity, ViewPager pager) { argument
462 super(activity.getFragmentManager());
463 mContext = activity;
464 mMainActionBar = activity.getActionBar();
616 public OnTapListener(Activity activity, TextView makePressedView) { argument
618 mPressedColor = activity.getResources().getColor(Utils.getPressedColorId());
619 mGrayColor = activity.getResources().getColor(Utils.getGrayColorId());
/packages/apps/LegacyCamera/src/com/android/camera/
H A DUtil.java257 public static android.hardware.Camera openCamera(Activity activity, int cameraId) argument
260 DevicePolicyManager dpm = (DevicePolicyManager) activity.getSystemService(
279 public static void showErrorAndFinish(final Activity activity, int msgId) { argument
283 activity.finish();
286 new AlertDialog.Builder(activity)
326 public static int getDisplayRotation(Activity activity) { argument
327 int rotation = activity.getWindowManager().getDefaultDisplay()
/packages/apps/Contacts/src/com/android/contacts/editor/
H A DContactEditorFragment.java178 * Navigate to Contacts Home activity after saving.
209 * Prevents saving while running a child activity.
228 * the only "active" one should get the activity result. This member represents the active
292 public AggregationSuggestionAdapter(Activity activity, boolean setNewContact, argument
294 mActivity = activity;
361 final Activity activity = getActivity();
362 if (activity != null) activity.invalidateOptionsMenu();
367 public void onAttach(Activity activity) { argument
368 super.onAttach(activity);
[all...]
/packages/apps/Calendar/src/com/android/calendar/event/
H A DEditEventFragment.java169 final Activity activity = EditEventFragment.this.getActivity();
170 if (activity == null || activity.isFinishing()) {
546 public void onAttach(Activity activity) { argument
547 super.onAttach(activity);
548 mActivity = activity;
550 mHelper = new EditEventHelper(activity, null);
551 mHandler = new QueryHandler(activity.getContentResolver());
552 mModel = new CalendarEventModel(activity, mIntent);
554 activity
[all...]
/packages/apps/Contacts/src/com/android/contacts/group/
H A DGroupEditorFragment.java217 public void onAttach(Activity activity) { argument
218 super.onAttach(activity);
219 mContext = activity;
475 Log.i(TAG, "Group not found with URI: " + mGroupUri + " Closing activity now.");
570 * finishes the activity. This actually only handles saving the group name.
593 Activity activity = getActivity();
594 // If the activity is not there anymore, then we can't continue with the save process.
595 if (activity == null) {
604 saveIntent = ContactSaveService.createNewGroupIntent(activity,
607 membersToAddArray, activity
[all...]
/packages/apps/ContactsCommon/src/com/android/contacts/common/vcard/
H A DNotificationImportExportListener.java51 public NotificationImportExportListener(Activity activity) { argument
52 mContext = activity;
53 mNotificationManager = (NotificationManager) activity.getSystemService(
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/
H A DIngestService.java150 protected void setClientActivity(IngestActivity activity) { argument
151 if (mClientActivity == activity) {
154 mClientActivity = activity;

Completed in 627 milliseconds

1234567891011>>