Home
last modified time | relevance | path

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

/frameworks/native/services/inputflinger/reader/
DEventHub.cpp77 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()
[all …]
/frameworks/native/services/inputflinger/reader/include/
DEventHub.h176 enum class InputBatteryClass : uint32_t { enum
199 Flags<InputBatteryClass> flags;