Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a97c5233 authored by Steven Moreland's avatar Steven Moreland
Browse files

libbinder_ndk: clarify descriptor encoding

These are utf-8 (same as is used by String8), though in practice they'll
generally be ASCII.

Bug: 185256226
Test: N/A
Change-Id: I73adfb5552bd7f81cdc9fd559f4edb3d922af67e
parent d5cc17b3
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -173,7 +173,7 @@ typedef binder_status_t (*AIBinder_Class_onTransact)(AIBinder* binder, transacti
 * Available since API level 29.
 *
 * \param interfaceDescriptor this is a unique identifier for the class. This is used internally for
 * sanity checks on transactions.
 * validity checks on transactions. This should be utf-8.
 * \param onCreate see AIBinder_Class_onCreate.
 * \param onDestroy see AIBinder_Class_onDestroy.
 * \param onTransact see AIBinder_Class_onTransact.
@@ -645,7 +645,9 @@ binder_status_t AIBinder_setExtension(AIBinder* binder, AIBinder* ext) __INTRODU
 *
 * \return the class descriptor string. This pointer will never be null; a
 * descriptor is required to define a class. The pointer is owned by the class
 * and will remain valid as long as the class does.
 * and will remain valid as long as the class does. For a local class, this will
 * be the same value (not necessarily pointer equal) as is passed into
 * AIBinder_Class_define. Format is utf-8.
 */
const char* AIBinder_Class_getDescriptor(const AIBinder_Class* clazz) __INTRODUCED_IN(31);