Google is committed to advancing racial equity for Black communities. See how.

fuchsia.device.lifecycle.test

PROTOCOLS

Lifecycle

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

OnChildPreRelease

Sent when the ChildPreRelease hook is called.

Response

NameType
child_id uint64

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

AsyncRemoveChild

Asynchronously removes a child device. The remove must be completed with CompleteUnbind.

Request

NameType
child_id uint64

Response

NameType
result TestDevice_AsyncRemoveChild_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

CompleteUnbind

Finishes an unbind started by AsyncRemoveChild.

Request

NameType
child_id uint64

Response

NameType
result TestDevice_CompleteUnbind_Result

RemoveChild

Removes the child device of the given |id|.

Request

NameType
child_id uint64

Response

NameType
result TestDevice_RemoveChild_Result

SubscribeToLifecycle

Registers the client for device lifecycle events.

Request

NameType
client request<Lifecycle>

Response

NameType
result TestDevice_SubscribeToLifecycle_Result

STRUCTS

TestDevice_AddChild_Response

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

NameTypeDescriptionDefault
child_id uint64 No default

TestDevice_AsyncRemoveChild_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_CompleteUnbind_Response

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

NameTypeDescriptionDefault

TestDevice_RemoveChild_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_AsyncRemoveChild_Result

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

NameTypeDescription
response TestDevice_AsyncRemoveChild_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_CompleteUnbind_Result

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

NameTypeDescription
response TestDevice_CompleteUnbind_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_SubscribeToLifecycle_Result

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

NameTypeDescription
response TestDevice_SubscribeToLifecycle_Response
err zx/status