Lines Matching defs:Parcel

42  * be sent through an IBinder.  A Parcel can contain both flattened data
47 * connected with the original IBinder in the Parcel.
49 * <p class="note">Parcel is <strong>not</strong> a general-purpose
51 * {@link Parcelable} API for placing arbitrary objects into a Parcel) is
53 * appropriate to place any Parcel data in to persistent storage: changes
54 * in the underlying implementation of any of the data in the Parcel can
57 * <p>The bulk of the Parcel API revolves around reading and writing data
108 * methods write both the class type and its data to the Parcel, allowing
131 * data contents into a Parcel. The methods to use are
137 * <p>An unusual feature of Parcel is the ability to read and write active
140 * reading the object back from the Parcel, you do not get a new instance of
147 * a Parcel, and upon reading you will receive either the original object
178 public final class Parcel {
180 private static final String TAG = "Parcel";
194 private static final Parcel[] sOwnedPool = new Parcel[POOL_SIZE];
195 private static final Parcel[] sHolderPool = new Parcel[POOL_SIZE];
224 // The initial int32 in a Binder call's reply Parcel header:
276 public String createFromParcel(Parcel source) {
285 * Retrieve a new Parcel object from the pool.
287 public static Parcel obtain() {
288 final Parcel[] pool = sOwnedPool;
290 Parcel p;
302 return new Parcel(0);
306 * Put a Parcel object back into the pool. You must not touch
313 final Parcel[] pool;
369 * @param size The new number of bytes in the Parcel.
411 * or another kind of general serialization mechanism. The Parcel
421 * Set the bytes in data to be the raw bytes of this Parcel.
427 public final void appendFrom(Parcel parcel, int offset, int length) {
1087 * {@link Parcelable#writeToParcel(Parcel, int) Parcelable.writeToParcel()}.
1143 * writing to a Parcel; having to rely on the generic serialization
1235 throw new RuntimeException("Parcel: unable to marshal value " + v);
1245 * {@link Parcelable#writeToParcel(Parcel, int) Parcelable.writeToParcel()}.
1258 * Write a generic serializable object in to a Parcel. It is strongly
1261 * using the other approaches to writing data in to a Parcel.
1332 * Special function for writing information at the front of the Parcel
1369 * will throw the exception for you if it had been written to the Parcel,
1370 * otherwise return and let you read the normal result data from the Parcel.
1384 * Parses the header of a Binder call's response Parcel and
1401 Log.e(TAG, "Unexpected zero-sized Parcel reply header.");
1918 * Write a heterogeneous array of Parcelable objects into the Parcel.
1926 * {@link Parcelable#writeToParcel(Parcel, int) Parcelable.writeToParcel()}.
2033 "Parcel " + this + ": Unmarshalling unknown type code " + type + " at offset " + off);
2133 // is nothing left in the Parcel to read, or the next value wasn't a String), so
2160 static protected final Parcel obtain(int obj) {
2161 final Parcel[] pool = sHolderPool;
2163 Parcel p;
2176 return new Parcel(obj);
2179 private Parcel(int nativePtr) {
2216 Log.w(TAG, "Client did not call Parcel.recycle()", mStack);