diff options
author | Steven Moreland <smoreland@google.com> | 2022-06-10 17:40:52 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2022-06-10 17:40:52 +0000 |
commit | d36a3f33e2b813c9ff48cffc062c6b875135ec49 (patch) | |
tree | 2189413a15e3e67807f39b358e2aee428901ed70 | |
parent | 86085aae143d4f03d00a9856ddd498485cd66a7c (diff) | |
parent | 06e455018709b3a8ced50b21e02c2cbcff4707b0 (diff) | |
download | base-d36a3f33e2b813c9ff48cffc062c6b875135ec49.tar.gz |
Merge "Parcel: warnings for 'REPLY' statuses"
-rw-r--r-- | core/java/android/os/Parcel.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/core/java/android/os/Parcel.java b/core/java/android/os/Parcel.java index 08ab73b9dd92..524052241bbf 100644 --- a/core/java/android/os/Parcel.java +++ b/core/java/android/os/Parcel.java @@ -347,7 +347,15 @@ public final class Parcel { private static final int EX_SERVICE_SPECIFIC = -8; private static final int EX_PARCELABLE = -9; /** @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 + // 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 // EX_TRANSACTION_FAILED is used exclusively in native code. // see libbinder's binder/Status.h |