Home
last modified time | relevance | path

Searched refs:g_battClient (Results 1 – 2 of 2) sorted by relevance

/base/powermgr/battery_manager/frameworks/js/napi/
Dbattery_info.cpp29 thread_local static BatterySrvClient& g_battClient = BatterySrvClient::GetInstance(); variable
34 int32_t capacity = g_battClient.GetCapacity(); in BatterySOC()
45 int32_t chargingState = (int32_t)g_battClient.GetChargingStatus(); in GetChargingState()
57 int32_t healthStatus = (int32_t)g_battClient.GetHealthStatus(); in GetHealthState()
69 int32_t pluggedType = (int32_t)g_battClient.GetPluggedType(); in GetPluggedType()
81 int32_t voltage = g_battClient.GetVoltage(); in GetVoltage()
93 auto technology = g_battClient.GetTechnology(); in GetTechnology()
105 int32_t temperature = g_battClient.GetBatteryTemperature(); in GetBatteryTemperature()
117 bool present = g_battClient.GetPresent(); in GetBatteryPresent()
129 int32_t curNow = g_battClient.GetNowCurrent(); in GetBatteryNowCurrent()
[all …]
Dsystem_battery.cpp199 BatterySrvClient& g_battClient = BatterySrvClient::GetInstance(); in GetBatteryInfo() local
200 capacity_ = g_battClient.GetCapacity(); in GetBatteryInfo()
201 chargingState_ = g_battClient.GetChargingStatus(); in GetBatteryInfo()