Home | History | Annotate | Download | only in os

Lines Matching defs:Parcel

58  * be sent through an IBinder.  A Parcel can contain both flattened data
63 * connected with the original IBinder in the Parcel.
65 * <p class="note">Parcel is <strong>not</strong> a general-purpose
67 * {@link Parcelable} API for placing arbitrary objects into a Parcel) is
69 * appropriate to place any Parcel data in to persistent storage: changes
70 * in the underlying implementation of any of the data in the Parcel can
73 * <p>The bulk of the Parcel API revolves around reading and writing data
124 * methods write both the class type and its data to the Parcel, allowing
147 * data contents into a Parcel. The methods to use are
153 * <p>An unusual feature of Parcel is the ability to read and write active
156 * reading the object back from the Parcel, you do not get a new instance of
163 * a Parcel, and upon reading you will receive either the original object
194 public final class Parcel {
198 private static final String TAG = "Parcel";
215 * Whether or not to parcel the stack trace of an exception. This has a performance
221 private static final Parcel[] sOwnedPool = new Parcel[POOL_SIZE];
222 private static final Parcel[] sHolderPool = new Parcel[POOL_SIZE];
256 // The initial int32 in a Binder call's reply Parcel header:
346 public String createFromParcel(Parcel source) {
361 * Called when writing a string to a parcel. Subclasses wanting to write a string
365 public void writeString(Parcel p, String s) {
370 * Called when reading a string to a parcel. Subclasses wanting to read a string
374 public String readString(Parcel p) {
382 * Retrieve a new Parcel object from the pool.
384 public static Parcel obtain() {
385 final Parcel[] pool = sOwnedPool;
387 Parcel p;
400 return new Parcel(0);
404 * Put a Parcel object back into the pool. You must not touch
411 final Parcel[] pool;
440 * @return whether this parcel has a {@link ReadWriteHelper}.
455 * Returns the total amount of data contained in the parcel.
463 * parcel. That is, {@link #dataSize}-{@link #dataPosition}.
470 * Returns the current position in the parcel data. Never
478 * Returns the total amount of space in the parcel. This is always
480 * amount of room left until the parcel needs to re-allocate its
488 * Change the amount of data in the parcel. Can be either smaller or
492 * @param size The new number of bytes in the Parcel.
499 * Move the current read/write position in the parcel.
500 * @param pos New offset in the parcel; must be between 0 and
508 * Change the capacity (current available space) of the parcel.
510 * @param size The new capacity of the parcel, in bytes. Can not be
529 * Returns the raw bytes of the parcel.
534 * or another kind of general serialization mechanism. The Parcel
544 * Set the bytes in data to be the raw bytes of this Parcel.
550 public final void appendFrom(Parcel parcel, int offset, int length) {
551 updateNativeSize(nativeAppendFrom(mNativePtr, parcel.mNativePtr, offset, length));
555 public final int compareData(Parcel other) {
573 public final void adoptClassCookies(Parcel from) {
594 * Report whether the parcel contains any marshalled file descriptors.
601 * Store or read an IBinder interface token in the parcel at the current
614 * Write a byte array into the parcel at the current {@link #dataPosition},
616 * @param b Bytes to place into the parcel.
623 * Write a byte array into the parcel at the current {@link #dataPosition},
625 * @param b Bytes to place into the parcel.
639 * Write a blob of data into the parcel at the current {@link #dataPosition},
641 * @param b Bytes to place into the parcel.
650 * Write a blob of data into the parcel at the current {@link #dataPosition},
652 * @param b Bytes to place into the parcel.
668 * Write an integer value into the parcel at the current dataPosition(),
676 * Write a long integer value into the parcel at the current dataPosition(),
684 * Write a floating point value into the parcel at the current
692 * Write a double precision floating point value into the parcel at the
700 * Write a string value into the parcel at the current dataPosition(),
724 * Write a CharSequence value into the parcel at the current dataPosition(),
733 * Write an object into the parcel at the current dataPosition(),
741 * Write an object into the parcel at the current dataPosition(),
749 * Write a FileDescriptor into the parcel at the current dataPosition(),
789 * Write an array of FileDescriptor objects into the Parcel.
806 * Write a byte value into the parcel at the current dataPosition(),
814 * Please use {@link #writeBundle} instead. Flattens a Map into the parcel
829 * Flatten a Map into the parcel at the current dataPosition(),
846 * Flatten an ArrayMap into the parcel at the current dataPosition(),
854 // Keep the format of this Parcel in sync with writeToParcelInner() in
883 * Write an array set to the parcel.
898 * Flatten a Bundle into the parcel at the current dataPosition(),
911 * Flatten a PersistableBundle into the parcel at the current dataPosition(),
924 * Flatten a Size into the parcel at the current dataPosition(),
933 * Flatten a SizeF into the parcel at the current dataPosition(),
942 * Flatten a List into the parcel at the current dataPosition(), growing
961 * Flatten an Object array into the parcel at the current dataPosition(),
980 * Flatten a generic SparseArray into the parcel at the current
1358 * Flatten a List containing a particular object type into the parcel, at
1393 * Flatten a List containing String objects into the parcel, at
1418 * Flatten a List containing IBinder objects into the parcel, at
1443 * Flatten a {@code List} containing arbitrary {@code Parcelable} objects into this parcel
1467 * the parcel, at
1477 * {@link Parcelable#writeToParcel(Parcel, int) Parcelable.writeToParcel()}.
1497 * Flatten the Parcelable object into the parcel.
1501 * {@link Parcelable#writeToParcel(Parcel, int) Parcelable.writeToParcel()}.
1515 * Flatten a generic object in to a parcel. The given Object value may
1545 * writing to a Parcel; having to rely on the generic serialization
1656 throw new RuntimeException("Parcel: unable to marshal value " + v);
1663 * into the parcel.
1667 * {@link Parcelable#writeToParcel(Parcel, int) Parcelable.writeToParcel()}.
1685 * Write a generic serializable object in to a Parcel. It is strongly
1688 * using the other approaches to writing data in to a Parcel.
1719 * a parcel, to be used when returning an exception from a transaction.
1813 * Special function for writing information at the front of the Parcel
1849 * a parcel, to be used after receiving the result of a transaction. This
1850 * will throw the exception for you if it had been written to the Parcel,
1851 * otherwise return and let you read the normal result data from the Parcel.
1865 * Parses the header of a Binder call's response Parcel and
1882 Log.e(TAG, "Unexpected zero-sized Parcel
1899 * outside the Parcel class.
1963 * Read an integer value from the parcel at the current dataPosition().
1970 * Read a long integer value from the parcel at the current dataPosition().
1977 * Read a floating point value from the parcel at the current
1985 * Read a double precision floating point value from the parcel at the
1993 * Read a string value from the parcel at the current dataPosition().
2016 * Read a CharSequence value from the parcel at the current dataPosition().
2024 * Read an object from the parcel at the current dataPosition().
2031 * Read a FileDescriptor from the parcel at the current dataPosition().
2045 * Read and return a new array of FileDescriptors from the parcel.
2062 * Read an array of FileDescriptors from a parcel.
2063 * The passed array must be exactly the length of the array in the parcel.
2091 * Read a byte value from the parcel at the current dataPosition().
2100 * from the parcel at the current dataPosition().
2108 * Read into an existing List object from the parcel at the current
2120 * object from the parcel at the current dataPosition(), using the given
2136 * Read and return a new Bundle object from the parcel at the current
2145 * Read and return a new Bundle object from the parcel at the current
2165 * Read and return a new Bundle object from the parcel at the current
2174 * Read and return a new Bundle object from the parcel at the current
2194 * Read a Size from the parcel at the current dataPosition().
2203 * Read a SizeF from the parcel at the current dataPosition().
2212 * Read and return a byte[] object from the parcel.
2219 * Read a byte[] object from the parcel and copy it into the
2230 * Read a blob of data from the parcel and return it as a byte array.
2239 * Read and return a String[] object from the parcel.
2260 * Read and return a CharSequence[] object from the parcel.
2281 * Read and return an ArrayList&lt;CharSequence&gt; object from the parcel.
2300 * Read and return a new ArrayList object from the parcel at the current
2316 * Read and return a new Object array from the parcel at the current
2332 * Read and return a new SparseArray object from the parcel at the current
2348 * Read and return a new SparseBooleanArray object from the parcel at the current
2363 * Read and return a new SparseIntArray object from the parcel at the current
2379 * the parcel that was written with {@link #writeTypedList} at the
2432 * the parcel that was written with {@link #writeStringList} at the
2456 * the parcel that was written with {@link #writeBinderList} at the
2551 * the parcel at the current dataPosition(). Returns null if the
2594 * Read and return a typed Parcelable object from a parcel.
2613 * Write a heterogeneous array of Parcelable objects into the Parcel.
2621 * {@link Parcelable#writeToParcel(Parcel, int) Parcelable.writeToParcel()}.
2639 * Read a typed object from a parcel. The given class loader will be
2740 "Parcel " + this + ": Unmarshalling unknown type code " + type + " at offset " + off);
2745 * Read and return a new Parcelable from the parcel. The given class loader
2853 * Read and return a new Parcelable array from the parcel.
2885 * Read and return a new Serializable object from the parcel.
2887 parcel.
2897 // is nothing left in the Parcel to read, or the next value wasn't a String), so
2898 // return null, which indicates that the name wasn't found in the parcel.
2938 static protected final Parcel obtain(int obj) {
2943 static protected final Parcel obtain(long obj) {
2944 final Parcel[] pool = sHolderPool;
2946 Parcel p;
2959 return new Parcel(obj);
2962 private Parcel(long nativePtr) {
3002 Log.w(TAG, "Client did not call Parcel.recycle()", mStack);