|
Public Types |
enum | new_flags_enum {
PROCESS_MASK = 0x000f,
PREFER_LOCAL = 0x0000,
PREFER_REMOTE = 0x0001,
REQUIRE_LOCAL = 0x0002,
REQUIRE_REMOTE = 0x0003
} |
| Flags given to New(), RemoteNew(), and NewProcess() to control process assignment. More...
|
Public Member Functions |
status_t | InitCheck () const |
SValue | Lookup (const SString &location) const |
status_t | LookupComponent (const SString &id, SValue *out_info) const |
SValue | LookupComponentProperty (const SString &component, const SString &property) const |
sptr< IBinder > | LookupService (const SString &name) const |
template<class INTERFACE> |
sptr< INTERFACE > | LookupServiceAs (const SString &name) const |
sptr< IBinder > | New (const SValue &component, const SValue &args=B_UNDEFINED_VALUE, uint32_t flags=PREFER_LOCAL, status_t *outError=NULL) const |
| Instantiate a new component, possibly hosted by the local process.
|
sptr< IBinder > | NewCustomProcess (const SString &executable, const SVector< SString > &args=SVector< SString >(), uint32_t flags=0, const SValue &env=B_UNDEFINED_VALUE, status_t *outError=NULL) const |
| Low-level process instantiation function. Use NewProcess() instead.
|
sptr< IProcess > | NewProcess (const SString &name, uint32_t flags=PREFER_REMOTE, const SValue &env=B_UNDEFINED_VALUE, status_t *outError=NULL) const |
| Instantiate a new process.
|
bool | operator!= (const SContext &o) const |
bool | operator< (const SContext &o) const |
bool | operator<= (const SContext &o) const |
SContext & | operator= (const SContext &o) |
bool | operator== (const SContext &o) const |
bool | operator> (const SContext &o) const |
bool | operator>= (const SContext &o) const |
status_t | Publish (const SString &location, const SValue &val) const |
status_t | PublishService (const SString &name, const sptr< IBinder > &object) const |
sptr< IBinder > | RemoteNew (const SValue &component, const sptr< IProcess > &process, const SValue &args=B_UNDEFINED_VALUE, uint32_t flags=PREFER_LOCAL, status_t *outError=NULL) const |
| Instantiate a new component, possibly hosted by a specified process.
|
sptr< INode > | Root () const |
status_t | RunScript (const SString &filename) const |
| SContext (const SContext &context) |
| SContext (const sptr< INode > &node) |
| SContext () |
status_t | Unpublish (const SString &location) const |
| ~SContext () |
Static Public Member Functions |
static SContext | GetContext (const SString &name, const sptr< IProcess > &caller) |
| Low-level version of GetContext() taking an explicit process.
|
static SContext | GetContext (const SString &name) |
| Back-door to retrieve a specific named context.
|
static SContext | SystemContext () |
| Back-door for retrieving the global system context.
|
static SContext | UserContext () |
| Back-door for retrieving the global user context.
|