binder_ndk_sys

Function AIBinder_Class_getFunctionName

Source
pub unsafe extern "C" fn AIBinder_Class_getFunctionName(
    clazz: *mut AIBinder_Class,
    code: transaction_code_t,
) -> *const c_char
Expand description

Get function name associated with transaction code for given class

This function returns function name associated with provided transaction code for given class. AIBinder_Class_setTransactionCodeToFunctionNameMap should be called first to associate function to transaction code mapping.

Available since API level 36.

\param clazz class for which function name is requested \param transactionCode transaction_code_t for which function name is requested.

\return function name in form of const char* if transaction code is valid for given class. The value returned is valid for the lifetime of clazz. if transaction code is invalid or transactionCodeToFunctionMap is not set, nullptr is returned.