fuchsia.device.lifecycle.test

PROTOCOLS

TestDevice

Defined in fuchsia.device.lifecycle.test/lifecycle.test.fidl

AddChild

Adds a child device and returns a unique |id| for the created device. |complete_init| specifies whether the init hook should be replied to immediately, or completed later by the caller with |CompleteChildInit|.

Request

NameType
init_complete bool
init_status zx/status

Response

NameType
result TestDevice_AddChild_Result

RemoveChild

Removes the child device of the given |id|.

Request

NameType
child_id uint64

Response

NameType
result TestDevice_RemoveChild_Result

CompleteChildInit

Replies to the child init hook. Returns an error if the child has no pending init.

Request

NameType
child_id uint64

Response

NameType
result TestDevice_CompleteChildInit_Result

SubscribeToLifecycle

Registers the client for device lifecycle events.

Request

NameType
client request<Lifecycle>

Response

NameType
result TestDevice_SubscribeToLifecycle_Result

Lifecycle

Defined in fuchsia.device.lifecycle.test/lifecycle.test.fidl

OnChildPreRelease

Sent when the ChildPreRelease hook is called.

Response

NameType
child_id uint64

STRUCTS

TestDevice_AddChild_Response

Defined in fuchsia.device.lifecycle.test/lifecycle.test.fidl

NameTypeDescriptionDefault
child_id uint64 No default

TestDevice_RemoveChild_Response

Defined in fuchsia.device.lifecycle.test/lifecycle.test.fidl

NameTypeDescriptionDefault

TestDevice_CompleteChildInit_Response

Defined in fuchsia.device.lifecycle.test/lifecycle.test.fidl

NameTypeDescriptionDefault

TestDevice_SubscribeToLifecycle_Response

Defined in fuchsia.device.lifecycle.test/lifecycle.test.fidl

NameTypeDescriptionDefault

UNIONS

TestDevice_AddChild_Result

Defined in fuchsia.device.lifecycle.test/lifecycle.test.fidl

NameTypeDescription
response TestDevice_AddChild_Response
err zx/status

TestDevice_RemoveChild_Result

Defined in fuchsia.device.lifecycle.test/lifecycle.test.fidl

NameTypeDescription
response TestDevice_RemoveChild_Response
err zx/status

TestDevice_CompleteChildInit_Result

Defined in fuchsia.device.lifecycle.test/lifecycle.test.fidl

NameTypeDescription
response TestDevice_CompleteChildInit_Response
err zx/status

TestDevice_SubscribeToLifecycle_Result

Defined in fuchsia.device.lifecycle.test/lifecycle.test.fidl

NameTypeDescription
response TestDevice_SubscribeToLifecycle_Response
err zx/status