Home
last modified time | relevance | path

Searched refs:EVENTHUB_ID (Results 1 – 12 of 12) sorted by relevance

/frameworks/native/services/inputflinger/tests/
DCapturedTouchpadEventConverter_test.cpp46 mDeviceContext(*mDevice, EVENTHUB_ID) { in CapturedTouchpadEventConverterTest()
48 mFakeEventHub->addAbsoluteAxis(EVENTHUB_ID, ABS_MT_SLOT, 0, slotCount - 1, 0, 0, 0); in CapturedTouchpadEventConverterTest()
54 static constexpr int32_t EVENTHUB_ID = 1; member in android::CapturedTouchpadEventConverterTest
65 mFakeEventHub->addDevice(EVENTHUB_ID, identifier.name, InputDeviceClass::TOUCHPAD, in newDevice()
72 mFakeEventHub->addAbsoluteAxis(EVENTHUB_ID, ABS_MT_POSITION_X, 0, 4000, 0, 0, 45); in addBasicAxesToEventHub()
73 mFakeEventHub->addAbsoluteAxis(EVENTHUB_ID, ABS_MT_POSITION_Y, 0, 2500, 0, 0, 40); in addBasicAxesToEventHub()
74 mFakeEventHub->addAbsoluteAxis(EVENTHUB_ID, ABS_MT_PRESSURE, 0, 256, 0, 0, 0); in addBasicAxesToEventHub()
75 mFakeEventHub->addAbsoluteAxis(EVENTHUB_ID, ABS_MT_TOUCH_MAJOR, 0, 1000, 0, 0, 0); in addBasicAxesToEventHub()
76 mFakeEventHub->addAbsoluteAxis(EVENTHUB_ID, ABS_MT_TOUCH_MINOR, 0, 1000, 0, 0, 0); in addBasicAxesToEventHub()
90 event.deviceId = EVENTHUB_ID; in processAxis()
[all …]
DHardwareProperties_test.cpp43 mDeviceContext = std::make_unique<InputDeviceContext>(*mDevice, EVENTHUB_ID); in HardwarePropertiesTest()
48 static constexpr int32_t EVENTHUB_ID = 1; member in android::HardwarePropertiesTest
51 EXPECT_CALL(mMockEventHub, getAbsoluteAxisInfo(EVENTHUB_ID, axis, testing::_)) in setupValidAxis()
64 EXPECT_CALL(mMockEventHub, getAbsoluteAxisInfo(EVENTHUB_ID, axis, testing::_)) in setupInvalidAxis()
72 EXPECT_CALL(mMockEventHub, hasInputProperty(EVENTHUB_ID, property)) in setProperty()
78 EXPECT_CALL(mMockEventHub, hasScanCode(EVENTHUB_ID, buttonCode)) in setButtonsPresent()
DInputMapperTest.cpp41 EXPECT_CALL(mMockEventHub, getDeviceIdentifier(EVENTHUB_ID)) in SetUpWithBus()
43 EXPECT_CALL(mMockEventHub, getConfiguration(EVENTHUB_ID)).WillRepeatedly([&](int32_t) { in SetUpWithBus()
51 mDevice->addEmptyEventHubDevice(EVENTHUB_ID); in createDevice()
52 mDeviceContext = std::make_unique<InputDeviceContext>(*mDevice, EVENTHUB_ID); in createDevice()
60 EXPECT_CALL(mMockEventHub, getAbsoluteAxisInfo(EVENTHUB_ID, axis, _)) in setupAxis()
74 EXPECT_CALL(mMockEventHub, hasScanCode(EVENTHUB_ID, scanCode)) in expectScanCodes()
81 EXPECT_CALL(mMockEventHub, getScanCodeState(EVENTHUB_ID, scanCode)) in setScanCodeState()
88 EXPECT_CALL(mMockEventHub, getKeyCodeState(EVENTHUB_ID, keyCode)) in setKeyCodeState()
120 mDevice = newDevice(DEVICE_ID, DEVICE_NAME, DEVICE_LOCATION, EVENTHUB_ID, classes, bus); in SetUp()
135 mFakeEventHub->addConfigurationProperty(EVENTHUB_ID, key, value); in addConfigurationProperty()
DInputMapperTest.h41 static constexpr int32_t EVENTHUB_ID = 1;
88 static constexpr int32_t EVENTHUB_ID = 1; variable
108 mDevice->addMapper<T>(EVENTHUB_ID, mFakePolicy->getReaderConfiguration(), args...); in addMapperAndConfigure()
123 mDevice->addEmptyEventHubDevice(EVENTHUB_ID); in constructAndAddMapper()
127 return mDevice->constructAndAddMapper<T>(EVENTHUB_ID, mFakePolicy->getReaderConfiguration(), in constructAndAddMapper()
DTouchpadInputMapper_test.cpp81 mapKey(EVENTHUB_ID, BTN_LEFT, /*usageCode=*/0, /*metaState=*/0, testing::_, in SetUp()
86 EXPECT_CALL(mMockEventHub, hasInputProperty(EVENTHUB_ID, INPUT_PROP_BUTTONPAD)) in SetUp()
88 EXPECT_CALL(mMockEventHub, hasInputProperty(EVENTHUB_ID, INPUT_PROP_SEMI_MT)) in SetUp()
106 EXPECT_CALL(mMockEventHub, getAbsoluteAxisValue(EVENTHUB_ID, ABS_MT_SLOT, testing::_)) in SetUp()
111 EXPECT_CALL(mMockEventHub, getMtSlotValues(EVENTHUB_ID, testing::_, testing::_)) in SetUp()
DInputReader_test.cpp2600 static const int32_t EVENTHUB_ID; member in android::InputDeviceTest
2622 mFakeEventHub->addDevice(EVENTHUB_ID, DEVICE_NAME, ftl::Flags<InputDeviceClass>(0)); in SetUp()
2639 const int32_t InputDeviceTest::EVENTHUB_ID = 1; member in android::InputDeviceTest
2695 mFakeEventHub->addConfigurationProperty(EVENTHUB_ID, "key", "value"); in TEST_F()
2698 mDevice->addMapper<FakeInputMapper>(EVENTHUB_ID, mFakePolicy->getReaderConfiguration(), in TEST_F()
2711 mDevice->addMapper<FakeInputMapper>(EVENTHUB_ID, mFakePolicy->getReaderConfiguration(), in TEST_F()
2782 event.deviceId = EVENTHUB_ID; in TEST_F()
2791 mFakeEventHub->addConfigurationProperty(EVENTHUB_ID, "device.wake", "1"); in TEST_F()
2792 mDevice->addMapper<FakeInputMapper>(EVENTHUB_ID, mFakePolicy->getReaderConfiguration(), in TEST_F()
2803 mFakeEventHub->addConfigurationProperty(EVENTHUB_ID, "device.viewBehavior_smoothScroll", "1"); in TEST_F()
[all …]
DGestureConverter_test.cpp56 static constexpr int32_t EVENTHUB_ID = 1; member in android::GestureConverterTest
66 mFakeEventHub->addAbsoluteAxis(EVENTHUB_ID, ABS_MT_POSITION_X, -500, 500, 0, 0, 20); in SetUp()
67 mFakeEventHub->addAbsoluteAxis(EVENTHUB_ID, ABS_MT_POSITION_Y, -500, 500, 0, 0, 20); in SetUp()
79 mFakeEventHub->addDevice(EVENTHUB_ID, identifier.name, InputDeviceClass::TOUCHPAD, in newDevice()
93 InputDeviceContext deviceContext(*mDevice, EVENTHUB_ID); in TEST_F()
124 InputDeviceContext deviceContext(*mDevice, EVENTHUB_ID); in TEST_F()
147 InputDeviceContext deviceContext(*mDevice, EVENTHUB_ID); in TEST_F()
209 InputDeviceContext deviceContext(*mDevice, EVENTHUB_ID); in TEST_F()
229 InputDeviceContext deviceContext(*mDevice, EVENTHUB_ID); in TEST_F()
283 InputDeviceContext deviceContext(*mDevice, EVENTHUB_ID); in TEST_F()
[all …]
DMultiTouchInputMapper_test.cpp81 EXPECT_CALL(mMockEventHub, hasInputProperty(EVENTHUB_ID, _)).WillRepeatedly(Return(false)); in SetUp()
82 EXPECT_CALL(mMockEventHub, hasInputProperty(EVENTHUB_ID, INPUT_PROP_DIRECT)) in SetUp()
102 EXPECT_CALL(mMockEventHub, getAbsoluteAxisValue(EVENTHUB_ID, ABS_MT_SLOT, _)) in SetUp()
126 EXPECT_CALL(mMockEventHub, getMtSlotValues(EVENTHUB_ID, _, SLOT_COUNT)) in mockSlotValues()
214 EXPECT_CALL(mMockEventHub, getAbsoluteAxisValue(EVENTHUB_ID, ABS_MT_SLOT, _)) in TEST_F()
DHardwareStateConverter_test.cpp50 mDeviceContext(*mDevice, EVENTHUB_ID) { in HardwareStateConverterTest()
52 mFakeEventHub->addAbsoluteAxis(EVENTHUB_ID, ABS_MT_SLOT, 0, slotCount - 1, 0, 0, 0); in HardwareStateConverterTest()
59 static constexpr int32_t EVENTHUB_ID = 1; member in android::HardwareStateConverterTest
70 mFakeEventHub->addDevice(EVENTHUB_ID, identifier.name, InputDeviceClass::TOUCHPAD, in newDevice()
80 event.deviceId = EVENTHUB_ID; in processAxis()
92 event.deviceId = EVENTHUB_ID; in processSync()
DMultiTouchMotionAccumulator_test.cpp37 event.deviceId = EVENTHUB_ID; in processMotionEvent()
DCursorInputMapper_test.cpp150 EXPECT_CALL(mMockEventHub, hasRelativeAxis(EVENTHUB_ID, REL_WHEEL)) in SetUpWithBus()
152 EXPECT_CALL(mMockEventHub, hasRelativeAxis(EVENTHUB_ID, REL_HWHEEL)) in SetUpWithBus()
539 ViewportFakingInputDeviceContext deviceContext(*mDevice, EVENTHUB_ID, ui::Rotation::Rotation90); in TEST_F()
557 ViewportFakingInputDeviceContext deviceContext(*mDevice, EVENTHUB_ID, ui::Rotation::Rotation0); in TEST_F()
649 ViewportFakingInputDeviceContext deviceContext(*mDevice, EVENTHUB_ID, secondaryViewport); in TEST_F()
671 ViewportFakingInputDeviceContext deviceContext(*mDevice, EVENTHUB_ID, secondaryViewport); in TEST_F()
963 ViewportFakingInputDeviceContext deviceContext(*mDevice, EVENTHUB_ID, primaryViewport); in TEST_F()
1003 ViewportFakingInputDeviceContext deviceContext(*mDevice, EVENTHUB_ID, in TEST_F()
DKeyboardInputMapper_test.cpp62 EXPECT_CALL(mMockEventHub, mapKey(EVENTHUB_ID, scanCode, _, _, _, _, _)) in SetUp()