Home
last modified time | relevance | path

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

/hardware/interfaces/health/aidl/default/
DHealth.cpp66 battery_monitor_.init(healthd_config_.get()); in Health()
103 return GetProperty<int32_t>(&battery_monitor_, ::android::BATTERY_PROP_CHARGE_COUNTER, 0, out); in getChargeCounterUah()
107 return GetProperty<int32_t>(&battery_monitor_, ::android::BATTERY_PROP_CURRENT_NOW, 0, out); in getCurrentNowMicroamps()
111 return GetProperty<int32_t>(&battery_monitor_, ::android::BATTERY_PROP_CURRENT_AVG, 0, out); in getCurrentAverageMicroamps()
115 return GetProperty<int32_t>(&battery_monitor_, ::android::BATTERY_PROP_CAPACITY, 0, out); in getCapacity()
119 return GetProperty<int64_t>(&battery_monitor_, ::android::BATTERY_PROP_ENERGY_COUNTER, 0, out); in getEnergyCounterNwh()
123 return GetProperty(&battery_monitor_, ::android::BATTERY_PROP_BATTERY_STATUS, in getChargeStatus()
128 ::android::status_t err = battery_monitor_.setChargingPolicy(static_cast<int>(in_value)); in setChargingPolicy()
144 return GetProperty(&battery_monitor_, ::android::BATTERY_PROP_CHARGING_POLICY, in getChargingPolicy()
150 GetProperty<int64_t>(&battery_monitor_, ::android::BATTERY_PROP_MANUFACTURING_DATE, in getBatteryHealthData()
[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/utils/libhealth2impl/include/health2impl/
DHealth.h79 BatteryMonitor battery_monitor_; variable
/hardware/interfaces/health/aidl/default/include/health-impl/
DHealth.h110 ::android::BatteryMonitor battery_monitor_;