Home
last modified time | relevance | path

Searched refs:viewport (Results 1 – 25 of 37) sorted by relevance

12

/frameworks/base/core/jni/
Dandroid_hardware_display_DisplayViewport.cpp58 DisplayViewport* viewport) { in android_hardware_display_DisplayViewport_toNative() argument
62 viewport->displayId = env->GetIntField(viewportObj, gDisplayViewportClassInfo.displayId); in android_hardware_display_DisplayViewport_toNative()
63 viewport->isActive = env->GetBooleanField(viewportObj, gDisplayViewportClassInfo.isActive); in android_hardware_display_DisplayViewport_toNative()
65 viewport->orientation = static_cast<ui::Rotation>(orientation); in android_hardware_display_DisplayViewport_toNative()
66 viewport->deviceWidth = env->GetIntField(viewportObj, gDisplayViewportClassInfo.deviceWidth); in android_hardware_display_DisplayViewport_toNative()
67 viewport->deviceHeight = env->GetIntField(viewportObj, gDisplayViewportClassInfo.deviceHeight); in android_hardware_display_DisplayViewport_toNative()
72 viewport->uniqueId = ScopedUtfChars(env, uniqueId).c_str(); in android_hardware_display_DisplayViewport_toNative()
75 viewport->physicalPort = std::nullopt; in android_hardware_display_DisplayViewport_toNative()
78 viewport->physicalPort = std::make_optional(env->CallByteMethod(physicalPort, byteValue)); in android_hardware_display_DisplayViewport_toNative()
81 viewport->type = static_cast<ViewportType>(env->GetIntField(viewportObj, in android_hardware_display_DisplayViewport_toNative()
[all …]
Dandroid_hardware_display_DisplayViewport.h30 DisplayViewport* viewport);
/frameworks/base/libs/input/
DMouseCursorController.cpp71 if (!mLocked.viewport.isValid()) { in getBoundsLocked()
76 static_cast<float>(mLocked.viewport.logicalLeft), in getBoundsLocked()
77 static_cast<float>(mLocked.viewport.logicalTop), in getBoundsLocked()
78 static_cast<float>(mLocked.viewport.logicalRight - 1), in getBoundsLocked()
79 static_cast<float>(mLocked.viewport.logicalBottom - 1), in getBoundsLocked()
122 return mLocked.viewport.displayId; in getDisplayId()
179 static void getNonRotatedSize(const DisplayViewport& viewport, int32_t& width, int32_t& height) { in getNonRotatedSize() argument
180 width = viewport.deviceWidth; in getNonRotatedSize()
181 height = viewport.deviceHeight; in getNonRotatedSize()
183 if (viewport.orientation == ui::ROTATION_90 || viewport.orientation == ui::ROTATION_270) { in getNonRotatedSize()
[all …]
DPointerController.cpp252 void PointerController::setDisplayViewport(const DisplayViewport& viewport) { in setDisplayViewport() argument
267 mCursorController.setDisplayViewport(viewport, getAdditionalMouseResources); in setDisplayViewport()
268 if (viewport.displayId != mLocked.pointerDisplayId) { in setDisplayViewport()
269 mLocked.pointerDisplayId = viewport.displayId; in setDisplayViewport()
270 pointerDisplayChanged = {viewport.displayId, mCursorController.getPosition()}; in setDisplayViewport()
297 for (const DisplayViewport& viewport : viewports) { in onDisplayViewportsUpdated() local
298 displayIdSet.insert(viewport.displayId); in onDisplayViewportsUpdated()
DMouseCursorController.h53 void setDisplayViewport(const DisplayViewport& viewport, bool getAdditionalMouseResources);
75 DisplayViewport viewport; member
DPointerController.h61 void setDisplayViewport(const DisplayViewport& viewport) override;
/frameworks/base/core/java/android/hardware/display/
DDisplayViewport.java84 public void copyFrom(DisplayViewport viewport) { in copyFrom() argument
85 valid = viewport.valid; in copyFrom()
86 isActive = viewport.isActive; in copyFrom()
87 displayId = viewport.displayId; in copyFrom()
88 orientation = viewport.orientation; in copyFrom()
89 logicalFrame.set(viewport.logicalFrame); in copyFrom()
90 physicalFrame.set(viewport.physicalFrame); in copyFrom()
91 deviceWidth = viewport.deviceWidth; in copyFrom()
92 deviceHeight = viewport.deviceHeight; in copyFrom()
93 uniqueId = viewport.uniqueId; in copyFrom()
[all …]
/frameworks/base/services/core/java/com/android/server/display/
DDisplayDevice.java351 public final void populateViewportLocked(DisplayViewport viewport) { in populateViewportLocked() argument
352 viewport.orientation = mCurrentOrientation; in populateViewportLocked()
355 viewport.logicalFrame.set(mCurrentLayerStackRect); in populateViewportLocked()
357 viewport.logicalFrame.setEmpty(); in populateViewportLocked()
361 viewport.physicalFrame.set(mCurrentDisplayRect); in populateViewportLocked()
363 viewport.physicalFrame.setEmpty(); in populateViewportLocked()
369 viewport.deviceWidth = isRotated ? info.height : info.width; in populateViewportLocked()
370 viewport.deviceHeight = isRotated ? info.width : info.height; in populateViewportLocked()
372 viewport.uniqueId = info.uniqueId; in populateViewportLocked()
375 viewport.physicalPort = ((DisplayAddress.Physical) info.address).getPort(); in populateViewportLocked()
[all …]
DDisplayManagerService.java2795 DisplayViewport viewport; in getViewportLocked() local
2798 viewport = mViewports.get(i); in getViewportLocked()
2799 if (viewport.type == viewportType && uniqueId.equals(viewport.uniqueId)) { in getViewportLocked()
2800 return viewport; in getViewportLocked()
2805 viewport = new DisplayViewport(); in getViewportLocked()
2806 viewport.type = viewportType; in getViewportLocked()
2807 viewport.uniqueId = uniqueId; in getViewportLocked()
2808 mViewports.add(viewport); in getViewportLocked()
2809 return viewport; in getViewportLocked()
2814 final DisplayViewport viewport = getViewportLocked(viewportType, info.uniqueId); in populateViewportLocked() local
[all …]
/frameworks/base/libs/input/tests/
DPointerController_test.cpp194 DisplayViewport viewport; in ensureDisplayViewportIsSet() local
195 viewport.displayId = displayId; in ensureDisplayViewportIsSet()
196 viewport.logicalRight = 1600; in ensureDisplayViewportIsSet()
197 viewport.logicalBottom = 1200; in ensureDisplayViewportIsSet()
198 viewport.physicalRight = 800; in ensureDisplayViewportIsSet()
199 viewport.physicalBottom = 600; in ensureDisplayViewportIsSet()
200 viewport.deviceWidth = 400; in ensureDisplayViewportIsSet()
201 viewport.deviceHeight = 300; in ensureDisplayViewportIsSet()
202 mPointerController->setDisplayViewport(viewport); in ensureDisplayViewportIsSet()
/frameworks/native/services/inputflinger/
DInputReaderBase.cpp110 for (const DisplayViewport& viewport : mDisplays) { in dump() local
111 dumpViewport(dump, viewport); in dump()
115 void InputReaderConfiguration::dumpViewport(std::string& dump, const DisplayViewport& viewport) in dumpViewport()
117 dump += StringPrintf(INDENT4 "%s\n", viewport.toString().c_str()); in dumpViewport()
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/
DLayerFE.h104 const Rect& viewport; member
172 lhs.viewport == rhs.viewport && lhs.dataspace == rhs.dataspace &&
194 PrintTo(settings.viewport, os); in PrintTo()
/frameworks/native/services/inputflinger/tests/
DFakeInputReaderPolicy.cpp74 void FakeInputReaderPolicy::addDisplayViewport(DisplayViewport viewport) { in addDisplayViewport() argument
75 mViewports.push_back(std::move(viewport)); in addDisplayViewport()
106 bool FakeInputReaderPolicy::updateViewport(const DisplayViewport& viewport) { in updateViewport() argument
110 if (currentViewport.displayId == viewport.displayId) { in updateViewport()
111 mViewports[i] = viewport; in updateViewport()
DFakePointerController.cpp48 void FakePointerController::setDisplayViewport(const DisplayViewport& viewport) { in setDisplayViewport() argument
49 mDisplayId = viewport.displayId; in setDisplayViewport()
DFakeInputReaderPolicy.h51 void addDisplayViewport(DisplayViewport viewport);
55 bool updateViewport(const DisplayViewport& viewport);
DFakePointerController.h37 void setDisplayViewport(const DisplayViewport& viewport) override;
/frameworks/native/services/inputflinger/reader/mapper/
DCursorInputMapper.cpp502 if (auto viewport = mDeviceContext.getAssociatedViewport(); viewport) { in configureOnChangeDisplayInfo() local
506 isPointer && (viewport->displayId != mPointerController->getDisplayId()); in configureOnChangeDisplayInfo()
508 mismatchedPointerDisplay ? std::nullopt : std::make_optional(viewport->displayId); in configureOnChangeDisplayInfo()
524 if (auto viewport = config.getDisplayViewportById(*mDisplayId); viewport) { in configureOnChangeDisplayInfo() local
525 mOrientation = getInverseRotation(viewport->orientation); in configureOnChangeDisplayInfo()
DTouchpadInputMapper.cpp373 if (auto viewport = config.getDisplayViewportById(*displayId); viewport) { in reconfigure() local
374 orientation = getInverseRotation(viewport->orientation); in reconfigure()
/frameworks/native/services/surfaceflinger/CompositionEngine/src/planner/
DCachedSet.cpp168 const Rect& viewport = outputState.layerStackSpace.getContent(); in render() local
175 .clip = viewport, in render()
184 targetSettings{.clip = Region(viewport), in render()
188 .viewport = viewport, in render()
/frameworks/native/cmds/surfacereplayer/replayer/
DReplayer.cpp578 Rect viewport = Rect(pc.viewport().left(), pc.viewport().top(), pc.viewport().right(), in setDisplayProjection() local
579 pc.viewport().bottom()); in setDisplayProjection()
582 t.setDisplayProjection(mDisplays[id], ui::toRotation(pc.orientation()), viewport, frame); in setDisplayProjection()
/frameworks/native/services/surfaceflinger/
DRefreshRateOverlay.cpp308 void RefreshRateOverlay::setViewport(ui::Size viewport) { in setViewport() argument
310 const auto width = std::min({kMaxWidth, viewport.width, viewport.height}); in setViewport()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/magnification/
DFullScreenMagnificationController.java558 final Rect viewport = mTempRect; in setScale() local
559 mMagnificationRegion.getBounds(viewport); in setScale()
563 (viewport.width() / 2.0f - spec.offsetX + viewport.left) / oldScale; in setScale()
565 (viewport.height() / 2.0f - spec.offsetY + viewport.top) / oldScale; in setScale()
/frameworks/native/services/inputflinger/reader/
DInputReader.cpp508 std::optional<DisplayViewport> viewport = in updatePointerDisplayLocked() local
510 if (!viewport) { in updatePointerDisplayLocked()
514 viewport = mConfig.getDisplayViewportById(ADISPLAY_ID_DEFAULT); in updatePointerDisplayLocked()
516 if (!viewport) { in updatePointerDisplayLocked()
522 controller->setDisplayViewport(*viewport); in updatePointerDisplayLocked()
/frameworks/native/services/inputflinger/include/
DInputReaderBase.h266 void dumpViewport(std::string& dump, const DisplayViewport& viewport) const;
/frameworks/av/media/libstagefright/renderfright/gl/
DGLESRenderEngine.h143 void setViewportAndProjection(Rect viewport, Rect clip);

12