Home | History | Annotate | Download | only in os

Lines Matching defs:Bundle

33 public final class Bundle extends BaseBundle implements Cloneable, Parcelable {
34 public static final Bundle EMPTY;
38 EMPTY = new Bundle();
48 * Constructs a new, empty Bundle.
50 public Bundle() {
55 * Constructs a Bundle whose data is stored as a Parcel. The data
58 * @param parcelledData a Parcel containing a Bundle
60 Bundle(Parcel parcelledData) {
67 /* package */ Bundle(Parcel parcelledData, int length) {
75 * Constructs a new, empty Bundle that uses a specific ClassLoader for
79 * inside of the Bundle.
81 public Bundle(ClassLoader loader) {
86 * Constructs a new, empty Bundle sized to hold the given number of
87 * elements. The Bundle will grow as needed.
89 * @param capacity the initial capacity of the Bundle
91 public Bundle(int capacity) {
96 * Constructs a Bundle containing a copy of the mappings from the given
97 * Bundle.
99 * @param b a Bundle to be copied.
101 public Bundle(Bundle b) {
109 * Constructs a Bundle containing a copy of the mappings from the given
112 * @param b a Bundle to be copied.
114 public Bundle(PersistableBundle b) {
119 * Make a Bundle for a single key/value pair.
123 public static Bundle forPair(String key, String value) {
124 Bundle b = new Bundle(1);
130 * Changes the ClassLoader this Bundle uses when instantiating objects.
133 * inside of the Bundle.
141 * Return the ClassLoader currently associated with this Bundle.
156 * Clones the current Bundle. The internal map is cloned, but the keys and
161 return new Bundle(this);
165 * Removes all elements from the mapping of this Bundle.
176 * Inserts all mappings from the given Bundle into this Bundle.
178 * @param bundle a Bundle
180 public void putAll(Bundle bundle) {
182 bundle.unparcel();
183 mMap.putAll(bundle.mMap);
186 mHasFds |= bundle.mHasFds;
187 mFdsKnown = mFdsKnown && bundle.mFdsKnown;
191 * Reports whether the bundle contains any parcelled file descriptors.
255 * Inserts a Boolean value into the mapping of this Bundle, replacing
267 * Inserts a byte value into the mapping of this Bundle, replacing
279 * Inserts a char value into the mapping of this Bundle, replacing
291 * Inserts a short value into the mapping of this Bundle, replacing
303 * Inserts a float value into the mapping of this Bundle, replacing
315 * Inserts a CharSequence value into the mapping of this Bundle, replacing
327 * Inserts a Parcelable value into the mapping of this Bundle, replacing
340 * Inserts a Size value into the mapping of this Bundle, replacing
352 * Inserts a SizeF value into the mapping of this Bundle, replacing
364 * Inserts an array of Parcelable values into the mapping of this Bundle,
378 * Inserts a List of Parcelable values into the mapping of this Bundle,
401 * Bundle, replacing any existing value for the given key. Either key
415 * Inserts an ArrayList<Integer> value into the mapping of this Bundle, replacing
427 * Inserts an ArrayList<String> value into the mapping of this Bundle, replacing
439 * Inserts an ArrayList<CharSequence> value into the mapping of this Bundle, replacing
451 * Inserts a Serializable value into the mapping of this Bundle, replacing
463 * Inserts a boolean array value into the mapping of this Bundle, replacing
475 * Inserts a byte array value into the mapping of this Bundle, replacing
487 * Inserts a short array value into the mapping of this Bundle, replacing
499 * Inserts a char array value into the mapping of this Bundle, replacing
511 * Inserts a float array value into the mapping of this Bundle, replacing
523 * Inserts a CharSequence array value into the mapping of this Bundle, replacing
535 * Inserts a Bundle value into the mapping of this Bundle, replacing
539 * @param value a Bundle object, or null
541 public void putBundle(String key, Bundle value) {
547 * Inserts an {@link IBinder} value into the mapping of this Bundle, replacing
551 * places where Bundles are used (such as inside of Intent objects), the Bundle
566 * Inserts an IBinder value into the mapping of this Bundle, replacing
779 * @return a Bundle value, or null
781 public Bundle getBundle(String key) {
788 return (Bundle) o;
790 typeWarning(key, o, "Bundle", e);
1062 public static final Parcelable.Creator<Bundle> CREATOR =
1063 new Parcelable.Creator<Bundle>() {
1065 public Bundle createFromParcel(Parcel in) {
1070 public Bundle[] newArray(int size) {
1071 return new Bundle[size];
1088 * Writes the Bundle contents to a Parcel, typically in order for
1090 * @param parcel The parcel to copy this bundle to.
1103 * Reads the Parcel contents into this Bundle, typically in order for
1105 * @param parcel The parcel to overwrite this bundle from.
1117 return "Bundle[EMPTY_PARCEL]";
1119 return "Bundle[mParcelledData.dataSize=" +
1123 return "Bundle[" + mMap.toString() + "]";