Home
last modified time | relevance | path

Searched refs:internalViewport (Results 1 – 4 of 4) sorted by relevance

/frameworks/native/services/inputflinger/reader/mapper/
DRotaryEncoderInputMapper.cpp70 std::optional<DisplayViewport> internalViewport = in configure() local
72 if (internalViewport) { in configure()
73 mOrientation = internalViewport->orientation; in configure()
DCursorInputMapper.cpp203 std::optional<DisplayViewport> internalViewport = in configure() local
205 if (internalViewport) { in configure()
206 mOrientation = getInverseRotation(internalViewport->orientation); in configure()
207 mDisplayWidth = internalViewport->deviceWidth; in configure()
208 mDisplayHeight = internalViewport->deviceHeight; in configure()
213 std::optional<DisplayViewport> internalViewport = in configure() local
215 if (internalViewport) { in configure()
216 mOrientation = internalViewport->orientation; in configure()
/frameworks/base/services/tests/servicestests/src/com/android/server/display/
DDisplayManagerServiceTest.java214 DisplayViewport internalViewport = null; in testCreateVirtualDisplay_sentToInputManager() local
221 internalViewport = v; in testCreateVirtualDisplay_sentToInputManager()
222 assertTrue(internalViewport.valid); in testCreateVirtualDisplay_sentToInputManager()
236 assertNotNull(internalViewport); in testCreateVirtualDisplay_sentToInputManager()
284 DisplayViewport internalViewport = viewports.get(i); in testPhysicalViewports() local
287 assertNotNull(internalViewport); in testPhysicalViewports()
288 assertEquals(DisplayViewport.VIEWPORT_INTERNAL, internalViewport.type); in testPhysicalViewports()
289 assertTrue(internalViewport.valid); in testPhysicalViewports()
290 assertTrue(Arrays.binarySearch(displayIds, internalViewport.displayId) >= 0); in testPhysicalViewports()
/frameworks/native/services/inputflinger/tests/
DInputReader_test.cpp1256 std::optional<DisplayViewport> internalViewport = in TEST_F() local
1258 ASSERT_FALSE(internalViewport); in TEST_F()
1266 internalViewport = mFakePolicy->getDisplayViewportByUniqueId(uniqueId); in TEST_F()
1267 ASSERT_TRUE(internalViewport); in TEST_F()
1268 ASSERT_EQ(ViewportType::INTERNAL, internalViewport->type); in TEST_F()
1271 internalViewport = mFakePolicy->getDisplayViewportByType(ViewportType::INTERNAL); in TEST_F()
1272 ASSERT_TRUE(internalViewport); in TEST_F()
1273 ASSERT_EQ(uniqueId, internalViewport->uniqueId); in TEST_F()
1277 internalViewport = mFakePolicy->getDisplayViewportByUniqueId(uniqueId); in TEST_F()
1278 ASSERT_FALSE(internalViewport); in TEST_F()
[all …]