diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2018-10-02 05:21:45 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2018-10-02 05:21:45 +0000 |
commit | dcee6d22fb083cbf5f8cc2a6e442bef316c3843e (patch) | |
tree | c0eabe3f9b041f5c7a948530c14e89b3900ac74d /fastboot/device/fastboot_device.cpp | |
parent | 4755a069563e74d50298e3fa61ba91541b534931 (diff) | |
parent | 47658caae4ded29374c12e96394636b71cf834af (diff) | |
download | system_core-dcee6d22fb083cbf5f8cc2a6e442bef316c3843e.tar.gz system_core-dcee6d22fb083cbf5f8cc2a6e442bef316c3843e.tar.bz2 system_core-dcee6d22fb083cbf5f8cc2a6e442bef316c3843e.zip |
Merge "Interface with health HAL to read battery voltage"
Diffstat (limited to 'fastboot/device/fastboot_device.cpp')
-rw-r--r-- | fastboot/device/fastboot_device.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fastboot/device/fastboot_device.cpp b/fastboot/device/fastboot_device.cpp index 6862741b6..b843c05d5 100644 --- a/fastboot/device/fastboot_device.cpp +++ b/fastboot/device/fastboot_device.cpp @@ -20,6 +20,8 @@ #include <android-base/strings.h> #include <android/hardware/boot/1.0/IBootControl.h> #include <android/hardware/fastboot/1.0/IFastboot.h> +#include <healthhalutils/HealthHalUtils.h> + #include <algorithm> #include "constants.h" @@ -30,6 +32,8 @@ using ::android::hardware::hidl_string; using ::android::hardware::boot::V1_0::IBootControl; using ::android::hardware::boot::V1_0::Slot; using ::android::hardware::fastboot::V1_0::IFastboot; +using ::android::hardware::health::V2_0::get_health_service; + namespace sph = std::placeholders; FastbootDevice::FastbootDevice() @@ -52,6 +56,7 @@ FastbootDevice::FastbootDevice() }), transport_(std::make_unique<ClientUsbTransport>()), boot_control_hal_(IBootControl::getService()), + health_hal_(get_health_service()), fastboot_hal_(IFastboot::getService()) {} FastbootDevice::~FastbootDevice() { |