Lines Matching refs:InputBatteryClass
77 static const std::unordered_map<std::string, InputBatteryClass> BATTERY_CLASSES =
78 {{"capacity", InputBatteryClass::CAPACITY},
79 {"capacity_level", InputBatteryClass::CAPACITY_LEVEL},
80 {"status", InputBatteryClass::STATUS}};
84 static const std::unordered_map<InputBatteryClass, std::string> BATTERY_NODES =
85 {{InputBatteryClass::CAPACITY, "capacity"},
86 {InputBatteryClass::CAPACITY_LEVEL, "capacity_level"},
87 {InputBatteryClass::STATUS, "status"}};
1417 if (base::ReadFileToString(it->second.path / BATTERY_NODES.at(InputBatteryClass::CAPACITY), in getBatteryCapacity()
1425 BATTERY_NODES.at(InputBatteryClass::CAPACITY_LEVEL), in getBatteryCapacity()
1446 if (!base::ReadFileToString(it->second.path / BATTERY_NODES.at(InputBatteryClass::STATUS), in getBatteryStatus()