Home
last modified time | relevance | path

Searched refs:battery_monitor_ (Results 1 – 4 of 4) sorted by relevance

/hardware/interfaces/health/2.0/default/
DHealth.cpp42 battery_monitor_ = std::make_unique<BatteryMonitor>(); in Health()
43 battery_monitor_->init(c); in Health()
117 getProperty<int32_t>(battery_monitor_, BATTERY_PROP_CHARGE_COUNTER, 0, _hidl_cb); in getChargeCounter()
122 getProperty<int32_t>(battery_monitor_, BATTERY_PROP_CURRENT_NOW, 0, _hidl_cb); in getCurrentNow()
127 getProperty<int32_t>(battery_monitor_, BATTERY_PROP_CURRENT_AVG, 0, _hidl_cb); in getCurrentAverage()
132 getProperty<int32_t>(battery_monitor_, BATTERY_PROP_CAPACITY, 0, _hidl_cb); in getCapacity()
137 getProperty<int64_t>(battery_monitor_, BATTERY_PROP_ENERGY_COUNTER, 0, _hidl_cb); in getEnergyCounter()
142 getProperty(battery_monitor_, BATTERY_PROP_BATTERY_STATUS, BatteryStatus::UNKNOWN, _hidl_cb); in getChargeStatus()
155 battery_monitor_->updateValues(); in update()
156 const HealthInfo_1_0& health_info = battery_monitor_->getHealthInfo_1_0(); in update()
[all …]
/hardware/interfaces/health/utils/libhealth2impl/
DHealth.cpp66 battery_monitor_.init(healthd_config_.get()); in Health()
128 return GetProperty<int32_t>(&battery_monitor_, BATTERY_PROP_CHARGE_COUNTER, 0, _hidl_cb); in getChargeCounter()
132 return GetProperty<int32_t>(&battery_monitor_, BATTERY_PROP_CURRENT_NOW, 0, _hidl_cb); in getCurrentNow()
136 return GetProperty<int32_t>(&battery_monitor_, BATTERY_PROP_CURRENT_AVG, 0, _hidl_cb); in getCurrentAverage()
140 return GetProperty<int32_t>(&battery_monitor_, BATTERY_PROP_CAPACITY, 0, _hidl_cb); in getCapacity()
144 return GetProperty<int64_t>(&battery_monitor_, BATTERY_PROP_ENERGY_COUNTER, 0, _hidl_cb); in getEnergyCounter()
148 return GetProperty(&battery_monitor_, BATTERY_PROP_BATTERY_STATUS, BatteryStatus::UNKNOWN, in getChargeStatus()
180 battery_monitor_.updateValues(); in getHealthInfo_2_1()
182 HealthInfo health_info = battery_monitor_.getHealthInfo_2_1(); in getHealthInfo_2_1()
201 battery_monitor_.dumpState(fd); in debug()
/hardware/interfaces/health/2.0/default/include/health2/
DHealth.h64 std::unique_ptr<BatteryMonitor> battery_monitor_; member
/hardware/interfaces/health/utils/libhealth2impl/include/health2impl/
DHealth.h79 BatteryMonitor battery_monitor_; variable