Home
last modified time | relevance | path

Searched refs:bundle (Results 1 – 25 of 114) sorted by relevance

12345

/packages/apps/Dialer/InCallUI/tests/src/com/android/incallui/
DCallTest.java75 Bundle bundle = new Bundle(); in testUpdateFromCallExtras_corruptedBundleOverwrite() local
76 bundle.putString(Connection.EXTRA_CHILD_ADDRESS, "321"); in testUpdateFromCallExtras_corruptedBundleOverwrite()
77 bundle.putStringArrayList(Connection.EXTRA_LAST_FORWARDED_NUMBER, in testUpdateFromCallExtras_corruptedBundleOverwrite()
79 bundle.putString(Connection.EXTRA_CALL_SUBJECT, "bar"); in testUpdateFromCallExtras_corruptedBundleOverwrite()
80 mCall.updateFromCallExtras(bundle); in testUpdateFromCallExtras_corruptedBundleOverwrite()
86 Bundle bundle = new Bundle(); in getTestBundle() local
87 bundle.putString(Connection.EXTRA_CHILD_ADDRESS, CHILD_NUMBER); in getTestBundle()
88 bundle.putStringArrayList(Connection.EXTRA_LAST_FORWARDED_NUMBER, in getTestBundle()
90 bundle.putString(Connection.EXTRA_CALL_SUBJECT, CALL_SUBJECT); in getTestBundle()
91 return bundle; in getTestBundle()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/
DTransitionImage.java197 public boolean readFromBundle(Context context, Rect intentSourceBounds, Bundle bundle) { in readFromBundle() argument
199 if (bundle == null) { in readFromBundle()
202 mUri = bundle.getParcelable(EXTRA_TRANSITION_BITMAP_URI); in readFromBundle()
211 if (bundle.containsKey(EXTRA_TRANSITION_BITMAP)) { in readFromBundle()
214 bundle.getBundle(EXTRA_TRANSITION_BITMAP))); in readFromBundle()
221 String bitmapRectStr = bundle.getString(EXTRA_TRANSITION_BITMAP_RECT); in readFromBundle()
233 if (!readRectF(bundle.getFloatArray(EXTRA_TRANSITION_BITMAP_CLIPPED_RECT), in readFromBundle()
237 if (!readRectF(bundle.getFloatArray(EXTRA_TRANSITION_BITMAP_UNCLIPPED_RECT), in readFromBundle()
241 setAlpha(bundle.getFloat(EXTRA_TRANSITION_BITMAP_ALPHA, 1f)); in readFromBundle()
242 setSaturation(bundle.getFloat(EXTRA_TRANSITION_BITMAP_SATURATION, 1f)); in readFromBundle()
[all …]
DActivityTransitionBitmapHelper.java51 public static Bitmap getBitmapFromBinderBundle(Bundle bundle) { in getBitmapFromBinderBundle() argument
52 if (bundle.containsKey(EXTRA_BINDER)) { in getBitmapFromBinderBundle()
58 binder = (IBinder) sGetBinder.invoke(bundle, EXTRA_BINDER); in getBitmapFromBinderBundle()
81 Bundle bundle = new Bundle(); in bitmapAsBinderBundle() local
85 sPutBinder.invoke(bundle, EXTRA_BINDER, provider); in bitmapAsBinderBundle()
91 return bundle; in bitmapAsBinderBundle()
/packages/apps/Contacts/src/com/android/contacts/util/
DDialogManager.java68 public void showDialogInView(final View view, final Bundle bundle) { in showDialogInView() argument
70 if (bundle.containsKey(VIEW_ID_KEY)) { in showDialogInView()
76 bundle.putInt(VIEW_ID_KEY, viewId); in showDialogInView()
78 mActivity.showDialog(dialogId, bundle); in showDialogInView()
85 public Dialog onCreateDialog(final int id, final Bundle bundle) { in onCreateDialog() argument
93 if (!bundle.containsKey(VIEW_ID_KEY)) { in onCreateDialog()
96 final int viewId = bundle.getInt(VIEW_ID_KEY); in onCreateDialog()
101 final Dialog dialog = ((DialogShowingView)view).createDialog(bundle); in onCreateDialog()
123 Dialog createDialog(Bundle bundle); in createDialog() argument
/packages/apps/Email/emailcommon/src/com/android/emailcommon/service/
DEmailServiceProxy.java159 Bundle bundle = new Bundle(); in validate() local
160 bundle.putInt(VALIDATE_BUNDLE_RESULT_CODE, MessagingException.UNSPECIFIED_EXCEPTION); in validate()
161 return bundle; in validate()
163 Bundle bundle = (Bundle) mReturn; in validate() local
164 bundle.setClassLoader(Policy.class.getClassLoader()); in validate()
165 LogUtils.v(TAG, "validate returns " + bundle.getInt(VALIDATE_BUNDLE_RESULT_CODE)); in validate()
166 return bundle; in validate()
193 Bundle bundle = (Bundle) mReturn; in autoDiscover() local
194 bundle.setClassLoader(HostAuth.class.getClassLoader()); in autoDiscover()
196 + bundle.getInt(AUTO_DISCOVER_BUNDLE_ERROR_CODE)); in autoDiscover()
[all …]
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/tests/testauth/
DTestAuthenticator.java65 final Bundle bundle = new Bundle(); in addAccount() local
73 bundle.putString(AccountManager.KEY_ACCOUNT_NAME, account.name); in addAccount()
74 bundle.putString(AccountManager.KEY_ACCOUNT_TYPE, account.type); in addAccount()
75 return bundle; in addAccount()
85 final Bundle bundle = new Bundle(); in getAuthToken() local
86 bundle.putString(AccountManager.KEY_ACCOUNT_NAME, account.name); in getAuthToken()
87 bundle.putString(AccountManager.KEY_ACCOUNT_TYPE, account.type); in getAuthToken()
88 bundle.putString(AccountManager.KEY_AUTHTOKEN, account.name); in getAuthToken()
90 return bundle; in getAuthToken()
/packages/apps/Settings/src/com/android/settings/dashboard/conditional/
DCondition.java43 void restoreState(PersistableBundle bundle) { in restoreState() argument
44 mIsSilenced = bundle.getBoolean(KEY_SILENCE); in restoreState()
45 mIsActive = bundle.getBoolean(KEY_ACTIVE); in restoreState()
46 mLastStateChange = bundle.getLong(KEY_LAST_STATE); in restoreState()
49 boolean saveState(PersistableBundle bundle) { in saveState() argument
51 bundle.putBoolean(KEY_SILENCE, mIsSilenced); in saveState()
54 bundle.putBoolean(KEY_ACTIVE, mIsActive); in saveState()
55 bundle.putLong(KEY_LAST_STATE, mLastStateChange); in saveState()
DDndCondition.java59 boolean saveState(PersistableBundle bundle) { in saveState() argument
60 bundle.putInt(KEY_STATE, mZen); in saveState()
61 return super.saveState(bundle); in saveState()
65 void restoreState(PersistableBundle bundle) { in restoreState() argument
66 super.restoreState(bundle); in restoreState()
67 mZen = bundle.getInt(KEY_STATE, Global.ZEN_MODE_OFF); in restoreState()
/packages/apps/Email/src/com/android/email/activity/setup/
DAuthenticationView.java220 Bundle bundle = new Bundle(); in onSaveInstanceState() local
221 bundle.putParcelable(SUPER_STATE, super.onSaveInstanceState()); in onSaveInstanceState()
222 bundle.putBoolean(SAVE_OFFER_OAUTH, mOfferOAuth); in onSaveInstanceState()
223 bundle.putBoolean(SAVE_USE_OAUTH, mUseOAuth); in onSaveInstanceState()
224 bundle.putString(SAVE_PASSWORD, getPassword()); in onSaveInstanceState()
225 bundle.putString(SAVE_OAUTH_PROVIDER, mOAuthProvider); in onSaveInstanceState()
226 return bundle; in onSaveInstanceState()
232 Bundle bundle = (Bundle)parcelable; in onRestoreInstanceState() local
233 super.onRestoreInstanceState(bundle.getParcelable(SUPER_STATE)); in onRestoreInstanceState()
234 mOfferOAuth = bundle.getBoolean(SAVE_OFFER_OAUTH); in onRestoreInstanceState()
[all …]
DAccountCheckSettingsFragment.java383 final Bundle bundle = store.checkSettings(); in doInBackground() local
384 if (bundle == null) { in doInBackground()
387 mAccount.mProtocolVersion = bundle.getString( in doInBackground()
389 int resultCode = bundle.getInt(EmailServiceProxy.VALIDATE_BUNDLE_RESULT_CODE); in doInBackground()
390 final String redirectAddress = bundle.getString( in doInBackground()
401 mSetupData.setPolicy((Policy)bundle.getParcelable( in doInBackground()
405 final Policy policy = bundle.getParcelable( in doInBackground()
413 errorMessage = bundle.getString( in doInBackground()
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/
DMailbox.java92 final Bundle bundle = new Bundle(mailboxIds.size() + 1); in createSyncBundle() local
93 bundle.putInt(SYNC_EXTRA_MAILBOX_COUNT, mailboxIds.size()); in createSyncBundle()
95 bundle.putLong(formatMailboxIdExtra(i), mailboxIds.get(i)); in createSyncBundle()
97 return bundle; in createSyncBundle()
101 final Bundle bundle = new Bundle(mailboxIds.length + 1); in createSyncBundle() local
102 bundle.putInt(SYNC_EXTRA_MAILBOX_COUNT, mailboxIds.length); in createSyncBundle()
104 bundle.putLong(formatMailboxIdExtra(i), mailboxIds[i]); in createSyncBundle()
106 return bundle; in createSyncBundle()
110 final Bundle bundle = new Bundle(2); in createSyncBundle() local
111 bundle.putInt(SYNC_EXTRA_MAILBOX_COUNT, 1); in createSyncBundle()
[all …]
/packages/services/Telephony/src/com/android/phone/
DGsmUmtsCallForwardOptions.java103 Bundle bundle = mIcicle.getParcelable(pref.getKey()); in onResume() local
104 pref.setToggled(bundle.getBoolean(KEY_TOGGLE)); in onResume()
106 cf.number = bundle.getString(KEY_NUMBER); in onResume()
107 cf.status = bundle.getInt(KEY_STATUS); in onResume()
122 Bundle bundle = new Bundle(); in onSaveInstanceState() local
123 bundle.putBoolean(KEY_TOGGLE, pref.isToggled()); in onSaveInstanceState()
125 bundle.putString(KEY_NUMBER, pref.callForwardInfo.number); in onSaveInstanceState()
126 bundle.putInt(KEY_STATUS, pref.callForwardInfo.status); in onSaveInstanceState()
128 outState.putParcelable(pref.getKey(), bundle); in onSaveInstanceState() local
/packages/apps/CertInstaller/src/com/android/certinstaller/
DCertInstallerMain.java85 Bundle bundle = intent.getExtras(); in onCreate() local
95 if (bundle != null && !installAsUserClassName.equals(calledClass)) { in onCreate()
96 bundle.remove(Credentials.EXTRA_INSTALL_AS_UID); in onCreate()
102 if (bundle == null in onCreate()
103 || bundle.isEmpty() in onCreate()
104 || (bundle.size() == 1 in onCreate()
105 && (bundle.containsKey(KeyChain.EXTRA_NAME) in onCreate()
106 || bundle.containsKey(Credentials.EXTRA_INSTALL_AS_UID)))) { in onCreate()
DCredentialHelper.java81 Bundle bundle = intent.getExtras(); in CredentialHelper() local
82 if (bundle == null) { in CredentialHelper()
86 String name = bundle.getString(KeyChain.EXTRA_NAME); in CredentialHelper()
87 bundle.remove(KeyChain.EXTRA_NAME); in CredentialHelper()
92 mUid = bundle.getInt(Credentials.EXTRA_INSTALL_AS_UID, -1); in CredentialHelper()
93 bundle.remove(Credentials.EXTRA_INSTALL_AS_UID); in CredentialHelper()
95 Log.d(TAG, "# extras: " + bundle.size()); in CredentialHelper()
96 for (String key : bundle.keySet()) { in CredentialHelper()
97 byte[] bytes = bundle.getByteArray(key); in CredentialHelper()
/packages/apps/Calendar/src/com/android/calendar/selectcalendars/
DSelectCalendarsSyncFragment.java92 public SelectCalendarsSyncFragment(Bundle bundle) { in SelectCalendarsSyncFragment() argument
93 mAccount = new Account(bundle.getString(Calendars.ACCOUNT_NAME), in SelectCalendarsSyncFragment()
94 bundle.getString(Calendars.ACCOUNT_TYPE)); in SelectCalendarsSyncFragment()
148 Bundle bundle = getArguments(); in onAttach() local
149 if (bundle != null && bundle.containsKey(Calendars.ACCOUNT_NAME) in onAttach()
150 && bundle.containsKey(Calendars.ACCOUNT_TYPE)) { in onAttach()
151 mAccount = new Account(bundle.getString(Calendars.ACCOUNT_NAME), in onAttach()
152 bundle.getString(Calendars.ACCOUNT_TYPE)); in onAttach()
/packages/services/Telephony/src/com/android/phone/settings/fdn/
DEditFdnContactScreen.java300 ContentValues bundle = new ContentValues(3); in addContact() local
301 bundle.put("tag", getNameFromTextField()); in addContact()
302 bundle.put("number", number); in addContact()
303 bundle.put("pin2", mPin2); in addContact()
306 mQueryHandler.startInsert(0, null, uri, bundle); in addContact()
323 ContentValues bundle = new ContentValues(); in updateContact() local
324 bundle.put("tag", mName); in updateContact()
325 bundle.put("number", mNumber); in updateContact()
326 bundle.put("newTag", name); in updateContact()
327 bundle.put("newNumber", number); in updateContact()
[all …]
/packages/services/Car/service/src/com/android/car/
DCarAudioAttributesUtil.java87 Bundle bundle = attr.getBundle(); in getCarUsageFromAudioAttributes() local
89 if (bundle != null) { in getCarUsageFromAudioAttributes()
90 type = bundle.getInt(KEY_CAR_AUDIO_TYPE, CAR_AUDIO_TYPE_DEFAULT); in getCarUsageFromAudioAttributes()
136 Bundle bundle = new Bundle(); in createCustomAudioAttributes() local
137 bundle.putInt(KEY_CAR_AUDIO_TYPE, carAudioType); in createCustomAudioAttributes()
138 return builder.setContentType(contentType).setUsage(usage).addBundle(bundle).build(); in createCustomAudioAttributes()
/packages/apps/Settings/src/com/android/settings/
DCredentialStorage.java234 Bundle bundle = mInstallBundle; in installIfAvailable() local
237 final int uid = bundle.getInt(Credentials.EXTRA_INSTALL_AS_UID, KeyStore.UID_SELF); in installIfAvailable()
252 .putExtras(bundle); in installIfAvailable()
257 if (bundle.containsKey(Credentials.EXTRA_USER_PRIVATE_KEY_NAME)) { in installIfAvailable()
258 String key = bundle.getString(Credentials.EXTRA_USER_PRIVATE_KEY_NAME); in installIfAvailable()
259 byte[] value = bundle.getByteArray(Credentials.EXTRA_USER_PRIVATE_KEY_DATA); in installIfAvailable()
277 if (bundle.containsKey(Credentials.EXTRA_USER_CERTIFICATE_NAME)) { in installIfAvailable()
278 String certName = bundle.getString(Credentials.EXTRA_USER_CERTIFICATE_NAME); in installIfAvailable()
279 byte[] certData = bundle.getByteArray(Credentials.EXTRA_USER_CERTIFICATE_DATA); in installIfAvailable()
287 if (bundle.containsKey(Credentials.EXTRA_CA_CERTIFICATES_NAME)) { in installIfAvailable()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/
DBluetoothAccessoryActivity.java37 Bundle bundle = getIntent().getExtras(); in createSettingsFragment() local
38 if (bundle != null) { in createSettingsFragment()
39 deviceAddress = bundle.getString(EXTRA_ACCESSORY_ADDRESS); in createSettingsFragment()
40 deviceName = bundle.getString(EXTRA_ACCESSORY_NAME); in createSettingsFragment()
41 deviceImgId = bundle.getInt(EXTRA_ACCESSORY_ICON_ID); in createSettingsFragment()
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/
DCameraMediaChooserView.java44 final Bundle bundle = new Bundle(); in onSaveInstanceState() local
45 bundle.putInt(KEY_CAMERA_INDEX, CameraManager.get().getCameraIndex()); in onSaveInstanceState()
46 return bundle; in onSaveInstanceState()
55 final Bundle bundle = (Bundle) state; in onRestoreInstanceState() local
56 CameraManager.get().selectCameraByIndex(bundle.getInt(KEY_CAMERA_INDEX)); in onRestoreInstanceState()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/dialog/old/
DDialogActivity.java196 Bundle bundle = getIntent().getExtras(); in onCreate() local
197 if (bundle != null) { in onCreate()
198 boolean createFragmentFromExtra = bundle.getBoolean(EXTRA_CREATE_FRAGMENT_FROM_EXTRA); in onCreate()
202 String title = bundle.getString(EXTRA_DIALOG_TITLE); in onCreate()
203 String breadcrumb = bundle.getString(EXTRA_DIALOG_BREADCRUMB); in onCreate()
204 String description = bundle.getString(EXTRA_DIALOG_DESCRIPTION); in onCreate()
205 String imageUriStr = bundle.getString(EXTRA_DIALOG_IMAGE_URI); in onCreate()
207 int backgroundColor = bundle.getInt(EXTRA_DIALOG_IMAGE_BACKGROUND_COLOR); in onCreate()
210 bundle.getParcelableArrayList(EXTRA_PARCELABLE_ACTIONS); in onCreate()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DStateManager.java272 Bundle bundle = (Bundle) parcelable; in restoreFromState() local
274 (Class<? extends ActivityState>) bundle.getSerializable(KEY_CLASS); in restoreFromState()
276 Bundle data = bundle.getBundle(KEY_DATA); in restoreFromState()
277 Bundle state = bundle.getBundle(KEY_STATE); in restoreFromState()
303 Bundle bundle = new Bundle(); in saveState() local
304 bundle.putSerializable(KEY_CLASS, entry.activityState.getClass()); in saveState()
305 bundle.putBundle(KEY_DATA, entry.data); in saveState()
308 bundle.putBundle(KEY_STATE, state); in saveState()
310 list[i++] = bundle; in saveState()
/packages/services/Car/car-ui-provider/src/android/car/ui/provider/
DDrawerApiAdapter.java206 for (Bundle bundle : items) { in setItems()
207 if (bundle.containsKey(KEY_EMPTY_PLACEHOLDER) in setItems()
208 && bundle.getBoolean(KEY_EMPTY_PLACEHOLDER)) { in setItems()
216 if (bundle.containsKey(KEY_TEXT) || bundle.containsKey(KEY_REMOTEVIEWS)) { in setItems()
219 if (bundle.containsKey(KEY_LEFTICON)) { in setItems()
222 if (bundle.containsKey(KEY_FLAGS) && in setItems()
223 (bundle.getInt(KEY_FLAGS) & FLAG_FIRSTITEM) != 0) { in setItems()
226 mIdToPosMap.put(bundle.getString(KEY_ID), index); in setItems()
249 public void onChildChanged(RecyclerView.ViewHolder holder, Bundle bundle) { in onChildChanged() argument
262 oldBundle.putAll(bundle); in onChildChanged()
[all …]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DFastScrollingIndexCache.java168 Bundle bundle = new Bundle(); in buildExtraBundle() local
169 bundle.putStringArray(Contacts.EXTRA_ADDRESS_BOOK_INDEX_TITLES, titles); in buildExtraBundle()
170 bundle.putIntArray(Contacts.EXTRA_ADDRESS_BOOK_INDEX_COUNTS, counts); in buildExtraBundle()
171 return bundle; in buildExtraBundle()
237 String countExpression, Bundle bundle) { in put() argument
243 bundle.getStringArray(Contacts.EXTRA_ADDRESS_BOOK_INDEX_TITLES), in put()
244 bundle.getIntArray(Contacts.EXTRA_ADDRESS_BOOK_INDEX_COUNTS))); in put()
/packages/apps/ManagedProvisioning/tests/src/com/android/managedprovisioning/parser/
DPropertiesProvisioningDataParserTest.java273 PersistableBundle bundle = getTestAdminExtrasPersistableBundle(); in getTestAdminExtrasString() local
274 for (String key : bundle.keySet()) { in getTestAdminExtrasString()
275 props.setProperty(key, bundle.getString(key)); in getTestAdminExtrasString()
283 PersistableBundle bundle = new PersistableBundle(); in getTestAdminExtrasPersistableBundle() local
284 bundle.putString("key1", "val1"); in getTestAdminExtrasPersistableBundle()
285 bundle.putString("key2", "val2"); in getTestAdminExtrasPersistableBundle()
286 bundle.putString("key3", "val3"); in getTestAdminExtrasPersistableBundle()
287 return bundle; in getTestAdminExtrasPersistableBundle()

12345