tree: a1633344eba9e6352cd19d8ce570720ae0845cc9 [path history] [tgz]
  1. battery-cli/
  2. meta/
  3. src/
  4. tests/
  5. BUILD.gn
  6. README.md
src/power/battery-manager/README.md

The Battery Manager component surfaces battery info to other components.

It obtains lower-level information from fuchsia.hardware.powersource.Service, and exposes fuchsia.power.battery.BatteryManager.

For devices that don't have a real battery, Battery Manager can simulate battery data, by exposing fuchsia.power.battery.test.BatterySimulator.

On Sorrel devices, the battery driver does not provide battery info through fuchsia.hardware.powersource.Service, and instead directly exposes fuchsia.power.battery.BatteryInfoProvider to the primary consumer. Hence, on Sorrel, Battery Manager is bypassed and unused.