Lines Matching refs:battery_monitor_
42 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()
161 battery_monitor_->logValues(); in update()
164 bool chargerOnline = battery_monitor_->isChargerOnline(); in update()
194 status_t ret = battery_monitor_->getProperty(BATTERY_PROP_CURRENT_AVG, &prop); in notifyListeners()
217 battery_monitor_->dumpState(fd); in debug()
262 HealthInfo healthInfo = battery_monitor_->getHealthInfo_2_0(); in getHealthInfo()
273 status_t ret = battery_monitor_->getProperty(BATTERY_PROP_CURRENT_AVG, &prop); in getHealthInfo()