Home | History | Annotate | Download | only in app

Lines Matching defs:Bundle

52 import android.os.Bundle;
907 public Bundle extras = new Bundle();
911 * touching the extras bundle in the system process is not safe because the bundle may contain
1408 private final Bundle mExtras;
1444 mExtras = Bundle.setDefusable(in.readBundle(), true);
1455 this(Icon.createWithResource("", icon), title, intent, new Bundle(), null, true,
1460 private Action(Icon icon, CharSequence title, PendingIntent intent, Bundle extras,
1469 this.mExtras = extras != null ? extras : new Bundle();
1489 public Bundle getExtras() {
1541 private final Bundle mExtras;
1563 this(icon, title, intent, new Bundle(), null, true, SEMANTIC_ACTION_NONE);
1573 new Bundle(action.mExtras), action.getRemoteInputs(),
1577 private Builder(Icon icon, CharSequence title, PendingIntent intent, Bundle extras,
1595 * <p>Values within the Bundle will replace existing extras values in this Builder.
1599 public Builder addExtras(Bundle extras) {
1607 * Get the metadata Bundle used by this Builder.
1609 * <p>The returned Bundle is shared with this Builder.
1611 public Bundle getExtras() {
1708 mExtras == null ? new Bundle() : new Bundle(mExtras),
1815 Bundle wearableBundle = action.getExtras().getBundle(EXTRA_WEARABLE_EXTENSIONS);
1831 Bundle wearableBundle = new Bundle();
2175 extras = Bundle.setDefusable(parcel.readBundle(), true); // may be null
2281 that.extras = new Bundle(this.extras);
2404 * Make sure this CharSequence is safe to put into a bundle, which basically
2467 // an explicit list of the pending intents in the extras bundle.
3173 private Bundle mUserExtras = new Bundle();
4086 * <p>Values within the Bundle will replace existing extras values in this Builder.
4090 public Builder addExtras(Bundle extras) {
4100 * <p>A reference to the Bundle is held for the lifetime of this Builder, and the Bundle's
4104 * <p>Replaces any existing extras values with those from the provided Bundle.
4109 public Builder setExtras(Bundle extras) {
4117 * Get the current metadata Bundle used by this notification Builder.
4119 * <p>The returned Bundle is shared with this Builder.
4121 * <p>The current contents of this Bundle are copied into the Notification each time
4126 public Bundle getExtras() {
4130 private Bundle getAllExtras() {
4131 final Bundle saveExtras = (Bundle) mUserExtras.clone();
4397 final Bundle ex = mN.extras;
4573 private boolean handleProgressBar(boolean hasProgress, RemoteViews contentView, Bundle ex) {
5137 Bundle savedBundle = mN.extras;
5146 Bundle publicExtras = new Bundle();
6092 public void addExtras(Bundle extras) {
6106 protected void restoreFromExtras(Bundle extras) {
6365 public void addExtras(Bundle extras) {
6378 protected void restoreFromExtras(Bundle extras) {
6492 public void addExtras(Bundle extras) {
6502 protected void restoreFromExtras(Bundle extras) {
6868 public void addExtras(Bundle extras) {
6889 private void fixTitleAndTextExtras(Bundle extras) {
6921 protected void restoreFromExtras(Bundle extras) {
7184 private Bundle mExtras = new Bundle();
7299 * Get the extras Bundle for this message.
7301 public Bundle getExtras() {
7346 private Bundle toBundle() {
7347 Bundle bundle = new Bundle();
7349 bundle.putCharSequence(KEY_TEXT, mText);
7351 bundle.putLong(KEY_TIMESTAMP, mTimestamp);
7354 bundle.putCharSequence(KEY_SENDER, mSender.getName());
7355 bundle.putParcelable(KEY_SENDER_PERSON, mSender);
7358 bundle.putString(KEY_DATA_MIME_TYPE, mDataMimeType);
7361 bundle.putParcelable(KEY_DATA_URI, mDataUri);
7364 bundle.putBundle(KEY_EXTRAS_BUNDLE, mExtras);
7367 bundle.putBoolean(KEY_REMOTE_INPUT_HISTORY, mRemoteInputHistory);
7369 return bundle;
7372 static Bundle[] getBundleArrayForMessages(List<Message> messages) {
7373 Bundle[] bundles = new Bundle[messages.size()];
7392 if (bundles[i] instanceof Bundle) {
7393 Message message = getMessageFromBundle((Bundle)bundles[i]);
7403 * @return The message that is stored in the bundle or null if the message couldn't be
7409 public static Message getMessageFromBundle(Bundle bundle) {
7411 if (!bundle.containsKey(KEY_TEXT) || !bundle.containsKey(KEY_TIMESTAMP)) {
7415 Person senderPerson = bundle.getParcelable(KEY_SENDER_PERSON);
7420 CharSequence senderName = bundle.getCharSequence(KEY_SENDER);
7425 Message message = new Message(bundle.getCharSequence(KEY_TEXT),
7426 bundle.getLong(KEY_TIMESTAMP),
7428 bundle.getBoolean(KEY_REMOTE_INPUT_HISTORY, false));
7429 if (bundle.containsKey(KEY_DATA_MIME_TYPE) &&
7430 bundle.containsKey(KEY_DATA_URI)) {
7431 message.setData(bundle.getString(KEY_DATA_MIME_TYPE),
7432 (Uri) bundle.getParcelable(KEY_DATA_URI));
7434 if (bundle.containsKey(KEY_EXTRAS_BUNDLE)) {
7435 message.getExtras().putAll(bundle.getBundle(KEY_EXTRAS_BUNDLE));
7520 public void addExtras(Bundle extras) {
7531 protected void restoreFromExtras(Bundle extras) {
7787 public void addExtras(Bundle extras) {
7802 protected void restoreFromExtras(Bundle extras) {
8346 Bundle wearableBundle = notif.extras.getBundle(EXTRA_WEARABLE_EXTENSIONS);
8385 Bundle wearableBundle = new Bundle();
9060 Bundle carBundle = notif.extras == null ?
9066 Bundle b = carBundle.getBundle(EXTRA_CONVERSATION);
9078 Bundle carExtensions = new Bundle();
9088 Bundle b = mUnreadConversation.getBundleForUnreadConversation();
9245 Bundle getBundleForUnreadConversation() {
9246 Bundle b = new Bundle();
9253 Bundle m = new Bundle();
9269 static UnreadConversation getUnreadConversationFromBundle(Bundle b) {
9279 if (!(parcelableMessages[i] instanceof Bundle)) {
9283 tmp[i] = ((Bundle) parcelableMessages[i]).getString(KEY_TEXT);
9468 Bundle bundle = notif.extras == null ?
9470 if (bundle != null) {
9471 mFlags = bundle.getInt(EXTRA_FLAGS);
9472 mChannelId = bundle.getString(EXTRA_CHANNEL_ID);
9473 mSuppressShowOverApps = bundle.getBoolean(EXTRA_SUPPRESS_SHOW_OVER_APPS);
9474 mContentIntent = bundle.getParcelable(EXTRA_CONTENT_INTENT);
9475 mDeleteIntent = bundle.getParcelable(EXTRA_DELETE_INTENT);
9486 Bundle bundle = new Bundle();
9488 bundle.putInt(EXTRA_FLAGS, mFlags);
9489 bundle.putString(EXTRA_CHANNEL_ID, mChannelId);
9490 bundle.putBoolean(EXTRA_SUPPRESS_SHOW_OVER_APPS, mSuppressShowOverApps);
9492 bundle.putParcelable(EXTRA_CONTENT_INTENT, mContentIntent);
9496 bundle.putParcelable(EXTRA_DELETE_INTENT, mDeleteIntent);
9499 builder.getExtras().putBundle(EXTRA_TV_EXTENDER, bundle);
9603 * Get an array of Notification objects from a parcelable array bundle field.
9604 * Update the bundle to have a typed array so fetches in the future don't need
9607 private static Notification[] getNotificationArrayFromBundle(Bundle bundle, String key) {
9608 Parcelable[] array = bundle.getParcelableArray(key);
9614 bundle.putParcelableArray(key, typedArray);
9714 Bundle extras = b.mN.extras;