/frameworks/base/core/jni/ |
D | android_hardware_display_DisplayViewport.cpp | 58 DisplayViewport* viewport) { in android_hardware_display_DisplayViewport_toNative() argument 62 viewport->displayId = ui::LogicalDisplayId{ in android_hardware_display_DisplayViewport_toNative() 64 viewport->isActive = env->GetBooleanField(viewportObj, gDisplayViewportClassInfo.isActive); in android_hardware_display_DisplayViewport_toNative() 66 viewport->orientation = static_cast<ui::Rotation>(orientation); in android_hardware_display_DisplayViewport_toNative() 67 viewport->deviceWidth = env->GetIntField(viewportObj, gDisplayViewportClassInfo.deviceWidth); in android_hardware_display_DisplayViewport_toNative() 68 viewport->deviceHeight = env->GetIntField(viewportObj, gDisplayViewportClassInfo.deviceHeight); in android_hardware_display_DisplayViewport_toNative() 73 viewport->uniqueId = ScopedUtfChars(env, uniqueId).c_str(); in android_hardware_display_DisplayViewport_toNative() 76 viewport->physicalPort = std::nullopt; in android_hardware_display_DisplayViewport_toNative() 79 viewport->physicalPort = std::make_optional(env->CallByteMethod(physicalPort, byteValue)); in android_hardware_display_DisplayViewport_toNative() 82 viewport->type = static_cast<ViewportType>(env->GetIntField(viewportObj, in android_hardware_display_DisplayViewport_toNative() [all …]
|
D | android_hardware_display_DisplayViewport.h | 30 DisplayViewport* viewport);
|
/frameworks/base/libs/input/ |
D | MouseCursorController.cpp | 71 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() 188 static void getNonRotatedSize(const DisplayViewport& viewport, int32_t& width, int32_t& height) { in getNonRotatedSize() argument 189 width = viewport.deviceWidth; in getNonRotatedSize() 190 height = viewport.deviceHeight; in getNonRotatedSize() 192 if (viewport.orientation == ui::ROTATION_90 || viewport.orientation == ui::ROTATION_270) { in getNonRotatedSize() [all …]
|
D | MouseCursorController.h | 53 void setDisplayViewport(const DisplayViewport& viewport, bool getAdditionalMouseResources); 78 DisplayViewport viewport; member
|
D | PointerController.cpp | 263 void PointerController::setDisplayViewport(const DisplayViewport& viewport) { in setDisplayViewport() argument 272 mCursorController.setDisplayViewport(viewport, getAdditionalMouseResources); in setDisplayViewport() 273 if (viewport.displayId != mLocked.pointerDisplayId) { in setDisplayViewport() 274 mLocked.pointerDisplayId = viewport.displayId; in setDisplayViewport() 307 for (const DisplayViewport& viewport : viewports) { in onDisplayViewportsUpdated() local 308 displayIdSet.insert(viewport.displayId); in onDisplayViewportsUpdated()
|
D | PointerController.h | 61 void setDisplayViewport(const DisplayViewport& viewport) override;
|
/frameworks/base/core/java/android/hardware/display/ |
D | DisplayViewport.java | 84 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/ |
D | DisplayDevice.java | 382 public final void populateViewportLocked(DisplayViewport viewport) { in populateViewportLocked() argument 383 viewport.orientation = mCurrentOrientation; in populateViewportLocked() 386 viewport.logicalFrame.set(mCurrentLayerStackRect); in populateViewportLocked() 388 viewport.logicalFrame.setEmpty(); in populateViewportLocked() 392 viewport.physicalFrame.set(mCurrentDisplayRect); in populateViewportLocked() 394 viewport.physicalFrame.setEmpty(); in populateViewportLocked() 399 viewport.deviceWidth = isRotated ? info.height : info.width; in populateViewportLocked() 400 viewport.deviceHeight = isRotated ? info.width : info.height; in populateViewportLocked() 402 viewport.uniqueId = info.uniqueId; in populateViewportLocked() 405 viewport.physicalPort = ((DisplayAddress.Physical) info.address).getPort(); in populateViewportLocked() [all …]
|
D | DisplayManagerService.java | 3069 DisplayViewport viewport; in getViewportLocked() local 3072 viewport = mViewports.get(i); in getViewportLocked() 3073 if (viewport.type == viewportType && uniqueId.equals(viewport.uniqueId)) { in getViewportLocked() 3074 return viewport; in getViewportLocked() 3079 viewport = new DisplayViewport(); in getViewportLocked() 3080 viewport.type = viewportType; in getViewportLocked() 3081 viewport.uniqueId = uniqueId; in getViewportLocked() 3082 mViewports.add(viewport); in getViewportLocked() 3083 return viewport; in getViewportLocked() 3088 final DisplayViewport viewport = getViewportLocked(viewportType, info.uniqueId); in populateViewportLocked() local [all …]
|
/frameworks/native/services/inputflinger/tests/ |
D | FakePointerController.cpp | 61 void FakePointerController::setDisplayViewport(const DisplayViewport& viewport) { in setDisplayViewport() argument 62 mDisplayId = viewport.displayId; in setDisplayViewport() 63 setBounds(viewport.logicalLeft, viewport.logicalTop, viewport.logicalRight - 1, in setDisplayViewport() 64 viewport.logicalBottom - 1); in setDisplayViewport()
|
D | FakeInputReaderPolicy.cpp | 80 void FakeInputReaderPolicy::addDisplayViewport(DisplayViewport viewport) { in addDisplayViewport() argument 81 mViewports.push_back(std::move(viewport)); in addDisplayViewport() 112 bool FakeInputReaderPolicy::updateViewport(const DisplayViewport& viewport) { in updateViewport() argument 116 if (currentViewport.displayId == viewport.displayId) { in updateViewport() 117 mViewports[i] = viewport; in updateViewport() 262 for (auto& viewport : mViewports) { in getPointerViewportForAssociatedDisplay() local 263 if (viewport.displayId == associatedDisplayId) { in getPointerViewportForAssociatedDisplay() 264 return std::make_optional(viewport); in getPointerViewportForAssociatedDisplay()
|
D | FakeInputReaderPolicy.h | 50 void addDisplayViewport(DisplayViewport viewport); 54 bool updateViewport(const DisplayViewport& viewport);
|
D | FakePointerController.h | 45 void setDisplayViewport(const DisplayViewport& viewport) override;
|
D | CursorInputMapper_test.cpp | 107 std::optional<DisplayViewport> viewport) in ViewportFakingInputDeviceContext() argument 108 : InputDeviceContext(device, eventHubId), mAssociatedViewport(viewport) {} in ViewportFakingInputDeviceContext() 119 void setViewport(const std::optional<DisplayViewport>& viewport) { in setViewport() argument 120 mAssociatedViewport = viewport; in setViewport()
|
/frameworks/native/services/inputflinger/ |
D | InputReaderBase.cpp | 110 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()
|
D | PointerChoreographer.cpp | 545 for (auto& viewport : mViewports) { in findViewportByIdLocked() local 546 if (viewport.displayId == displayId) { in findViewportByIdLocked() 547 return &viewport; in findViewportByIdLocked() 694 for (const auto& viewport : viewports) { in setDisplayViewports() local 695 const ui::LogicalDisplayId displayId = viewport.displayId; in setDisplayViewports() 698 it->second->setDisplayViewport(viewport); in setDisplayViewports() 703 stylusPointerController->setDisplayViewport(viewport); in setDisplayViewports() 709 drawingTabletController->setDisplayViewport(viewport); in setDisplayViewports() 724 if (const auto viewport = findViewportByIdLocked(resolvedDisplayId); viewport) { in getViewportForPointerDevice() local 725 return *viewport; in getViewportForPointerDevice() [all …]
|
/frameworks/base/libs/input/tests/ |
D | PointerController_test.cpp | 213 DisplayViewport viewport; in ensureDisplayViewportIsSet() local 214 viewport.displayId = displayId; in ensureDisplayViewportIsSet() 215 viewport.logicalRight = 1600; in ensureDisplayViewportIsSet() 216 viewport.logicalBottom = 1200; in ensureDisplayViewportIsSet() 217 viewport.physicalRight = 800; in ensureDisplayViewportIsSet() 218 viewport.physicalBottom = 600; in ensureDisplayViewportIsSet() 219 viewport.deviceWidth = 400; in ensureDisplayViewportIsSet() 220 viewport.deviceHeight = 300; in ensureDisplayViewportIsSet() 221 mPointerController->setDisplayViewport(viewport); in ensureDisplayViewportIsSet()
|
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/ |
D | LayerFE.h | 103 const Rect& viewport; member 192 lhs.viewport == rhs.viewport && lhs.dataspace == rhs.dataspace && 214 PrintTo(settings.viewport, os); in PrintTo()
|
/frameworks/native/services/surfaceflinger/ |
D | HdrSdrRatioOverlay.cpp | 136 void HdrSdrRatioOverlay::setViewport(ui::Size viewport) { in setViewport() argument 138 const auto width = std::min({kMaxWidth, viewport.width, viewport.height}); in setViewport() 142 frame.offsetBy(viewport.width - frame.width(), height >> 4); in setViewport()
|
D | RefreshRateOverlay.cpp | 252 void RefreshRateOverlay::setViewport(ui::Size viewport) { in setViewport() argument 254 const auto width = std::min({kMaxWidth, viewport.width, viewport.height}); in setViewport()
|
D | DisplayDevice.h | 103 void setProjection(ui::Rotation orientation, Rect viewport, Rect frame);
|
/frameworks/native/services/surfaceflinger/CompositionEngine/src/planner/ |
D | CachedSet.cpp | 167 const Rect& viewport = outputState.layerStackSpace.getContent(); in render() local 174 .clip = viewport, in render() 183 targetSettings{.clip = Region(viewport), in render() 187 .viewport = viewport, in render()
|
/frameworks/av/services/camera/virtualcamera/ |
D | VirtualCameraRenderThread.h | 201 std::optional<Rect> viewport = std::nullopt);
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/magnification/ |
D | FullScreenMagnificationController.java | 663 final Rect viewport = mTempRect; in setScale() local 664 mMagnificationRegion.getBounds(viewport); in setScale() 668 (viewport.width() / 2.0f - spec.offsetX + viewport.left) / oldScale; in setScale() 670 (viewport.height() / 2.0f - spec.offsetY + viewport.top) / oldScale; in setScale()
|
/frameworks/native/services/inputflinger/include/ |
D | InputReaderBase.h | 283 void dumpViewport(std::string& dump, const DisplayViewport& viewport) const;
|