Loading healthd/Android.mk +2 −0 Original line number Diff line number Diff line Loading @@ -50,6 +50,7 @@ LOCAL_STATIC_LIBRARIES := \ android.hardware.health@2.0 \ android.hardware.health@2.0-impl \ android.hardware.health@1.0 \ android.hardware.health@1.0-convert \ libhealthstoragedefault \ libminui \ libpng \ Loading Loading @@ -96,6 +97,7 @@ CHARGER_STATIC_LIBRARIES := \ android.hardware.health@2.0-impl \ android.hardware.health@2.0 \ android.hardware.health@1.0 \ android.hardware.health@1.0-convert \ libhidltransport \ libhidlbase \ libhwbinder \ Loading healthd/BatteryMonitor.cpp +4 −0 Original line number Diff line number Diff line Loading @@ -86,6 +86,10 @@ BatteryMonitor::BatteryMonitor() : mHealthdConfig(nullptr), mBatteryDevicePresen initBatteryProperties(&props); } struct BatteryProperties getBatteryProperties(BatteryMonitor* batteryMonitor) { return batteryMonitor->props; } int BatteryMonitor::getBatteryStatus(const char* status) { int ret; struct sysfsStringEnumMap batteryStatusMap[] = { Loading healthd/include/healthd/BatteryMonitor.h +1 −0 Original line number Diff line number Diff line Loading @@ -42,6 +42,7 @@ class BatteryMonitor { int getChargeStatus(); status_t getProperty(int id, struct BatteryProperty *val); void dumpState(int fd); friend struct BatteryProperties getBatteryProperties(BatteryMonitor* batteryMonitor); private: struct healthd_config *mHealthdConfig; Loading Loading
healthd/Android.mk +2 −0 Original line number Diff line number Diff line Loading @@ -50,6 +50,7 @@ LOCAL_STATIC_LIBRARIES := \ android.hardware.health@2.0 \ android.hardware.health@2.0-impl \ android.hardware.health@1.0 \ android.hardware.health@1.0-convert \ libhealthstoragedefault \ libminui \ libpng \ Loading Loading @@ -96,6 +97,7 @@ CHARGER_STATIC_LIBRARIES := \ android.hardware.health@2.0-impl \ android.hardware.health@2.0 \ android.hardware.health@1.0 \ android.hardware.health@1.0-convert \ libhidltransport \ libhidlbase \ libhwbinder \ Loading
healthd/BatteryMonitor.cpp +4 −0 Original line number Diff line number Diff line Loading @@ -86,6 +86,10 @@ BatteryMonitor::BatteryMonitor() : mHealthdConfig(nullptr), mBatteryDevicePresen initBatteryProperties(&props); } struct BatteryProperties getBatteryProperties(BatteryMonitor* batteryMonitor) { return batteryMonitor->props; } int BatteryMonitor::getBatteryStatus(const char* status) { int ret; struct sysfsStringEnumMap batteryStatusMap[] = { Loading
healthd/include/healthd/BatteryMonitor.h +1 −0 Original line number Diff line number Diff line Loading @@ -42,6 +42,7 @@ class BatteryMonitor { int getChargeStatus(); status_t getProperty(int id, struct BatteryProperty *val); void dumpState(int fd); friend struct BatteryProperties getBatteryProperties(BatteryMonitor* batteryMonitor); private: struct healthd_config *mHealthdConfig; Loading