BProcess Class Reference
[Binder]

#include <support/Process.h>

Inheritance diagram for BProcess:

BnProcess IProcess BBinder IInterface IBinder SAtom SAtom List of all members.

Detailed Description

Representation of your currently running process.


Public Types

typedef void(* catchReleaseFunc )(IBinder *obj)

Public Member Functions

virtual void AtomLeakReport (int32_t mark, int32_t last, uint32_t flags)
virtual int32_t AtomMarkLeakReport ()
 SAtom debugging hooks.
void BatchPutReferences ()
 BProcess (team_id tid)
void CatchHandleRelease (const sptr< IBinder > &remoteObject, catchReleaseFunc callbackFunc)
void DispatchMessage (SLooper *looper)
void ExpungeHandle (int32_t handle, IBinder *binder)
bool ExpungePackage (const wptr< ComponentImage > &image)
nsecs_t GetEventDelayTime (SLooper *caller) const
nsecs_t GetNextEventTime () const
sptr< IBinderGetStrongProxyForHandle (int32_t handle)
wptr< IBinderGetWeakProxyForHandle (int32_t handle)
team_id ID () const
virtual sptr< IBinderInstantiateComponent (const sptr< INode > &node, const SValue &componentInfo, const SString &component, const SValue &args, status_t *outError=NULL)
 Implement IProcess interface.
bool IsShuttingDown () const
virtual void PrintBinderIPCProfiling (void)
virtual void PrintBinderReferences (void)
 Binder debugging hook. Only implemented on debug builds.
virtual void RestartBinderIPCProfiling (void)
 Clear all binder IPC profiling statistics that have been collected in this team.
virtual void RestartMallocProfiling (void)
 Clear all malloc() profiling statistics that have been collected in this team.
virtual void RestartMessageIPCProfiling (void)
 Clear all message IPC profiling statistics that have been collected in this team.
virtual void RestartVectorProfiling (void)
 Clear all SVector profiling statistics that have been collected in this team.
virtual void SetBinderIPCProfiling (bool enabled, int32_t dumpPeriod, int32_t maxItems, int32_t stackDepth)
void SetHandlerConcurrency (int32_t maxConcurrency)
virtual void SetMallocProfiling (bool enabled, int32_t dumpPeriod, int32_t maxItems, int32_t stackDepth)
virtual void SetMessageIPCProfiling (bool enabled, int32_t dumpPeriod, int32_t maxItems, int32_t stackDepth)
virtual void SetVectorProfiling (bool enabled, int32_t dumpPeriod, int32_t maxItems, int32_t stackDepth)
void Shutdown ()
void StrongHandleGone (IBinder *binder)

Static Public Member Functions

static sptr< IProcessSpawn (const SString &name=SString(), const SValue &env=B_UNDEFINED_VALUE, uint32_t flags=0)
 components in.
static sptr< IBinderSpawnFile (const SString &file_path, const SValue &env=B_UNDEFINED_VALUE, uint32_t flags=0)
 Load the requested image as a new team, and return its root object.

Protected Member Functions

virtual void InitAtom ()
 Called the first time a strong reference is acquired. All significant object initialization should go here.
virtual ~BProcess ()

Friends

class ProcessFreeKey
class SHandler
class SLooper

Classes

class  ComponentImage


Member Typedef Documentation

typedef void(* catchReleaseFunc)(IBinder *obj)
 


Constructor & Destructor Documentation

BProcess team_id  tid  ) 
 

~BProcess  )  [protected, virtual]
 


Member Function Documentation

void AtomLeakReport int32_t  mark,
int32_t  last,
uint32_t  flags
[virtual]
 

Implements IProcess.

int32_t AtomMarkLeakReport  )  [virtual]
 

SAtom debugging hooks.

Only implemented on debug builds. You must also enable atom debugging. Flags are defined in support/Atom.h.

Implements IProcess.

void BatchPutReferences  ) 
 

void CatchHandleRelease const sptr< IBinder > &  remoteObject,
catchReleaseFunc  callbackFunc
 

void DispatchMessage SLooper looper  ) 
 

void ExpungeHandle int32_t  handle,
IBinder binder
 

bool ExpungePackage const wptr< ComponentImage > &  image  ) 
 

nsecs_t GetEventDelayTime SLooper caller  )  const
 

nsecs_t GetNextEventTime  )  const
 

sptr< IBinder > GetStrongProxyForHandle int32_t  handle  ) 
 

wptr< IBinder > GetWeakProxyForHandle int32_t  handle  ) 
 

int32_t ID  )  const
 

void InitAtom  )  [protected, virtual]
 

Called the first time a strong reference is acquired. All significant object initialization should go here.

You can override it and do any setup you need. Note that you do not need to call the SAtom implementation. (So you can derive from two different SAtom implementations and safely call down to both of their IncStrong() methods.)

See also:
IncStrong()

Reimplemented from SAtom.

sptr< IBinder > InstantiateComponent const sptr< INode > &  node,
const SValue componentInfo,
const SString component,
const SValue args,
status_t outError = NULL
[virtual]
 

Implement IProcess interface.

Implements IProcess.

bool IsShuttingDown  )  const
 

void PrintBinderIPCProfiling void   )  [virtual]
 

Implements IProcess.

void PrintBinderReferences void   )  [virtual]
 

Binder debugging hook. Only implemented on debug builds.

Implements IProcess.

void RestartBinderIPCProfiling void   )  [virtual]
 

Clear all binder IPC profiling statistics that have been collected in this team.

Implements IProcess.

void RestartMallocProfiling void   )  [virtual]
 

Clear all malloc() profiling statistics that have been collected in this team.

(Call DbgResetMallocProfiling() in the target process.)

Implements IProcess.

void RestartMessageIPCProfiling void   )  [virtual]
 

Clear all message IPC profiling statistics that have been collected in this team.

Implements IProcess.

void RestartVectorProfiling void   )  [virtual]
 

Clear all SVector profiling statistics that have been collected in this team.

Implements IProcess.

void SetBinderIPCProfiling bool  enabled,
int32_t  dumpPeriod,
int32_t  maxItems,
int32_t  stackDepth
[virtual]
 

Implements IProcess.

void SetHandlerConcurrency int32_t  maxConcurrency  ) 
 

void SetMallocProfiling bool  enabled,
int32_t  dumpPeriod,
int32_t  maxItems,
int32_t  stackDepth
[virtual]
 

Implements IProcess.

void SetMessageIPCProfiling bool  enabled,
int32_t  dumpPeriod,
int32_t  maxItems,
int32_t  stackDepth
[virtual]
 

Implements IProcess.

void SetVectorProfiling bool  enabled,
int32_t  dumpPeriod,
int32_t  maxItems,
int32_t  stackDepth
[virtual]
 

Implements IProcess.

void Shutdown  ) 
 

sptr< IProcess > Spawn const SString name = SString(),
const SValue env = B_UNDEFINED_VALUE,
uint32_t  flags = 0
[static]
 

components in.

sptr< IBinder > SpawnFile const SString file_path,
const SValue env = B_UNDEFINED_VALUE,
uint32_t  flags = 0
[static]
 

Load the requested image as a new team, and return its root object.

void StrongHandleGone IBinder binder  ) 
 


Friends And Related Function Documentation

friend class ProcessFreeKey [friend]
 

friend class SHandler [friend]
 

friend class SLooper [friend]
 


The documentation for this class was generated from the following files: