Package: android.hardware.health@2.0

types

Properties

Result

enum Result: @1.0::Result

Status values for HAL methods.

Details
Members
NOT_FOUND
CALLBACK_DIED

HealthInfo

struct HealthInfo {@ legacy; int32_t batteryCurrentAverage; int32_t batteryCapacity; int64_t energyCounter}
Details
Members
legacy
Legacy information from 1.0 HAL.
If a value is not available, it must be set to 0, UNKNOWN, or empty string.
batteryCurrentAverage
Average battery current in microamperes.Positive values indicate net current entering the battery from a charge source, negative values indicate net current discharging from the battery.The time period over which the average is computed may depend on the fuel gauge hardware and its configuration.
If this value is not available, it must be set to 0.
batteryCapacity
Remaining battery capacity percentage of total capacity(with no fractional part). This value must be in the range 0-100(inclusive).
If this value is not available, it must be set to 0.
energyCounter
Battery remaining energy in nanowatt-hours.
If this value is not available, it must be set to 0.