Searched refs:InputBatteryClass (Results 1 – 3 of 3) sorted by relevance
/frameworks/native/services/inputflinger/reader/ |
D | EventHub.cpp | 86 static const std::unordered_map<std::string, InputBatteryClass> BATTERY_CLASSES = 87 {{"capacity", InputBatteryClass::CAPACITY}, 88 {"capacity_level", InputBatteryClass::CAPACITY_LEVEL}, 89 {"status", InputBatteryClass::STATUS}}; 93 static const std::unordered_map<InputBatteryClass, std::string> BATTERY_NODES = 94 {{InputBatteryClass::CAPACITY, "capacity"}, 95 {InputBatteryClass::CAPACITY_LEVEL, "capacity_level"}, 96 {InputBatteryClass::STATUS, "status"}}; 1793 if (base::ReadFileToString(batteryPath / BATTERY_NODES.at(InputBatteryClass::CAPACITY), in getBatteryCapacity() 1800 if (base::ReadFileToString(batteryPath / BATTERY_NODES.at(InputBatteryClass::CAPACITY_LEVEL), in getBatteryCapacity() [all …]
|
/frameworks/native/services/inputflinger/reader/include/ |
D | EventHub.h | 187 enum class InputBatteryClass : uint32_t { enum 213 ftl::Flags<InputBatteryClass> flags;
|
/frameworks/native/services/inputflinger/tests/ |
D | FakeEventHub.cpp | 582 .flags = InputBatteryClass::CAPACITY, in getRawBatteryInfo()
|