Home
last modified time | relevance | path

Searched refs:batteryInfo (Results 1 - 2 of 2) sorted by relevance

/drivers/peripheral/battery/interfaces/hdi_service/src/
H A Dbattery_thread.cpp184 std::unique_ptr<BatterydInfo> batteryInfo = std::make_unique<BatterydInfo>(); in UpdateBatteryInfo() local
185 if (batteryInfo == nullptr) { in UpdateBatteryInfo()
190 provider_->UpdateInfoByReadSysFile(batteryInfo.get()); in UpdateBatteryInfo()
191 event.capacity = batteryInfo->capacity_; in UpdateBatteryInfo()
192 event.voltage= batteryInfo->voltage_; in UpdateBatteryInfo()
193 event.temperature = batteryInfo->temperature_; in UpdateBatteryInfo()
194 event.healthState = batteryInfo->healthState_; in UpdateBatteryInfo()
195 event.pluggedType = batteryInfo->pluggedType_; in UpdateBatteryInfo()
196 event.pluggedMaxCurrent = batteryInfo->pluggedMaxCurrent_; in UpdateBatteryInfo()
197 event.pluggedMaxVoltage = batteryInfo in UpdateBatteryInfo()
[all...]
H A Dbattery_interface_impl.cpp205 BatterydInfo batteryInfo = powerSupplyProvider_->GetBatteryInfo(); in GetBatteryInfo() local
206 info.capacity = batteryInfo.capacity_; in GetBatteryInfo()
207 info.voltage = batteryInfo.voltage_; in GetBatteryInfo()
208 info.temperature = batteryInfo.temperature_; in GetBatteryInfo()
209 info.healthState = batteryInfo.healthState_; in GetBatteryInfo()
210 info.pluggedType = batteryInfo.pluggedType_; in GetBatteryInfo()
211 info.pluggedMaxCurrent = batteryInfo.pluggedMaxCurrent_; in GetBatteryInfo()
212 info.pluggedMaxVoltage = batteryInfo.pluggedMaxVoltage_; in GetBatteryInfo()
213 info.chargeState = batteryInfo.chargeState_; in GetBatteryInfo()
214 info.chargeCounter = batteryInfo in GetBatteryInfo()
[all...]

Completed in 2 milliseconds