Home
last modified time | relevance | path

Searched refs:activity (Results 1 – 25 of 468) sorted by relevance

12345678910>>...19

/packages/apps/UnifiedEmail/tests/src/com/android/mail/compose/
DComposeActivityTest.java102 public void setAccount(ComposeActivity activity, String accountName) { in setAccount() argument
104 final Account account = getAccountForName(activity, accountName); in setAccount()
107 activity.setAccount(mAccount); in setAccount()
131 final ComposeActivity activity = getActivity(); in testRecipientsRefReplyAllCustomFromReplyTo() local
132 setAccount(activity, "account3@mockuiprovider.com"); in testRecipientsRefReplyAllCustomFromReplyTo()
133 final Message refMessage = getRefMessage(activity.getContentResolver()); in testRecipientsRefReplyAllCustomFromReplyTo()
151 activity.mFromSpinner = new FromAddressSpinner(activity); in testRecipientsRefReplyAllCustomFromReplyTo()
152 activity.mFromSpinner.setCurrentAccount(currentAccount); in testRecipientsRefReplyAllCustomFromReplyTo()
153 activity.mFromSpinner.initialize(ComposeActivity.REPLY_ALL, in testRecipientsRefReplyAllCustomFromReplyTo()
156 activity.initReplyRecipients(refMessage, ComposeActivity.REPLY_ALL); in testRecipientsRefReplyAllCustomFromReplyTo()
[all …]
/packages/apps/LegacyCamera/src/com/android/camera/
DMenuHelper.java80 private static void startCameraActivity(Activity activity, Intent intent, in startCameraActivity() argument
84 intent.setClassName(activity.getPackageName(), className); in startCameraActivity()
91 activity.startActivity(intent); in startCameraActivity()
94 activity.startActivity(intent); in startCameraActivity()
96 activity.overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out); in startCameraActivity()
99 public static void gotoMode(int mode, Activity activity) { in gotoMode() argument
118 startCameraActivity(activity, new Intent(action), className); in gotoMode()
121 public static void gotoVideoMode(Activity activity, boolean resetEffect) { in gotoVideoMode() argument
124 startCameraActivity(activity, intent, VIDEO_CAMERA_CLASS); in gotoVideoMode()
127 public static void gotoCameraMode(Activity activity) { in gotoCameraMode() argument
[all …]
/packages/apps/CellBroadcastReceiver/tests/src/com/android/cellbroadcastreceiver/tests/
DSendTestMessages.java429 public static void testSendMessage7bit(Activity activity, int serialNumber, in testSendMessage7bit() argument
433 activity.sendOrderedBroadcastAsUser(intent, UserHandle.ALL, Manifest.permission.RECEIVE_SMS, in testSendMessage7bit()
437 public static void testSendMessage7bitUmts(Activity activity, int serialNumber, in testSendMessage7bitUmts() argument
441 activity.sendOrderedBroadcastAsUser(intent, UserHandle.ALL, Manifest.permission.RECEIVE_SMS, in testSendMessage7bitUmts()
445 public static void testSendMessage7bitNoPadding(Activity activity, int serialNumber, in testSendMessage7bitNoPadding() argument
449 activity.sendOrderedBroadcastAsUser(intent, UserHandle.ALL, Manifest.permission.RECEIVE_SMS, in testSendMessage7bitNoPadding()
453 public static void testSendMessage7bitNoPaddingUmts(Activity activity, int serialNumber, in testSendMessage7bitNoPaddingUmts() argument
457 activity.sendOrderedBroadcastAsUser(intent, UserHandle.ALL, Manifest.permission.RECEIVE_SMS, in testSendMessage7bitNoPaddingUmts()
461 public static void testSendMessage7bitMultipageGsm(Activity activity, int serialNumber, in testSendMessage7bitMultipageGsm() argument
468 activity.sendOrderedBroadcastAsUser(intent, UserHandle.ALL, Manifest.permission.RECEIVE_SMS, in testSendMessage7bitMultipageGsm()
[all …]
DSendCdmaCmasMessages.java56 public static void testSendCmasPresAlert(Activity activity, int messageId) { in testSendCmasPresAlert() argument
65 activity.sendOrderedBroadcastAsUser(intent, UserHandle.ALL, in testSendCmasPresAlert()
70 public static void testSendCmasExtremeAlert(Activity activity, int messageId) { in testSendCmasExtremeAlert() argument
79 activity.sendOrderedBroadcastAsUser(intent, UserHandle.ALL, in testSendCmasExtremeAlert()
84 public static void testSendCmasSevereAlert(Activity activity, int messageId) { in testSendCmasSevereAlert() argument
93 activity.sendOrderedBroadcastAsUser(intent, UserHandle.ALL, in testSendCmasSevereAlert()
98 public static void testSendCmasAmberAlert(Activity activity, int messageId) { in testSendCmasAmberAlert() argument
107 activity.sendOrderedBroadcastAsUser(intent, UserHandle.ALL, in testSendCmasAmberAlert()
112 public static void testSendCmasMonthlyTest(Activity activity, int messageId) { in testSendCmasMonthlyTest() argument
121 activity.sendOrderedBroadcastAsUser(intent, UserHandle.ALL, in testSendCmasMonthlyTest()
/packages/apps/UnifiedEmail/src/com/android/mail/drawer/
DDrawerItem.java112 protected DrawerItem(ControllableActivity activity, Folder folder, in DrawerItem() argument
114 mActivity = activity; in DrawerItem()
118 mInflater = LayoutInflater.from(activity.getActivityContext()); in DrawerItem()
130 public static DrawerItem ofFolder(ControllableActivity activity, Folder folder, in ofFolder() argument
132 return new FolderDrawerItem(activity, folder, itemCategory); in ofFolder()
143 public static DrawerItem ofAccount(ControllableActivity activity, Account account, in ofAccount() argument
146 return new AccountDrawerItem(activity, account, unreadCount, isCurrentAccount, cache, in ofAccount()
157 public static DrawerItem ofHeader(ControllableActivity activity, int resource) { in ofHeader() argument
158 return new HeaderDrawerItem(activity, resource); in ofHeader()
161 public static DrawerItem ofBlankHeader(ControllableActivity activity) { in ofBlankHeader() argument
[all …]
/packages/apps/Gallery/src/com/android/camera/
DMenuHelper.java262 final Activity activity) { in onShowMapClicked() argument
282 Toast.makeText(activity, in onShowMapClicked()
296 activity.startActivity(new Intent( in onShowMapClicked()
315 Activity activity) { in showExifInformation() argument
343 setLatLngDetails(d, activity, exif); in showExifInformation()
368 final Activity activity) { in onDetailsClicked() argument
376 new AlertDialog.Builder(activity); in onDetailsClicked()
378 final View d = View.inflate(activity, R.layout.detailsview, in onDetailsClicked()
392 : Formatter.formatFileSize(activity, length); in onDetailsClicked()
419 activity.getString(R.string.details_dimension_x), in onDetailsClicked()
[all …]
DMonitoredActivity.java30 public void onActivityCreated(MonitoredActivity activity); in onActivityCreated() argument
31 public void onActivityDestroyed(MonitoredActivity activity); in onActivityDestroyed() argument
32 public void onActivityStarted(MonitoredActivity activity); in onActivityStarted() argument
33 public void onActivityStopped(MonitoredActivity activity); in onActivityStopped() argument
37 public void onActivityCreated(MonitoredActivity activity) { in onActivityCreated() argument
40 public void onActivityDestroyed(MonitoredActivity activity) { in onActivityDestroyed() argument
43 public void onActivityStarted(MonitoredActivity activity) { in onActivityStarted() argument
46 public void onActivityStopped(MonitoredActivity activity) { in onActivityStopped() argument
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
DDictionarySettingsFragment.java99 final Activity activity = getActivity(); in onActivityCreated() local
100 mClientId = activity.getIntent().getStringExtra(DICT_SETTINGS_FRAGMENT_CLIENT_ID_ARGUMENT); in onActivityCreated()
102 (ConnectivityManager)activity.getSystemService(Context.CONNECTIVITY_SERVICE); in onActivityCreated()
138 final Activity activity = getActivity(); in onResume() local
147 if (!MetadataDbHelper.isClientKnown(activity, mClientId)) { in onResume()
154 activity.sendBroadcast(unknownClientBroadcast); in onResume()
163 final Activity activity = getActivity(); in onPause() local
165 activity.unregisterReceiver(mConnectivityChangedReceiver); in onPause()
169 activity.sendBroadcast(newDictBroadcast); in onPause()
191 final Activity activity = getActivity(); in wordListDownloadFinished()
[all …]
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/ui/
DReviewPermissionsActivity.java122 Activity activity = getActivity(); in onCreate() local
123 if (activity == null) { in onCreate()
129 activity.finish(); in onCreate()
133 mAppPermissions = new AppPermissions(activity, packageInfo, null, false, in onCreate()
142 activity.finish(); in onCreate()
155 activity.finish(); in onCreate()
174 Activity activity = getActivity(); in onClick() local
175 if (activity == null) { in onClick()
183 activity.setResult(Activity.RESULT_CANCELED); in onClick()
185 activity.finish(); in onClick()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/category/
DCategoryPanel.java47 public void onAttach(Activity activity) { in onAttach() argument
48 super.onAttach(activity); in onAttach()
53 FilterShowActivity activity = (FilterShowActivity) getActivity(); in loadAdapter() local
56 mAdapter = activity.getCategoryLooksAdapter(); in loadAdapter()
60 activity.updateCategories(); in loadAdapter()
64 mAdapter = activity.getCategoryBordersAdapter(); in loadAdapter()
68 activity.updateCategories(); in loadAdapter()
72 mAdapter = activity.getCategoryGeometryAdapter(); in loadAdapter()
79 mAdapter = activity.getCategoryFiltersAdapter(); in loadAdapter()
86 mAdapter = activity.getCategoryVersionsAdapter(); in loadAdapter()
[all …]
/packages/apps/Settings/src/com/android/settings/deviceinfo/
DStorageWizardFormatProgress.java94 final StorageWizardFormatProgress activity = mActivity; in doInBackground() local
97 if (activity.mFormatPrivate) { in doInBackground()
98 storage.partitionPrivate(activity.mDisk.getId()); in doInBackground()
104 final VolumeInfo privateVol = activity.findFirstVolume(VolumeInfo.TYPE_PRIVATE); in doInBackground()
110 if (activity.mDisk.isDefaultPrimary() in doInBackground()
119 storage.partitionPublic(activity.mDisk.getId()); in doInBackground()
133 public void setActivity(StorageWizardFormatProgress activity) { in setActivity() argument
134 mActivity = activity; in setActivity()
140 final StorageWizardFormatProgress activity = mActivity; in onPostExecute() local
141 if (activity.isDestroyed()) { in onPostExecute()
[all …]
/packages/apps/Messaging/src/com/android/messaging/ui/conversationlist/
DShareIntentFragment.java66 final Activity activity = getActivity(); in onCreateDialog() local
67 final LayoutInflater inflater = activity.getLayoutInflater(); in onCreateDialog()
75 final LinearLayoutManager manager = new LinearLayoutManager(activity) { in onCreateDialog()
83 mAdapter = new ShareIntentAdapter(activity, null, this); in onCreateDialog()
88 final Builder dialogBuilder = new AlertDialog.Builder(activity) in onCreateDialog()
109 final Activity activity = getActivity(); in onDismiss() local
110 if (activity != null) { in onDismiss()
111 activity.finish(); in onDismiss()
126 public void onAttach(final Activity activity) { in onAttach() argument
127 super.onAttach(activity); in onAttach()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/editors/
DEditorPanel.java49 public void onAttach(Activity activity) { in onAttach() argument
50 super.onAttach(activity); in onAttach()
51 FilterShowActivity filterShowActivity = (FilterShowActivity) activity; in onAttach()
67 FilterShowActivity activity = (FilterShowActivity) getActivity(); in onCreateView() local
73 showImageStatePanel(activity.isShowingImageStatePanel()); in onCreateView()
87 FilterShowActivity activity = (FilterShowActivity) getActivity(); in onCreateView()
88 activity.backToMain(); in onCreateView()
93 mEditor = activity.getEditor(mEditorID); in onCreateView()
104 FilterShowActivity activity = (FilterShowActivity) getActivity(); in onCreateView()
106 activity.backToMain(); in onCreateView()
[all …]
/packages/apps/Messaging/src/com/android/messaging/util/
DChangeDefaultSmsAppHelper.java53 final Activity activity, final Fragment fragment) { in warnOfMissingActionConditions() argument
69 mChangeSmsAppSettingRunnable = new ChangeSmsAppSettingRunnable(activity, fragment); in warnOfMissingActionConditions()
71 composeView, rootView, activity); in warnOfMissingActionConditions()
83 final Activity activity) { in promptToChangeDefaultSmsApp() argument
86 ImeUtil.hideSoftInput(activity, composeView); in promptToChangeDefaultSmsApp()
94 UiUtils.showSnackBarWithCustomAction(activity, in promptToChangeDefaultSmsApp()
96 activity.getString(sending ? R.string.requires_default_sms_app_to_send : in promptToChangeDefaultSmsApp()
99 activity.getString(R.string.requires_default_sms_change_button)), in promptToChangeDefaultSmsApp()
109 public ChangeSmsAppSettingRunnable(final Activity activity, final Fragment fragment) { in ChangeSmsAppSettingRunnable() argument
110 mActivity = activity; in ChangeSmsAppSettingRunnable()
DUiUtils.java253 public static void setStatusBarColor(final Activity activity, final int color) { in setStatusBarColor() argument
261 activity.getWindow().setStatusBarColor( in setStatusBarColor()
266 public static void lockOrientation(final Activity activity) { in lockOrientation() argument
267 final int orientation = activity.getResources().getConfiguration().orientation; in lockOrientation()
268 final int rotation = activity.getWindowManager().getDefaultDisplay().getRotation(); in lockOrientation()
277 activity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); in lockOrientation()
279 activity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); in lockOrientation()
283 activity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_REVERSE_PORTRAIT); in lockOrientation()
285 activity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_REVERSE_LANDSCAPE); in lockOrientation()
290 public static void unlockOrientation(final Activity activity) { in unlockOrientation() argument
[all …]
/packages/apps/Tag/src/com/android/apps/tag/record/
DRecordUtils.java50 public Activity activity; field in RecordUtils.ClickInfo
53 public ClickInfo(Activity activity, Intent intent) { in ClickInfo() argument
54 this.activity = activity; in ClickInfo()
63 public static View getViewsForIntent(Activity activity, LayoutInflater inflater, in getViewsForIntent() argument
66 PackageManager pm = activity.getPackageManager(); in getViewsForIntent()
75 return buildActivityView(activity, activities.get(0), pm, inflater, parent, listener, in getViewsForIntent()
79 LinearLayout container = new LinearLayout(activity); in getViewsForIntent()
95 container.addView(buildActivityView(activity, resolveInfo, pm, inflater, container, in getViewsForIntent()
105 …private static View buildActivityView(Activity activity, ResolveInfo resolveInfo, PackageManager p… in buildActivityView() argument
115 item.setTag(new ClickInfo(activity, intent)); in buildActivityView()
/packages/apps/Contacts/src/com/android/contacts/editor/
DCompactContactEditorFragment.java203 final Activity activity = getActivity(); in onNameFieldChanged() local
204 if (activity == null || activity.isFinishing()) { in onNameFieldChanged()
207 acquireAggregationSuggestions(activity, rawContactId, valuesDelta); in onNameFieldChanged()
220 final Activity activity = getActivity(); in onBindEditorsFailed() local
221 if (activity != null && !activity.isFinishing()) { in onBindEditorsFailed()
222 Toast.makeText(activity, R.string.compact_editor_failed_to_load, in onBindEditorsFailed()
224 activity.setResult(Activity.RESULT_CANCELED); in onBindEditorsFailed()
225 activity.finish(); in onBindEditorsFailed()
288 final Activity activity = getActivity(); in onRawContactSelected() local
289 if (activity != null && !activity.isFinishing()) { in onRawContactSelected()
[all …]
/packages/apps/ContactsCommon/src/com/android/contacts/common/activity/
DRequestPermissionsActivityBase.java17 package com.android.contacts.common.activity;
84 protected static boolean startPermissionActivity(Activity activity, in startPermissionActivity() argument
86 if (!hasPermissions(activity, requiredPermissions)) { in startPermissionActivity()
87 final Intent intent = new Intent(activity, newActivityClass); in startPermissionActivity()
88 activity.getIntent().putExtra(STARTED_PERMISSIONS_ACTIVITY, true); in startPermissionActivity()
89 intent.putExtra(PREVIOUS_ACTIVITY_INTENT, activity.getIntent()); in startPermissionActivity()
90 activity.startActivity(intent); in startPermissionActivity()
91 activity.finish(); in startPermissionActivity()
99 AccountTypeManager.getInstance(activity); in startPermissionActivity()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/
DAddAccessoryActivity.java154 public void setActivity(AddAccessoryActivity activity) { in setActivity() argument
155 mActivityRef = new WeakReference<>(activity); in setActivity()
160 final AddAccessoryActivity activity = mActivityRef.get(); in handleMessage() local
161 if (activity == null) { in handleMessage()
166 activity.updateView(); in handleMessage()
169 activity.mCancelledAddress = ADDRESS_NONE; in handleMessage()
170 activity.updateView(); in handleMessage()
173 activity.finish(); in handleMessage()
176 activity.handlePairingTimeout(); in handleMessage()
179 if (activity.mBluetoothPairer != null) { in handleMessage()
[all …]
/packages/apps/Dialer/src/com/android/dialer/list/
DSpeedDialFragment.java181 public void onAttach(Activity activity) { in onAttach() argument
183 super.onAttach(activity); in onAttach()
188 mContactTileAdapter = new PhoneFavoritesTileAdapter(activity, mContactTileAdapterListener, in onAttach()
190 mContactTileAdapter.setPhotoLoader(ContactPhotoManager.getInstance(activity)); in onAttach()
293 final Activity activity = getActivity(); in onStart() local
296 mActivityScrollListener = (OnListFragmentScrolledListener) activity; in onStart()
298 throw new ClassCastException(activity.toString() in onStart()
303 OnDragDropListener listener = (OnDragDropListener) activity; in onStart()
305 ((HostInterface) activity).setDragDropController(mListView.getDragDropController()); in onStart()
307 throw new ClassCastException(activity.toString() in onStart()
[all …]
/packages/apps/Calendar/src/com/android/calendar/
DGeneralPreferences.java147 final Activity activity = getActivity(); in onCreate() local
152 final SharedPreferences sharedPreferences = getSharedPreferences(activity); in onCreate()
161 Vibrator vibrator = (Vibrator) activity.getSystemService(Context.VIBRATOR_SERVICE); in onCreate()
169 String ringToneUri = Utils.getRingTonePreference(activity); in onCreate()
176 String ringtoneDisplayString = getRingtoneTitleFromUri(activity, ringToneUri); in onCreate()
189 mTimeZoneId = Utils.getTimeZone(activity, null); in onCreate()
191 SharedPreferences prefs = CalendarUtils.getSharedPreferences(activity, in onCreate()
216 TimeZonePickerDialog tzpd = (TimeZonePickerDialog) activity.getFragmentManager() in onCreate()
228 final Activity activity = getActivity(); in showTimezoneDialog() local
229 if (activity == null) { in showTimezoneDialog()
[all …]
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastOptOutActivity.java45 static void showOptOutDialog(final Activity activity) { in showOptOutDialog() argument
46 AlertDialog.Builder builder = new AlertDialog.Builder(activity); in showOptOutDialog()
53 activity.finish(); in showOptOutDialog()
61 Intent intent = new Intent(activity, CellBroadcastSettings.class); in showOptOutDialog()
62 activity.startActivity(intent); in showOptOutDialog()
63 activity.finish(); in showOptOutDialog()
73 activity.finish(); in showOptOutDialog()
/packages/services/Car/car-support-lib/src/android/support/car/app/menu/
DCarUiController.java38 public CarUiController(CarDrawerActivity activity) { in CarUiController() argument
39 mActivity = activity; in CarUiController()
43 public static CarUiController createCarUiController(CarDrawerActivity activity) { in createCarUiController() argument
44 if (CarAppUtil.isEmbeddedCar(activity.getContext())) { in createCarUiController()
45 return new EmbeddedCarUiController(activity); in createCarUiController()
47 return getProjectedCarUiController(PROJECTED_UI_CONTROLLER, activity); in createCarUiController()
52 CarDrawerActivity activity) { in getProjectedCarUiController() argument
68 return (CarUiController) ctor.newInstance(activity); in getProjectedCarUiController()
/packages/apps/TV/src/com/android/tv/
DMainActivityWrapper.java50 boolean isCurrent(MainActivity activity) { in isCurrent() argument
51 return activity != null && mActivity == activity; in isCurrent()
58 public void onMainActivityCreated(@NonNull MainActivity activity) { in onMainActivityCreated() argument
59 mActivity = activity; in onMainActivityCreated()
66 public void onMainActivityDestroyed(@NonNull MainActivity activity) { in onMainActivityDestroyed() argument
67 if (mActivity != activity) { in onMainActivityDestroyed()
/packages/apps/Email/provider_src/com/android/email/activity/setup/
DAccountSecurity.java17 package com.android.email.activity.setup;
248 final AccountSecurity activity = AccountSecurity.this; in onLoadFinished()
249 if (!activity.isActivityResumed()) { in onLoadFinished()
254 activity.finish(); in onLoadFinished()
259 if (!activity.mInitialized) { in onLoadFinished()
260 activity.mInitialized = true; in onLoadFinished()
263 activity.completeCreate(account, apLoader.mShowDialog, in onLoadFinished()
543 AccountSecurity activity = (AccountSecurity) getActivity(); in onClick() local
544 if (activity.mAccount == null) { in onClick()
546 activity.finish(); in onClick()
[all …]

12345678910>>...19