Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dbb83144 authored by Hao Ke's avatar Hao Ke Committed by Automerger Merge Worker
Browse files

Merge "Update JavaDoc to replace deprecated Parcel read APIs." am: 06ee57cd...

Merge "Update JavaDoc to replace deprecated Parcel read APIs." am: 06ee57cd am: d1fdbdff am: d38ca191

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1977155

Change-Id: I7572a1f8842f45ec3b748b8dda3bba0d19626077
parents d8764bf5 d38ca191
Loading
Loading
Loading
Loading
+14 −1
Original line number Original line Diff line number Diff line
@@ -201,7 +201,7 @@ import java.util.function.Supplier;
 * The methods to use are {@link #writeFileDescriptor(FileDescriptor)},
 * The methods to use are {@link #writeFileDescriptor(FileDescriptor)},
 * {@link #readFileDescriptor()}.
 * {@link #readFileDescriptor()}.
 *
 *
 * <h3>Untyped Containers</h3>
  * <h3>Parcelable Containers</h3>
 *
 *
 * <p>A final class of methods are for writing and reading standard Java
 * <p>A final class of methods are for writing and reading standard Java
 * containers of arbitrary types.  These all revolve around the
 * containers of arbitrary types.  These all revolve around the
@@ -213,6 +213,19 @@ import java.util.function.Supplier;
 * {@link #writeMap(Map)}, {@link #readMap(Map, ClassLoader)},
 * {@link #writeMap(Map)}, {@link #readMap(Map, ClassLoader)},
 * {@link #writeSparseArray(SparseArray)},
 * {@link #writeSparseArray(SparseArray)},
 * {@link #readSparseArray(ClassLoader)}.
 * {@link #readSparseArray(ClassLoader)}.
 *
 * <h3>Restricted Parcelable Containers</h3>
 *
 * <p>A final class of methods are for reading standard Java containers of restricted types.
 * These methods replace methods for reading containers of arbitrary types from previous section
 * starting from Android {@link Build.VERSION_CODES#TIRAMISU}. The pairing writing methods are
 * still the same from previous section.
 * These methods accepts additional {@code clazz} parameters as the required types.
 * The Restricted Parcelable container methods are {@link #readArray(ClassLoader, Class)},
 * {@link #readList(List, ClassLoader, Class)},
 * {@link #readArrayList(ClassLoader, Class)},
 * {@link #readMap(Map, ClassLoader, Class, Class)},
 * {@link #readSparseArray(ClassLoader, Class)}.
 */
 */
public final class Parcel {
public final class Parcel {