/packages/apps/Car/libs/car-stream-lib/src/com/android/car/stream/ |
H A D | MediaPlaybackExtension.java | 154 protected void writeToBundle(Bundle bundle) { argument 155 bundle.putString(TITLE_KEY, mTitle); 156 bundle.putString(SUBTITLE_KEY, mSubTitle); 157 bundle.putParcelable(ALBUM_ART_ICON_KEY, mAlbumArt); 158 bundle.putBoolean(CAN_SKIP_TO_NEXT_KEY, mCanSkipToNext); 159 bundle.putBoolean(CAN_SKIP_TO_PREV_KEY, mCanSkipToPrevious); 160 bundle.putBoolean(HAS_PAUSE_KEY, mHasPause); 161 bundle.putBoolean(IS_PLAYING_KEY, mIsPlaying); 162 bundle.putInt(ACCENT_COLOR_KEY, mAppAccentColor); 163 bundle 173 readFromBundle(Bundle bundle) argument [all...] |
H A D | CurrentCallExtension.java | 77 protected void writeToBundle(Bundle bundle) { argument 78 bundle.putString(DISPLAY_NAME_KEY, mDisplayName); 79 bundle.putInt(CALL_STATE_KEY, mCallState); 80 bundle.putBoolean(IS_MUTED_KEY, mIsMuted); 81 bundle.putParcelable(CONTACT_PHOTO_KEY, mContactPhoto); 82 bundle.putLong(CALL_START_TIME_KEY_KEY, mCallStartTime); 84 bundle.putParcelable(MUTE_ACTION_KEY, mMuteAction); 85 bundle.putParcelable(UNMUTE_ACTION_KEY, mUnMuteAction); 86 bundle.putParcelable(ACCEPT_CALL_ACTION_KEY, mAcceptCallAction); 87 bundle 91 readFromBundle(Bundle bundle) argument [all...] |
H A D | AbstractBundleable.java | 47 * protected void writeToBundle(Bundle bundle) { 48 * bundle.putInt(FIRST_FIELD_KEY, mFirstField); 52 * bundle.putBundle(CUSTOM_FIELD_KEY, customFieldBundle); 54 * bundle.putParcelable(INTENT_KEY, mIntent); 58 * protected void readFromBundle(Bundle bundle) { 59 * mFirstField = bundle.getInt(FIRST_FIELD_KEY); 60 * Bundle customFieldBundle = bundle.getBundle(CUSTOM_FIELD_KEY); 65 * mIntent = bundle.getParcelable(INTENT_KEY); 114 Bundle bundle = new Bundle(); 115 writeToBundle(bundle); 132 writeToBundle(Bundle bundle) argument 138 readFromBundle(Bundle bundle) argument [all...] |
H A D | StreamCard.java | 93 protected void writeToBundle(Bundle bundle) { argument 94 bundle.putInt(TYPE_KEY, mType); 95 bundle.putLong(ID_KEY, mId); 96 bundle.putInt(PRIORITY_KEY, mPriority); 97 bundle.putLong(TIMESTAMP_KEY, mTimestamp); 98 bundle.putParcelable(CONTENT_PENDING_INTENT_KEY, mContentPendingIntent); 101 bundle.putParcelable(PRIMARY_ICON_KEY, mPrimaryIcon); 102 bundle.putParcelable(SECONDARY_ICON_KEY, mSecondaryIcon); 103 bundle.putString(DESCRIPTION_KEY, mDescription); 104 bundle 116 readFromBundle(Bundle bundle) argument 130 extractExtension(Bundle bundle) argument [all...] |
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/ |
H A D | DirectoryState.java | 46 public void restore(Bundle bundle) { argument 47 mRoot = bundle.getParcelable(Shared.EXTRA_ROOT); 48 mDocument = bundle.getParcelable(Shared.EXTRA_DOC); 49 mPendingOperation = bundle.getParcelable(FileOperationService.EXTRA_OPERATION); 50 mLastSortDimensionId = bundle.getInt(EXTRA_SORT_DIMENSION_ID); 51 mLastSortDirection = bundle.getInt(EXTRA_SORT_DIRECTION); 54 public void save(Bundle bundle) { argument 55 bundle.putParcelable(Shared.EXTRA_ROOT, mRoot); 56 bundle.putParcelable(Shared.EXTRA_DOC, mDocument); 57 bundle [all...] |
/packages/apps/Contacts/src/com/android/contacts/util/ |
H A D | DialogManager.java | 65 * The View needs to have a valid and unique Id. This function modifies the bundle by adding a 68 public void showDialogInView(final View view, final Bundle bundle) { argument 70 if (bundle.containsKey(VIEW_ID_KEY)) { 76 bundle.putInt(VIEW_ID_KEY, viewId); 78 mActivity.showDialog(dialogId, bundle); 85 public Dialog onCreateDialog(final int id, final Bundle bundle) { argument 93 if (!bundle.containsKey(VIEW_ID_KEY)) { 96 final int viewId = bundle.getInt(VIEW_ID_KEY); 101 final Dialog dialog = ((DialogShowingView)view).createDialog(bundle); 123 Dialog createDialog(Bundle bundle); argument [all...] |
/packages/apps/Contacts/tests/src/com/android/contacts/group/ |
H A D | GroupUtilTest.java | 50 final Bundle bundle = new Bundle(); 57 GroupUtil.updateBundle(bundle, indexer, subscriptsList, sections, counts); 62 assertNotNull(bundle.getStringArray(Contacts.EXTRA_ADDRESS_BOOK_INDEX_TITLES)); 63 MoreAsserts.assertEquals("Wrong sections!", newSections, bundle.getStringArray(Contacts 66 assertNotNull(bundle.getIntArray(Contacts.EXTRA_ADDRESS_BOOK_INDEX_COUNTS)); 67 MoreAsserts.assertEquals("Wrong counts!", newCounts, bundle.getIntArray(Contacts 72 final Bundle bundle = new Bundle(); 105 GroupUtil.updateBundle(bundle, indexer, subscriptsList, sections, counts); 111 assertNotNull(bundle.getStringArray(Contacts.EXTRA_ADDRESS_BOOK_INDEX_TITLES)); 112 MoreAsserts.assertEquals("Wrong sections!", newSections, bundle [all...] |
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/model/ |
H A D | PackageDownloadInfo.java | 118 /* package */ static PackageDownloadInfo fromPersistableBundle(PersistableBundle bundle) { argument 119 return createBuilderFromPersistableBundle(bundle).build(); 122 private static Builder createBuilderFromPersistableBundle(PersistableBundle bundle) { argument 124 builder.setMinVersion(bundle.getInt(EXTRA_PROVISIONING_DEVICE_ADMIN_MINIMUM_VERSION_CODE)); 125 builder.setLocation(bundle.getString( 127 builder.setCookieHeader(bundle.getString( 129 builder.setPackageChecksum(StoreUtils.stringToByteArray(bundle.getString( 131 builder.setSignatureChecksum(StoreUtils.stringToByteArray(bundle.getString( 133 builder.setPackageChecksumSupportsSha1(bundle.getBoolean( 140 final PersistableBundle bundle [all...] |
H A D | WifiInfo.java | 89 final PersistableBundle bundle = new PersistableBundle(); 90 bundle.putString(EXTRA_PROVISIONING_WIFI_SSID, ssid); 91 bundle.putBoolean(EXTRA_PROVISIONING_WIFI_HIDDEN, hidden); 92 bundle.putString(EXTRA_PROVISIONING_WIFI_SECURITY_TYPE, securityType); 93 bundle.putString(EXTRA_PROVISIONING_WIFI_PASSWORD, password); 94 bundle.putString(EXTRA_PROVISIONING_WIFI_PROXY_HOST, proxyHost); 95 bundle.putInt(EXTRA_PROVISIONING_WIFI_PROXY_PORT, proxyPort); 96 bundle.putString(EXTRA_PROVISIONING_WIFI_PROXY_BYPASS, proxyBypassHosts); 97 bundle.putString(EXTRA_PROVISIONING_WIFI_PAC_URL, pacUrl); 98 return bundle; 101 fromPersistableBundle(PersistableBundle bundle) argument 105 createBuilderFromPersistableBundle(PersistableBundle bundle) argument [all...] |
H A D | ProvisioningParams.java | 254 final PersistableBundle bundle = new PersistableBundle(); 256 bundle.putLong(TAG_PROVISIONING_ID, provisioningId); 257 bundle.putString(EXTRA_PROVISIONING_TIME_ZONE, timeZone); 258 bundle.putLong(EXTRA_PROVISIONING_LOCAL_TIME, localTime); 259 bundle.putString(EXTRA_PROVISIONING_LOCALE, StoreUtils.localeToString(locale)); 260 putPersistableBundlableIfNotNull(bundle, TAG_WIFI_INFO, wifiInfo); 261 bundle.putString(EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_NAME, deviceAdminPackageName); 262 bundle.putString(EXTRA_PROVISIONING_DEVICE_ADMIN_COMPONENT_NAME, 264 bundle.putString(EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_LABEL, deviceAdminLabel); 265 bundle 288 fromPersistableBundle(PersistableBundle bundle) argument 292 createBuilderFromPersistableBundle(PersistableBundle bundle) argument [all...] |
H A D | DisclaimersParam.java | 59 public static DisclaimersParam fromPersistableBundle(PersistableBundle bundle) { argument 60 return createBuilderFromPersistableBundle(bundle).build(); 63 private static Builder createBuilderFromPersistableBundle(PersistableBundle bundle) { argument 64 String[] headers = bundle.getStringArray(HEADER_KEY); 65 String[] contentPaths = bundle.getStringArray(CONTENT_PATH_KEY); 88 final PersistableBundle bundle = new PersistableBundle(); 96 bundle.putStringArray(HEADER_KEY, headers); 97 bundle.putStringArray(CONTENT_PATH_KEY, contentPaths); 99 return bundle;
|
/packages/apps/Messaging/src/com/android/messaging/ui/ |
H A D | LicenseActivity.java | 29 public void onCreate(final Bundle bundle) { argument 30 super.onCreate(bundle);
|
/packages/apps/DeskClock/src/com/android/deskclock/alarms/dataadapter/ |
H A D | AlarmItemHolder.java | 73 public void onSaveInstanceState(Bundle bundle) { argument 74 super.onSaveInstanceState(bundle); 75 bundle.putBoolean(EXPANDED_KEY, mExpanded); 79 public void onRestoreInstanceState(Bundle bundle) { argument 80 super.onRestoreInstanceState(bundle); 81 mExpanded = bundle.getBoolean(EXPANDED_KEY);
|
/packages/services/Car/car-lib/src/android/car/cluster/ |
H A D | ClusterActivityState.java | 25 * to/from bundle. 55 public ClusterActivityState setExtras(Bundle bundle) { argument 56 mExtras = bundle; 69 public static ClusterActivityState fromBundle(Bundle bundle) { argument 71 .setVisible(bundle.getBoolean(KEY_VISIBLE, true)) 72 .setUnobscuredBounds((Rect) bundle.getParcelable(KEY_UNOBSCURED_BOUNDS)) 73 .setExtras(bundle.getBundle(KEY_EXTRAS));
|
/packages/apps/Dialer/java/com/android/dialer/callcomposer/cameraui/ |
H A D | CameraMediaChooserView.java | 47 final Bundle bundle = new Bundle(); 48 bundle.putParcelable(STATE_SUPER, super.onSaveInstanceState()); 51 bundle.putInt(STATE_CAMERA_INDEX, cameraIndex); 52 return bundle; 61 final Bundle bundle = (Bundle) state; 62 final int cameraIndex = bundle.getInt(STATE_CAMERA_INDEX); 63 super.onRestoreInstanceState(bundle.getParcelable(STATE_SUPER));
|
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/ |
H A D | CarNavigationManagerTest.java | 90 Bundle bundle = new Bundle(); 91 bundle.putInt("BUNDLE_INTEGER_VALUE", 1234); 92 bundle.putFloat("BUNDLE_FLOAT_VALUE", 12.3456f); 93 bundle.putStringArrayList("BUNDLE_ARRAY_OF_STRINGS", 97 (CarNavigationStatusManager.EVENT_TYPE_NEXT_MANEUVER_INFO, bundle);
|
/packages/apps/Car/Settings/src/com/android/car/settings/common/ |
H A D | ListSettingsFragment.java | 38 Bundle bundle = BaseFragment.getBundle(); 39 bundle.putInt(EXTRA_LAYOUT, R.layout.list); 40 return bundle;
|
/packages/apps/Car/Settings/src/com/android/car/settings/display/ |
H A D | DisplaySettingsFragment.java | 33 Bundle bundle = ListSettingsFragment.getBundle(); 34 bundle.putInt(EXTRA_TITLE_ID, R.string.display_settings); 35 displaySettingsFragment.setArguments(bundle);
|
/packages/apps/Car/Settings/src/com/android/car/settings/system/ |
H A D | SystemSettingsFragment.java | 34 Bundle bundle = ListSettingsFragment.getBundle(); 35 bundle.putInt(EXTRA_TITLE_ID, R.string.system_setting_title); 36 systemSettingsFragment.setArguments(bundle);
|
/packages/apps/Dialer/java/com/android/dialer/simulator/impl/ |
H A D | SimulatorVoiceCall.java | 33 Bundle bundle = new Bundle(); 35 bundle.putString(TelephonyManager.EXTRA_INCOMING_NUMBER, "+44 (0) 20 7031 3000"); 40 SimulatorConnectionService.getConnectionServiceHandle(context), bundle);
|
/packages/apps/Settings/src/com/android/settings/applications/ |
H A D | ShortcutPreference.java | 44 Bundle bundle = new Bundle(); 45 bundle.putString(SettingsActivity.EXTRA_FRAGMENT_ARG_KEY, mPrefKey); 46 Utils.startWithFragment(getContext(), mTarget.getName(), bundle, null, 0,
|
/packages/apps/Dialer/java/com/android/dialer/protos/ |
H A D | ProtoParsers.java | 34 @NonNull Bundle bundle, @NonNull String key, @NonNull T defaultInstance) 37 Assert.isNotNull(bundle); 41 byte[] bytes = bundle.getByteArray(key); 46 * Retrieve a proto from a trusted bundle which was created within the current executable/version. 51 @NonNull Bundle bundle, @NonNull String key, @NonNull T defaultInstance) { 53 return get(bundle, key, defaultInstance); 60 * Retrieve a proto from a trusted bundle which was created within the current executable/version. 75 @NonNull Bundle bundle, @NonNull String key, @NonNull MessageLite message) { 77 Assert.isNotNull(bundle); 79 bundle 33 get( @onNull Bundle bundle, @NonNull String key, @NonNull T defaultInstance) argument 50 getTrusted( @onNull Bundle bundle, @NonNull String key, @NonNull T defaultInstance) argument 74 put( @onNull Bundle bundle, @NonNull String key, @NonNull MessageLite message) argument [all...] |
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/ |
H A D | StoreUtils.java | 58 public static Account persistableBundleToAccount(PersistableBundle bundle) { argument 60 bundle.getString(ATTR_ACCOUNT_NAME), 61 bundle.getString(ATTR_ACCOUNT_TYPE)); 68 final PersistableBundle bundle = new PersistableBundle(); 69 bundle.putString(ATTR_ACCOUNT_NAME, account.name); 70 bundle.putString(ATTR_ACCOUNT_TYPE, account.type); 71 return bundle; 142 public static void putIntegerIfNotNull(PersistableBundle bundle, String attrName, argument 145 bundle.putInt(attrName, integer); 149 public static void putPersistableBundlableIfNotNull(PersistableBundle bundle, Strin argument 156 getObjectAttrFromPersistableBundle(PersistableBundle bundle, String attrName, Function<PersistableBundle, E> converter) argument 162 getStringAttrFromPersistableBundle(PersistableBundle bundle, String attrName, Function<String, E> converter) argument 168 getIntegerAttrFromPersistableBundle(PersistableBundle bundle, String attrName) argument [all...] |
/packages/apps/Settings/src/com/android/settings/dashboard/conditional/ |
H A D | Condition.java | 54 void restoreState(PersistableBundle bundle) { argument 55 mIsSilenced = bundle.getBoolean(KEY_SILENCE); 56 mIsActive = bundle.getBoolean(KEY_ACTIVE); 57 mLastStateChange = bundle.getLong(KEY_LAST_STATE); 60 boolean saveState(PersistableBundle bundle) { argument 62 bundle.putBoolean(KEY_SILENCE, mIsSilenced); 65 bundle.putBoolean(KEY_ACTIVE, mIsActive); 66 bundle.putLong(KEY_LAST_STATE, mLastStateChange);
|
/packages/services/Car/service/src/com/android/car/ |
H A D | CarAudioAttributesUtil.java | 102 Bundle bundle = attr.getBundle(); 104 if (bundle != null) { 105 type = bundle.getInt(KEY_CAR_AUDIO_TYPE, CAR_AUDIO_TYPE_DEFAULT); 161 Bundle bundle = new Bundle(); 162 bundle.putInt(KEY_CAR_AUDIO_TYPE, carAudioType); 163 return builder.setContentType(contentType).setUsage(usage).addBundle(bundle).build(); 168 Bundle bundle = new Bundle(); 169 bundle.putInt(KEY_CAR_AUDIO_TYPE, CAR_AUDIO_TYPE_RADIO); 170 bundle.putString(KEY_EXT_ROUTING_TYPE, radioType); 172 setUsage(AudioAttributes.USAGE_MEDIA).addBundle(bundle) [all...] |