system_api: Multiple power sources in PowerSupplyProperties.
Make the PowerSupplyProperties emitted by powerd include a
list of available external power sources. Also add a (not
yet implemented) SetPowerSource D-Bus method that Chrome can
call to specify which power source should be used.
BUG=chromium:424246,chromium:419509
TEST=built it
Change-Id: Ied0e5635b64b823507eb65760edc4558f5d45060
Reviewed-on: https://chromium-review.googlesource.com/225904
Reviewed-by: Michael Giuffrida <michaelpg@chromium.org>
Reviewed-by: Sameer Nanda <snanda@chromium.org>
Commit-Queue: Daniel Erat <derat@chromium.org>
Tested-by: Daniel Erat <derat@chromium.org>
2 files changed