summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Steven Moreland <smoreland@google.com> 2021-02-03 00:16:29 +0000
committer Steven Moreland <smoreland@google.com> 2021-02-03 00:46:52 +0000
commitaa59d36d40717f3b5129fd2e7eda40f5b5eb9c9b (patch)
treefcf4abefa30aa2d1d5e38387a99099fc3c863642
parentc282248fd7c6d1e8a4fa2f4a91e52186aee52082 (diff)
libbinder: Java/C++ *_TRANSACTION parity
TWEET_TRANSACTION and LIKE_TRANSACTION have long been Java-only features in Android. Though, by all accounts, it has been 9.5 years since their inclusion, and the social landscape has been made portrait (and back and forth, and back and forth, and so goes the pendelum of time), the managed app, now (!) every binder and daemon, every process, thread, every fiber, every bound iface, whether preinstalled or downloaded, enjoys itself a quiet smile or a chuckle or a warm feeling in its heart at the directed tweet (or cold rage or fury when the need to argue arises!). Same too, with the ready-fire like, an uncrafted promotor of unconstrained joy and appreciation for the IPCs or APIs, carefully crafted and readily available, or the interesting return value, or heck, maybe even the timing or just for the lols! Though, due to timing constraints (and the NDK/Rust backend abstraction from transaction codes in favor of function APIs which encode the protocol of these functions), Android S might not see this functionality there, it is a future consideration. Fixes: 178706440 Test: N/A Change-Id: I3f628c747b70a77e199abc7252a56fdc36ef4308
-rw-r--r--libs/binder/include/binder/IBinder.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/libs/binder/include/binder/IBinder.h b/libs/binder/include/binder/IBinder.h
index c8fb448a2d..31f63c86b8 100644
--- a/libs/binder/include/binder/IBinder.h
+++ b/libs/binder/include/binder/IBinder.h
@@ -60,6 +60,15 @@ public:
EXTENSION_TRANSACTION = B_PACK_CHARS('_', 'E', 'X', 'T'),
DEBUG_PID_TRANSACTION = B_PACK_CHARS('_', 'P', 'I', 'D'),
+ // See android.os.IBinder.TWEET_TRANSACTION
+ // Most importantly, messages can be anything not exceeding 130 UTF-8
+ // characters, and callees should exclaim "jolly good message old boy!"
+ TWEET_TRANSACTION = B_PACK_CHARS('_', 'T', 'W', 'T'),
+
+ // See android.os.IBinder.LIKE_TRANSACTION
+ // Improve binder self-esteem.
+ LIKE_TRANSACTION = B_PACK_CHARS('_', 'L', 'I', 'K'),
+
// Corresponds to TF_ONE_WAY -- an asynchronous call.
FLAG_ONEWAY = 0x00000001,