Home
last modified time | relevance | path

Searched refs:bundle (Results 1 – 25 of 403) 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/apps/CertInstaller/src/com/android/certinstaller/
DCertInstallerMain.java91 Bundle bundle = intent.getExtras(); in onCreate() local
101 if (bundle != null && !installAsUserClassName.equals(calledClass)) { in onCreate()
102 bundle.remove(Credentials.EXTRA_INSTALL_AS_UID); in onCreate()
108 if (nullOrEmptyBundle(bundle) || bundleContainsNameOnly(bundle) in onCreate()
109 || bundleContainsInstallAsUidOnly(bundle) in onCreate()
110 || bundleContainsExtraCertificateUsageOnly(bundle)) { in onCreate()
113 if (installingCaCertificate(bundle)) { in onCreate()
126 private boolean nullOrEmptyBundle(Bundle bundle) { in nullOrEmptyBundle() argument
127 return bundle == null || bundle.isEmpty(); in nullOrEmptyBundle()
130 private boolean bundleContainsNameOnly(Bundle bundle) { in bundleContainsNameOnly() argument
[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.java93 final PersistableBundle bundle = new PersistableBundle(); in getAvailabilityStatus_cdmaWithFlagOff_returnUnavailable() local
94 bundle.putBoolean(CarrierConfigManager.KEY_CARRIER_SETTINGS_ENABLE_BOOL, false); in getAvailabilityStatus_cdmaWithFlagOff_returnUnavailable()
95 doReturn(bundle).when(mCarrierConfigManager).getConfigForSubId(SUB_ID); in getAvailabilityStatus_cdmaWithFlagOff_returnUnavailable()
103 final PersistableBundle bundle = new PersistableBundle(); in getAvailabilityStatus_cdmaWithFlagOnreturnAvailable() local
104 bundle.putBoolean(CarrierConfigManager.KEY_CARRIER_SETTINGS_ENABLE_BOOL, true); in getAvailabilityStatus_cdmaWithFlagOnreturnAvailable()
105 doReturn(bundle).when(mCarrierConfigManager).getConfigForSubId(SUB_ID); in getAvailabilityStatus_cdmaWithFlagOnreturnAvailable()
113 final PersistableBundle bundle = new PersistableBundle(); in getAvailabilityStatus_gsmWithFlagOnreturnAvailable() local
114 bundle.putBoolean(CarrierConfigManager.KEY_CARRIER_SETTINGS_ENABLE_BOOL, true); in getAvailabilityStatus_gsmWithFlagOnreturnAvailable()
115 doReturn(bundle).when(mCarrierConfigManager).getConfigForSubId(SUB_ID); in getAvailabilityStatus_gsmWithFlagOnreturnAvailable()
122 final PersistableBundle bundle = new PersistableBundle(); in handlePreferenceClick_activityFound_openCarrierSettingActivity() local
[all …]
DApnPreferenceControllerTest.java89 final PersistableBundle bundle = new PersistableBundle(); in getAvailabilityStatus_apnSettingsNotSupported_returnUnavailable() local
90 bundle.putBoolean(CarrierConfigManager.KEY_SHOW_APN_SETTING_CDMA_BOOL, false); in getAvailabilityStatus_apnSettingsNotSupported_returnUnavailable()
91 doReturn(bundle).when(mCarrierConfigManager).getConfigForSubId(SUB_ID); in getAvailabilityStatus_apnSettingsNotSupported_returnUnavailable()
99 final PersistableBundle bundle = new PersistableBundle(); in getAvailabilityStatus_apnSettingsSupportedWithCDMA_returnAvailable() local
100 bundle.putBoolean(CarrierConfigManager.KEY_SHOW_APN_SETTING_CDMA_BOOL, true); in getAvailabilityStatus_apnSettingsSupportedWithCDMA_returnAvailable()
101 doReturn(bundle).when(mCarrierConfigManager).getConfigForSubId(SUB_ID); in getAvailabilityStatus_apnSettingsSupportedWithCDMA_returnAvailable()
109 final PersistableBundle bundle = new PersistableBundle(); in getAvailabilityStatus_apnSettingsSupportedWithGsm_returnAvailable() local
110 bundle.putBoolean(CarrierConfigManager.KEY_APN_EXPAND_BOOL, true); in getAvailabilityStatus_apnSettingsSupportedWithGsm_returnAvailable()
111 doReturn(bundle).when(mCarrierConfigManager).getConfigForSubId(SUB_ID); in getAvailabilityStatus_apnSettingsSupportedWithGsm_returnAvailable()
128 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/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/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/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/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/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/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/
DTelephonyShellCommand.java805 PersistableBundle bundle = mCarrierConfigManager.getConfigForSubId(options.mSubId); in handleCcGetValue() local
806 if (bundle == null) { in handleCcGetValue()
815 if (!bundle.containsKey(key)) { in handleCcGetValue()
821 getOutPrintWriter().println(ccValueToString(key, getType(tag, key, bundle), bundle)); in handleCcGetValue()
825 TreeSet<String> sortedSet = new TreeSet<String>(bundle.keySet()); in handleCcGetValue()
827 getOutPrintWriter().println(ccValueToString(k, getType(tag, k, bundle), bundle)); in handleCcGetValue()
920 private CcType getType(String tag, String key, PersistableBundle bundle) { in getType() argument
922 Object value = bundle.get(key); in getType()
973 private String ccValueToString(String key, CcType type, PersistableBundle bundle) { in ccValueToString() argument
977 Object value = bundle.get(key); in ccValueToString()
[all …]
DCdmaCallForwardOptions.java163 Bundle bundle = mIcicle.getParcelable(pref.getKey()); in onResume() local
164 pref.setToggled(bundle.getBoolean(KEY_TOGGLE)); in onResume()
165 pref.setEnabled(bundle.getBoolean(KEY_ENABLE)); in onResume()
167 cf.number = bundle.getString(KEY_NUMBER); in onResume()
168 cf.status = bundle.getInt(KEY_STATUS); in onResume()
183 Bundle bundle = new Bundle(); in onSaveInstanceState() local
184 bundle.putBoolean(KEY_TOGGLE, pref.isToggled()); in onSaveInstanceState()
185 bundle.putBoolean(KEY_ENABLE, pref.isEnabled()); in onSaveInstanceState()
187 bundle.putString(KEY_NUMBER, pref.callForwardInfo.number); in onSaveInstanceState()
188 bundle.putInt(KEY_STATUS, pref.callForwardInfo.status); in onSaveInstanceState()
[all …]
DGsmUmtsCallForwardOptions.java154 Bundle bundle = mIcicle.getParcelable(pref.getKey()); in onResume() local
155 pref.setToggled(bundle.getBoolean(KEY_TOGGLE)); in onResume()
156 pref.setEnabled(bundle.getBoolean(KEY_ENABLE)); in onResume()
158 cf.number = bundle.getString(KEY_NUMBER); in onResume()
159 cf.status = bundle.getInt(KEY_STATUS); in onResume()
174 Bundle bundle = new Bundle(); in onSaveInstanceState() local
175 bundle.putBoolean(KEY_TOGGLE, pref.isToggled()); in onSaveInstanceState()
176 bundle.putBoolean(KEY_ENABLE, pref.isEnabled()); in onSaveInstanceState()
178 bundle.putString(KEY_NUMBER, pref.callForwardInfo.number); in onSaveInstanceState()
179 bundle.putInt(KEY_STATUS, pref.callForwardInfo.status); in onSaveInstanceState()
[all …]
/packages/apps/Contacts/tests/src/com/android/contacts/tests/testauth/
DTestAuthenticator.java67 final Bundle bundle = new Bundle(); in addAccount() local
75 bundle.putString(AccountManager.KEY_ACCOUNT_NAME, account.name); in addAccount()
76 bundle.putString(AccountManager.KEY_ACCOUNT_TYPE, account.type); in addAccount()
77 return bundle; in addAccount()
89 final Bundle bundle = new Bundle(); in getAuthToken() local
90 bundle.putString(AccountManager.KEY_ACCOUNT_NAME, account.name); in getAuthToken()
91 bundle.putString(AccountManager.KEY_ACCOUNT_TYPE, account.type); in getAuthToken()
92 bundle.putString(AccountManager.KEY_AUTHTOKEN, account.name); in getAuthToken()
94 return bundle; in getAuthToken()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/datausage/
DAppDataUsageFragmentTest.java88 Bundle bundle = mFragment.getBundle(); in onActivityCreated_policyIsNull_startAndEndDateShouldHaveFourWeeksDifference() local
89 long start = bundle.getLong(KEY_START); in onActivityCreated_policyIsNull_startAndEndDateShouldHaveFourWeeksDifference()
90 long end = bundle.getLong(KEY_END); in onActivityCreated_policyIsNull_startAndEndDateShouldHaveFourWeeksDifference()
105 Bundle bundle = mFragment.getBundle(); in onActivityCreated_iteratorIsEmpty_startAndEndDateShouldHaveFourWeeksDifference() local
106 long start = bundle.getLong(KEY_START); in onActivityCreated_iteratorIsEmpty_startAndEndDateShouldHaveFourWeeksDifference()
107 long end = bundle.getLong(KEY_END); in onActivityCreated_iteratorIsEmpty_startAndEndDateShouldHaveFourWeeksDifference()
133 Bundle bundle = mFragment.getBundle(); in onActivityCreated_iteratorIsNotEmpty_startAndEndDateShouldBeLastOneInIterator() local
134 long start = bundle.getLong(KEY_START); in onActivityCreated_iteratorIsNotEmpty_startAndEndDateShouldBeLastOneInIterator()
135 long end = bundle.getLong(KEY_END); in onActivityCreated_iteratorIsNotEmpty_startAndEndDateShouldBeLastOneInIterator()

12345678910>>...17