class BBinder

Defined at line 31 of file ../../third_party/android/platform/frameworks/native/libs/binder/include/binder/Binder.h

Public Methods

void BBinder ()
const String16 & getInterfaceDescriptor ()
bool isBinderAlive ()
status_t pingBinder ()
status_t dump (int fd, const Vector<String16> & args)
status_t transact (uint32_t code, const Parcel & data, Parcel * reply, uint32_t flags)

NOLINTNEXTLINE(google-default-arguments)

status_t linkToDeath (const sp<DeathRecipient> & recipient, void * cookie, uint32_t flags)

NOLINTNEXTLINE(google-default-arguments)

status_t unlinkToDeath (const wp<DeathRecipient> & recipient, void * cookie, uint32_t flags, wp<DeathRecipient> * outRecipient)

NOLINTNEXTLINE(google-default-arguments)

void * attachObject (const void * objectID, void * object, void * cleanupCookie, object_cleanup_func func)
void * findObject (const void * objectID)
void * detachObject (const void * objectID)
void withLock (const std::function<void ()> & doWithLock)
sp<IBinder> lookupOrCreateWeak (const void * objectID, IBinder::object_make_func make, const void * makeArgs)
BBinder * localBinder ()
bool isRequestingSid ()
void setRequestingSid (bool requestSid)

This must be called before the object is sent to another process. Not thread safe.

sp<IBinder> getExtension ()
void setExtension (const sp<IBinder> & extension)

This must be called before the object is sent to another process. Not thread safe.

void setMinSchedulerPolicy (int policy, int priority)

This must be called before the object is sent to another process. Not thread safe.

This function will abort if improper parameters are set. This is like

sched_setscheduler. However, it sets the minimum scheduling policy

only for the duration that this specific binder object is handling the

call in a threadpool. By default, this API is set to SCHED_NORMAL/0. In

this case, the scheduling priority will not actually be modified from

binder defaults. See also IPCThreadState::disableBackgroundScheduling.

Appropriate values are:

SCHED_NORMAL: -20

<

= priority

<

= 19

SCHED_RR/SCHED_FIFO: 1

<

= priority

<

= 99

int getMinSchedulerPolicy ()
int getMinSchedulerPriority ()
bool isInheritRt ()

Whether realtime scheduling policies are inherited.

void setInheritRt (bool inheritRt)

This must be called before the object is sent to another process. Not thread safe.

pid_t getDebugPid ()
bool wasParceled ()

Whether this binder has been sent to another process.

void setParceled ()

Consider this binder as parceled (setup/init-related calls should no

longer by called. This is automatically set by when this binder is sent

to another process.

status_t setRpcClientDebug (binder::unique_fd clientFd, const sp<IBinder> & keepAliveBinder)

Protected Methods

void ~BBinder ()
status_t onTransact (uint32_t code, const Parcel & data, Parcel * reply, uint32_t flags)

NOLINTNEXTLINE(google-default-arguments)

Friends

class Stability