fuchsia.device.power.test

PROTOCOLS

TestDevice

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

AddDeviceWithPowerArgs

Add Test Device with some powerargs

Request

NameType
info vector<fuchsia.device/DevicePowerStateInfo>
perf_state_info vector<fuchsia.device/DevicePerformanceStateInfo>
make_visible bool

Response

NameType
result TestDevice_AddDeviceWithPowerArgs_Result

GetCurrentDevicePowerState

Get current power state of the device

Request

NameType

Response

NameType
result TestDevice_GetCurrentDevicePowerState_Result

GetCurrentSuspendReason

Get the suspend reason of the last suspend call

Request

NameType

Response

NameType
result TestDevice_GetCurrentSuspendReason_Result

GetCurrentDeviceAutoSuspendConfig

Get current auto suspend status and deepest_sleep_state

Request

NameType

Response

NameType
result TestDevice_GetCurrentDeviceAutoSuspendConfig_Result

SetTestStatusInfo

Request

NameType
test_info TestStatusInfo

Response

NameType
result TestDevice_SetTestStatusInfo_Result

STRUCTS

TestDevice_AddDeviceWithPowerArgs_Response

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

NameTypeDescriptionDefault

TestDevice_GetCurrentDevicePowerState_Response

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

NameTypeDescriptionDefault
cur_state fuchsia.device/DevicePowerState No default

TestDevice_GetCurrentSuspendReason_Response

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

NameTypeDescriptionDefault
cur_suspend_reason uint8 No default

TestDevice_GetCurrentDeviceAutoSuspendConfig_Response

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

NameTypeDescriptionDefault
enabled bool No default
deepest_sleep_state fuchsia.device/DevicePowerState No default

TestDevice_SetTestStatusInfo_Response

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

NameTypeDescriptionDefault

TestStatusInfo

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

NameTypeDescriptionDefault
suspend_status zx/status

Driver will respond to suspend hook with this status.

No default
resume_status zx/status

Driver will respond to resume hook with this status.

No default
out_power_state uint8

This is the out_power_state we want as a reply.

No default
out_performance_state uint8

This is the out_perf_state we want as a reply.

No default

UNIONS

TestDevice_AddDeviceWithPowerArgs_Result

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

NameTypeDescription
response TestDevice_AddDeviceWithPowerArgs_Response
err zx/status

TestDevice_GetCurrentDevicePowerState_Result

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

NameTypeDescription
response TestDevice_GetCurrentDevicePowerState_Response
err zx/status

TestDevice_GetCurrentSuspendReason_Result

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

NameTypeDescription
response TestDevice_GetCurrentSuspendReason_Response
err zx/status

TestDevice_GetCurrentDeviceAutoSuspendConfig_Result

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

NameTypeDescription
response TestDevice_GetCurrentDeviceAutoSuspendConfig_Response
err zx/status

TestDevice_SetTestStatusInfo_Result

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

NameTypeDescription
response TestDevice_SetTestStatusInfo_Response
err zx/status