class ICInterface

Defined at line 132 of file ../../third_party/android/platform/frameworks/native/libs/binder/ndk/include_cpp/android/binder_interface_utils.h

wrapper analog to IInterface

Public Methods

void ICInterface ()

Defined at line 134 of file ../../third_party/android/platform/frameworks/native/libs/binder/ndk/include_cpp/android/binder_interface_utils.h

SpAIBinder asBinder ()

This either returns the single existing implementation or creates a new implementation.

bool isRemote ()

Returns whether this interface is in a remote process. If it cannot be determined locally,

this will be checked using AIBinder_isRemote.

void ~ICInterface ()

Defined at line 135 of file ../../third_party/android/platform/frameworks/native/libs/binder/ndk/include_cpp/android/binder_interface_utils.h

binder_status_t dump (int fd, const char ** args, uint32_t numArgs)

Dumps information about the interface. By default, dumps nothing.

This method is not given ownership of the FD.

Defined at line 255 of file ../../third_party/android/platform/frameworks/native/libs/binder/ndk/include_cpp/android/binder_interface_utils.h

binder_status_t handleShellCommand (int in, int out, int err, const char ** argv, uint32_t argc)

Process shell commands. By default, does nothing.

Defined at line 260 of file ../../third_party/android/platform/frameworks/native/libs/binder/ndk/include_cpp/android/binder_interface_utils.h

std::shared_ptr<ICInterface> asInterface (AIBinder * binder)

Interprets this binder as this underlying interface if this has stored an ICInterface in the

binder's user data.

This does not do type checking and should only be used when the binder is known to originate

from ICInterface. Most likely, you want to use I*::fromBinder.

Defined at line 266 of file ../../third_party/android/platform/frameworks/native/libs/binder/ndk/include_cpp/android/binder_interface_utils.h

AIBinder_Class * defineClass (const char * interfaceDescriptor, AIBinder_Class_onTransact onTransact, const char ** codeToFunction, size_t functionCount)

Helper method to create a class

Defined at line 276 of file ../../third_party/android/platform/frameworks/native/libs/binder/ndk/include_cpp/android/binder_interface_utils.h

AIBinder_Class * defineClass (const char * interfaceDescriptor, AIBinder_Class_onTransact onTransact)

Defined at line 270 of file ../../third_party/android/platform/frameworks/native/libs/binder/ndk/include_cpp/android/binder_interface_utils.h