Home
last modified time | relevance | path

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

12345678910>>...15

/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()
140 activity.mFromSpinner = new FromAddressSpinner(activity); in testRecipientsRefReplyAllCustomFromReplyTo()
148 activity.mFromSpinner.setCurrentAccount(currentAccount); in testRecipientsRefReplyAllCustomFromReplyTo()
150 activity.mFromSpinner.initialize(ComposeActivity.REPLY_ALL, in testRecipientsRefReplyAllCustomFromReplyTo()
155 activity.initReplyRecipients(refMessage, ComposeActivity.REPLY_ALL); in testRecipientsRefReplyAllCustomFromReplyTo()
[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 …]
/packages/apps/CellBroadcastReceiver/tests/src/com/android/cellbroadcastreceiver/tests/
DSendTestMessages.java425 public static void testSendMessage7bit(Activity activity, int serialNumber, int category) { in testSendMessage7bit() argument
428 activity.sendOrderedBroadcast(intent, "android.permission.RECEIVE_SMS"); in testSendMessage7bit()
431 public static void testSendMessage7bitUmts(Activity activity, int serialNumber, int category) { in testSendMessage7bitUmts() argument
434 activity.sendOrderedBroadcast(intent, "android.permission.RECEIVE_SMS"); in testSendMessage7bitUmts()
437 public static void testSendMessage7bitNoPadding(Activity activity, int serialNumber, in testSendMessage7bitNoPadding() argument
441 activity.sendOrderedBroadcast(intent, "android.permission.RECEIVE_SMS"); in testSendMessage7bitNoPadding()
444 public static void testSendMessage7bitNoPaddingUmts(Activity activity, int serialNumber, in testSendMessage7bitNoPaddingUmts() argument
448 activity.sendOrderedBroadcast(intent, "android.permission.RECEIVE_SMS"); in testSendMessage7bitNoPaddingUmts()
451 public static void testSendMessage7bitMultipageGsm(Activity activity, int serialNumber, in testSendMessage7bitMultipageGsm() argument
458 activity.sendOrderedBroadcast(intent, "android.permission.RECEIVE_SMS"); in testSendMessage7bitMultipageGsm()
[all …]
DSendCdmaCmasMessages.java64 public static void testSendCmasPresAlert(Activity activity, int messageId) { in testSendCmasPresAlert() argument
73 activity.sendOrderedBroadcast(intent, "android.permission.RECEIVE_SMS"); in testSendCmasPresAlert()
76 public static void testSendCmasExtremeAlert(Activity activity, int messageId) { in testSendCmasExtremeAlert() argument
85 activity.sendOrderedBroadcast(intent, "android.permission.RECEIVE_SMS"); in testSendCmasExtremeAlert()
88 public static void testSendCmasSevereAlert(Activity activity, int messageId) { in testSendCmasSevereAlert() argument
97 activity.sendOrderedBroadcast(intent, "android.permission.RECEIVE_SMS"); in testSendCmasSevereAlert()
100 public static void testSendCmasAmberAlert(Activity activity, int messageId) { in testSendCmasAmberAlert() argument
109 activity.sendOrderedBroadcast(intent, "android.permission.RECEIVE_SMS"); in testSendCmasAmberAlert()
112 public static void testSendCmasMonthlyTest(Activity activity, int messageId) { in testSendCmasMonthlyTest() argument
121 activity.sendOrderedBroadcast(intent, "android.permission.RECEIVE_SMS"); in testSendCmasMonthlyTest()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
DDictionarySettingsFragment.java97 final Activity activity = getActivity(); in onActivityCreated() local
98 mClientId = activity.getIntent().getStringExtra(DICT_SETTINGS_FRAGMENT_CLIENT_ID_ARGUMENT); in onActivityCreated()
100 (ConnectivityManager)activity.getSystemService(Context.CONNECTIVITY_SERVICE); in onActivityCreated()
125 final Activity activity = getActivity(); in onResume() local
126 if (!MetadataDbHelper.isClientKnown(activity, mClientId)) { in onResume()
132 activity.sendBroadcast(unknownClientBroadcast); in onResume()
143 final Activity activity = getActivity(); in onPause() local
145 activity.unregisterReceiver(mConnectivityChangedReceiver); in onPause()
149 activity.sendBroadcast(newDictBroadcast); in onPause()
171 final Activity activity = getActivity(); in wordListDownloadFinished()
[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/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 …]
DMainPanel.java55 FilterShowActivity activity = (FilterShowActivity) getActivity(); in selection() local
56 activity.setCurrentPanel(position); in selection()
126 FilterShowActivity activity = (FilterShowActivity) getActivity(); in onCreateView() local
127 showImageStatePanel(activity.isShowingImageStatePanel()); in onCreateView()
128 showPanel(activity.getCurrentPanel()); in onCreateView()
209 FilterShowActivity activity = (FilterShowActivity) getActivity(); in loadCategoryVersionsPanel() local
210 activity.updateVersions(); in loadCategoryVersionsPanel()
266 FilterShowActivity activity = (FilterShowActivity) getActivity(); in showImageStatePanel() local
267 container = activity.getMainStatePanelContainer(R.id.state_panel_container); in showImageStatePanel()
281 FilterShowActivity activity = (FilterShowActivity) getActivity(); in showImageStatePanel() local
[all …]
/packages/apps/Dialer/src/com/android/dialer/interactions/
DPhoneNumberInteraction.java54 import com.android.dialer.activity.TransactionSafeActivity;
212 final Activity activity = getActivity(); in onCreateDialog() local
217 mPhonesAdapter = new PhoneItemAdapter(activity, mPhoneList, mInteractionType); in onCreateDialog()
218 final LayoutInflater inflater = activity.getLayoutInflater(); in onCreateDialog()
220 return new AlertDialog.Builder(activity) in onCreateDialog()
230 final Activity activity = getActivity(); in onClick() local
231 if (activity == null) return; in onClick()
239 activity, phoneItem.id); in onClick()
240 activity.startService(serviceIntent); in onClick()
243 PhoneNumberInteraction.performAction(activity, phoneItem.phoneNumber, in onClick()
[all …]
/packages/apps/Email/src/com/android/email/activity/setup/
DAccountSecurity.java17 package com.android.email.activity.setup;
218 final AccountSecurity activity = AccountSecurity.this; in onLoadFinished()
219 if (!activity.isActivityResumed()) { in onLoadFinished()
224 activity.finish(); in onLoadFinished()
229 if (!activity.mInitialized) { in onLoadFinished()
230 activity.mInitialized = true; in onLoadFinished()
233 activity.completeCreate(account, apLoader.mShowDialog, in onLoadFinished()
513 AccountSecurity activity = (AccountSecurity) getActivity(); in onClick() local
514 if (activity.mAccount == null) { in onClick()
516 activity.finish(); in onClick()
[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/Dialer/src/com/android/dialer/voicemail/
DVoicemailPlaybackFragment.java237 Activity activity = mActivityReference.get(); in finish() local
238 if (activity != null) { in finish()
239 activity.finish(); in finish()
245 Activity activity = mActivityReference.get(); in runOnUiThread() local
246 if (activity != null) { in runOnUiThread()
247 activity.runOnUiThread(runnable); in runOnUiThread()
300 Activity activity = mActivityReference.get(); in enableProximitySensor() local
301 if (activity != null && activity instanceof ProximitySensorAware) { in enableProximitySensor()
302 ((ProximitySensorAware) activity).enableProximitySensor(); in enableProximitySensor()
309 Activity activity = mActivityReference.get(); in disableProximitySensor() local
[all …]
/packages/apps/Browser/src/com/android/browser/
DDownloadHandler.java58 public static void onDownloadStart(Activity activity, String url, in onDownloadStart() argument
70 ResolveInfo info = activity.getPackageManager().resolveActivity(intent, in onDownloadStart()
73 ComponentName myName = activity.getComponentName(); in onDownloadStart()
83 activity.startActivity(intent); in onDownloadStart()
97 onDownloadStartNoStream(activity, url, userAgent, contentDisposition, in onDownloadStart()
142 /*package */ static void onDownloadStartNoStream(Activity activity, in onDownloadStartNoStream() argument
157 msg = activity.getString(R.string.download_sdcard_busy_dlg_msg); in onDownloadStartNoStream()
160 msg = activity.getString(R.string.download_no_sdcard_dlg_msg, filename); in onDownloadStartNoStream()
164 new AlertDialog.Builder(activity) in onDownloadStartNoStream()
192 Toast.makeText(activity, R.string.cannot_download, Toast.LENGTH_SHORT).show(); in onDownloadStartNoStream()
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/
DClockFragment.java213 final DeskClock activity = (DeskClock) getActivity(); in onResume() local
214 if (activity.getSelectedTab() == DeskClock.CLOCK_TAB_INDEX) { in onResume()
231 activity.registerReceiver(mIntentReceiver, filter); in onResume()
235 mAdapter.loadCitiesDb(activity); in onResume()
236 mAdapter.reloadData(activity); in onResume()
239 View clockView = Utils.setClockStyle(activity, mDigitalClock, mAnalogClock, in onResume()
253 Utils.refreshAlarm(activity, mClockFrame); in onResume()
261 Activity activity = getActivity(); in onPause() local
262 activity.unregisterReceiver(mIntentReceiver); in onPause()
281 final Activity activity = getActivity(); in onFabClick() local
[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/Settings/src/com/android/settings/wifi/
DWifiSettings.java214 Activity activity = mWifiSettings.getActivity(); in handleMessage() local
215 if (activity != null) { in handleMessage()
216 Toast.makeText(activity, R.string.wifi_fail_to_scan, Toast.LENGTH_LONG).show(); in handleMessage()
258 Activity activity = getActivity(); in onActivityCreated()
259 if (activity != null) { in onActivityCreated()
260 Toast.makeText(activity, in onActivityCreated()
273 Activity activity = getActivity(); in onActivityCreated()
274 if (activity != null) { in onActivityCreated()
275 Toast.makeText(activity, in onActivityCreated()
288 Activity activity = getActivity(); in onActivityCreated()
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/adapter/
DDrawerItem.java137 private DrawerItem(int type, ControllableActivity activity, Folder folder, int folderType, in DrawerItem() argument
140 mActivity = activity; in DrawerItem()
146 mInflater = LayoutInflater.from(activity.getActivityContext()); in DrawerItem()
162 public static DrawerItem ofFolder(ControllableActivity activity, Folder folder, in ofFolder() argument
164 return new DrawerItem(VIEW_FOLDER, activity, folder, folderType, null, -1, false, in ofFolder()
187 public static DrawerItem ofAccount(ControllableActivity activity, Account account, in ofAccount() argument
190 return new DrawerItem(VIEW_ACCOUNT, activity, null, ACCOUNT, account, unreadCount, in ofAccount()
210 public static DrawerItem ofHeader(ControllableActivity activity, int resource) { in ofHeader() argument
211 return new DrawerItem(VIEW_HEADER, activity, null, INERT_HEADER, null, resource, false, in ofHeader()
224 public static DrawerItem ofBlankHeader(ControllableActivity activity) { in ofBlankHeader() argument
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DManageCachePage.java286 Activity activity = mActivity; in initializeViews() local
291 Config.ManageCachePage config = Config.ManageCachePage.get(activity); in initializeViews()
317 Activity activity = mActivity; in initializeFooterViews() local
319 LayoutInflater inflater = activity.getLayoutInflater(); in initializeFooterViews()
349 Activity activity = mActivity; in showToast() local
350 Toast.makeText(activity, activity.getResources().getQuantityString( in showToast()
358 Activity activity = mActivity; in showToastForLocalAlbum() local
359 Toast.makeText(activity, activity.getResources().getString( in showToastForLocalAlbum()
373 Activity activity = mActivity; in refreshCacheStorageInfo() local
379 String label = activity.getString(R.string.free_space_format, "-"); in refreshCacheStorageInfo()
[all …]
DAlbumSetPage.java255 Activity activity = mActivity; in pickAlbum() local
258 activity.setResult(Activity.RESULT_OK, result); in pickAlbum()
259 activity.finish(); in pickAlbum()
530 Activity activity = mActivity; in onCreateActionBar() local
549 selectItem.setTitle(activity.getString( in onCreateActionBar()
553 cameraItem.setVisible(GalleryUtils.isCameraAvailable(activity)); in onCreateActionBar()
557 Intent helpIntent = HelpUtils.getHelpIntent(activity); in onCreateActionBar()
578 Activity activity = mActivity; in onItemSelected() local
581 activity.setResult(Activity.RESULT_CANCELED); in onItemSelected()
582 activity.finish(); in onItemSelected()
[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/Settings/src/com/android/settings/
DTetherSettings.java136 final Activity activity = getActivity(); in onCreate() local
139 adapter.getProfileProxy(activity.getApplicationContext(), mProfileServiceListener, in onCreate()
165 mWifiApEnabler = new WifiApEnabler(activity, mEnableWifiAp); in onCreate()
186 mView = new WebView(activity); in onCreate()
196 final Activity activity = getActivity(); in initWifiTethering() local
204 final String s = activity.getString( in initWifiTethering()
206 mCreateNetwork.setSummary(String.format(activity.getString(CONFIG_SUBTEXT), in initWifiTethering()
210 mCreateNetwork.setSummary(String.format(activity.getString(CONFIG_SUBTEXT), in initWifiTethering()
229 final Activity activity = getActivity(); in onCreateDialog() local
230 mDialog = new WifiApDialog(activity, this, mWifiConfig); in onCreateDialog()
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DAbstractConversationViewFragment.java249 final Activity activity = getActivity(); in onActivityCreated() local
250 if (!(activity instanceof ControllableActivity)) { in onActivityCreated()
254 if (activity == null || activity.isFinishing()) { in onActivityCreated()
258 mActivity = (ControllableActivity) activity; in onActivityCreated()
259 mContext = activity.getApplicationContext(); in onActivityCreated()
260 mWebViewClient.setActivity(activity); in onActivityCreated()
267 final ControllableActivity activity = (ControllableActivity) getActivity(); in getListController() local
268 return activity != null ? activity.getConversationUpdater() : null; in getListController()
557 final ControllableActivity activity = (ControllableActivity) getActivity(); in onConversationSeen() local
558 if (activity == null) { in onConversationSeen()
[all …]
/packages/apps/Dialer/src/com/android/dialer/list/
DSpeedDialFragment.java170 public void onAttach(Activity activity) { in onAttach() argument
172 super.onAttach(activity); in onAttach()
177 mContactTileAdapter = new PhoneFavoritesTileAdapter(activity, mContactTileAdapterListener, in onAttach()
179 mContactTileAdapter.setPhotoLoader(ContactPhotoManager.getInstance(activity)); in onAttach()
258 final Activity activity = getActivity(); in onStart() local
261 mActivityScrollListener = (OnListFragmentScrolledListener) activity; in onStart()
263 throw new ClassCastException(activity.toString() in onStart()
268 OnDragDropListener listener = (OnDragDropListener) activity; in onStart()
270 ((HostInterface) activity).setDragDropController(mListView.getDragDropController()); in onStart()
272 throw new ClassCastException(activity.toString() in onStart()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/dialog/old/
DBaseDialogFragment.java73 public void onActionClicked(Activity activity, Action action) { in onActionClicked() argument
74 if (activity instanceof ActionAdapter.Listener) { in onActionClicked()
75 ((ActionAdapter.Listener) activity).onActionClicked(action); in onActionClicked()
79 activity.startActivity(intent); in onActionClicked()
80 activity.finish(); in onActionClicked()
103 public void performEntryTransition(final Activity activity, final ViewGroup contentView, in performEntryTransition() argument
119 activity, activity.getIntent()); in performEntryTransition()
126 activity, iconResourceId)); in performEntryTransition()
148 activity.overridePendingTransition(R.anim.hard_cut_in, R.anim.fade_out); in performEntryTransition()
235 View actionFragmentView = activity.findViewById(mActionAreaId); in performEntryTransition()
/packages/apps/Mms/src/com/android/mms/ui/
DMessageUtils.java482 public static void selectAudio(Activity activity, int requestCode) { in selectAudio() argument
488 activity.getString(R.string.select_audio)); in selectAudio()
489 activity.startActivityForResult(intent, requestCode); in selectAudio()
492 public static void recordSound(Activity activity, int requestCode, long sizeLimit) { in recordSound() argument
498 activity.startActivityForResult(intent, requestCode); in recordSound()
501 public static void recordVideo(Activity activity, int requestCode, long sizeLimit) { in recordVideo() argument
518 activity.startActivityForResult(intent, requestCode); in recordVideo()
521 public static void capturePicture(Activity activity, int requestCode) { in capturePicture() argument
524 activity.startActivityForResult(intent, requestCode); in capturePicture()
597 public static void showErrorDialog(Activity activity, in showErrorDialog() argument
[all …]

12345678910>>...15