Merge "Parcel: warnings for 'REPLY' statuses" am: d36a3f33e2

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

Change-Id: I953c099b4cdbc971362220ade5b2b9130c9edad0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Steven Moreland
2022-06-10 19:40:22 +00:00
committed by Automerger Merge Worker

View File

@@ -347,7 +347,15 @@ public final class Parcel {
private static final int EX_SERVICE_SPECIFIC = -8; private static final int EX_SERVICE_SPECIFIC = -8;
private static final int EX_PARCELABLE = -9; private static final int EX_PARCELABLE = -9;
/** @hide */ /** @hide */
// WARNING: DO NOT add more 'reply' headers. These also need to add work to native
// code and this encodes extra information in object statuses. If we need to expand
// this design, we should add a generic way to attach parcelables/structured parcelables
// to transactions which can work across languages.
public static final int EX_HAS_NOTED_APPOPS_REPLY_HEADER = -127; // special; see below public static final int EX_HAS_NOTED_APPOPS_REPLY_HEADER = -127; // special; see below
// WARNING: DO NOT add more 'reply' headers. These also need to add work to native
// code and this encodes extra information in object statuses. If we need to expand
// this design, we should add a generic way to attach parcelables/structured parcelables
// to transactions which can work across languages.
private static final int EX_HAS_STRICTMODE_REPLY_HEADER = -128; // special; see below private static final int EX_HAS_STRICTMODE_REPLY_HEADER = -128; // special; see below
// EX_TRANSACTION_FAILED is used exclusively in native code. // EX_TRANSACTION_FAILED is used exclusively in native code.
// see libbinder's binder/Status.h // see libbinder's binder/Status.h