Lines Matching defs:Parcel

46  * be sent through an IBinder.  A Parcel can contain both flattened data
51 * connected with the original IBinder in the Parcel.
53 * <p class="note">Parcel is <strong>not</strong> a general-purpose
55 * {@link Parcelable} API for placing arbitrary objects into a Parcel) is
57 * appropriate to place any Parcel data in to persistent storage: changes
58 * in the underlying implementation of any of the data in the Parcel can
61 * <p>The bulk of the Parcel API revolves around reading and writing data
112 * methods write both the class type and its data to the Parcel, allowing
135 * data contents into a Parcel. The methods to use are
141 * <p>An unusual feature of Parcel is the ability to read and write active
144 * reading the object back from the Parcel, you do not get a new instance of
151 * a Parcel, and upon reading you will receive either the original object
182 public final class Parcel {
185 private static final String TAG = "Parcel";
199 private static final Parcel[] sOwnedPool = new Parcel[POOL_SIZE];
200 private static final Parcel[] sHolderPool = new Parcel[POOL_SIZE];
232 // The initial int32 in a Binder call's reply Parcel header:
288 public String createFromParcel(Parcel source) {
297 * Retrieve a new Parcel object from the pool.
299 public static Parcel obtain() {
300 final Parcel[] pool = sOwnedPool;
302 Parcel p;
314 return new Parcel(0);
318 * Put a Parcel object back into the pool. You must not touch
325 final Parcel[] pool;
387 * @param size The new number of bytes in the Parcel.
429 * or another kind of general serialization mechanism. The Parcel
439 * Set the bytes in data to be the raw bytes of this Parcel.
445 public final void appendFrom(Parcel parcel, int offset, int length) {
1182 * {@link Parcelable#writeToParcel(Parcel, int) Parcelable.writeToParcel()}.
1238 * writing to a Parcel; having to rely on the generic serialization
1343 throw new RuntimeException("Parcel: unable to marshal value " + v);
1354 * {@link Parcelable#writeToParcel(Parcel, int) Parcelable.writeToParcel()}.
1373 * Write a generic serializable object in to a Parcel. It is strongly
1376 * using the other approaches to writing data in to a Parcel.
1452 * Special function for writing information at the front of the Parcel
1489 * will throw the exception for you if it had been written to the Parcel,
1490 * otherwise return and let you read the normal result data from the Parcel.
1504 * Parses the header of a Binder call's response Parcel and
1521 Log.e(TAG, "Unexpected zero-sized Parcel reply header.");
1538 * outside the Parcel class.
2105 * Write a heterogeneous array of Parcelable objects into the Parcel.
2113 * {@link Parcelable#writeToParcel(Parcel, int) Parcelable.writeToParcel()}.
2229 "Parcel " + this + ": Unmarshalling unknown type code " + type + " at offset " + off);
2356 // is nothing left in the Parcel to read, or the next value wasn't a String), so
2397 static protected final Parcel obtain(int obj) {
2402 static protected final Parcel obtain(long obj) {
2403 final Parcel[] pool = sHolderPool;
2405 Parcel p;
2418 return new Parcel(obj);
2421 private Parcel(long nativePtr) {
2458 Log.w(TAG, "Client did not call Parcel.recycle()", mStack);