/frameworks/native/services/inputflinger/reader/ |
D | InputDevice.cpp | 222 mClasses = ftl::Flags<InputDeviceClass>(0); in configureInternal() 237 mIsExternal = mClasses.test(InputDeviceClass::EXTERNAL); in configureInternal() 238 mHasMic = mClasses.test(InputDeviceClass::MIC); in configureInternal() 241 if (mClasses.test(InputDeviceClass::KEYBOARD)) { in configureInternal() 270 if (!(mClasses.test(InputDeviceClass::VIRTUAL))) { in configureInternal() 501 ftl::Flags<InputDeviceClass> classes = contextPtr.getDeviceClasses(); in createMappers() 505 if (classes.test(InputDeviceClass::SWITCH)) { in createMappers() 510 if (classes.test(InputDeviceClass::ROTARY_ENCODER)) { in createMappers() 515 if (classes.test(InputDeviceClass::VIBRATOR)) { in createMappers() 521 if (classes.test(InputDeviceClass::BATTERY) || classes.test(InputDeviceClass::LIGHT)) { in createMappers() [all …]
|
D | EventHub.cpp | 462 ftl::Flags<InputDeviceClass> getAbsAxisUsage(int32_t axis, in getAbsAxisUsage() 463 ftl::Flags<InputDeviceClass> deviceClasses) { in getAbsAxisUsage() 465 if (deviceClasses.test(InputDeviceClass::TOUCH)) { in getAbsAxisUsage() 487 return InputDeviceClass::TOUCH; in getAbsAxisUsage() 491 if (deviceClasses.test(InputDeviceClass::SENSOR)) { in getAbsAxisUsage() 499 return InputDeviceClass::SENSOR; in getAbsAxisUsage() 504 if (deviceClasses.test(InputDeviceClass::EXTERNAL_STYLUS)) { in getAbsAxisUsage() 506 return InputDeviceClass::EXTERNAL_STYLUS; in getAbsAxisUsage() 511 return deviceClasses & InputDeviceClass::JOYSTICK; in getAbsAxisUsage() 597 if (classes.test(InputDeviceClass::KEYBOARD)) { in configureFd() [all …]
|
D | InputReader.cpp | 297 if (device->getClasses().test(InputDeviceClass::EXTERNAL_STYLUS)) { in addDeviceLocked() 304 if (mEventHub->getDeviceClasses(eventHubId).test(InputDeviceClass::SENSOR)) { in addDeviceLocked() 343 if (device->getClasses().test(InputDeviceClass::EXTERNAL_STYLUS)) { in removeDeviceLocked() 489 if (device->getClasses().test(InputDeviceClass::EXTERNAL_STYLUS) && !device->isIgnored()) { in getExternalStylusDevicesLocked()
|
/frameworks/native/services/inputflinger/tests/ |
D | InputMapperTest.h | 87 static const ftl::Flags<InputDeviceClass> DEVICE_CLASSES; 96 virtual void SetUp(ftl::Flags<InputDeviceClass> classes, int bus = 0); 104 ftl::Flags<InputDeviceClass> classes, int bus = 0);
|
D | InputMapperTest.cpp | 112 const ftl::Flags<InputDeviceClass> InputMapperTest::DEVICE_CLASSES = 113 ftl::Flags<InputDeviceClass>(0); // not needed for current tests 115 void InputMapperTest::SetUp(ftl::Flags<InputDeviceClass> classes, int bus) { in SetUp() 160 ftl::Flags<InputDeviceClass> classes, in newDevice()
|
D | FakeEventHub.h | 48 ftl::Flags<InputDeviceClass> classes; 80 explicit Device(ftl::Flags<InputDeviceClass> classes) : classes(classes), enabled(true) {} in Device() 107 void addDevice(int32_t deviceId, const std::string& name, ftl::Flags<InputDeviceClass> classes, 167 ftl::Flags<InputDeviceClass> getDeviceClasses(int32_t deviceId) const override;
|
D | FakeEventHub.cpp | 36 ftl::Flags<InputDeviceClass> classes, int bus) { in addDevice() 244 ftl::Flags<InputDeviceClass> FakeEventHub::getDeviceClasses(int32_t deviceId) const { in getDeviceClasses() 246 return device ? device->classes : ftl::Flags<InputDeviceClass>(0); in getDeviceClasses() 651 if (!mRawLightInfos.empty() && !foundDevice->classes.test(InputDeviceClass::LIGHT)) { in sysfsNodeChanged() 653 ftl::Flags<InputDeviceClass> classes = foundDevice->classes; in sysfsNodeChanged() 655 addDevice(foundDeviceId, identifier.name, classes | InputDeviceClass::LIGHT, in sysfsNodeChanged()
|
D | InputReader_test.cpp | 620 ftl::Flags<InputDeviceClass> classes, const PropertyMap* configuration) { in addDevice() 646 ftl::Flags<InputDeviceClass> classes, in addDeviceWithFakeInputMapper() 660 ASSERT_NO_FATAL_FAILURE(addDevice(1, "keyboard", InputDeviceClass::KEYBOARD, nullptr)); in TEST_F() 661 ASSERT_NO_FATAL_FAILURE(addDevice(2, "ignored", ftl::Flags<InputDeviceClass>(0), in TEST_F() 675 ASSERT_NO_FATAL_FAILURE(addDevice(1, "keyboard", InputDeviceClass::KEYBOARD, nullptr)); in TEST_F() 713 addDevice(eventHubIds[0], "fake1", InputDeviceClass::KEYBOARD, nullptr)); in TEST_F() 715 addDevice(eventHubIds[1], "fake2", InputDeviceClass::KEYBOARD, nullptr)); in TEST_F() 737 InputDeviceClass::KEYBOARD | InputDeviceClass::SENSOR, in TEST_F() 743 addDevice(eventHubIds[1], "fake2", InputDeviceClass::KEYBOARD, nullptr)); in TEST_F() 751 constexpr ftl::Flags<InputDeviceClass> deviceClass(InputDeviceClass::KEYBOARD); in TEST_F() [all …]
|
D | InterfaceMocks.h | 90 MOCK_METHOD(ftl::Flags<InputDeviceClass>, getDeviceClasses, (int32_t deviceId), (const));
|
D | HardwareStateConverter_test.cpp | 70 mFakeEventHub->addDevice(EVENTHUB_ID, identifier.name, InputDeviceClass::TOUCHPAD, in newDevice()
|
D | CapturedTouchpadEventConverter_test.cpp | 65 mFakeEventHub->addDevice(EVENTHUB_ID, identifier.name, InputDeviceClass::TOUCHPAD, in newDevice()
|
D | GestureConverter_test.cpp | 79 mFakeEventHub->addDevice(EVENTHUB_ID, identifier.name, InputDeviceClass::TOUCHPAD, in newDevice()
|
/frameworks/native/services/inputflinger/reader/include/ |
D | EventHub.h | 92 enum class InputDeviceClass : uint32_t { enum 233 extern ftl::Flags<InputDeviceClass> getAbsAxisUsage(int32_t axis, 234 ftl::Flags<InputDeviceClass> deviceClasses); 267 virtual ftl::Flags<InputDeviceClass> getDeviceClasses(int32_t deviceId) const = 0; 506 ftl::Flags<InputDeviceClass> getDeviceClasses(int32_t deviceId) const override final; 638 ftl::Flags<InputDeviceClass> classes; 756 ftl::Flags<InputDeviceClass> classes) REQUIRES(mLock);
|
D | InputDevice.h | 58 inline ftl::Flags<InputDeviceClass> getClasses() const { return mClasses; } in getClasses() 190 ftl::Flags<InputDeviceClass> mClasses; 299 inline ftl::Flags<InputDeviceClass> getDeviceClasses() const { in getDeviceClasses()
|
/frameworks/native/services/inputflinger/tests/fuzzers/ |
D | MapperHelpers.h | 107 ftl::Flags<InputDeviceClass> getDeviceClasses(int32_t deviceId) const override { in getDeviceClasses() 108 return ftl::Flags<InputDeviceClass>(mFdp->ConsumeIntegral<uint32_t>()); in getDeviceClasses()
|
/frameworks/native/services/inputflinger/reader/mapper/ |
D | JoystickInputMapper.cpp | 116 .test(InputDeviceClass::JOYSTICK))) { in reconfigure()
|
D | SensorInputMapper.cpp | 133 .test(InputDeviceClass::SENSOR))) { in reconfigure()
|
D | KeyboardInputMapper.cpp | 198 if (!getDeviceContext().getDeviceClasses().test(InputDeviceClass::VIRTUAL) && in reconfigure()
|