Home
last modified time | relevance | path

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

12345678910>>...17

/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/model/
DProvisioningParams.java337 final PersistableBundle bundle = new PersistableBundle(); in toPersistableBundle() local
339 bundle.putLong(TAG_PROVISIONING_ID, provisioningId); in toPersistableBundle()
340 bundle.putString(EXTRA_PROVISIONING_TIME_ZONE, timeZone); in toPersistableBundle()
341 bundle.putLong(EXTRA_PROVISIONING_LOCAL_TIME, localTime); in toPersistableBundle()
342 bundle.putString(EXTRA_PROVISIONING_LOCALE, StoreUtils.localeToString(locale)); in toPersistableBundle()
343 putPersistableBundlableIfNotNull(bundle, TAG_WIFI_INFO, wifiInfo); in toPersistableBundle()
344 bundle.putBoolean(EXTRA_PROVISIONING_USE_MOBILE_DATA, useMobileData); in toPersistableBundle()
345 bundle.putString(EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_NAME, deviceAdminPackageName); in toPersistableBundle()
346 bundle.putString(EXTRA_PROVISIONING_DEVICE_ADMIN_COMPONENT_NAME, in toPersistableBundle()
348 bundle.putString(EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_LABEL, deviceAdminLabel); in toPersistableBundle()
[all …]
DWifiInfo.java141 final PersistableBundle bundle = new PersistableBundle(); in toPersistableBundle() local
142 bundle.putString(EXTRA_PROVISIONING_WIFI_SSID, ssid); in toPersistableBundle()
143 bundle.putBoolean(EXTRA_PROVISIONING_WIFI_HIDDEN, hidden); in toPersistableBundle()
144 bundle.putString(EXTRA_PROVISIONING_WIFI_SECURITY_TYPE, securityType); in toPersistableBundle()
145 bundle.putString(EXTRA_PROVISIONING_WIFI_PASSWORD, password); in toPersistableBundle()
146 bundle.putString(EXTRA_PROVISIONING_WIFI_EAP_METHOD, eapMethod); in toPersistableBundle()
147 bundle.putString(EXTRA_PROVISIONING_WIFI_PHASE2_AUTH, phase2Auth); in toPersistableBundle()
148 bundle.putString(EXTRA_PROVISIONING_WIFI_CA_CERTIFICATE, caCertificate); in toPersistableBundle()
149 bundle.putString(EXTRA_PROVISIONING_WIFI_USER_CERTIFICATE, userCertificate); in toPersistableBundle()
150 bundle.putString(EXTRA_PROVISIONING_WIFI_IDENTITY, identity); in toPersistableBundle()
[all …]
DPackageDownloadInfo.java108 /* package */ static PackageDownloadInfo fromPersistableBundle(PersistableBundle bundle) { in fromPersistableBundle() argument
109 return createBuilderFromPersistableBundle(bundle).build(); in fromPersistableBundle()
112 private static Builder createBuilderFromPersistableBundle(PersistableBundle bundle) { in createBuilderFromPersistableBundle() argument
114 builder.setMinVersion(bundle.getInt(EXTRA_PROVISIONING_DEVICE_ADMIN_MINIMUM_VERSION_CODE)); in createBuilderFromPersistableBundle()
115 builder.setLocation(bundle.getString( in createBuilderFromPersistableBundle()
117 builder.setCookieHeader(bundle.getString( in createBuilderFromPersistableBundle()
119 builder.setPackageChecksum(StoreUtils.stringToByteArray(bundle.getString( in createBuilderFromPersistableBundle()
121 builder.setSignatureChecksum(StoreUtils.stringToByteArray(bundle.getString( in createBuilderFromPersistableBundle()
128 final PersistableBundle bundle = new PersistableBundle(); in toPersistableBundle() local
129 bundle.putInt(EXTRA_PROVISIONING_DEVICE_ADMIN_MINIMUM_VERSION_CODE, in toPersistableBundle()
[all …]
DDisclaimersParam.java59 public static DisclaimersParam fromPersistableBundle(PersistableBundle bundle) { in fromPersistableBundle() argument
60 return createBuilderFromPersistableBundle(bundle).build(); in fromPersistableBundle()
63 private static Builder createBuilderFromPersistableBundle(PersistableBundle bundle) { in createBuilderFromPersistableBundle() argument
64 String[] headers = bundle.getStringArray(HEADER_KEY); in createBuilderFromPersistableBundle()
65 String[] contentPaths = bundle.getStringArray(CONTENT_PATH_KEY); in createBuilderFromPersistableBundle()
88 final PersistableBundle bundle = new PersistableBundle(); in toPersistableBundle() local
96 bundle.putStringArray(HEADER_KEY, headers); in toPersistableBundle()
97 bundle.putStringArray(CONTENT_PATH_KEY, contentPaths); in toPersistableBundle()
99 return bundle; in toPersistableBundle()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/common/
DExtraSettingsLoaderTest.java77 Bundle bundle = new Bundle(); in testLoadPreference_stringResources_shouldLoadResources() local
78 bundle.putString(META_DATA_PREFERENCE_TITLE, FAKE_TITLE); in testLoadPreference_stringResources_shouldLoadResources()
79 bundle.putString(META_DATA_PREFERENCE_SUMMARY, FAKE_SUMMARY); in testLoadPreference_stringResources_shouldLoadResources()
80 bundle.putString(META_DATA_PREFERENCE_CATEGORY, FAKE_CATEGORY); in testLoadPreference_stringResources_shouldLoadResources()
83 activityInfo.metaData = bundle; in testLoadPreference_stringResources_shouldLoadResources()
107 Bundle bundle = new Bundle(); in testLoadPreference_metadataBundleIsValue() local
108 bundle.putString(META_DATA_PREFERENCE_TITLE, FAKE_TITLE); in testLoadPreference_metadataBundleIsValue()
109 bundle.putString(META_DATA_PREFERENCE_SUMMARY, FAKE_SUMMARY); in testLoadPreference_metadataBundleIsValue()
110 bundle.putString(META_DATA_PREFERENCE_CATEGORY, FAKE_CATEGORY); in testLoadPreference_metadataBundleIsValue()
113 activityInfo.metaData = bundle; in testLoadPreference_metadataBundleIsValue()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/helpers/
DUtil.java53 public static Metadata bundleToMetadata(Bundle bundle) { in bundleToMetadata() argument
54 if (bundle == null) return empty_data(); in bundleToMetadata()
57 temp.title = bundle.getString(MediaMetadata.METADATA_KEY_TITLE, "Not Provided"); in bundleToMetadata()
58 temp.artist = bundle.getString(MediaMetadata.METADATA_KEY_ARTIST, ""); in bundleToMetadata()
59 temp.album = bundle.getString(MediaMetadata.METADATA_KEY_ALBUM, ""); in bundleToMetadata()
60 temp.trackNum = "" + bundle.getLong(MediaMetadata.METADATA_KEY_TRACK_NUMBER, 1); in bundleToMetadata()
61 temp.numTracks = "" + bundle.getLong(MediaMetadata.METADATA_KEY_NUM_TRACKS, 1); in bundleToMetadata()
62 temp.genre = bundle.getString(MediaMetadata.METADATA_KEY_GENRE, ""); in bundleToMetadata()
63 temp.duration = "" + bundle.getLong(MediaMetadata.METADATA_KEY_DURATION, 0); in bundleToMetadata()
95 Bundle bundle = new Bundle(); in mediaMetadataToBundle() local
[all …]
/packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/
DRcsProviderQueryTest.java158 Bundle bundle = new Bundle(); in testCanQueryUnifiedThreads() local
159 bundle.putParcelable(THREAD_QUERY_PARAMETERS_KEY, queryParameters); in testCanQueryUnifiedThreads()
162 null, bundle, null); in testCanQueryUnifiedThreads()
193 Bundle bundle = new Bundle(); in testCanQueryUnifiedThreadsWithLimitAndSorting() local
194 bundle.putParcelable(THREAD_QUERY_PARAMETERS_KEY, queryParameters); in testCanQueryUnifiedThreadsWithLimitAndSorting()
197 null, bundle, null); in testCanQueryUnifiedThreadsWithLimitAndSorting()
212 Bundle bundle = new Bundle(); in testCanContinueThreadQuery() local
213 bundle.putParcelable(THREAD_QUERY_PARAMETERS_KEY, queryParameters); in testCanContinueThreadQuery()
216 Cursor cursor = mContentResolver.query(Uri.parse("content://rcs/thread"), null, bundle, in testCanContinueThreadQuery()
232 bundle.clear(); in testCanContinueThreadQuery()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/core/
DPreferenceXmlParserUtilsTest.java184 for (Bundle bundle : metadata) { in extractMetadata_shouldContainKeyAndControllerName()
185 assertThat(bundle.getString(PreferenceXmlParserUtils.METADATA_KEY)).isNotNull(); in extractMetadata_shouldContainKeyAndControllerName()
186 assertThat(bundle.getString(PreferenceXmlParserUtils.METADATA_CONTROLLER)).isNotNull(); in extractMetadata_shouldContainKeyAndControllerName()
196 for (Bundle bundle : metadata) { in extractMetadata_requestTitle_shouldContainTitle()
197 assertThat(bundle.getString(PreferenceXmlParserUtils.METADATA_TITLE)).isNotNull(); in extractMetadata_requestTitle_shouldContainTitle()
207 for (Bundle bundle : metadata) { in extractMetadata_requestSummary_shouldContainSummary()
208 assertThat(bundle.getString(PreferenceXmlParserUtils.METADATA_SUMMARY)).isNotNull(); in extractMetadata_requestSummary_shouldContainSummary()
218 for (Bundle bundle : metadata) { in extractMetadata_requestIcon_shouldContainIcon()
219 assertThat(bundle.getInt(PreferenceXmlParserUtils.METADATA_ICON)).isNotEqualTo(0); in extractMetadata_requestIcon_shouldContainIcon()
229 for (Bundle bundle : metadata) { in extractMetadata_requestPrefType_shouldContainPrefType()
[all …]
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/
DStoreUtils.java58 public static Account persistableBundleToAccount(PersistableBundle bundle) { in persistableBundleToAccount() argument
60 bundle.getString(ATTR_ACCOUNT_NAME), in persistableBundleToAccount()
61 bundle.getString(ATTR_ACCOUNT_TYPE)); in persistableBundleToAccount()
68 final PersistableBundle bundle = new PersistableBundle(); in accountToPersistableBundle() local
69 bundle.putString(ATTR_ACCOUNT_NAME, account.name); in accountToPersistableBundle()
70 bundle.putString(ATTR_ACCOUNT_TYPE, account.type); in accountToPersistableBundle()
71 return bundle; in accountToPersistableBundle()
142 public static void putIntegerIfNotNull(PersistableBundle bundle, String attrName, in putIntegerIfNotNull() argument
145 bundle.putInt(attrName, integer); in putIntegerIfNotNull()
149 public static void putPersistableBundlableIfNotNull(PersistableBundle bundle, String attrName, in putPersistableBundlableIfNotNull() argument
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
DDirectoryState.java51 public void restore(Bundle bundle) { in restore() argument
52 mRoot = bundle.getParcelable(Shared.EXTRA_ROOT); in restore()
53 mDocument = bundle.getParcelable(Shared.EXTRA_DOC); in restore()
54 mPendingOperation = bundle.getParcelable(FileOperationService.EXTRA_OPERATION); in restore()
55 mLastSortDimensionId = bundle.getInt(EXTRA_SORT_DIMENSION_ID); in restore()
56 mLastSortDirection = bundle.getInt(EXTRA_SORT_DIRECTION); in restore()
57 mSelectionId = bundle.getString(EXTRA_SELECTION_ID); in restore()
60 public void save(Bundle bundle) { in save() argument
61 bundle.putParcelable(Shared.EXTRA_ROOT, mRoot); in save()
62 bundle.putParcelable(Shared.EXTRA_DOC, mDocument); in save()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/telephony/
DCarrierPreferenceControllerTest.java94 final PersistableBundle bundle = new PersistableBundle(); in getAvailabilityStatus_cdmaWithFlagOff_returnUnavailable() local
95 bundle.putBoolean(CarrierConfigManager.KEY_CARRIER_SETTINGS_ENABLE_BOOL, false); in getAvailabilityStatus_cdmaWithFlagOff_returnUnavailable()
96 doReturn(bundle).when(mCarrierConfigManager).getConfigForSubId(SUB_ID); in getAvailabilityStatus_cdmaWithFlagOff_returnUnavailable()
104 final PersistableBundle bundle = new PersistableBundle(); in getAvailabilityStatus_cdmaWithFlagOnreturnAvailable() local
105 bundle.putBoolean(CarrierConfigManager.KEY_CARRIER_SETTINGS_ENABLE_BOOL, true); in getAvailabilityStatus_cdmaWithFlagOnreturnAvailable()
106 doReturn(bundle).when(mCarrierConfigManager).getConfigForSubId(SUB_ID); in getAvailabilityStatus_cdmaWithFlagOnreturnAvailable()
114 final PersistableBundle bundle = new PersistableBundle(); in getAvailabilityStatus_gsmWithFlagOnreturnAvailable() local
115 bundle.putBoolean(CarrierConfigManager.KEY_CARRIER_SETTINGS_ENABLE_BOOL, true); in getAvailabilityStatus_gsmWithFlagOnreturnAvailable()
116 doReturn(bundle).when(mCarrierConfigManager).getConfigForSubId(SUB_ID); in getAvailabilityStatus_gsmWithFlagOnreturnAvailable()
123 final PersistableBundle bundle = new PersistableBundle(); in handlePreferenceClick_activityFound_openCarrierSettingActivity() local
[all …]
DApnPreferenceControllerTest.java91 final PersistableBundle bundle = new PersistableBundle(); in getAvailabilityStatus_apnSettingsNotSupported_returnUnavailable() local
92 bundle.putBoolean(CarrierConfigManager.KEY_SHOW_APN_SETTING_CDMA_BOOL, false); in getAvailabilityStatus_apnSettingsNotSupported_returnUnavailable()
93 doReturn(bundle).when(mCarrierConfigManager).getConfigForSubId(SUB_ID); in getAvailabilityStatus_apnSettingsNotSupported_returnUnavailable()
101 final PersistableBundle bundle = new PersistableBundle(); in getAvailabilityStatus_apnSettingsSupportedWithCDMA_returnAvailable() local
102 bundle.putBoolean(CarrierConfigManager.KEY_SHOW_APN_SETTING_CDMA_BOOL, true); in getAvailabilityStatus_apnSettingsSupportedWithCDMA_returnAvailable()
103 doReturn(bundle).when(mCarrierConfigManager).getConfigForSubId(SUB_ID); in getAvailabilityStatus_apnSettingsSupportedWithCDMA_returnAvailable()
111 final PersistableBundle bundle = new PersistableBundle(); in getAvailabilityStatus_apnSettingsSupportedWithGsm_returnAvailable() local
112 bundle.putBoolean(CarrierConfigManager.KEY_APN_EXPAND_BOOL, true); in getAvailabilityStatus_apnSettingsSupportedWithGsm_returnAvailable()
113 doReturn(bundle).when(mCarrierConfigManager).getConfigForSubId(SUB_ID); in getAvailabilityStatus_apnSettingsSupportedWithGsm_returnAvailable()
130 final PersistableBundle bundle = new PersistableBundle(); in getAvailabilityStatus_hideCarrierNetworkSettings_returnUnavailable() local
[all …]
/packages/apps/Contacts/tests/src/com/android/contacts/group/
DGroupUtilTest.java50 final Bundle bundle = new Bundle(); in testUpdateBundle_smallSet() local
57 GroupUtil.updateBundle(bundle, indexer, subscriptsList, sections, counts); in testUpdateBundle_smallSet()
62 assertNotNull(bundle.getStringArray(Contacts.EXTRA_ADDRESS_BOOK_INDEX_TITLES)); in testUpdateBundle_smallSet()
63 MoreAsserts.assertEquals("Wrong sections!", newSections, bundle.getStringArray(Contacts in testUpdateBundle_smallSet()
66 assertNotNull(bundle.getIntArray(Contacts.EXTRA_ADDRESS_BOOK_INDEX_COUNTS)); in testUpdateBundle_smallSet()
67 MoreAsserts.assertEquals("Wrong counts!", newCounts, bundle.getIntArray(Contacts in testUpdateBundle_smallSet()
72 final Bundle bundle = new Bundle(); in testUpdateBundle_mediumSet() local
105 GroupUtil.updateBundle(bundle, indexer, subscriptsList, sections, counts); in testUpdateBundle_mediumSet()
111 assertNotNull(bundle.getStringArray(Contacts.EXTRA_ADDRESS_BOOK_INDEX_TITLES)); in testUpdateBundle_mediumSet()
112 MoreAsserts.assertEquals("Wrong sections!", newSections, bundle.getStringArray(Contacts in testUpdateBundle_mediumSet()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/
DNetworkRequestDialogFragmentTest.java247 Bundle bundle = new Bundle(); in createAccessPointList() local
249 bundle.putString(KEY_SSID, "Test AP 1"); in createAccessPointList()
250 bundle.putInt(KEY_SECURITY, 1 /* WEP */); in createAccessPointList()
251 accessPointList.add(new AccessPoint(mContext, bundle)); in createAccessPointList()
253 bundle.putString(KEY_SSID, "Test AP 2"); in createAccessPointList()
254 bundle.putInt(KEY_SECURITY, 1 /* WEP */); in createAccessPointList()
255 accessPointList.add(new AccessPoint(mContext, bundle)); in createAccessPointList()
257 bundle.putString(KEY_SSID, "Test AP 3"); in createAccessPointList()
258 bundle.putInt(KEY_SECURITY, 1 /* WEP */); in createAccessPointList()
259 accessPointList.add(new AccessPoint(mContext, bundle)); in createAccessPointList()
[all …]
/packages/apps/Car/Settings/src/com/android/car/settings/security/
DSettingsScreenLockActivity.java68 Bundle bundle = fragment.getArguments(); in getInitialFragment() local
69 if (bundle == null) { in getInitialFragment()
70 bundle = new Bundle(); in getInitialFragment()
72 bundle.putInt(ChooseLockTypeFragment.EXTRA_CURRENT_PASSWORD_QUALITY, mPasswordQuality); in getInitialFragment()
73 fragment.setArguments(bundle); in getInitialFragment()
80 Bundle bundle = fragment.getArguments(); in onLockVerified() local
81 if (bundle == null) { in onLockVerified()
82 bundle = new Bundle(); in onLockVerified()
84 bundle.putByteArray(PasswordHelper.EXTRA_CURRENT_SCREEN_LOCK, lock); in onLockVerified()
85 bundle.putInt(ChooseLockTypeFragment.EXTRA_CURRENT_PASSWORD_QUALITY, mPasswordQuality); in onLockVerified()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/clipping/
DRuntimeDocumentClipper.java137 PersistableBundle bundle = new PersistableBundle(); in createStandardClipData() local
138 bundle.putInt(OP_TYPE_KEY, opType); in createStandardClipData()
148 description.setExtras(bundle); in createStandardClipData()
176 PersistableBundle bundle = new PersistableBundle(); in createJumboClipData() local
177 bundle.putInt(OP_TYPE_KEY, opType); in createJumboClipData()
178 bundle.putInt(OP_JUMBO_SELECTION_SIZE, uris.size()); in createJumboClipData()
182 bundle.putInt(OP_JUMBO_SELECTION_TAG, tag); in createJumboClipData()
187 description.setExtras(bundle); in createJumboClipData()
212 PersistableBundle bundle = data.getDescription().getExtras(); in clipDocumentsForCut() local
213 bundle.putString(SRC_PARENT_KEY, parent.derivedUri.toString()); in clipDocumentsForCut()
[all …]
/packages/services/Telephony/tests/src/com/android/phone/
DCdmaOptionsTest.java34 PersistableBundle bundle = new PersistableBundle(); in shouldAddApnExpandPreference_doesNotExpandOnGsm() local
35 bundle.putBoolean(CarrierConfigManager.KEY_SHOW_APN_SETTING_CDMA_BOOL, true); in shouldAddApnExpandPreference_doesNotExpandOnGsm()
36 assertThat(CdmaOptions.shouldAddApnExpandPreference(PhoneConstants.PHONE_TYPE_GSM, bundle)) in shouldAddApnExpandPreference_doesNotExpandOnGsm()
42 PersistableBundle bundle = new PersistableBundle(); in shouldAddApnExpandPreference_showExpandOnCdma() local
43 bundle.putBoolean(CarrierConfigManager.KEY_SHOW_APN_SETTING_CDMA_BOOL, true); in shouldAddApnExpandPreference_showExpandOnCdma()
44 assertThat(CdmaOptions.shouldAddApnExpandPreference(PhoneConstants.PHONE_TYPE_CDMA, bundle)) in shouldAddApnExpandPreference_showExpandOnCdma()
50 PersistableBundle bundle = new PersistableBundle(); in shouldAddApnExpandPreference_doesNotExpandOnCdmaIfCarrierConfigDisabled() local
51 bundle.putBoolean(CarrierConfigManager.KEY_SHOW_APN_SETTING_CDMA_BOOL, false); in shouldAddApnExpandPreference_doesNotExpandOnCdmaIfCarrierConfigDisabled()
52 assertThat(CdmaOptions.shouldAddApnExpandPreference(PhoneConstants.PHONE_TYPE_CDMA, bundle)) in shouldAddApnExpandPreference_doesNotExpandOnCdmaIfCarrierConfigDisabled()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/accounts/
DAccountDetailsSettingControllerTest.java137 Bundle bundle = new Bundle(); in addExtraSettings_accountTypeNotEqual_shouldNotAddAnyPreferences() local
138 bundle.putString(METADATA_IA_ACCOUNT, NOT_MATCHING_ACCOUNT_TYPE); in addExtraSettings_accountTypeNotEqual_shouldNotAddAnyPreferences()
139 mPreferenceBundleMap.put(preference, bundle); in addExtraSettings_accountTypeNotEqual_shouldNotAddAnyPreferences()
151 Bundle bundle = new Bundle(); in addExtraSettings_accountTypeNotEqual_isNotVisible() local
152 bundle.putString(METADATA_IA_ACCOUNT, NOT_MATCHING_ACCOUNT_TYPE); in addExtraSettings_accountTypeNotEqual_isNotVisible()
153 mPreferenceBundleMap.put(preference, bundle); in addExtraSettings_accountTypeNotEqual_isNotVisible()
164 Bundle bundle = new Bundle(); in addExtraSettings_accountTypeEqual_shouldAddPreferences() local
165 bundle.putString(METADATA_IA_ACCOUNT, MATCHING_ACCOUNT_TYPE); in addExtraSettings_accountTypeEqual_shouldAddPreferences()
166 mPreferenceBundleMap.put(preference, bundle); in addExtraSettings_accountTypeEqual_shouldAddPreferences()
178 Bundle bundle = new Bundle(); in addExtraSettings_accountTypeEqual_isVisible() local
[all …]
/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 …]
/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/services/Car/car-lib/src/android/car/projection/
DProjectionOptions.java65 public ProjectionOptions(Bundle bundle) { in ProjectionOptions() argument
66 Bundle activityOptionsBundle = bundle.getBundle(KEY_ACTIVITY_OPTIONS); in ProjectionOptions()
69 mUiMode = bundle.getInt(KEY_UI_MODE, UI_MODE_DEFAULT); in ProjectionOptions()
70 mConsentActivity = bundle.getParcelable(KEY_CONSENT_ACTIVITY); in ProjectionOptions()
106 Bundle bundle = new Bundle(); in toBundle() local
108 bundle.putBundle(KEY_ACTIVITY_OPTIONS, mActivityOptions.toBundle()); in toBundle()
110 bundle.putParcelable(KEY_CONSENT_ACTIVITY, mConsentActivity); in toBundle()
112 bundle.putInt(KEY_UI_MODE, mUiMode); in toBundle()
114 return bundle; in toBundle()
/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/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/Settings/tests/robotests/src/com/android/settings/system/
DSystemUpdatePreferenceControllerTest.java134 final Bundle bundle = new Bundle(); in updateState_systemUpdateStatusUnknown_shouldSetToAndroidVersion() local
135 bundle.putInt(KEY_STATUS, STATUS_UNKNOWN); in updateState_systemUpdateStatusUnknown_shouldSetToAndroidVersion()
136 when(mSystemUpdateManager.retrieveSystemUpdateInfo()).thenReturn(bundle); in updateState_systemUpdateStatusUnknown_shouldSetToAndroidVersion()
149 final Bundle bundle = new Bundle(); in updateState_systemUpdateStatusIdle_shouldSetToAndroidVersion() local
150 bundle.putInt(KEY_STATUS, STATUS_IDLE); in updateState_systemUpdateStatusIdle_shouldSetToAndroidVersion()
151 bundle.putString(KEY_TITLE, testReleaseName); in updateState_systemUpdateStatusIdle_shouldSetToAndroidVersion()
152 when(mSystemUpdateManager.retrieveSystemUpdateInfo()).thenReturn(bundle); in updateState_systemUpdateStatusIdle_shouldSetToAndroidVersion()
162 final Bundle bundle = new Bundle(); in updateState_systemUpdateInProgress_shouldSetToUpdatePending() local
163 bundle.putInt(KEY_STATUS, STATUS_WAITING_DOWNLOAD); in updateState_systemUpdateInProgress_shouldSetToUpdatePending()
164 when(mSystemUpdateManager.retrieveSystemUpdateInfo()).thenReturn(bundle); in updateState_systemUpdateInProgress_shouldSetToUpdatePending()
/packages/services/Telephony/src/com/android/phone/
DGsmUmtsCallForwardOptions.java135 Bundle bundle = mIcicle.getParcelable(pref.getKey()); in onResume() local
136 pref.setToggled(bundle.getBoolean(KEY_TOGGLE)); in onResume()
137 pref.setEnabled(bundle.getBoolean(KEY_ENABLE)); in onResume()
139 cf.number = bundle.getString(KEY_NUMBER); in onResume()
140 cf.status = bundle.getInt(KEY_STATUS); in onResume()
155 Bundle bundle = new Bundle(); in onSaveInstanceState() local
156 bundle.putBoolean(KEY_TOGGLE, pref.isToggled()); in onSaveInstanceState()
157 bundle.putBoolean(KEY_ENABLE, pref.isEnabled()); in onSaveInstanceState()
159 bundle.putString(KEY_NUMBER, pref.callForwardInfo.number); in onSaveInstanceState()
160 bundle.putInt(KEY_STATUS, pref.callForwardInfo.status); in onSaveInstanceState()
[all …]

12345678910>>...17