Lines Matching refs:bundle

93     protected void writeToBundle(Bundle bundle) {
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.putCharSequence(PRIMARY_TEXT_KEY, mPrimaryText);
105 bundle.putCharSequence(SECONDARY_TEXT_KEY, mSecondaryText);
110 bundle.putString(CARD_EXTENSION_CLASS_KEY, mCardExtension.getClass().getName());
111 bundle.putBundle(CARD_EXTENSION_BUNDLE_KEY, extension);
116 protected void readFromBundle(Bundle bundle) {
117 mType = bundle.getInt(TYPE_KEY);
118 mId = bundle.getLong(ID_KEY);
119 mPriority = bundle.getInt(PRIORITY_KEY);
120 mTimestamp = bundle.getLong(TIMESTAMP_KEY, System.currentTimeMillis());
121 mContentPendingIntent = bundle.getParcelable(CONTENT_PENDING_INTENT_KEY);
122 mPrimaryIcon = bundle.getParcelable(PRIMARY_ICON_KEY);
123 mSecondaryIcon = bundle.getParcelable(SECONDARY_ICON_KEY);
124 mDescription = bundle.getString(DESCRIPTION_KEY);
125 mPrimaryText = bundle.getCharSequence(PRIMARY_TEXT_KEY);
126 mSecondaryText = bundle.getCharSequence(SECONDARY_TEXT_KEY);
127 mCardExtension = extractExtension(bundle);
130 private StreamCardExtension extractExtension(Bundle bundle) {
131 String className = bundle.getString(CARD_EXTENSION_CLASS_KEY);
132 Bundle extensionBundle = bundle.getBundle(CARD_EXTENSION_BUNDLE_KEY);