Searched refs:activity (Results 101 - 125 of 362) sorted by relevance

1234567891011>>

/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DDetailsHelper.java53 public DetailsHelper(AbstractGalleryActivity activity, GLView rootPane, DetailsSource source) { argument
54 mContainer = new DialogDetailsView(activity, source);
74 public static String resolveAddress(AbstractGalleryActivity activity, double[] latlng, argument
77 sAddressResolver = new DetailsAddressResolver(activity);
H A DManageCacheDrawer.java42 public ManageCacheDrawer(AbstractGalleryActivity activity, SelectionManager selectionManager, argument
44 super(activity, selectionManager, slotView, labelSpec,
45 activity.getResources().getColor(R.color.cache_placeholder));
46 Context context = activity;
/packages/apps/Gallery2/src/com/android/photos/
H A DGalleryActivity.java112 public TabsAdapter(GalleryActivity activity, ViewPager pager) { argument
113 super(activity.getFragmentManager());
114 mActivity = activity;
115 mActionBar = activity.getActionBar();
/packages/apps/Launcher3/src/com/android/launcher3/compat/
H A DAppWidgetManagerCompatVL.java85 public void startConfigActivity(AppWidgetProviderInfo info, int widgetId, Activity activity, argument
88 host.startAppWidgetConfigureActivityForResult(activity, widgetId, 0, requestCode, null);
90 Toast.makeText(activity, R.string.activity_not_found, Toast.LENGTH_SHORT).show();
92 Toast.makeText(activity, R.string.activity_not_found, Toast.LENGTH_SHORT).show();
H A DAppWidgetManagerCompatV16.java67 public void startConfigActivity(AppWidgetProviderInfo info, int widgetId, Activity activity, argument
72 Utilities.startActivityForResultSafely(activity, intent, requestCode);
/packages/apps/Settings/src/com/android/settings/
H A DTetherSettings.java136 final Activity activity = getActivity();
139 adapter.getProfileProxy(activity.getApplicationContext(), mProfileServiceListener,
165 mWifiApEnabler = new WifiApEnabler(activity, mEnableWifiAp);
186 mView = new WebView(activity);
196 final Activity activity = getActivity();
204 final String s = activity.getString(
206 mCreateNetwork.setSummary(String.format(activity.getString(CONFIG_SUBTEXT),
210 mCreateNetwork.setSummary(String.format(activity.getString(CONFIG_SUBTEXT),
229 final Activity activity = getActivity();
230 mDialog = new WifiApDialog(activity, thi
[all...]
H A DDateTimeSettings.java208 final Activity activity = getActivity();
209 if (activity != null) {
210 setDate(activity, year, month, day);
211 updateTimeAndDateDisplay(activity);
217 final Activity activity = getActivity();
218 if (activity != null) {
219 setTime(activity, hourOfDay, minute);
220 updateTimeAndDateDisplay(activity);
424 final Activity activity = getActivity();
425 if (activity !
[all...]
H A DDisplaySettings.java89 final Activity activity = getActivity();
90 final ContentResolver resolver = activity.getContentResolver();
120 if (isLiftToWakeAvailable(activity)) {
127 if (isDozeAvailable(activity)) {
134 if (RotationPolicy.isRotationLockToggleVisible(activity)) {
137 rotatePreference.addItem(activity.getString(R.string.display_auto_rotate_rotate),
143 if (allowAllRotations(activity)) {
146 if (RotationPolicy.getRotationLockOrientation(activity)
155 rotatePreference.addItem(activity.getString(rotateLockedResourceId), true);
156 rotatePreference.setSelectedItem(RotationPolicy.isRotationLocked(activity)
[all...]
H A DDeviceAdminSettings.java135 final Activity activity = getActivity();
139 intent.setClass(activity, DeviceAdminAdd.class);
141 activity.startActivityAsUser(intent, new UserHandle(userId));
143 AlertDialog.Builder builder = new AlertDialog.Builder(activity);
145 dpi.loadLabel(activity.getPackageManager())));
309 final Activity activity = getActivity();
311 Drawable activityIcon = item.loadIcon(activity.getPackageManager());
312 Drawable badgedIcon = activity.getPackageManager().getUserBadgedIcon(
315 vh.name.setText(item.loadLabel(activity.getPackageManager()));
319 vh.description.setText(item.loadDescription(activity
[all...]
/packages/apps/Settings/src/com/android/settings/wifi/
H A DWifiSettingsForSetupWizard.java140 WifiSetupActivity activity = (WifiSetupActivity) getActivity();
141 activity.networkSelected();
147 WifiSetupActivity activity = (WifiSetupActivity) getActivity();
148 activity.networkSelected();
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
H A DConversationPagerController.java44 * ViewPager in the activity's view hierarchy at all times and have this controller manage it.
51 * cons: the activity's Controller has to specially handle show/hide conversation view,
87 public ConversationPagerController(RestrictedActivity activity, argument
89 mFragmentManager = activity.getFragmentManager();
90 mPager = (ViewPager) activity.findViewById(R.id.conversation_pager);
92 setupPageMargin(activity.getActivityContext());
170 // need to release resources before a configuration change kills the activity and controller
H A DSwipeableConversationItemView.java55 public void bind(final Conversation conversation, final ControllableActivity activity, argument
68 mConversationItemView.bind(conversation, activity, set, folder, checkboxOrSenderImage,
/packages/apps/Browser/src/com/android/browser/
H A DNetworkStateHandler.java43 public NetworkStateHandler(Activity activity, Controller controller) { argument
44 mActivity = activity;
/packages/apps/Email/src/com/android/email/activity/setup/
H A DAccountCredentials.java1 package com.android.email.activity.setup;
10 import com.android.email.activity.UiUtilities;
H A DAccountServerBaseFragment.java17 package com.android.email.activity.setup;
32 import com.android.email.activity.UiUtilities;
139 final Activity activity = getActivity();
140 mAppContext = activity.getApplicationContext();
144 activity.setTitle(savedInstanceState.getString(BUNDLE_KEY_ACTIVITY_TITLE));
147 (SetupDataFragment.SetupDataContainer) activity;
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/
H A DEditorPlaceHolder.java22 public EditorPlaceHolder(FilterShowActivity activity) { argument
23 mActivity = activity;
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
H A DImageFilter.java40 public static void setActivityForMemoryToasts(Activity activity) { argument
41 sActivity = activity;
/packages/apps/Launcher2/src/com/android/launcher2/
H A DWallpaperChooserDialogFragment.java111 * when the activity is no longer associated with this dying dialog fragment. We
114 Activity activity = getActivity();
115 if (activity != null) {
116 activity.finish();
135 /* If this fragment is embedded in the layout of this activity, then we should
165 Activity activity = getActivity();
166 activity.setResult(Activity.RESULT_OK);
167 activity.finish();
227 ImageAdapter(Activity activity) { argument
228 mLayoutInflater = activity
[all...]
/packages/apps/Mms/src/com/android/mms/ui/
H A DAsyncDialog.java36 public AsyncDialog(Activity activity) { argument
37 mActivity = activity;
57 // Shows the activity's progress spinner. Should be canceled if exiting the activity.
/packages/apps/Settings/src/com/android/settings/nfc/
H A DAndroidBeam.java68 SettingsActivity activity = (SettingsActivity) getActivity();
70 mSwitchBar = activity.getSwitchBar();
/packages/apps/Gallery2/src/com/android/gallery3d/app/
H A DActivityState.java87 void initialize(AbstractGalleryActivity activity, Bundle data) { argument
88 mActivity = activity;
199 AbstractGalleryActivity activity = mActivity;
200 ActionBar actionBar = activity.getActionBar();
213 activity.invalidateOptionsMenu();
230 activity.registerReceiver(mPowerIntentReceiver, filter);
/packages/apps/Tag/src/com/android/apps/tag/record/
H A DVCardRecord.java84 public View getView(Activity activity, LayoutInflater inflater, ViewGroup parent, int offset) { argument
86 Uri uri = activity.getIntent().getData();
93 CharSequence template = activity.getResources().getText(R.string.import_vcard);
96 return RecordUtils.getViewsForIntent(activity, inflater, parent, this, intent, description);
168 info.activity.startActivity(info.intent);
169 info.activity.finish();
171 // The activity wansn't found for some reason. Don't crash, but don't do anything.
172 Log.e(TAG, "Failed to launch activity for intent " + info.intent, e);
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
H A DAbstractConversationViewFragment.java149 * Constructor needs to be public to handle orientation changes and activity
249 final Activity activity = getActivity();
250 if (!(activity instanceof ControllableActivity)) {
254 if (activity == null || activity.isFinishing()) {
258 mActivity = (ControllableActivity) activity;
259 mContext = activity.getApplicationContext();
260 mWebViewClient.setActivity(activity);
267 final ControllableActivity activity = (ControllableActivity) getActivity();
268 return activity !
[all...]
/packages/apps/Contacts/src/com/android/contacts/interactions/
H A DContactDeletionInteraction.java88 * @param activity the activity within which to start the interaction
90 * @param finishActivityWhenDone whether to finish the activity upon completion of the
95 Activity activity, Uri contactUri, boolean finishActivityWhenDone) {
96 return startWithTestLoaderManager(activity, contactUri, finishActivityWhenDone, null);
102 * @param activity the activity within which to start the interaction
104 * @param finishActivityWhenDone whether to finish the activity upon completion of the
112 Activity activity, Uri contactUri, boolean finishActivityWhenDone,
118 FragmentManager fragmentManager = activity
94 start( Activity activity, Uri contactUri, boolean finishActivityWhenDone) argument
111 startWithTestLoaderManager( Activity activity, Uri contactUri, boolean finishActivityWhenDone, TestLoaderManager testLoaderManager) argument
155 onAttach(Activity activity) argument
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/userdictionary/
H A DUserDictionaryAddWordContents.java253 public ArrayList<LocaleRenderer> getLocalesList(final Activity activity) { argument
254 final TreeSet<String> locales = UserDictionaryList.getUserDictionaryLocalesSet(activity);
264 addLocaleDisplayNameToList(activity, localesList, mLocale);
266 addLocaleDisplayNameToList(activity, localesList, systemLocale);
270 addLocaleDisplayNameToList(activity, localesList, l);
274 addLocaleDisplayNameToList(activity, localesList, ""); // meaning: all languages
276 localesList.add(new LocaleRenderer(activity, null)); // meaning: select another locale

Completed in 568 milliseconds

1234567891011>>