Lines Matching defs:Parcel

56  * be sent through an IBinder.  A Parcel can contain both flattened data
61 * connected with the original IBinder in the Parcel.
63 * <p class="note">Parcel is <strong>not</strong> a general-purpose
65 * {@link Parcelable} API for placing arbitrary objects into a Parcel) is
67 * appropriate to place any Parcel data in to persistent storage: changes
68 * in the underlying implementation of any of the data in the Parcel can
71 * <p>The bulk of the Parcel API revolves around reading and writing data
122 * methods write both the class type and its data to the Parcel, allowing
145 * data contents into a Parcel. The methods to use are
151 * <p>An unusual feature of Parcel is the ability to read and write active
154 * reading the object back from the Parcel, you do not get a new instance of
161 * a Parcel, and upon reading you will receive either the original object
192 public final class Parcel {
195 private static final String TAG = "Parcel";
212 private static final Parcel[] sOwnedPool = new Parcel[POOL_SIZE];
213 private static final Parcel[] sHolderPool = new Parcel[POOL_SIZE];
247 // The initial int32 in a Binder call's reply Parcel header:
330 public String createFromParcel(Parcel source) {
339 * Retrieve a new Parcel object from the pool.
341 public static Parcel obtain() {
342 final Parcel[] pool = sOwnedPool;
344 Parcel p;
356 return new Parcel(0);
360 * Put a Parcel object back into the pool. You must not touch
367 final Parcel[] pool;
429 * @param size The new number of bytes in the Parcel.
471 * or another kind of general serialization mechanism. The Parcel
481 * Set the bytes in data to be the raw bytes of this Parcel.
487 public final void appendFrom(Parcel parcel, int offset, int length) {
492 public final int compareData(Parcel other) {
510 public final void adoptClassCookies(Parcel from) {
699 * Write an array of FileDescriptor objects into the Parcel.
764 // Keep the format of this Parcel in sync with writeToParcelInner() in
1386 * {@link Parcelable#writeToParcel(Parcel, int) Parcelable.writeToParcel()}.
1556 * {@link Parcelable#writeToParcel(Parcel, int) Parcelable.writeToParcel()}.
1600 * writing to a Parcel; having to rely on the generic serialization
1711 throw new RuntimeException("Parcel: unable to marshal value " + v);
1722 * {@link Parcelable#writeToParcel(Parcel, int) Parcelable.writeToParcel()}.
1740 * Write a generic serializable object in to a Parcel. It is strongly
1743 * using the other approaches to writing data in to a Parcel.
1841 * Special function for writing information at the front of the Parcel
1878 * will throw the exception for you if it had been written to the Parcel,
1879 * otherwise return and let you read the normal result data from the Parcel.
1893 * Parses the header of a Binder call's response Parcel and
1910 Log.e(TAG, "Unexpected zero-sized Parcel reply header.");
1927 * outside the Parcel class.
2628 * Write a heterogeneous array of Parcelable objects into the Parcel.
2636 * {@link Parcelable#writeToParcel(Parcel, int) Parcelable.writeToParcel()}.
2755 "Parcel " + this + ": Unmarshalling unknown type code " + type + " at offset " + off);
2912 // is nothing left in the Parcel to read, or the next value wasn't a String), so
2953 static protected final Parcel obtain(int obj) {
2958 static protected final Parcel obtain(long obj) {
2959 final Parcel[] pool = sHolderPool;
2961 Parcel p;
2974 return new Parcel(obj);
2977 private Parcel(long nativePtr) {
3015 Log.w(TAG, "Client did not call Parcel.recycle()", mStack);