Home
last modified time | relevance | path

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

/frameworks/native/services/inputflinger/tests/
DKeyboardInputMapper_test.cpp39 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()
DInputMapperTest.cpp32 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()
DInputReader_test.cpp372 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 …]
DInputMapperTest.h66 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()
DInputDispatcher_test.cpp177 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 …]
DMultiTouchInputMapper_test.cpp111 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()
DCursorInputMapper_test.cpp155 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()
DTouchpadInputMapper_test.cpp127 mFakePolicy->setDefaultPointerDisplayId(DISPLAY_ID); in TEST_F()
128 mFakePolicy->addDisplayViewport(DISPLAY_ID, DISPLAY_WIDTH, DISPLAY_HEIGHT, ui::ROTATION_0, in TEST_F()
DHardwareStateConverter_test.cpp47 mFakePolicy(sp<FakeInputReaderPolicy>::make()), in HardwareStateConverterTest()
48 mReader(mFakeEventHub, mFakePolicy, mFakeListener), in HardwareStateConverterTest()
100 sp<FakeInputReaderPolicy> mFakePolicy; member in android::HardwareStateConverterTest
DInputTracingTest.cpp99 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()
DCapturedTouchpadEventConverter_test.cpp43 mFakePolicy(sp<FakeInputReaderPolicy>::make()), in CapturedTouchpadEventConverterTest()
44 mReader(mFakeEventHub, mFakePolicy, mFakeListener), in CapturedTouchpadEventConverterTest()
116 sp<FakeInputReaderPolicy> mFakePolicy; member in android::CapturedTouchpadEventConverterTest
DGestureConverter_test.cpp61 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()