IProcess Class Reference
[Binder]

#include <support/IProcess.h>

Inheritance diagram for IProcess:

IInterface SAtom BnProcess BProcess List of all members.

Detailed Description

Interface to an operating system process.

Clients will not normally use this interface directly, instead using it with other APIs such as SContext::NewProcess() and SContext::RemoteNew(). See Binder Process Model for more information.


Public Member Functions

virtual void AtomLeakReport (int32_t mark, int32_t last, uint32_t flags)=0
virtual int32_t AtomMarkLeakReport ()=0
 SAtom debugging hooks.
virtual sptr< IBinderInstantiateComponent (const sptr< INode > &ctx, const SValue &componentInfo, const SString &component, const SValue &args, status_t *outError=NULL)=0
 Create a new component in this team, and return a pointer to it.
status_t LinkProcess (const sptr< IBinder > &to, const SValue &mappings, uint32_t flags=0)
virtual void PrintBinderIPCProfiling ()=0
virtual void PrintBinderReferences ()=0
 Binder debugging hook. Only implemented on debug builds.
virtual void RestartBinderIPCProfiling ()=0
 Clear all binder IPC profiling statistics that have been collected in this team.
virtual void RestartMallocProfiling ()=0
 Clear all malloc() profiling statistics that have been collected in this team.
virtual void RestartMessageIPCProfiling ()=0
 Clear all message IPC profiling statistics that have been collected in this team.
virtual void RestartVectorProfiling ()=0
 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)=0
virtual void SetMallocProfiling (bool enabled, int32_t dumpPeriod, int32_t maxItems, int32_t stackDepth)=0
virtual void SetMessageIPCProfiling (bool enabled, int32_t dumpPeriod, int32_t maxItems, int32_t stackDepth)=0
virtual void SetVectorProfiling (bool enabled, int32_t dumpPeriod, int32_t maxItems, int32_t stackDepth)=0
status_t UnlinkProcess (const sptr< IBinder > &to, const SValue &mappings, uint32_t flags=0)

Protected Member Functions

 IProcess ()
virtual ~IProcess ()


Constructor & Destructor Documentation

IProcess  )  [inline, protected]
 

virtual ~IProcess  )  [protected, virtual]
 


Member Function Documentation

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

Implemented in BProcess.

virtual int32_t AtomMarkLeakReport  )  [pure virtual]
 

SAtom debugging hooks.

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

Implemented in BProcess.

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

Create a new component in this team, and return a pointer to it.

Parameters:
[in] ctx Context for this component to run in.
[in] componentInfo Information from package manager.
[in] component Name of the component in its addon (passed to SSharedObject::InstantiateComponent().)
[in] args Arguments to component constructor.
[out] outError Error code.
Returns:
Returns a new instances of the component, or NULL if there was an error.
Note:
The normal way to instantiate components is with the SContext::RemoteNew() method, retrieved through your BBinder::Context().

Implemented in BProcess.

status_t LinkProcess const sptr< IBinder > &  to,
const SValue mappings,
uint32_t  flags = 0
[inline]
 

virtual void PrintBinderIPCProfiling  )  [pure virtual]
 

Implemented in BProcess.

virtual void PrintBinderReferences  )  [pure virtual]
 

Binder debugging hook. Only implemented on debug builds.

Implemented in BProcess.

virtual void RestartBinderIPCProfiling  )  [pure virtual]
 

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

Implemented in BProcess.

virtual void RestartMallocProfiling  )  [pure virtual]
 

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

(Call DbgResetMallocProfiling() in the target process.)

Implemented in BProcess.

virtual void RestartMessageIPCProfiling  )  [pure virtual]
 

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

Implemented in BProcess.

virtual void RestartVectorProfiling  )  [pure virtual]
 

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

Implemented in BProcess.

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

Implemented in BProcess.

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

Implemented in BProcess.

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

Implemented in BProcess.

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

Implemented in BProcess.

status_t UnlinkProcess const sptr< IBinder > &  to,
const SValue mappings,
uint32_t  flags = 0
[inline]
 


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