/frameworks/base/core/jni/ |
D | android_hardware_display_DisplayViewport.cpp | 58 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() 64 viewport->orientation = env->GetIntField(viewportObj, gDisplayViewportClassInfo.orientation); in android_hardware_display_DisplayViewport_toNative() 65 viewport->deviceWidth = env->GetIntField(viewportObj, gDisplayViewportClassInfo.deviceWidth); in android_hardware_display_DisplayViewport_toNative() 66 viewport->deviceHeight = env->GetIntField(viewportObj, gDisplayViewportClassInfo.deviceHeight); in android_hardware_display_DisplayViewport_toNative() 71 viewport->uniqueId = ScopedUtfChars(env, uniqueId).c_str(); in android_hardware_display_DisplayViewport_toNative() 74 viewport->physicalPort = std::nullopt; in android_hardware_display_DisplayViewport_toNative() 77 viewport->physicalPort = std::make_optional(env->CallByteMethod(physicalPort, byteValue)); in android_hardware_display_DisplayViewport_toNative() 80 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/core/java/android/hardware/display/ |
D | DisplayViewport.java | 83 public void copyFrom(DisplayViewport viewport) { in copyFrom() argument 84 valid = viewport.valid; in copyFrom() 85 isActive = viewport.isActive; in copyFrom() 86 displayId = viewport.displayId; in copyFrom() 87 orientation = viewport.orientation; in copyFrom() 88 logicalFrame.set(viewport.logicalFrame); in copyFrom() 89 physicalFrame.set(viewport.physicalFrame); in copyFrom() 90 deviceWidth = viewport.deviceWidth; in copyFrom() 91 deviceHeight = viewport.deviceHeight; in copyFrom() 92 uniqueId = viewport.uniqueId; in copyFrom() [all …]
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | DisplayDevice.java | 253 public final void populateViewportLocked(DisplayViewport viewport) { in populateViewportLocked() argument 254 viewport.orientation = mCurrentOrientation; in populateViewportLocked() 257 viewport.logicalFrame.set(mCurrentLayerStackRect); in populateViewportLocked() 259 viewport.logicalFrame.setEmpty(); in populateViewportLocked() 263 viewport.physicalFrame.set(mCurrentDisplayRect); in populateViewportLocked() 265 viewport.physicalFrame.setEmpty(); in populateViewportLocked() 271 viewport.deviceWidth = isRotated ? info.height : info.width; in populateViewportLocked() 272 viewport.deviceHeight = isRotated ? info.width : info.height; in populateViewportLocked() 274 viewport.uniqueId = info.uniqueId; in populateViewportLocked() 277 viewport.physicalPort = ((DisplayAddress.Physical) info.address).getPort(); in populateViewportLocked() [all …]
|
D | DisplayManagerService.java | 1594 DisplayViewport viewport; in getViewportLocked() local 1597 viewport = mViewports.get(i); in getViewportLocked() 1598 if (viewport.type == viewportType && uniqueId.equals(viewport.uniqueId)) { in getViewportLocked() 1599 return viewport; in getViewportLocked() 1604 viewport = new DisplayViewport(); in getViewportLocked() 1605 viewport.type = viewportType; in getViewportLocked() 1606 viewport.uniqueId = uniqueId; in getViewportLocked() 1607 mViewports.add(viewport); in getViewportLocked() 1608 return viewport; in getViewportLocked() 1613 final DisplayViewport viewport = getViewportLocked(viewportType, info.uniqueId); in populateViewportLocked() local [all …]
|
/frameworks/base/libs/input/ |
D | PointerController.cpp | 133 if (!mLocked.viewport.isValid()) { in getBoundsLocked() 137 *outMinX = mLocked.viewport.logicalLeft; in getBoundsLocked() 138 *outMinY = mLocked.viewport.logicalTop; in getBoundsLocked() 139 *outMaxX = mLocked.viewport.logicalRight - 1; in getBoundsLocked() 140 *outMaxY = mLocked.viewport.logicalBottom - 1; in getBoundsLocked() 214 return mLocked.viewport.displayId; in getDisplayId() 261 if (!mLocked.viewport.isValid()) { in setPresentation() 269 mLocked.viewport.displayId); in setPresentation() 293 if (!mLocked.viewport.isValid()) { in setSpots() 342 if (!mLocked.viewport.isValid()) { in clearSpots() [all …]
|
D | PointerController.h | 103 virtual void setDisplayViewport(const DisplayViewport& viewport); 161 DisplayViewport viewport; member
|
/frameworks/native/services/surfaceflinger/ |
D | DisplayDevice.cpp | 157 void DisplayDevice::setProjection(ui::Rotation orientation, Rect viewport, Rect frame) { in setProjection() argument 176 if (viewport.isEmpty()) { in setProjection() 181 viewport = Rect(displayWidth, displayHeight); in setProjection() 185 std::swap(viewport.right, viewport.bottom); in setProjection() 190 const float sourceWidth = viewport.width(); in setProjection() 191 const float sourceHeight = viewport.height(); in setProjection() 200 const float sourceX = viewport.left; in setProjection() 201 const float sourceY = viewport.top; in setProjection() 225 const Rect& sourceClip = viewport; in setProjection() 226 Rect destinationClip = globalTransform.transform(viewport); in setProjection() [all …]
|
D | RefreshRateOverlay.cpp | 203 void RefreshRateOverlay::setViewport(ui::Size viewport) { in setViewport() argument 204 Rect frame(viewport.width >> 3, viewport.height >> 5); in setViewport() 205 frame.offsetBy(viewport.width >> 5, viewport.height >> 4); in setViewport()
|
/frameworks/base/libs/input/tests/ |
D | PointerController_test.cpp | 172 DisplayViewport viewport; in ensureDisplayViewportIsSet() local 173 viewport.displayId = ADISPLAY_ID_DEFAULT; in ensureDisplayViewportIsSet() 174 viewport.logicalRight = 1600; in ensureDisplayViewportIsSet() 175 viewport.logicalBottom = 1200; in ensureDisplayViewportIsSet() 176 viewport.physicalRight = 800; in ensureDisplayViewportIsSet() 177 viewport.physicalBottom = 600; in ensureDisplayViewportIsSet() 178 viewport.deviceWidth = 400; in ensureDisplayViewportIsSet() 179 viewport.deviceHeight = 300; in ensureDisplayViewportIsSet() 180 mPointerController->setDisplayViewport(viewport); in ensureDisplayViewportIsSet()
|
/frameworks/native/services/inputflinger/ |
D | InputReaderBase.cpp | 143 for (const DisplayViewport& viewport : mDisplays) { in dump() local 144 dumpViewport(dump, viewport); in dump() 148 void InputReaderConfiguration::dumpViewport(std::string& dump, const DisplayViewport& viewport) in dumpViewport() 150 dump += StringPrintf(INDENT4 "%s\n", viewport.toString().c_str()); in dumpViewport()
|
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/ |
D | LayerFE.h | 103 const Rect& viewport; member 154 lhs.clearRegion.hasSameRects(rhs.clearRegion) && lhs.viewport == rhs.viewport && 180 PrintTo(settings.viewport, os); in PrintTo()
|
/frameworks/av/cmds/screenrecord/ |
D | screenrecord.cpp | 276 const ui::Size& viewport = displayState.viewport; in setDisplayProjection() local 280 Rect layerStackRect(viewport); in setDisplayProjection() 283 float displayAspect = viewport.getHeight() / static_cast<float>(viewport.getWidth()); in setDisplayProjection() 702 const ui::Size& viewport = displayState.viewport; in recordScreen() local 705 viewport.getWidth(), viewport.getHeight(), displayConfig.refreshRate, in recordScreen() 712 gVideoWidth = floorToEven(viewport.getWidth()); in recordScreen() 715 gVideoHeight = floorToEven(viewport.getHeight()); in recordScreen()
|
/frameworks/native/cmds/surfacereplayer/replayer/trace_creator/ |
D | trace_creator.py | 275 change.projection.viewport.left, \ 276 change.projection.viewport.top, \ 277 change.projection.viewport.right,\ 278 change.projection.viewport.bottom = rectangle()
|
/frameworks/native/libs/ui/include/ui/ |
D | DisplayState.h | 35 Size viewport; member
|
/frameworks/native/libs/ui/include_vndk/ui/ |
D | DisplayState.h | 35 Size viewport; member
|
/frameworks/native/services/surfaceflinger/tests/ |
D | MultiDisplayLayerBounds_test.cpp | 93 createDisplay(mMainDisplayState.viewport, 1 /* layerStack */); in TEST_F() 116 createDisplay(mMainDisplayState.viewport, 0 /* layerStack */); in TEST_F()
|
/frameworks/native/services/surfaceflinger/CompositionEngine/src/ |
D | OutputLayer.cpp | 80 const Rect& viewport = getOutput().getState().viewport; in calculateInitialCrop() local 85 activeCropFloat = activeCropFloat.intersect(viewport.toFloatRect()); in calculateInitialCrop() 192 if (!activeCrop.intersect(outputState.viewport, &activeCrop)) { in calculateOutputDisplayFrame() 218 if (!frame.intersect(outputState.viewport, &frame)) { in calculateOutputDisplayFrame() 571 frame.intersect(outputState.viewport, &frame); in writeCursorPositionToHWC()
|
D | OutputCompositionState.cpp | 43 dumpVal(out, "viewport", viewport); in dump()
|
D | Output.cpp | 109 const Rect& viewport, const Rect& sourceClip, in setProjection() argument 117 outputState.viewport = viewport; in setProjection() 254 Region dirty(outputState.viewport); in getDirtyRegion() 560 outputState.transform.transform(visibleNonShadowRegion.intersect(outputState.viewport)); in ensureOutputLayerIfVisible() 951 const Region viewportRegion(outputState.viewport); in generateClientCompositionRequests() 995 outputState.viewport, in generateClientCompositionRequests()
|
/frameworks/native/libs/gui/ |
D | LayerState.cpp | 218 viewport(Rect::EMPTY_RECT), in DisplayState() 230 output.write(viewport); in write() 243 input.read(viewport); in read() 262 viewport = other.viewport; in merge()
|
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/impl/ |
D | OutputCompositionState.h | 80 Rect viewport; member
|
/frameworks/native/cmds/surfacereplayer/replayer/ |
D | Replayer.cpp | 613 Rect viewport = Rect(pc.viewport().left(), pc.viewport().top(), pc.viewport().right(), in setDisplayProjection() local 614 pc.viewport().bottom()); in setDisplayProjection() 617 t.setDisplayProjection(mDisplays[id], ui::toRotation(pc.orientation()), viewport, frame); in setDisplayProjection()
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
D | MagnificationController.java | 431 final Rect viewport = mTempRect; in setScale() local 432 mMagnificationRegion.getBounds(viewport); in setScale() 436 (viewport.width() / 2.0f - spec.offsetX + viewport.left) / oldScale; in setScale() 438 (viewport.height() / 2.0f - spec.offsetY + viewport.top) / oldScale; in setScale()
|
/frameworks/native/services/inputflinger/reader/ |
D | InputReader.cpp | 409 std::optional<DisplayViewport> viewport = in updatePointerDisplayLocked() local 411 if (!viewport) { in updatePointerDisplayLocked() 415 viewport = mConfig.getDisplayViewportById(ADISPLAY_ID_DEFAULT); in updatePointerDisplayLocked() 417 if (!viewport) { in updatePointerDisplayLocked() 423 controller->setDisplayViewport(*viewport); in updatePointerDisplayLocked()
|