Loading core/java/android/os/Parcel.java +31 −0 Original line number Diff line number Diff line Loading @@ -892,6 +892,12 @@ public final class Parcel { /** * Report whether the parcel contains any marshalled file descriptors. * * WARNING: Parcelable definitions change over time. Unless you define * a Parcelable yourself OR the Parcelable explicitly guarantees that * it would never include such objects, you should not expect the return * value to stay the same, and your code should continue to work even * if the return value changes. */ public boolean hasFileDescriptors() { return nativeHasFileDescriptors(mNativePtr); Loading @@ -901,6 +907,12 @@ public final class Parcel { * Report whether the parcel contains any marshalled file descriptors in the range defined by * {@code offset} and {@code length}. * * WARNING: Parcelable definitions change over time. Unless you define * a Parcelable yourself OR the Parcelable explicitly guarantees that * it would never include such objects, you should not expect the return * value to stay the same, and your code should continue to work even * if the return value changes. * * @param offset The offset from which the range starts. Should be between 0 and * {@link #dataSize()}. * @param length The length of the range. Should be between 0 and {@link #dataSize()} - {@code Loading @@ -921,6 +933,12 @@ public final class Parcel { * <p>For most cases, it will use the self-reported {@link Parcelable#describeContents()} method * for that. * * WARNING: Parcelable definitions change over time. Unless you define * a Parcelable yourself OR the Parcelable explicitly guarantees that * it would never include such objects, you should not expect the return * value to stay the same, and your code should continue to work even * if the return value changes. * * @throws IllegalArgumentException if you provide any object not supported by above methods * (including if the unsupported object is inside a nested container). * Loading Loading @@ -990,6 +1008,13 @@ public final class Parcel { * * @throws UnsupportedOperationException if binder kernel driver was disabled or if method was * invoked in case of Binder RPC protocol. * * WARNING: Parcelable definitions change over time. Unless you define * a Parcelable yourself OR the Parcelable explicitly guarantees that * it would never include such objects, you should not expect the return * value to stay the same, and your code should continue to work even * if the return value changes. * * @hide */ public boolean hasBinders() { Loading @@ -1000,6 +1025,12 @@ public final class Parcel { * Report whether the parcel contains any marshalled {@link IBinder} objects in the range * defined by {@code offset} and {@code length}. * * WARNING: Parcelable definitions change over time. Unless you define * a Parcelable yourself OR the Parcelable explicitly guarantees that * it would never include such objects, you should not expect the return * value to stay the same, and your code should continue to work even * if the return value changes. * * @param offset The offset from which the range starts. Should be between 0 and * {@link #dataSize()}. * @param length The length of the range. Should be between 0 and {@link #dataSize()} - {@code Loading Loading
core/java/android/os/Parcel.java +31 −0 Original line number Diff line number Diff line Loading @@ -892,6 +892,12 @@ public final class Parcel { /** * Report whether the parcel contains any marshalled file descriptors. * * WARNING: Parcelable definitions change over time. Unless you define * a Parcelable yourself OR the Parcelable explicitly guarantees that * it would never include such objects, you should not expect the return * value to stay the same, and your code should continue to work even * if the return value changes. */ public boolean hasFileDescriptors() { return nativeHasFileDescriptors(mNativePtr); Loading @@ -901,6 +907,12 @@ public final class Parcel { * Report whether the parcel contains any marshalled file descriptors in the range defined by * {@code offset} and {@code length}. * * WARNING: Parcelable definitions change over time. Unless you define * a Parcelable yourself OR the Parcelable explicitly guarantees that * it would never include such objects, you should not expect the return * value to stay the same, and your code should continue to work even * if the return value changes. * * @param offset The offset from which the range starts. Should be between 0 and * {@link #dataSize()}. * @param length The length of the range. Should be between 0 and {@link #dataSize()} - {@code Loading @@ -921,6 +933,12 @@ public final class Parcel { * <p>For most cases, it will use the self-reported {@link Parcelable#describeContents()} method * for that. * * WARNING: Parcelable definitions change over time. Unless you define * a Parcelable yourself OR the Parcelable explicitly guarantees that * it would never include such objects, you should not expect the return * value to stay the same, and your code should continue to work even * if the return value changes. * * @throws IllegalArgumentException if you provide any object not supported by above methods * (including if the unsupported object is inside a nested container). * Loading Loading @@ -990,6 +1008,13 @@ public final class Parcel { * * @throws UnsupportedOperationException if binder kernel driver was disabled or if method was * invoked in case of Binder RPC protocol. * * WARNING: Parcelable definitions change over time. Unless you define * a Parcelable yourself OR the Parcelable explicitly guarantees that * it would never include such objects, you should not expect the return * value to stay the same, and your code should continue to work even * if the return value changes. * * @hide */ public boolean hasBinders() { Loading @@ -1000,6 +1025,12 @@ public final class Parcel { * Report whether the parcel contains any marshalled {@link IBinder} objects in the range * defined by {@code offset} and {@code length}. * * WARNING: Parcelable definitions change over time. Unless you define * a Parcelable yourself OR the Parcelable explicitly guarantees that * it would never include such objects, you should not expect the return * value to stay the same, and your code should continue to work even * if the return value changes. * * @param offset The offset from which the range starts. Should be between 0 and * {@link #dataSize()}. * @param length The length of the range. Should be between 0 and {@link #dataSize()} - {@code Loading