#include <support/Binder.h>
Inheritance diagram for BnInterface:
You will not normally use this, instead letting pidgen generate similar code from an IDL file.
Public Member Functions | |
virtual SValue | Inspect (const sptr< IBinder > &, const SValue &which, uint32_t flags=0) |
Probe binder for interface information. | |
virtual sptr< IInterface > | InterfaceFor (const SValue &desc, uint32_t flags=0) |
Retrieve direct interface for this binder. | |
Protected Member Functions | |
virtual sptr< const IBinder > | AsBinderImpl () const |
virtual sptr< IBinder > | AsBinderImpl () |
BnInterface (const BnInterface< INTERFACE > &other) | |
BnInterface (const SContext &context) | |
BnInterface () | |
virtual | ~BnInterface () |
|
|
|
|
|
|
|
|
|
|
|
|
|
Probe binder for interface information. Return interfaces implemented by this binder object that are requested by which. This is a composition of all interfaces, expressed as { descriptor -> binder } mappings, which are selected through which. Much more information on Inspect() can be found at Binder Inspect() Details. Reimplemented from BBinder. Reimplemented in BStreamDatum::Stream, BByteStream, BReadOnlyStream, BWriteOnlyStream, BIOSStream, BMemoryStore, BNullStream, and BPipe. |
|
Retrieve direct interface for this binder. Given a SValue interface descriptor, return an IInterface implementing it. The default implementation of this function returns NULL, meaning it does not implement a direct interface to it. If the return is non-NULL, you are guaranteed to be able to static_cast<> the returned interface into the requested subclass and have it work. Note that this is NOT the same as calling Inspect(), which performs conversion between different IBinder objects. This method converts to an IInterface only for this binder object. Reimplemented from BBinder. |