Merge "Parcel: obtain(IBinder) as API" am: e869287a7b am: 9a7bbf9367

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

Change-Id: Idf1207e25bf2d29b8a5ee70123e2cc4aed774b71
This commit is contained in:
Steven Moreland
2021-10-04 21:27:00 +00:00
committed by Automerger Merge Worker
2 changed files with 1 additions and 2 deletions

View File

@@ -31422,6 +31422,7 @@ package android.os {
method public boolean hasFileDescriptors(); method public boolean hasFileDescriptors();
method public byte[] marshall(); method public byte[] marshall();
method @NonNull public static android.os.Parcel obtain(); method @NonNull public static android.os.Parcel obtain();
method @NonNull public static android.os.Parcel obtain(@NonNull android.os.IBinder);
method @Nullable public Object[] readArray(@Nullable ClassLoader); method @Nullable public Object[] readArray(@Nullable ClassLoader);
method @Nullable public java.util.ArrayList readArrayList(@Nullable ClassLoader); method @Nullable public java.util.ArrayList readArrayList(@Nullable ClassLoader);
method public void readBinderArray(@NonNull android.os.IBinder[]); method public void readBinderArray(@NonNull android.os.IBinder[]);

View File

@@ -486,8 +486,6 @@ public final class Parcel {
* transaction on this specific binder object. Based on this, the format of the wire binder * transaction on this specific binder object. Based on this, the format of the wire binder
* protocol may change. For future compatibility, it is recommended to use this for all * protocol may change. For future compatibility, it is recommended to use this for all
* Parcels. * Parcels.
*
* @hide
*/ */
@NonNull @NonNull
public static Parcel obtain(@NonNull IBinder binder) { public static Parcel obtain(@NonNull IBinder binder) {