binder_ndk_sys

Function AIBinder_Weak_promote

Source
pub unsafe extern "C" fn AIBinder_Weak_promote(
    weakBinder: *mut AIBinder_Weak,
) -> *mut AIBinder
Expand description

If promotion succeeds, result will have one strong refcount added to it. Otherwise, this returns null.

Available since API level 29.

\param weakBinder weak pointer to attempt retrieving the original object from.

\return an AIBinder object with one refcount given to the caller or null.