Home
last modified time | relevance | path

Searched refs:mFakeEventHub (Results 1 – 6 of 6) sorted by relevance

/frameworks/native/services/inputflinger/tests/
DCapturedTouchpadEventConverter_test.cpp42 : mFakeEventHub(std::make_unique<FakeEventHub>()), in CapturedTouchpadEventConverterTest()
44 mReader(mFakeEventHub, mFakePolicy, mFakeListener), in CapturedTouchpadEventConverterTest()
48 mFakeEventHub->addAbsoluteAxis(EVENTHUB_ID, ABS_MT_SLOT, 0, slotCount - 1, 0, 0, 0); in 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()
115 std::shared_ptr<FakeEventHub> mFakeEventHub; member in android::CapturedTouchpadEventConverterTest
[all …]
DInputReader_test.cpp602 std::shared_ptr<FakeEventHub> mFakeEventHub; member in android::InputReaderTest
606 mFakeEventHub = std::make_unique<FakeEventHub>(); in SetUp()
610 mReader = std::make_unique<InstrumentedInputReader>(mFakeEventHub, mFakePolicy, in SetUp()
621 mFakeEventHub->addDevice(eventHubId, name, classes); in addDevice()
624 mFakeEventHub->addConfigurationMap(eventHubId, configuration); in addDevice()
626 mFakeEventHub->finishDeviceScan(); in addDevice()
631 ASSERT_NO_FATAL_FAILURE(mFakeEventHub->assertQueueIsEmpty()); in addDevice()
676 mFakeEventHub->setSysfsRootPath(1, "xyz"); in TEST_F()
688 mFakeEventHub->addRawLightInfo(/*rawId=*/123, std::move(infoMonolight)); in TEST_F()
740 ASSERT_FALSE(mFakeEventHub->isDeviceEnabled(eventHubIds[0])); in TEST_F()
[all …]
DInputMapperTest.cpp116 mFakeEventHub = std::make_unique<FakeEventHub>(); in SetUp()
119 mReader = std::make_unique<InstrumentedInputReader>(mFakeEventHub, mFakePolicy, *mFakeListener); in SetUp()
135 mFakeEventHub->addConfigurationProperty(EVENTHUB_ID, key, value); in addConfigurationProperty()
170 mFakeEventHub->addDevice(eventHubId, name, classes, bus); in newDevice()
DHardwareStateConverter_test.cpp46 : mFakeEventHub(std::make_shared<FakeEventHub>()), in HardwareStateConverterTest()
48 mReader(mFakeEventHub, mFakePolicy, mFakeListener), in HardwareStateConverterTest()
52 mFakeEventHub->addAbsoluteAxis(EVENTHUB_ID, ABS_MT_SLOT, 0, slotCount - 1, 0, 0, 0); in HardwareStateConverterTest()
70 mFakeEventHub->addDevice(EVENTHUB_ID, identifier.name, InputDeviceClass::TOUCHPAD, in newDevice()
99 std::shared_ptr<FakeEventHub> mFakeEventHub; member in android::HardwareStateConverterTest
DInputMapperTest.h90 std::shared_ptr<FakeEventHub> mFakeEventHub; variable
DGestureConverter_test.cpp60 mFakeEventHub = std::make_unique<FakeEventHub>(); in SetUp()
63 mReader = std::make_unique<InstrumentedInputReader>(mFakeEventHub, mFakePolicy, in SetUp()
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()
85 std::shared_ptr<FakeEventHub> mFakeEventHub; member in android::GestureConverterTest