/frameworks/native/services/inputflinger/tests/ |
D | KeyboardInputMapper_test.cpp | 39 sp<FakeInputReaderPolicy> mFakePolicy; member in android::KeyboardInputMapperUnitTest 66 mFakePolicy = sp<FakeInputReaderPolicy>::make(); in SetUp() 67 EXPECT_CALL(mMockInputReaderContext, getPolicy).WillRepeatedly(Return(mFakePolicy.get())); in SetUp() 99 mFakePolicy->setIsInputMethodConnectionActive(true); in TEST_F() 107 mFakePolicy->setIsInputMethodConnectionActive(true); in TEST_F()
|
D | InputMapperTest.cpp | 32 mFakePolicy = sp<FakeInputReaderPolicy>::make(); in SetUpWithBus() 34 EXPECT_CALL(mMockInputReaderContext, getPolicy()).WillRepeatedly(Return(mFakePolicy.get())); in SetUpWithBus() 117 mFakePolicy = sp<FakeInputReaderPolicy>::make(); in SetUp() 119 mReader = std::make_unique<InstrumentedInputReader>(mFakeEventHub, mFakePolicy, *mFakeListener); in SetUp() 131 mFakePolicy.clear(); in TearDown() 148 mDevice->configure(ARBITRARY_TIME, mFakePolicy->getReaderConfiguration(), changes); in configureDevice() 180 mFakePolicy->addDisplayViewport(displayId, width, height, orientation, /* isActive= */ true, in setDisplayInfoAndReconfigure() 186 mFakePolicy->clearViewports(); in clearViewports()
|
D | InputReader_test.cpp | 372 sp<FakeInputReaderPolicy> mFakePolicy; member in android::InputReaderPolicyTest 374 void SetUp() override { mFakePolicy = sp<FakeInputReaderPolicy>::make(); } in SetUp() 375 void TearDown() override { mFakePolicy.clear(); } in TearDown() 390 mFakePolicy->getDisplayViewportByType(ViewportType::INTERNAL); in TEST_F() 394 mFakePolicy->addDisplayViewport(DISPLAY_ID, DISPLAY_WIDTH, DISPLAY_HEIGHT, ui::ROTATION_0, in TEST_F() 398 internalViewport = mFakePolicy->getDisplayViewportByUniqueId(uniqueId); in TEST_F() 403 internalViewport = mFakePolicy->getDisplayViewportByType(ViewportType::INTERNAL); in TEST_F() 407 mFakePolicy->clearViewports(); in TEST_F() 409 internalViewport = mFakePolicy->getDisplayViewportByUniqueId(uniqueId); in TEST_F() 411 internalViewport = mFakePolicy->getDisplayViewportByType(ViewportType::INTERNAL); in TEST_F() [all …]
|
D | InputMapperTest.h | 66 sp<FakeInputReaderPolicy> mFakePolicy; variable 91 sp<FakeInputReaderPolicy> mFakePolicy; variable 108 mDevice->addMapper<T>(EVENTHUB_ID, mFakePolicy->getReaderConfiguration(), args...); in addMapperAndConfigure() 127 return mDevice->constructAndAddMapper<T>(EVENTHUB_ID, mFakePolicy->getReaderConfiguration(), in constructAndAddMapper()
|
D | InputDispatcher_test.cpp | 177 std::unique_ptr<FakeInputDispatcherPolicy> mFakePolicy; member in android::inputdispatcher::InputDispatcherTest 187 mFakePolicy = std::make_unique<FakeInputDispatcherPolicy>(); in SetUp() 188 mDispatcher = std::make_unique<InputDispatcher>(*mFakePolicy, in SetUp() 202 mFakePolicy.reset(); in TearDown() 421 mFakePolicy->assertNotifyConfigurationChangedWasCalled(eventTime); in TEST_F() 432 mFakePolicy->assertNotifySwitchWasCalled(args); in TEST_F() 678 mFakePolicy->assertNotifyInputChannelBrokenWasCalled(window->getInfo()->token); in TEST_F() 921 mFakePolicy->assertNotifyInputChannelBrokenWasCalled(wallpaperWindow->getInfo()->token); in TEST_F() 3827 mFakePolicy->setStaleEventTimeout(100ms); in TEST_F() 5038 mFakePolicy->setInterceptKeyTimeout(interceptKeyTimeout); in TEST_F() [all …]
|
D | MultiTouchInputMapper_test.cpp | 111 mFakePolicy->setDefaultPointerDisplayId(DISPLAY_ID); in SetUp() 112 mFakePolicy->addDisplayViewport(DISPLAY_ID, DISPLAY_WIDTH, DISPLAY_HEIGHT, ui::ROTATION_0, in SetUp() 117 mFakePolicy->getReaderConfiguration()); in SetUp()
|
D | CursorInputMapper_test.cpp | 155 mFakePolicy->setDefaultPointerDisplayId(DISPLAY_ID); in SetUpWithBus() 156 mFakePolicy->addDisplayViewport(createPrimaryViewport(ui::Rotation::Rotation0)); in SetUpWithBus() 609 mFakePolicy->clearViewports(); in TEST_F() 624 mFakePolicy->setDefaultPointerDisplayId(DISPLAY_ID); in TEST_F() 625 mFakePolicy->addDisplayViewport(createPrimaryViewport(ui::Rotation::Rotation0)); in TEST_F() 852 mFakePolicy->setVelocityControlParams(testParams); in TEST_F() 893 mFakePolicy->clearViewports(); in TEST_F() 894 mFakePolicy->addDisplayViewport(createPrimaryViewport(ui::Rotation::Rotation0)); in TEST_F() 898 mFakePolicy->addDisplayViewport(createSecondaryViewport()); in TEST_F() 899 mFakePolicy->setDefaultPointerDisplayId(SECONDARY_DISPLAY_ID); in TEST_F()
|
D | TouchpadInputMapper_test.cpp | 127 mFakePolicy->setDefaultPointerDisplayId(DISPLAY_ID); in TEST_F() 128 mFakePolicy->addDisplayViewport(DISPLAY_ID, DISPLAY_WIDTH, DISPLAY_HEIGHT, ui::ROTATION_0, in TEST_F()
|
D | HardwareStateConverter_test.cpp | 47 mFakePolicy(sp<FakeInputReaderPolicy>::make()), in HardwareStateConverterTest() 48 mReader(mFakeEventHub, mFakePolicy, mFakeListener), in HardwareStateConverterTest() 100 sp<FakeInputReaderPolicy> mFakePolicy; member in android::HardwareStateConverterTest
|
D | InputTracingTest.cpp | 99 std::unique_ptr<FakeInputDispatcherPolicy> mFakePolicy; member in android::inputdispatcher::trace::InputTracingTest 105 mFakePolicy = std::make_unique<FakeInputDispatcherPolicy>(); in SetUp() 110 mDispatcher = std::make_unique<InputDispatcher>(*mFakePolicy, std::move(tracingBackend)); in SetUp() 119 mFakePolicy.reset(); in TearDown()
|
D | CapturedTouchpadEventConverter_test.cpp | 43 mFakePolicy(sp<FakeInputReaderPolicy>::make()), in CapturedTouchpadEventConverterTest() 44 mReader(mFakeEventHub, mFakePolicy, mFakeListener), in CapturedTouchpadEventConverterTest() 116 sp<FakeInputReaderPolicy> mFakePolicy; member in android::CapturedTouchpadEventConverterTest
|
D | GestureConverter_test.cpp | 61 mFakePolicy = sp<FakeInputReaderPolicy>::make(); in SetUp() 63 mReader = std::make_unique<InstrumentedInputReader>(mFakeEventHub, mFakePolicy, in SetUp() 86 sp<FakeInputReaderPolicy> mFakePolicy; member in android::GestureConverterTest 1535 mFakePolicy->setIsInputMethodConnectionActive(true); in TEST_F_WITH_FLAGS()
|