fuchsia.session.power

APIs for power aspects of the session.

Added: HEAD

PROTOCOLS

Handoff

Defined in fuchsia.session.power/power.fidl

Lets the session manager handoff a power lease to a session component.

As an example, session_manager may take a lease on the ApplicationActivity power element, and offer Handoff to the session component. The session component can then take the lease from session_manager when it is started. This way a constant dependency is maintained on ApplicationActivity as the session is restarted.

Added: HEAD

Take

Take the lease.

Request

<EMPTY>

Response

NameType
payload Handoff_Take_Result

STRUCTS

Handoff_Take_Response resource

Defined in fuchsia.session.power/power.fidl

FieldTypeDescriptionDefault
lease handle<handle>

A lease on the power element.

This is secretly a fuchsia.power.broker.LeaseControl channel but we'd like to avoid exposing that to ffx. When that protocol is stabilized, we can replace the channel with that here.

TODO(https://fxbug.dev/339474151): This may also become an eventpair as the linked bug tracks migrating lease control channel to eventpair.

No default

ENUMS

HandoffError flexible

Type: uint32

Defined in fuchsia.session.power/power.fidl

Error when taking the power lease.

Added: HEAD

NameValueDescription
1

The lease is already taken.

2

The lease is not available due to errors or configuration.

UNIONS

Handoff_Take_Result strict resource

Defined in fuchsia.session.power/power.fidl

OrdinalVariantTypeDescription
response Handoff_Take_Response
err HandoffError
framework_err internal