Home
last modified time | relevance | path

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

12

/frameworks/native/services/inputflinger/
DInputReaderBase.cpp79 std::optional<DisplayViewport> InputReaderConfiguration::getDisplayViewportByUniqueId( in getDisplayViewportByUniqueId()
86 std::optional<DisplayViewport> result = std::nullopt; in getDisplayViewportByUniqueId()
87 for (const DisplayViewport& currentViewport : mDisplays) { in getDisplayViewportByUniqueId()
100 std::optional<DisplayViewport> InputReaderConfiguration::getDisplayViewportByType(ViewportType type) in getDisplayViewportByType()
103 std::optional<DisplayViewport> result = std::nullopt; in getDisplayViewportByType()
104 for (const DisplayViewport& currentViewport : mDisplays) { in getDisplayViewportByType()
122 std::optional<DisplayViewport> InputReaderConfiguration::getDisplayViewportByPort( in getDisplayViewportByPort()
124 for (const DisplayViewport& currentViewport : mDisplays) { in getDisplayViewportByPort()
133 std::optional<DisplayViewport> InputReaderConfiguration::getDisplayViewportById( in getDisplayViewportById()
135 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.h308 std::optional<DisplayViewport> getDisplayViewportByType(ViewportType type) const;
309 std::optional<DisplayViewport> getDisplayViewportByUniqueId(const std::string& uniqueDisplayId)
311 std::optional<DisplayViewport> getDisplayViewportByPort(uint8_t physicalPort) const;
312 std::optional<DisplayViewport> getDisplayViewportById(int32_t displayId) const;
313 void setDisplayViewports(const std::vector<DisplayViewport>& viewports);
317 void dumpViewport(std::string& dump, const DisplayViewport& viewport) const;
320 std::vector<DisplayViewport> mDisplays;
DPointerControllerInterface.h107 virtual void setDisplayViewport(const DisplayViewport& displayViewport) = 0;
/frameworks/native/include/input/
DDisplayViewport.h52 struct DisplayViewport { struct
72 DisplayViewport() in DisplayViewport() argument
90 bool operator==(const DisplayViewport& other) const {
101 bool operator!=(const DisplayViewport& other) const {
/frameworks/base/core/java/android/hardware/input/
DInputManagerInternal.java20 import android.hardware.display.DisplayViewport;
45 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.cpp171 void PointerController::setDisplayViewport(const DisplayViewport& viewport) { in setDisplayViewport()
195 void PointerController::onDisplayViewportsUpdated(std::vector<DisplayViewport>& viewports) { in onDisplayViewportsUpdated()
197 for (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/base/services/tests/servicestests/src/com/android/server/display/
DDisplayManagerServiceTest.java39 import android.hardware.display.DisplayViewport;
206 ArgumentCaptor<List<DisplayViewport>> viewportCaptor = ArgumentCaptor.forClass(List.class); in testCreateVirtualDisplay_sentToInputManager()
208 List<DisplayViewport> viewports = viewportCaptor.getValue(); in testCreateVirtualDisplay_sentToInputManager()
213 DisplayViewport virtualViewport = null; in testCreateVirtualDisplay_sentToInputManager()
214 DisplayViewport internalViewport = null; in testCreateVirtualDisplay_sentToInputManager()
216 DisplayViewport v = viewports.get(i); in testCreateVirtualDisplay_sentToInputManager()
218 case DisplayViewport.VIEWPORT_INTERNAL: { in testCreateVirtualDisplay_sentToInputManager()
225 case DisplayViewport.VIEWPORT_EXTERNAL: { in testCreateVirtualDisplay_sentToInputManager()
229 case DisplayViewport.VIEWPORT_VIRTUAL: { in testCreateVirtualDisplay_sentToInputManager()
272 ArgumentCaptor<List<DisplayViewport>> viewportCaptor = ArgumentCaptor.forClass(List.class); in testPhysicalViewports()
[all …]
/frameworks/native/services/inputflinger/reader/mapper/
DKeyboardInputMapper.h49 std::optional<DisplayViewport> mViewport;
98 std::optional<DisplayViewport> findViewport(nsecs_t when,
DRotaryEncoderInputMapper.cpp70 std::optional<DisplayViewport> internalViewport = in configure()
DCursorInputMapper.cpp203 std::optional<DisplayViewport> internalViewport = in configure()
213 std::optional<DisplayViewport> internalViewport = in configure()
DTouchInputMapper.h410 DisplayViewport mViewport;
724 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/core/java/com/android/server/display/
DDisplayDevice.java21 import android.hardware.display.DisplayViewport;
262 public final void populateViewportLocked(DisplayViewport viewport) { in populateViewportLocked()
DDisplayManagerService.java33 import static android.hardware.display.DisplayViewport.VIEWPORT_EXTERNAL;
34 import static android.hardware.display.DisplayViewport.VIEWPORT_INTERNAL;
35 import static android.hardware.display.DisplayViewport.VIEWPORT_VIRTUAL;
68 import android.hardware.display.DisplayViewport;
362 private final ArrayList<DisplayViewport> mViewports = new ArrayList<>();
373 private final ArrayList<DisplayViewport> mTempViewports = new ArrayList<>();
1786 private DisplayViewport getViewportLocked(int viewportType, String uniqueId) {
1790 + DisplayViewport.typeToString(viewportType));
1794 DisplayViewport viewport;
1804 viewport = new DisplayViewport();
[all …]
DDisplayDeviceInfo.java20 import android.hardware.display.DisplayViewport;
/frameworks/native/services/inputflinger/reader/include/
DInputDevice.h64 inline std::optional<DisplayViewport> getAssociatedViewport() const { in getAssociatedViewport()
173 std::optional<DisplayViewport> mAssociatedViewport;
383 inline std::optional<DisplayViewport> getAssociatedViewport() const { in getAssociatedViewport()
/frameworks/base/libs/input/tests/
DPointerController_test.cpp172 DisplayViewport viewport; in ensureDisplayViewportIsSet()
/frameworks/base/services/core/java/com/android/server/input/
DInputManagerService.java46 import android.hardware.display.DisplayViewport;
284 DisplayViewport[] viewports); in nativeSetDisplayViewports()
596 private void setDisplayViewportsInternal(List<DisplayViewport> viewports) { in setDisplayViewportsInternal()
597 final DisplayViewport[] vArray = new DisplayViewport[viewports.size()]; in setDisplayViewportsInternal()
602 final DisplayViewport v = vArray[i] = viewports.get(i).makeCopy(); in setDisplayViewportsInternal()
3424 public void setDisplayViewports(List<DisplayViewport> viewports) { in setDisplayViewports()
/frameworks/native/services/inputflinger/tests/
DInputReader_test.cpp138 void setDisplayViewport(const DisplayViewport& viewport) override { in setDisplayViewport()
198 std::vector<DisplayViewport> mViewports;
229 std::optional<DisplayViewport> getDisplayViewportByUniqueId(const std::string& uniqueId) const { in getDisplayViewportByUniqueId()
232 std::optional<DisplayViewport> getDisplayViewportByType(ViewportType type) const { in getDisplayViewportByType()
236 std::optional<DisplayViewport> getDisplayViewportByPort(uint8_t displayPort) const { in getDisplayViewportByPort()
243 const DisplayViewport viewport = in addDisplayViewport()
250 bool updateViewport(const DisplayViewport& viewport) { in updateViewport()
253 const DisplayViewport& currentViewport = mViewports[i]; in updateViewport()
317 DisplayViewport createDisplayViewport(int32_t displayId, int32_t width, int32_t height, in createDisplayViewport()
323 DisplayViewport v; in createDisplayViewport()
[all …]

12