Home
last modified time | relevance | path

Searched refs:DisplayViewport (Results 1 – 25 of 35) sorted by relevance

12

/frameworks/native/services/inputflinger/
DInputReaderBase.cpp82 std::optional<DisplayViewport> InputReaderConfiguration::getDisplayViewportByUniqueId( in getDisplayViewportByUniqueId()
89 std::optional<DisplayViewport> result = std::nullopt; in getDisplayViewportByUniqueId()
90 for (const DisplayViewport& currentViewport : mDisplays) { in getDisplayViewportByUniqueId()
103 std::optional<DisplayViewport> InputReaderConfiguration::getDisplayViewportByType(ViewportType type) in getDisplayViewportByType()
106 std::optional<DisplayViewport> result = std::nullopt; in getDisplayViewportByType()
107 for (const DisplayViewport& currentViewport : mDisplays) { in getDisplayViewportByType()
125 std::optional<DisplayViewport> InputReaderConfiguration::getDisplayViewportByPort( in getDisplayViewportByPort()
127 for (const DisplayViewport& currentViewport : mDisplays) { in getDisplayViewportByPort()
136 std::optional<DisplayViewport> InputReaderConfiguration::getDisplayViewportById( in getDisplayViewportById()
138 for (const DisplayViewport& currentViewport : mDisplays) { in getDisplayViewportById()
[all …]
/frameworks/base/core/java/android/hardware/display/
DDisplayViewport.java39 public final class DisplayViewport { class
84 public void copyFrom(DisplayViewport viewport) { in copyFrom()
101 public DisplayViewport makeCopy() { in makeCopy()
102 DisplayViewport dv = new DisplayViewport(); in makeCopy()
113 if (!(o instanceof DisplayViewport)) { in equals()
117 DisplayViewport other = (DisplayViewport) o; in equals()
/frameworks/native/services/inputflinger/include/
DInputReaderBase.h314 std::optional<DisplayViewport> getDisplayViewportByType(ViewportType type) const;
315 std::optional<DisplayViewport> getDisplayViewportByUniqueId(const std::string& uniqueDisplayId)
317 std::optional<DisplayViewport> getDisplayViewportByPort(uint8_t physicalPort) const;
318 std::optional<DisplayViewport> getDisplayViewportById(int32_t displayId) const;
319 void setDisplayViewports(const std::vector<DisplayViewport>& viewports);
323 void dumpViewport(std::string& dump, const DisplayViewport& viewport) const;
326 std::vector<DisplayViewport> mDisplays;
DPointerControllerInterface.h107 virtual void setDisplayViewport(const DisplayViewport& displayViewport) = 0;
/frameworks/native/include/input/
DDisplayViewport.h56 struct DisplayViewport { struct
76 DisplayViewport() in DisplayViewport() argument
94 bool operator==(const DisplayViewport& other) const {
105 bool operator!=(const DisplayViewport& other) const {
/frameworks/base/core/java/android/hardware/input/
DInputManagerInternal.java21 import android.hardware.display.DisplayViewport;
38 public abstract void setDisplayViewports(List<DisplayViewport> viewports); in setDisplayViewports()
/frameworks/base/libs/input/
DMouseCursorController.h55 void setDisplayViewport(const DisplayViewport& viewport, bool getAdditionalMouseResources);
76 DisplayViewport viewport;
DPointerController.h61 virtual void setDisplayViewport(const DisplayViewport& viewport);
73 void onDisplayViewportsUpdated(std::vector<DisplayViewport>& viewports);
DPointerController.cpp251 void PointerController::setDisplayViewport(const DisplayViewport& viewport) { in setDisplayViewport()
281 void PointerController::onDisplayViewportsUpdated(std::vector<DisplayViewport>& viewports) { in onDisplayViewportsUpdated()
283 for (const DisplayViewport& viewport : viewports) { in onDisplayViewportsUpdated()
DMouseCursorController.cpp203 static void getNonRotatedSize(const DisplayViewport& viewport, int32_t& width, int32_t& height) { in getNonRotatedSize()
213 void MouseCursorController::setDisplayViewport(const DisplayViewport& viewport, in setDisplayViewport()
221 const DisplayViewport oldViewport = mLocked.viewport; in setDisplayViewport()
/frameworks/native/services/inputflinger/reader/mapper/
DKeyboardInputMapper.h50 std::optional<DisplayViewport> mViewport;
99 std::optional<DisplayViewport> findViewport(nsecs_t when,
DRotaryEncoderInputMapper.cpp70 std::optional<DisplayViewport> internalViewport = in configure()
DTouchInputMapper.h430 DisplayViewport mViewport;
743 std::optional<DisplayViewport> findViewport();
DKeyboardInputMapper.cpp133 std::optional<DisplayViewport> KeyboardInputMapper::findViewport( in findViewport()
/frameworks/base/core/jni/
Dandroid_hardware_display_DisplayViewport.h30 DisplayViewport* viewport);
Dandroid_hardware_display_DisplayViewport.cpp58 DisplayViewport* viewport) { in android_hardware_display_DisplayViewport_toNative()
/frameworks/base/services/tests/servicestests/src/com/android/server/display/
DDisplayManagerServiceTest.java49 import android.hardware.display.DisplayViewport;
232 ArgumentCaptor<List<DisplayViewport>> viewportCaptor = ArgumentCaptor.forClass(List.class); in testCreateVirtualDisplay_sentToInputManager()
234 List<DisplayViewport> viewports = viewportCaptor.getValue(); in testCreateVirtualDisplay_sentToInputManager()
239 DisplayViewport virtualViewport = null; in testCreateVirtualDisplay_sentToInputManager()
240 DisplayViewport internalViewport = null; in testCreateVirtualDisplay_sentToInputManager()
242 DisplayViewport v = viewports.get(i); in testCreateVirtualDisplay_sentToInputManager()
244 case DisplayViewport.VIEWPORT_INTERNAL: { in testCreateVirtualDisplay_sentToInputManager()
251 case DisplayViewport.VIEWPORT_EXTERNAL: { in testCreateVirtualDisplay_sentToInputManager()
256 case DisplayViewport.VIEWPORT_VIRTUAL: { in testCreateVirtualDisplay_sentToInputManager()
295 Display.TYPE_INTERNAL, DisplayViewport.VIEWPORT_INTERNAL, in testPhysicalViewports()
[all …]
/frameworks/base/services/core/java/com/android/server/input/
DNativeInputManagerService.java20 import android.hardware.display.DisplayViewport;
45 void setDisplayViewports(DisplayViewport[] viewports); in setDisplayViewports()
210 public native void setDisplayViewports(DisplayViewport[] viewports); in setDisplayViewports()
/frameworks/base/services/tests/servicestests/src/com/android/server/input/
DInputManagerServiceTests.kt21 import android.hardware.display.DisplayViewport
97 val viewports = listOf<DisplayViewport>() in testPointerDisplayUpdatesWhenDisplayViewportsChanged()
99 verify(native).setDisplayViewports(any(Array<DisplayViewport>::class.java)) in testPointerDisplayUpdatesWhenDisplayViewportsChanged()
/frameworks/base/services/core/java/com/android/server/display/
DDisplayDevice.java23 import android.hardware.display.DisplayViewport;
342 public final void populateViewportLocked(DisplayViewport viewport) { in populateViewportLocked()
DDisplayManagerService.java35 import static android.hardware.display.DisplayViewport.VIEWPORT_EXTERNAL;
36 import static android.hardware.display.DisplayViewport.VIEWPORT_INTERNAL;
37 import static android.hardware.display.DisplayViewport.VIEWPORT_VIRTUAL;
73 import android.hardware.display.DisplayViewport;
394 private final ArrayList<DisplayViewport> mViewports = new ArrayList<>();
405 private final ArrayList<DisplayViewport> mTempViewports = new ArrayList<>();
2324 private DisplayViewport getViewportLocked(int viewportType, String uniqueId) { in getViewportLocked()
2328 + DisplayViewport.typeToString(viewportType)); in getViewportLocked()
2332 DisplayViewport viewport; in getViewportLocked()
2342 viewport = new DisplayViewport(); in getViewportLocked()
[all …]
DDisplayDeviceInfo.java20 import android.hardware.display.DisplayViewport;
/frameworks/native/services/inputflinger/reader/include/
DInputDevice.h67 inline std::optional<DisplayViewport> getAssociatedViewport() const { in getAssociatedViewport()
177 std::optional<DisplayViewport> mAssociatedViewport;
395 inline std::optional<DisplayViewport> getAssociatedViewport() const { in getAssociatedViewport()
/frameworks/base/libs/input/tests/
DPointerController_test.cpp182 DisplayViewport viewport; in ensureDisplayViewportIsSet()
/frameworks/native/services/inputflinger/tests/
DInputReader_test.cpp205 void setDisplayViewport(const DisplayViewport& viewport) override { in setDisplayViewport()
265 std::vector<DisplayViewport> mViewports;
296 std::optional<DisplayViewport> getDisplayViewportByUniqueId(const std::string& uniqueId) const { in getDisplayViewportByUniqueId()
299 std::optional<DisplayViewport> getDisplayViewportByType(ViewportType type) const { in getDisplayViewportByType()
303 std::optional<DisplayViewport> getDisplayViewportByPort(uint8_t displayPort) const { in getDisplayViewportByPort()
307 void addDisplayViewport(DisplayViewport viewport) { in addDisplayViewport()
317 DisplayViewport v; in addDisplayViewport()
338 bool updateViewport(const DisplayViewport& viewport) { in updateViewport()
341 const DisplayViewport& currentViewport = mViewports[i]; in updateViewport()
1098 std::optional<DisplayViewport> mViewport;
[all …]

12