Home
last modified time | relevance | path

Searched refs:ViewportType (Results 1 – 10 of 10) sorted by relevance

/frameworks/native/include/input/
DDisplayViewport.h34 enum class ViewportType : int32_t { enum
40 static const char* viewportTypeToString(ViewportType type) { in viewportTypeToString()
42 case ViewportType::VIEWPORT_INTERNAL: in viewportTypeToString()
44 case ViewportType::VIEWPORT_EXTERNAL: in viewportTypeToString()
46 case ViewportType::VIEWPORT_VIRTUAL: in viewportTypeToString()
74 ViewportType type;
81 type(ViewportType::VIEWPORT_INTERNAL) { in DisplayViewport()
125 type = ViewportType::VIEWPORT_INTERNAL; in setNonDisplayViewport()
/frameworks/base/core/java/android/hardware/display/
DDisplayViewport.java47 public @interface ViewportType {}; annotation in DisplayViewport
78 public @ViewportType int type;
161 public static String typeToString(@ViewportType int viewportType) { in typeToString()
/frameworks/native/services/inputflinger/tests/
DInputReader_test.cpp188 std::optional<DisplayViewport> getDisplayViewportByType(ViewportType type) const { in getDisplayViewportByType()
198 ViewportType viewportType) { in addDisplayViewport()
265 ViewportType type) { in createDisplayViewport()
1092 mFakePolicy->getDisplayViewportByType(ViewportType::VIEWPORT_INTERNAL); in TEST_F()
1097 DISPLAY_ORIENTATION_0, uniqueId, NO_PORT, ViewportType::VIEWPORT_INTERNAL); in TEST_F()
1102 ASSERT_EQ(ViewportType::VIEWPORT_INTERNAL, internalViewport->type); in TEST_F()
1105 internalViewport = mFakePolicy->getDisplayViewportByType(ViewportType::VIEWPORT_INTERNAL); in TEST_F()
1113 internalViewport = mFakePolicy->getDisplayViewportByType(ViewportType::VIEWPORT_INTERNAL); in TEST_F()
1127 DISPLAY_ORIENTATION_0, internalUniqueId, NO_PORT, ViewportType::VIEWPORT_INTERNAL); in TEST_F()
1130 DISPLAY_ORIENTATION_0, externalUniqueId, NO_PORT, ViewportType::VIEWPORT_EXTERNAL); in TEST_F()
[all …]
/frameworks/native/services/inputflinger/reader/mapper/
DRotaryEncoderInputMapper.cpp69 config->getDisplayViewportByType(ViewportType::VIEWPORT_INTERNAL); in configure()
DKeyboardInputMapper.cpp141 mViewport = config->getDisplayViewportByType(ViewportType::VIEWPORT_INTERNAL); in configure()
DCursorInputMapper.cpp185 config->getDisplayViewportByType(ViewportType::VIEWPORT_INTERNAL); in configure()
DTouchInputMapper.cpp595 ViewportType viewportTypeToUse; in findViewport()
597 viewportTypeToUse = ViewportType::VIEWPORT_EXTERNAL; in findViewport()
599 viewportTypeToUse = ViewportType::VIEWPORT_INTERNAL; in findViewport()
604 if (!viewport && viewportTypeToUse == ViewportType::VIEWPORT_EXTERNAL) { in findViewport()
608 viewport = mConfig.getDisplayViewportByType(ViewportType::VIEWPORT_INTERNAL); in findViewport()
/frameworks/native/services/inputflinger/
DInputReaderBase.cpp73 std::optional<DisplayViewport> InputReaderConfiguration::getDisplayViewportByType(ViewportType type) in getDisplayViewportByType()
/frameworks/base/core/jni/
Dandroid_hardware_display_DisplayViewport.cpp78 viewport->type = static_cast<ViewportType>(env->GetIntField(viewportObj, in android_hardware_display_DisplayViewport_toNative()
/frameworks/native/services/inputflinger/include/
DInputReaderBase.h276 std::optional<DisplayViewport> getDisplayViewportByType(ViewportType type) const;