Home
last modified time | relevance | path

Searched refs:InputDeviceClass (Results 1 – 18 of 18) sorted by relevance

/frameworks/native/services/inputflinger/reader/
DInputDevice.cpp222 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 …]
DEventHub.cpp462 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 …]
DInputReader.cpp297 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/
DInputMapperTest.h87 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);
DInputMapperTest.cpp112 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()
DFakeEventHub.h48 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;
DFakeEventHub.cpp36 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()
DInputReader_test.cpp620 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 …]
DInterfaceMocks.h90 MOCK_METHOD(ftl::Flags<InputDeviceClass>, getDeviceClasses, (int32_t deviceId), (const));
DHardwareStateConverter_test.cpp70 mFakeEventHub->addDevice(EVENTHUB_ID, identifier.name, InputDeviceClass::TOUCHPAD, in newDevice()
DCapturedTouchpadEventConverter_test.cpp65 mFakeEventHub->addDevice(EVENTHUB_ID, identifier.name, InputDeviceClass::TOUCHPAD, in newDevice()
DGestureConverter_test.cpp79 mFakeEventHub->addDevice(EVENTHUB_ID, identifier.name, InputDeviceClass::TOUCHPAD, in newDevice()
/frameworks/native/services/inputflinger/reader/include/
DEventHub.h92 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);
DInputDevice.h58 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/
DMapperHelpers.h107 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/
DJoystickInputMapper.cpp116 .test(InputDeviceClass::JOYSTICK))) { in reconfigure()
DSensorInputMapper.cpp133 .test(InputDeviceClass::SENSOR))) { in reconfigure()
DKeyboardInputMapper.cpp198 if (!getDeviceContext().getDeviceClasses().test(InputDeviceClass::VIRTUAL) && in reconfigure()