Package: android.hardware.power@1.1

types

Properties

PowerStateSubsystemSleepState

struct PowerStateSubsystemSleepState {string name; uint64_t residencyInMsecSinceBoot; uint64_t totalTransitions; uint64_t lastEntryTimestampMs; bool supportedOnlyInSuspend}

Subsytem-level sleep state stats:PowerStateSubsystemSleepState represents the sleep states a subsystem(e.g.wifi, bt)is capable of getting into.

SoCs like wifi, bt usually have more than one subsystem level sleep state.

Details
Members
name
Subsystem-level Sleep state name.
residencyInMsecSinceBoot
Time spent in msec at this subsystem-level sleep state since boot.
totalTransitions
Total number of times sub-system entered this state.
lastEntryTimestampMs
Timestamp of last entry of this state measured in MSec
supportedOnlyInSuspend
This subsystem-level sleep state can only be reached during system suspend

PowerStateSubsystem

struct PowerStateSubsystem {string name; vec states}

Subsytem-level sleep state stats:PowerStateSubsystem represents a subsystem(e.g.wifi, bt)and all the sleep states this susbsystem is capable of getting into.

SoCs like wifi, bt usually have more than one subsystem level sleep state.

Details
Members
name
Subsystem name(e.g.wifi, bt etc.)
states
states represents the list of sleep states supported by this susbsystem.Higher the index in the returned<states>vector deeper the state is i.e.lesser steady-state power is consumed by the subsystem to to be resident in that state.
Vector of size zero implies either the info is not available or the subsystem does not have any sleep states.