/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/model/ |
D | ProvisioningParams.java | 401 final PersistableBundle bundle = new PersistableBundle(); in toPersistableBundle() local 403 bundle.putLong(TAG_PROVISIONING_ID, provisioningId); in toPersistableBundle() 404 bundle.putString(EXTRA_PROVISIONING_TIME_ZONE, timeZone); in toPersistableBundle() 405 bundle.putLong(EXTRA_PROVISIONING_LOCAL_TIME, localTime); in toPersistableBundle() 406 bundle.putString(EXTRA_PROVISIONING_LOCALE, StoreUtils.localeToString(locale)); in toPersistableBundle() 407 putPersistableBundlableIfNotNull(bundle, TAG_WIFI_INFO, wifiInfo); in toPersistableBundle() 408 bundle.putBoolean(EXTRA_PROVISIONING_USE_MOBILE_DATA, useMobileData); in toPersistableBundle() 409 bundle.putString(EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_NAME, deviceAdminPackageName); in toPersistableBundle() 410 bundle.putString(EXTRA_PROVISIONING_DEVICE_ADMIN_COMPONENT_NAME, in toPersistableBundle() 412 bundle.putString(EXTRA_PROVISIONING_ORGANIZATION_NAME, organizationName); in toPersistableBundle() [all …]
|
D | WifiInfo.java | 141 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 …]
|
D | PackageDownloadInfo.java | 108 /* 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 …]
|
/packages/apps/Car/libs/car-messenger-common/src/com/android/car/messenger/common/ |
D | Conversation.java | 108 Bundle bundle = new Bundle(); in toBundle() local 109 bundle.putString(KEY_ID, mId); in toBundle() 110 bundle.putBundle(KEY_USER, mUser.toBundle()); in toBundle() 112 bundle.putString(KEY_TITLE, mConversationTitle); in toBundle() 115 bundle.putBundle(KEY_ICON, mConversationIcon.toBundle()); in toBundle() 117 bundle.putParcelableArray(KEY_MESSAGES, Message.getBundleArrayForMessages(mMessages)); in toBundle() 120 bundle.putParcelableArray(KEY_PARTICIPANTS, participantBundle); in toBundle() 122 bundle.putParcelableArray( in toBundle() 126 bundle.putInt(KEY_UNREAD_COUNT, mUnreadCount); in toBundle() 127 bundle.putBoolean(KEY_IS_MUTED, mIsMuted); in toBundle() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/ |
D | AdvancedPowerUsageDetailTest.java | 286 Bundle bundle = new Bundle(2); in testInitHeader_noUsageTimeAndGraphDisabled_hasCorrectSummary() local 287 bundle.putLong(AdvancedPowerUsageDetail.EXTRA_BACKGROUND_TIME, /* value */ 0); in testInitHeader_noUsageTimeAndGraphDisabled_hasCorrectSummary() 288 bundle.putLong(AdvancedPowerUsageDetail.EXTRA_FOREGROUND_TIME, /* value */ 0); in testInitHeader_noUsageTimeAndGraphDisabled_hasCorrectSummary() 289 when(mFragment.getArguments()).thenReturn(bundle); in testInitHeader_noUsageTimeAndGraphDisabled_hasCorrectSummary() 306 Bundle bundle = new Bundle(2); in testInitHeader_bgTwoMinFgZeroAndGraphDisabled_hasCorrectSummary() local 307 bundle.putLong(AdvancedPowerUsageDetail.EXTRA_BACKGROUND_TIME, backgroundTimeTwoMinutes); in testInitHeader_bgTwoMinFgZeroAndGraphDisabled_hasCorrectSummary() 308 bundle.putLong(AdvancedPowerUsageDetail.EXTRA_FOREGROUND_TIME, foregroundTimeZero); in testInitHeader_bgTwoMinFgZeroAndGraphDisabled_hasCorrectSummary() 309 when(mFragment.getArguments()).thenReturn(bundle); in testInitHeader_bgTwoMinFgZeroAndGraphDisabled_hasCorrectSummary() 326 Bundle bundle = new Bundle(2); in testInitHeader_bgLessThanAMinFgZeroAndGraphDisabled_hasCorrectSummary() local 327 bundle.putLong( in testInitHeader_bgLessThanAMinFgZeroAndGraphDisabled_hasCorrectSummary() [all …]
|
/packages/modules/ExtServices/java/tests/src/android/ext/services/autofill/ |
D | CreditCardMatcherTest.java | 52 final Bundle bundle = new Bundle(); in testCalculateScore_BadBundle() local 55 bundle.putInt(REQUIRED_ARG_MIN_CREDIT_CARD_LENGTH, -1); in testCalculateScore_BadBundle() 56 bundle.putInt(REQUIRED_ARG_MAX_CREDIT_CARD_LENGTH, -1); in testCalculateScore_BadBundle() 58 AutofillValue.forText("TEST"), "TEST", bundle)); in testCalculateScore_BadBundle() 61 bundle.putInt(REQUIRED_ARG_MIN_CREDIT_CARD_LENGTH, -1); in testCalculateScore_BadBundle() 62 bundle.putInt(REQUIRED_ARG_MAX_CREDIT_CARD_LENGTH, 1); in testCalculateScore_BadBundle() 64 AutofillValue.forText("TEST"), "TEST", bundle)); in testCalculateScore_BadBundle() 67 bundle.putInt(REQUIRED_ARG_MIN_CREDIT_CARD_LENGTH, 1); in testCalculateScore_BadBundle() 68 bundle.putInt(REQUIRED_ARG_MAX_CREDIT_CARD_LENGTH, -1); in testCalculateScore_BadBundle() 70 AutofillValue.forText("TEST"), "TEST", bundle)); in testCalculateScore_BadBundle() [all …]
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/common/ |
D | ExtraSettingsLoaderTest.java | 77 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/audio_util/helpers/ |
D | Metadata.java | 188 public Builder fromBundle(Bundle bundle) { in fromBundle() argument 189 if (bundle == null) return this; in fromBundle() 190 if (bundle.containsKey(MediaMetadata.METADATA_KEY_MEDIA_ID)) { in fromBundle() 191 mMetadata.mediaId = bundle.getString(MediaMetadata.METADATA_KEY_MEDIA_ID); in fromBundle() 193 if (bundle.containsKey(MediaMetadata.METADATA_KEY_TITLE)) { in fromBundle() 194 mMetadata.title = bundle.getString(MediaMetadata.METADATA_KEY_TITLE); in fromBundle() 196 if (bundle.containsKey(MediaMetadata.METADATA_KEY_ARTIST)) { in fromBundle() 197 mMetadata.artist = bundle.getString(MediaMetadata.METADATA_KEY_ARTIST); in fromBundle() 199 if (bundle.containsKey(MediaMetadata.METADATA_KEY_ALBUM)) { in fromBundle() 200 mMetadata.album = bundle.getString(MediaMetadata.METADATA_KEY_ALBUM); in fromBundle() [all …]
|
/packages/apps/CertInstaller/src/com/android/certinstaller/ |
D | CertInstallerMain.java | 88 Bundle bundle = intent.getExtras(); in onCreate() local 98 if (bundle != null && !installAsUserClassName.equals(calledClass)) { in onCreate() 99 bundle.remove(Credentials.EXTRA_INSTALL_AS_UID); in onCreate() 105 if (nullOrEmptyBundle(bundle) || bundleContainsNameOnly(bundle) in onCreate() 106 || bundleContainsInstallAsUidOnly(bundle) in onCreate() 107 || bundleContainsExtraCertificateUsageOnly(bundle)) { in onCreate() 110 if (installingCaCertificate(bundle)) { in onCreate() 123 private boolean nullOrEmptyBundle(Bundle bundle) { in nullOrEmptyBundle() argument 124 return bundle == null || bundle.isEmpty(); in nullOrEmptyBundle() 127 private boolean bundleContainsNameOnly(Bundle bundle) { in bundleContainsNameOnly() argument [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/p2p/ |
D | WifiP2pSettingsTest.java | 122 final Bundle bundle = new Bundle(); in onActivityCreate_withDeviceName_shouldGetDeviceName() local 123 bundle.putString(WifiP2pSettings.SAVE_DEVICE_NAME, fakeDeviceName); in onActivityCreate_withDeviceName_shouldGetDeviceName() 125 mFragment.onActivityCreated(bundle); in onActivityCreate_withDeviceName_shouldGetDeviceName() 133 final Bundle bundle = new Bundle(); in onActivityCreate_withGroupName_shouldGetGroupName() local 134 bundle.putString(WifiP2pSettings.SAVE_SELECTED_GROUP, fakeGroupName); in onActivityCreate_withGroupName_shouldGetGroupName() 136 mFragment.onActivityCreated(bundle); in onActivityCreate_withGroupName_shouldGetGroupName() 149 final Bundle bundle = new Bundle(); in beSearching_getP2pStateEnabledIntent_shouldBeFalse() local 151 bundle.putInt(WifiP2pManager.EXTRA_WIFI_STATE, WifiP2pManager.WIFI_P2P_STATE_ENABLED); in beSearching_getP2pStateEnabledIntent_shouldBeFalse() 152 intent.putExtras(bundle); in beSearching_getP2pStateEnabledIntent_shouldBeFalse() 162 final Bundle bundle = new Bundle(); in withEmptyP2pDeviceList_getP2pPeerChangeIntent_connectedDevicesShouldBeZero() local [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/core/ |
D | PreferenceXmlParserUtilsTest.java | 186 for (Bundle bundle : metadata) { in extractMetadata_shouldContainKeyAndControllerName() 187 assertThat(bundle.getString(PreferenceXmlParserUtils.METADATA_KEY)).isNotNull(); in extractMetadata_shouldContainKeyAndControllerName() 188 assertThat(bundle.getString(PreferenceXmlParserUtils.METADATA_CONTROLLER)).isNotNull(); in extractMetadata_shouldContainKeyAndControllerName() 198 for (Bundle bundle : metadata) { in extractMetadata_requestTitle_shouldContainTitle() 199 assertThat(bundle.getString(PreferenceXmlParserUtils.METADATA_TITLE)).isNotNull(); in extractMetadata_requestTitle_shouldContainTitle() 209 for (Bundle bundle : metadata) { in extractMetadata_requestSummary_shouldContainSummary() 210 assertThat(bundle.getString(PreferenceXmlParserUtils.METADATA_SUMMARY)).isNotNull(); in extractMetadata_requestSummary_shouldContainSummary() 220 for (Bundle bundle : metadata) { in extractMetadata_requestIcon_shouldContainIcon() 221 assertThat(bundle.getInt(PreferenceXmlParserUtils.METADATA_ICON)).isNotEqualTo(0); in extractMetadata_requestIcon_shouldContainIcon() 231 for (Bundle bundle : metadata) { in extractMetadata_requestPrefType_shouldContainPrefType() [all …]
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/ |
D | StoreUtils.java | 58 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/ |
D | DirectoryState.java | 51 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/Bluetooth/tests/unit/src/com/android/bluetooth/audio_util/ |
D | MetadataTest.java | 217 Bundle bundle = new Bundle(); in getBundle() local 218 bundle.putString(MediaMetadata.METADATA_KEY_MEDIA_ID, SONG_MEDIA_ID); in getBundle() 219 bundle.putString(MediaMetadata.METADATA_KEY_TITLE, SONG_TITLE); in getBundle() 220 bundle.putString(MediaMetadata.METADATA_KEY_ARTIST, SONG_ARTIST); in getBundle() 221 bundle.putString(MediaMetadata.METADATA_KEY_ALBUM, SONG_ALBUM); in getBundle() 222 bundle.putLong(MediaMetadata.METADATA_KEY_TRACK_NUMBER, Long.parseLong(SONG_TRACK_NUM)); in getBundle() 223 bundle.putLong(MediaMetadata.METADATA_KEY_NUM_TRACKS, Long.parseLong(SONG_NUM_TRACKS)); in getBundle() 224 bundle.putString(MediaMetadata.METADATA_KEY_GENRE, SONG_GENRE); in getBundle() 225 bundle.putLong(MediaMetadata.METADATA_KEY_DURATION, Long.parseLong(SONG_DURATION)); in getBundle() 226 return bundle; in getBundle() [all …]
|
/packages/services/Iwlan/test/com/google/android/iwlan/ |
D | ErrorPolicyManagerTest.java | 139 PersistableBundle bundle = new PersistableBundle(); in testValidCarrierConfig() local 140 bundle.putString(ErrorPolicyManager.KEY_ERROR_POLICY_CONFIG_STRING, config); in testValidCarrierConfig() 141 setupMockForCarrierConfig(bundle); in testValidCarrierConfig() 210 PersistableBundle bundle = new PersistableBundle(); in testInvalidCarrierConfig() local 211 bundle.putString(ErrorPolicyManager.KEY_ERROR_POLICY_CONFIG_STRING, config); in testInvalidCarrierConfig() 212 setupMockForCarrierConfig(bundle); in testInvalidCarrierConfig() 255 PersistableBundle bundle = new PersistableBundle(); in testChoosingFallbackPolicy() local 256 bundle.putString(ErrorPolicyManager.KEY_ERROR_POLICY_CONFIG_STRING, config); in testChoosingFallbackPolicy() 257 setupMockForCarrierConfig(bundle); in testChoosingFallbackPolicy() 309 PersistableBundle bundle = new PersistableBundle(); in testCanBringUpTunnel() local [all …]
|
/packages/apps/Settings/tests/unit/src/com/android/settings/network/telephony/ |
D | CarrierPreferenceControllerTest.java | 97 final PersistableBundle bundle = new PersistableBundle(); in getAvailabilityStatus_cdmaWithFlagOff_returnUnavailable() local 98 bundle.putBoolean(CarrierConfigManager.KEY_CARRIER_SETTINGS_ENABLE_BOOL, false); in getAvailabilityStatus_cdmaWithFlagOff_returnUnavailable() 99 doReturn(bundle).when(mCarrierConfigManager).getConfigForSubId(SUB_ID); in getAvailabilityStatus_cdmaWithFlagOff_returnUnavailable() 107 final PersistableBundle bundle = new PersistableBundle(); in getAvailabilityStatus_cdmaWithFlagOnreturnAvailable() local 108 bundle.putBoolean(CarrierConfigManager.KEY_CARRIER_SETTINGS_ENABLE_BOOL, true); in getAvailabilityStatus_cdmaWithFlagOnreturnAvailable() 109 doReturn(bundle).when(mCarrierConfigManager).getConfigForSubId(SUB_ID); in getAvailabilityStatus_cdmaWithFlagOnreturnAvailable() 117 final PersistableBundle bundle = new PersistableBundle(); in getAvailabilityStatus_gsmWithFlagOnreturnAvailable() local 118 bundle.putBoolean(CarrierConfigManager.KEY_CARRIER_SETTINGS_ENABLE_BOOL, true); in getAvailabilityStatus_gsmWithFlagOnreturnAvailable() 119 doReturn(bundle).when(mCarrierConfigManager).getConfigForSubId(SUB_ID); in getAvailabilityStatus_gsmWithFlagOnreturnAvailable() 126 final PersistableBundle bundle = new PersistableBundle(); in handlePreferenceClick_activityFound_openCarrierSettingActivity() local [all …]
|
D | ApnPreferenceControllerTest.java | 91 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() 129 final PersistableBundle bundle = new PersistableBundle(); in getAvailabilityStatus_hideCarrierNetworkSettings_returnUnavailable() local [all …]
|
/packages/apps/Contacts/tests/src/com/android/contacts/group/ |
D | GroupUtilTest.java | 50 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/WallpaperPicker2/src/com/android/wallpaper/util/ |
D | SurfaceViewUtils.java | 35 Bundle bundle = new Bundle(); in createSurfaceViewRequest() local 36 bundle.putBinder(KEY_HOST_TOKEN, surfaceView.getHostToken()); in createSurfaceViewRequest() 37 bundle.putInt(KEY_DISPLAY_ID, surfaceView.getDisplay().getDisplayId()); in createSurfaceViewRequest() 38 bundle.putInt(KEY_VIEW_WIDTH, surfaceView.getWidth()); in createSurfaceViewRequest() 39 bundle.putInt(KEY_VIEW_HEIGHT, surfaceView.getHeight()); in createSurfaceViewRequest() 40 return bundle; in createSurfaceViewRequest() 44 public static SurfaceControlViewHost.SurfacePackage getSurfacePackage(Bundle bundle) { in getSurfacePackage() argument 45 return bundle.getParcelable(KEY_SURFACE_PACKAGE); in getSurfacePackage() 49 public static Message getCallback(Bundle bundle) { in getCallback() argument 50 return bundle.getParcelable(KEY_CALLBACK); in getCallback()
|
/packages/apps/Car/libs/car-ui-lib/paintbooth/src/main/java/com/android/car/ui/paintbooth/widescreenime/ |
D | WideScreenImeActivity.java | 160 Bundle bundle = new Bundle(); in addIconToExtractedView() local 161 bundle.putInt(WIDE_SCREEN_EXTRACTED_TEXT_ICON_RES_ID, R.drawable.car_ui_icon_edit); in addIconToExtractedView() 162 mInputMethodManager.sendAppPrivateCommand(view, WIDE_SCREEN_ACTION, bundle); in addIconToExtractedView() 170 Bundle bundle = new Bundle(); in addErrorDescToContentArea() local 171 bundle.putString(ADD_ERROR_DESC_TO_INPUT_AREA, "Some error message"); in addErrorDescToContentArea() 172 bundle.putString(ADD_DESC_TITLE_TO_CONTENT_AREA, "Title"); in addErrorDescToContentArea() 173 bundle.putString(ADD_DESC_TO_CONTENT_AREA, "Description provided by the application"); in addErrorDescToContentArea() 174 mInputMethodManager.sendAppPrivateCommand(view, WIDE_SCREEN_ACTION, bundle); in addErrorDescToContentArea() 185 Bundle bundle = new Bundle(); in hideExtractionView() local 186 bundle.putBoolean(REQUEST_RENDER_CONTENT_AREA, false); in hideExtractionView() [all …]
|
/packages/apps/DocumentsUI/src/com/android/documentsui/clipping/ |
D | RuntimeDocumentClipper.java | 137 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/unit/src/com/android/car/settings/common/ |
D | ExtraSettingsLoaderTest.java | 107 Bundle bundle = new Bundle(); in testLoadPreference_uriResources_shouldNotLoadStaticResources() local 108 bundle.putString(META_DATA_PREFERENCE_TITLE, FAKE_TITLE); in testLoadPreference_uriResources_shouldNotLoadStaticResources() 109 bundle.putString(META_DATA_PREFERENCE_SUMMARY, FAKE_SUMMARY); in testLoadPreference_uriResources_shouldNotLoadStaticResources() 110 bundle.putString(META_DATA_PREFERENCE_CATEGORY, FAKE_CATEGORY); in testLoadPreference_uriResources_shouldNotLoadStaticResources() 111 bundle.putString(META_DATA_PREFERENCE_TITLE_URI, TEST_CONTENT_PROVIDER); in testLoadPreference_uriResources_shouldNotLoadStaticResources() 112 bundle.putString(META_DATA_PREFERENCE_SUMMARY_URI, TEST_CONTENT_PROVIDER); in testLoadPreference_uriResources_shouldNotLoadStaticResources() 113 bundle.putString(META_DATA_PREFERENCE_ICON_URI, TEST_CONTENT_PROVIDER); in testLoadPreference_uriResources_shouldNotLoadStaticResources() 116 bundle, /* isSystem= */ true); in testLoadPreference_uriResources_shouldNotLoadStaticResources() 225 Bundle bundle = new Bundle(); in testLoadPreference_isTopLevel_topLevelMetadataSet() local 226 bundle.putString(META_DATA_PREFERENCE_TITLE, FAKE_TITLE); in testLoadPreference_isTopLevel_topLevelMetadataSet() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/dashboard/profileselector/ |
D | ProfileSelectFragmentTest.java | 79 final Bundle bundle = new Bundle(); in getTabId_setArgumentWork_setCorrectTab() local 80 bundle.putInt(SettingsActivity.EXTRA_SHOW_FRAGMENT_TAB, WORK_TAB); in getTabId_setArgumentWork_setCorrectTab() 82 assertThat(mFragment.getTabId(mActivity, bundle)).isEqualTo(WORK_TAB); in getTabId_setArgumentWork_setCorrectTab() 87 final Bundle bundle = new Bundle(); in getTabId_setArgumentPersonal_setCorrectTab() local 88 bundle.putInt(SettingsActivity.EXTRA_SHOW_FRAGMENT_TAB, PERSONAL_TAB); in getTabId_setArgumentPersonal_setCorrectTab() 90 assertThat(mFragment.getTabId(mActivity, bundle)).isEqualTo(PERSONAL_TAB); in getTabId_setArgumentPersonal_setCorrectTab() 95 final Bundle bundle = new Bundle(); in getTabId_setWorkId_getCorrectTab() local 96 bundle.putInt(EXTRA_USER_ID, 10); in getTabId_setWorkId_getCorrectTab() 101 assertThat(mFragment.getTabId(mActivity, bundle)).isEqualTo(WORK_TAB); in getTabId_setWorkId_getCorrectTab() 106 final Bundle bundle = new Bundle(); in getTabId_setPersonalId_getCorrectTab() local [all …]
|
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/androidTest/java/com/android/car/ui/imewidescreen/ |
D | CarUiImeWideScreenControllerTest.java | 226 Bundle bundle = new Bundle(); in onComputeInsets_hideContentArea_shouldUpdateRegionAsTouchable() local 227 bundle.putBoolean(REQUEST_RENDER_CONTENT_AREA, false); in onComputeInsets_hideContentArea_shouldUpdateRegionAsTouchable() 228 carUiImeWideScreenController.onAppPrivateCommand(WIDE_SCREEN_ACTION, bundle); in onComputeInsets_hideContentArea_shouldUpdateRegionAsTouchable() 249 Bundle bundle = new Bundle(); in onAppPrivateCommand_shouldShowTitleAndDesc() local 250 bundle.putString(ADD_DESC_TITLE_TO_CONTENT_AREA, "Title"); in onAppPrivateCommand_shouldShowTitleAndDesc() 251 bundle.putString(ADD_DESC_TO_CONTENT_AREA, "Description"); in onAppPrivateCommand_shouldShowTitleAndDesc() 252 sCarUiImeWideScreenController.onAppPrivateCommand(WIDE_SCREEN_ACTION, bundle); in onAppPrivateCommand_shouldShowTitleAndDesc() 273 Bundle bundle = new Bundle(); in onAppPrivateCommand_shouldShowErrorMessage() local 274 bundle.putString(ADD_ERROR_DESC_TO_INPUT_AREA, "Error Message"); in onAppPrivateCommand_shouldShowErrorMessage() 275 sCarUiImeWideScreenController.onAppPrivateCommand(WIDE_SCREEN_ACTION, bundle); in onAppPrivateCommand_shouldShowErrorMessage() [all …]
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/preprovisioning/ |
D | PreProvisioningActivityControllerTest.java | 744 Bundle bundle = mController.getAdditionalExtrasForGetProvisioningModeIntent(); in testGetAdditionalExtrasForGetProvisioningModeIntent_orgDevice_exactExtras() local 746 assertThat(bundle.size()).isEqualTo(5); in testGetAdditionalExtrasForGetProvisioningModeIntent_orgDevice_exactExtras() 761 Bundle bundle = mController.getAdditionalExtrasForGetProvisioningModeIntent(); in testGetAdditionalExtrasForGetProvisioningModeIntent_orgDevice_imeiPassed() local 763 assertThat(bundle.getString(EXTRA_PROVISIONING_IMEI)).isEqualTo(TEST_IMEI); in testGetAdditionalExtrasForGetProvisioningModeIntent_orgDevice_imeiPassed() 778 Bundle bundle = mController.getAdditionalExtrasForGetProvisioningModeIntent(); in testGetAdditionalExtrasForGetProvisioningModeIntent_orgDevice_serialNumberPassed() local 780 assertThat(bundle.containsKey(EXTRA_PROVISIONING_SERIAL_NUMBER)).isTrue(); in testGetAdditionalExtrasForGetProvisioningModeIntent_orgDevice_serialNumberPassed() 794 Bundle bundle = mController.getAdditionalExtrasForGetProvisioningModeIntent(); in testGetAdditionalExtrasForGetProvisioningModeIntent_nonOrgDevice_adminBundlePassed() local 796 assertThat(bundle.keySet()).contains(EXTRA_PROVISIONING_ADMIN_EXTRAS_BUNDLE); in testGetAdditionalExtrasForGetProvisioningModeIntent_nonOrgDevice_adminBundlePassed() 797 assertThat((PersistableBundle) bundle.getParcelable(EXTRA_PROVISIONING_ADMIN_EXTRAS_BUNDLE)) in testGetAdditionalExtrasForGetProvisioningModeIntent_nonOrgDevice_adminBundlePassed() 812 Bundle bundle = mController.getAdditionalExtrasForGetProvisioningModeIntent(); in testGetAdditionalExtrasForGetProvisioningModeIntent_nonOrgDevice_allowedModesPassed() local [all …]
|