Searched refs:batteryId (Results 1 – 7 of 7) sorted by relevance
/frameworks/native/services/inputflinger/reader/controller/ |
D | PeripheralControllerInterface.h | 39 virtual std::optional<int32_t> getBatteryCapacity(int32_t batteryId) = 0; 40 virtual std::optional<int32_t> getBatteryStatus(int32_t batteryId) = 0;
|
D | PeripheralController.cpp | 270 for (const auto& [batteryId, battery] : mBatteries) { in populateDeviceInfo() 314 for (const auto& [batteryId, battery] : mBatteries) { in dump() 315 dump += StringPrintf(INDENT4 "Id: %d", batteryId); in dump() 317 dump += getBatteryCapacity(batteryId).has_value() in dump() 318 ? StringPrintf(INDENT3 "Capacity: %d\n", getBatteryCapacity(batteryId).value()) in dump() 322 switch (getBatteryStatus(batteryId).value_or(BATTERY_STATUS_UNKNOWN)) { in dump() 474 std::optional<int32_t> PeripheralController::getBatteryCapacity(int batteryId) { in getBatteryCapacity() argument 475 return getDeviceContext().getBatteryCapacity(batteryId); in getBatteryCapacity() 478 std::optional<int32_t> PeripheralController::getBatteryStatus(int batteryId) { in getBatteryStatus() argument 479 return getDeviceContext().getBatteryStatus(batteryId); in getBatteryStatus()
|
D | PeripheralController.h | 41 std::optional<int32_t> getBatteryCapacity(int32_t batteryId) override; 42 std::optional<int32_t> getBatteryStatus(int32_t batteryId) override;
|
/frameworks/native/services/inputflinger/reader/include/ |
D | InputDevice.h | 357 inline std::optional<RawBatteryInfo> getRawBatteryInfo(int32_t batteryId) { in getRawBatteryInfo() argument 358 return mEventHub->getRawBatteryInfo(mId, batteryId); in getRawBatteryInfo() 361 inline std::optional<int32_t> getBatteryCapacity(int32_t batteryId) { in getBatteryCapacity() argument 362 return mEventHub->getBatteryCapacity(mId, batteryId); in getBatteryCapacity() 365 inline std::optional<int32_t> getBatteryStatus(int32_t batteryId) { in getBatteryStatus() argument 366 return mEventHub->getBatteryStatus(mId, batteryId); in getBatteryStatus()
|
D | EventHub.h | 338 int32_t batteryId) const = 0; 341 virtual std::optional<int32_t> getBatteryStatus(int32_t deviceId, int32_t batteryId) const = 0; 524 int32_t batteryId) const override final; 527 int32_t batteryId) const override final;
|
/frameworks/native/services/inputflinger/reader/ |
D | EventHub.cpp | 1074 std::optional<RawBatteryInfo> EventHub::getRawBatteryInfo(int32_t deviceId, int32_t batteryId) { in getRawBatteryInfo() argument 1079 auto it = infos.find(batteryId); in getRawBatteryInfo() 1478 std::optional<int32_t> EventHub::getBatteryCapacity(int32_t deviceId, int32_t batteryId) const { in getBatteryCapacity() 1482 auto it = infos.find(batteryId); in getBatteryCapacity() 1509 std::optional<int32_t> EventHub::getBatteryStatus(int32_t deviceId, int32_t batteryId) const { in getBatteryStatus() 1512 auto it = infos.find(batteryId); in getBatteryStatus()
|
/frameworks/native/services/inputflinger/tests/ |
D | InputReader_test.cpp | 1019 std::optional<RawBatteryInfo> getRawBatteryInfo(int32_t deviceId, int32_t batteryId) { in getRawBatteryInfo() argument 2173 std::optional<int32_t> getBatteryCapacity(int32_t batteryId) override { in getBatteryCapacity() argument 2174 return getDeviceContext().getBatteryCapacity(batteryId); in getBatteryCapacity() 2177 std::optional<int32_t> getBatteryStatus(int32_t batteryId) override { in getBatteryStatus() argument 2178 return getDeviceContext().getBatteryStatus(batteryId); in getBatteryStatus()
|