diff options
Diffstat (limited to 'libs/binder/include/binder/IBinder.h')
-rw-r--r-- | libs/binder/include/binder/IBinder.h | 47 |
1 files changed, 16 insertions, 31 deletions
diff --git a/libs/binder/include/binder/IBinder.h b/libs/binder/include/binder/IBinder.h index 97c826ce76..64604b74f0 100644 --- a/libs/binder/include/binder/IBinder.h +++ b/libs/binder/include/binder/IBinder.h @@ -14,9 +14,9 @@ * limitations under the License. */ -#pragma once +#ifndef ANDROID_IBINDER_H +#define ANDROID_IBINDER_H -#include <android-base/unique_fd.h> #include <utils/Errors.h> #include <utils/RefBase.h> #include <utils/String16.h> @@ -50,39 +50,26 @@ class [[clang::lto_visibility_public]] IBinder : public virtual RefBase { public: enum { - FIRST_CALL_TRANSACTION = 0x00000001, - LAST_CALL_TRANSACTION = 0x00ffffff, + FIRST_CALL_TRANSACTION = 0x00000001, + LAST_CALL_TRANSACTION = 0x00ffffff, - PING_TRANSACTION = B_PACK_CHARS('_', 'P', 'N', 'G'), - DUMP_TRANSACTION = B_PACK_CHARS('_', 'D', 'M', 'P'), - SHELL_COMMAND_TRANSACTION = B_PACK_CHARS('_', 'C', 'M', 'D'), - INTERFACE_TRANSACTION = B_PACK_CHARS('_', 'N', 'T', 'F'), - SYSPROPS_TRANSACTION = B_PACK_CHARS('_', 'S', 'P', 'R'), - 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'), + PING_TRANSACTION = B_PACK_CHARS('_','P','N','G'), + DUMP_TRANSACTION = B_PACK_CHARS('_','D','M','P'), + SHELL_COMMAND_TRANSACTION = B_PACK_CHARS('_','C','M','D'), + INTERFACE_TRANSACTION = B_PACK_CHARS('_', 'N', 'T', 'F'), + SYSPROPS_TRANSACTION = B_PACK_CHARS('_', 'S', 'P', 'R'), + EXTENSION_TRANSACTION = B_PACK_CHARS('_', 'E', 'X', 'T'), + DEBUG_PID_TRANSACTION = B_PACK_CHARS('_', 'P', 'I', 'D'), // Corresponds to TF_ONE_WAY -- an asynchronous call. - FLAG_ONEWAY = 0x00000001, - - // Corresponds to TF_CLEAR_BUF -- clear transaction buffers after call - // is made - FLAG_CLEAR_BUF = 0x00000020, + FLAG_ONEWAY = 0x00000001, // Private userspace flag for transaction which is being requested from // a vendor context. - FLAG_PRIVATE_VENDOR = 0x10000000, + FLAG_PRIVATE_VENDOR = 0x10000000, }; - IBinder(); + IBinder(); /** * Check if this IBinder implements the interface named by @@ -186,10 +173,6 @@ public: * The @a cookie is optional -- if non-NULL, it should be a * memory address that you own (that is, you know it is unique). * - * @note When all references to the binder being linked to are dropped, the - * recipient is automatically unlinked. So, you must hold onto a binder in - * order to receive death notifications about it. - * * @note You will only receive death notifications for remote binders, * as local binders by definition can't die without you dying as well. * Trying to use this function on a local binder will result in an @@ -266,3 +249,5 @@ private: } // namespace android // --------------------------------------------------------------------------- + +#endif // ANDROID_IBINDER_H |