Namespaces
Enumerations
enum class BatteryStatus : uint32_t
| Name | Value | Comments |
|---|---|---|
| kUnknown | 0u |
Uninitialized battery status. |
| kOk | 1u |
Battery present and available. |
| kNotAvailable | 2u |
Battery present, but not available (e.g. disabled). |
| kNotPresent | 3u |
Battery not present (e.g. removed or no battery). |
The overall status of the battery, informing its general availability.
Defined at line 18 of file fidling/gen/sdk/fidl/fuchsia.power.battery/fuchsia.power.battery/cpp/fidl/fuchsia.power.battery/cpp/common_types.h
enum class ChargeStatus : uint32_t
| Name | Value |
|---|---|
| kUnknown | 0u |
| kNotCharging | 1u |
| kCharging | 2u |
| kDischarging | 3u |
| kFull | 4u |
The status of the battery with respect to charging.
Defined at line 50 of file fidling/gen/sdk/fidl/fuchsia.power.battery/fuchsia.power.battery/cpp/fidl/fuchsia.power.battery/cpp/common_types.h
enum class ChargeSource : uint32_t
| Name | Value | Comments |
|---|---|---|
| kUnknown | 0u |
Indicates the power source cannot be determined (for example, due to an error).
Clients should handle this state conservatively. When determining if the device |
| kNone | 1u |
Indicates the power source cannot be determined (for example, due to an error).
Clients should handle this state conservatively. When determining if the device |
| kAcAdapter | 2u |
Indicates the power source cannot be determined (for example, due to an error).
Clients should handle this state conservatively. When determining if the device |
| kUsb | 3u |
Indicates the power source cannot be determined (for example, due to an error).
Clients should handle this state conservatively. When determining if the device |
| kWireless | 4u |
Indicates the power source cannot be determined (for example, due to an error).
Clients should handle this state conservatively. When determining if the device |
The power source kind.
Defined at line 80 of file fidling/gen/sdk/fidl/fuchsia.power.battery/fuchsia.power.battery/cpp/fidl/fuchsia.power.battery/cpp/common_types.h
enum class LevelStatus : uint32_t
| Name | Value |
|---|---|
| kUnknown | 0u |
| kOk | 1u |
| kWarning | 2u |
| kLow | 3u |
| kCritical | 4u |
The general status of the battery level.
Defined at line 114 of file fidling/gen/sdk/fidl/fuchsia.power.battery/fuchsia.power.battery/cpp/fidl/fuchsia.power.battery/cpp/common_types.h
enum class HealthStatus : uint32_t
| Name | Value |
|---|---|
| kUnknown | 0u |
| kGood | 1u |
| kCold | 2u |
| kHot | 3u |
| kDead | 4u |
| kOverVoltage | 5u |
| kUnspecifiedFailure | 6u |
| kCool | 7u |
| kWarm | 8u |
| kOverheat | 9u |
The general status related to the overall health of the battery.
Defined at line 144 of file fidling/gen/sdk/fidl/fuchsia.power.battery/fuchsia.power.battery/cpp/fidl/fuchsia.power.battery/cpp/common_types.h
Records
-
class BatteryInfo -
class BatteryInfoProvider -
class BatteryInfoProviderGetBatteryInfoResponse -
class BatteryInfoProviderWatchRequest -
class BatteryInfoWatcher -
class BatteryInfoWatcherOnChangeBatteryInfoRequest -
class BatteryManager -
class BatterySpec -
class Charger -
class ChargerEnableRequest -
class ChargerEnableResponse -
class ChargerEnableResult -
class ChargerService -
class InfoService -
class TimeRemaining