Home
last modified time | relevance | path

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

/system/core/healthd/
DBatteryMonitor.cpp69 static std::optional<T> mapSysfsString(const char* str, SysfsStringEnumMap<T> map[]) { in mapSysfsString() function
123 auto ret = mapSysfsString(status, batteryStatusMap); in getBatteryStatus()
143 auto ret = mapSysfsString(capacityLevel, batteryCapacityLevelMap); in getBatteryCapacityLevel()
168 auto ret = mapSysfsString(status, batteryHealthMap); in getBatteryHealth()
206 auto ret = mapSysfsString(buf.c_str(), supplyTypeMap); in readPowerSupplyType()