/packages/apps/UnifiedEmail/tests/src/com/android/mail/compose/ |
D | ComposeActivityTest.java | 102 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/Gallery/src/com/android/camera/ |
D | MenuHelper.java | 262 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/ |
D | SendTestMessages.java | 429 public static void testSendMessage7bit(Activity activity, int serialNumber, in testSendMessage7bit() argument 434 activity.sendOrderedBroadcastAsUser(intent, UserHandle.ALL, Manifest.permission.RECEIVE_SMS, in testSendMessage7bit() 438 public static void testSendMessage7bitUmts(Activity activity, int serialNumber, in testSendMessage7bitUmts() argument 443 activity.sendOrderedBroadcastAsUser(intent, UserHandle.ALL, Manifest.permission.RECEIVE_SMS, in testSendMessage7bitUmts() 447 public static void testSendMessage7bitNoPadding(Activity activity, int serialNumber, in testSendMessage7bitNoPadding() argument 452 activity.sendOrderedBroadcastAsUser(intent, UserHandle.ALL, Manifest.permission.RECEIVE_SMS, in testSendMessage7bitNoPadding() 456 public static void testSendMessage7bitNoPaddingUmts(Activity activity, int serialNumber, in testSendMessage7bitNoPaddingUmts() argument 461 activity.sendOrderedBroadcastAsUser(intent, UserHandle.ALL, Manifest.permission.RECEIVE_SMS, in testSendMessage7bitNoPaddingUmts() 465 public static void testSendMessage7bitMultipageGsm(Activity activity, int serialNumber, in testSendMessage7bitMultipageGsm() argument 473 activity.sendOrderedBroadcastAsUser(intent, UserHandle.ALL, Manifest.permission.RECEIVE_SMS, in testSendMessage7bitMultipageGsm() [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/ |
D | DictionarySettingsFragment.java | 99 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/LegacyCamera/src/com/android/camera/ |
D | MenuHelper.java | 80 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/UnifiedEmail/src/com/android/mail/drawer/ |
D | DrawerItem.java | 112 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/TvSettings/Settings/src/com/android/tv/settings/accessories/ |
D | AddAccessoryActivity.java | 142 public void setActivity(AddAccessoryActivity activity) { in setActivity() argument 143 mActivityRef = new WeakReference<>(activity); in setActivity() 148 final AddAccessoryActivity activity = mActivityRef.get(); in handleMessage() local 149 if (activity == null) { in handleMessage() 154 activity.updateView(); in handleMessage() 157 activity.mCancelledAddress = ADDRESS_NONE; in handleMessage() 158 activity.updateView(); in handleMessage() 161 activity.finish(); in handleMessage() 164 activity.handlePairingTimeout(); in handleMessage() 167 if (activity.mBtPairer != null) { in handleMessage() [all …]
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/ |
D | StorageWizardFormatProgress.java | 93 final StorageWizardFormatProgress activity = mActivity; in doInBackground() local 96 if (activity.mFormatPrivate) { in doInBackground() 97 storage.partitionPrivate(activity.mDisk.getId()); in doInBackground() 103 final VolumeInfo privateVol = activity.findFirstVolume(VolumeInfo.TYPE_PRIVATE); in doInBackground() 109 if (activity.mDisk.isDefaultPrimary() in doInBackground() 118 storage.partitionPublic(activity.mDisk.getId()); in doInBackground() 132 public void setActivity(StorageWizardFormatProgress activity) { in setActivity() argument 133 mActivity = activity; in setActivity() 139 final StorageWizardFormatProgress activity = mActivity; in onPostExecute() local 140 if (activity.isDestroyed()) { in onPostExecute() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/category/ |
D | CategoryPanel.java | 47 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/DeskClock/src/com/android/deskclock/ |
D | ClockFragment.java | 226 final DeskClock activity = (DeskClock) getActivity(); 227 if (activity.getSelectedTab() == DeskClock.CLOCK_TAB_INDEX) { 244 activity.registerReceiver(mIntentReceiver, filter); 248 mAdapter.loadCitiesDb(activity); 249 mAdapter.reloadData(activity); 252 View clockView = Utils.setClockStyle(activity, mDigitalClock, mAnalogClock, 266 Utils.refreshAlarm(activity, mClockFrame); 268 activity.getContentResolver().registerContentObserver( 280 Activity activity = getActivity(); 281 activity.unregisterReceiver(mIntentReceiver); [all …]
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
D | UiUtils.java | 253 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 …]
|
D | ChangeDefaultSmsAppHelper.java | 53 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()
|
/packages/apps/Dialer/src/com/android/dialer/interactions/ |
D | PhoneNumberInteraction.java | 51 import com.android.contacts.common.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/Browser/src/com/android/browser/ |
D | DownloadHandler.java | 58 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/Calendar/src/com/android/calendar/ |
D | GeneralPreferences.java | 147 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/list/ |
D | SpeedDialFragment.java | 177 public void onAttach(Activity activity) { in onAttach() argument 179 super.onAttach(activity); in onAttach() 184 mContactTileAdapter = new PhoneFavoritesTileAdapter(activity, mContactTileAdapterListener, in onAttach() 186 mContactTileAdapter.setPhotoLoader(ContactPhotoManager.getInstance(activity)); in onAttach() 282 final Activity activity = getActivity(); in onStart() local 285 mActivityScrollListener = (OnListFragmentScrolledListener) activity; in onStart() 287 throw new ClassCastException(activity.toString() in onStart() 292 OnDragDropListener listener = (OnDragDropListener) activity; in onStart() 294 ((HostInterface) activity).setDragDropController(mListView.getDragDropController()); in onStart() 296 throw new ClassCastException(activity.toString() in onStart() [all …]
|
/packages/apps/Messaging/src/com/android/messaging/ui/conversationlist/ |
D | ShareIntentFragment.java | 66 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/Email/provider_src/com/android/email/activity/setup/ |
D | AccountSecurity.java | 17 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 …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/editors/ |
D | EditorPanel.java | 49 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/UnifiedEmail/src/com/android/mail/ui/ |
D | AbstractConversationViewFragment.java | 174 final ControllableActivity activity = (ControllableActivity) getActivity(); in markRead() local 175 if (activity == null) { in markRead() 193 activity.getConversationUpdater() in markRead() 198 convMarkedRead = activity.getConversationUpdater() in markRead() 294 final Activity activity = getActivity(); in onActivityCreated() local 295 if (!(activity instanceof ControllableActivity)) { in onActivityCreated() 299 if (activity == null || activity.isFinishing()) { in onActivityCreated() 303 mActivity = (ControllableActivity) activity; in onActivityCreated() 304 mContext = activity.getApplicationContext(); in onActivityCreated() 305 mWebViewClient.setActivity(activity); in onActivityCreated() [all …]
|
/packages/apps/Settings/src/com/android/settings/wifi/ |
D | WifiSettings.java | 176 final Activity activity = getActivity(); in onViewCreated() local 177 if (activity != null) { in onViewCreated() 212 Activity activity = getActivity(); in onActivityCreated() 213 if (activity != null) { in onActivityCreated() 214 Toast.makeText(activity, in onActivityCreated() 227 Activity activity = getActivity(); in onActivityCreated() 228 if (activity != null) { in onActivityCreated() 229 Toast.makeText(activity, in onActivityCreated() 242 Activity activity = getActivity(); in onActivityCreated() 243 if (activity != null) { in onActivityCreated() [all …]
|
/packages/apps/Settings/src/com/android/settings/ |
D | SetupEncryptionInterstitial.java | 88 Activity activity = getActivity(); in onViewCreated() local 89 if (activity != null) { in onViewCreated() 90 activity.setTitle(R.string.encryption_interstitial_header); in onViewCreated() 91 SetupWizardUtils.setImmersiveMode(activity); in onViewCreated() 97 final Activity activity = getActivity(); in onNavigateBack() local 98 if (activity != null) { in onNavigateBack() 99 activity.onBackPressed(); in onNavigateBack() 105 final SetupEncryptionInterstitial activity = in onNavigateNext() local 107 if (activity != null) { in onNavigateNext() 108 activity.setResult(RESULT_OK, activity.getResultIntentData()); in onNavigateNext()
|
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/ui/ |
D | AppPermissionsFragment.java | 97 Activity activity = getActivity(); in onCreate() local 98 PackageInfo packageInfo = getPackageInfo(activity, packageName); in onCreate() 100 Toast.makeText(activity, R.string.app_not_found_dlg_title, Toast.LENGTH_LONG).show(); in onCreate() 101 activity.finish(); in onCreate() 105 mAppPermissions = new AppPermissions(activity, packageInfo, null, true, new Runnable() { in onCreate() 157 Activity activity = fragment.getActivity(); in bindUi() local 158 PackageManager pm = activity.getPackageManager(); in bindUi() 161 if (!activity.getIntent().getBooleanExtra(EXTRA_HIDE_INFO_BUTTON, false)) { in bindUi() 170 ActionBar ab = activity.getActionBar(); in bindUi() 271 OverlayTouchActivity activity = (OverlayTouchActivity) getActivity(); in onPreferenceChange() local [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
D | ManageCachePage.java | 286 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 …]
|
/packages/apps/Tag/src/com/android/apps/tag/record/ |
D | RecordUtils.java | 50 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()
|