/frameworks/base/core/jni/ |
D | android_hardware_display_DisplayViewport.cpp | 57 DisplayViewport* viewport) { in android_hardware_display_DisplayViewport_toNative() argument 61 viewport->displayId = env->GetIntField(viewportObj, gDisplayViewportClassInfo.displayId); in android_hardware_display_DisplayViewport_toNative() 62 viewport->orientation = env->GetIntField(viewportObj, gDisplayViewportClassInfo.orientation); in android_hardware_display_DisplayViewport_toNative() 63 viewport->deviceWidth = env->GetIntField(viewportObj, gDisplayViewportClassInfo.deviceWidth); in android_hardware_display_DisplayViewport_toNative() 64 viewport->deviceHeight = env->GetIntField(viewportObj, gDisplayViewportClassInfo.deviceHeight); in android_hardware_display_DisplayViewport_toNative() 69 viewport->uniqueId = ScopedUtfChars(env, uniqueId).c_str(); in android_hardware_display_DisplayViewport_toNative() 72 viewport->physicalPort = std::nullopt; in android_hardware_display_DisplayViewport_toNative() 75 viewport->physicalPort = std::make_optional(env->CallByteMethod(physicalPort, byteValue)); in android_hardware_display_DisplayViewport_toNative() 78 viewport->type = static_cast<ViewportType>(env->GetIntField(viewportObj, in android_hardware_display_DisplayViewport_toNative() 83 viewport->logicalLeft = env->GetIntField(logicalFrameObj, gRectClassInfo.left); 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 | 80 public void copyFrom(DisplayViewport viewport) { in copyFrom() argument 81 valid = viewport.valid; in copyFrom() 82 displayId = viewport.displayId; in copyFrom() 83 orientation = viewport.orientation; in copyFrom() 84 logicalFrame.set(viewport.logicalFrame); in copyFrom() 85 physicalFrame.set(viewport.physicalFrame); in copyFrom() 86 deviceWidth = viewport.deviceWidth; in copyFrom() 87 deviceHeight = viewport.deviceHeight; in copyFrom() 88 uniqueId = viewport.uniqueId; in copyFrom() 89 physicalPort = viewport.physicalPort; in copyFrom() [all …]
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | DisplayDevice.java | 217 public final void populateViewportLocked(DisplayViewport viewport) { in populateViewportLocked() argument 218 viewport.orientation = mCurrentOrientation; in populateViewportLocked() 221 viewport.logicalFrame.set(mCurrentLayerStackRect); in populateViewportLocked() 223 viewport.logicalFrame.setEmpty(); in populateViewportLocked() 227 viewport.physicalFrame.set(mCurrentDisplayRect); in populateViewportLocked() 229 viewport.physicalFrame.setEmpty(); in populateViewportLocked() 235 viewport.deviceWidth = isRotated ? info.height : info.width; in populateViewportLocked() 236 viewport.deviceHeight = isRotated ? info.width : info.height; in populateViewportLocked() 238 viewport.uniqueId = info.uniqueId; in populateViewportLocked() 241 viewport.physicalPort = ((DisplayAddress.Physical) info.address).getPort(); in populateViewportLocked() [all …]
|
D | DisplayManagerService.java | 1419 DisplayViewport viewport; in getViewportLocked() local 1422 viewport = mViewports.get(i); in getViewportLocked() 1423 if (viewport.type == viewportType && uniqueId.equals(viewport.uniqueId)) { in getViewportLocked() 1424 return viewport; in getViewportLocked() 1429 viewport = new DisplayViewport(); in getViewportLocked() 1430 viewport.type = viewportType; in getViewportLocked() 1431 viewport.uniqueId = uniqueId; in getViewportLocked() 1432 mViewports.add(viewport); in getViewportLocked() 1433 return viewport; in getViewportLocked() 1438 final DisplayViewport viewport = getViewportLocked(viewportType, 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 | 101 virtual void setDisplayViewport(const DisplayViewport& viewport); 176 DisplayViewport viewport; member
|
/frameworks/native/services/surfaceflinger/ |
D | DisplayDevice.cpp | 204 Rect viewport(newViewport); in setProjection() local 222 if (viewport.isEmpty()) { in setProjection() 227 viewport = Rect(w, h); in setProjection() 231 std::swap(viewport.right, viewport.bottom); in setProjection() 236 float src_width = viewport.width(); in setProjection() 237 float src_height = viewport.height(); in setProjection() 246 float src_x = viewport.left; in setProjection() 247 float src_y = viewport.top; in setProjection() 270 Rect scissor = globalTransform.transform(viewport); in setProjection() 286 frame, viewport, scissor, needsFiltering); in setProjection() [all …]
|
D | DisplayDevice.h | 96 void setProjection(int orientation, const Rect& viewport, const Rect& frame); 214 Rect viewport; member 301 const Rect& viewport = mDevice->getViewport(); in getSourceCrop() local 322 translateLogical.set(-viewport.left, -viewport.top); in getSourceCrop() 324 scale.set(frame.getWidth() / float(viewport.getWidth()), 0, 0, in getSourceCrop() 325 frame.getHeight() / float(viewport.getHeight())); in getSourceCrop()
|
D | ContainerLayer.h | 35 const Rect& viewport, int32_t supportedPerFrameMetadata,
|
D | ColorLayer.cpp | 95 const ui::Transform& transform, const Rect& viewport, in setPerFrameData() argument 100 Region visible = transform.transform(visibleRegion.intersect(viewport)); in setPerFrameData()
|
D | ColorLayer.h | 41 const Rect& viewport, int32_t supportedPerFrameMetadata,
|
/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/surfaceflinger/CompositionEngine/tests/ |
D | OutputTest.cpp | 119 const Rect viewport{5, 6, 7, 8}; in TEST_F() local 123 mOutput.setProjection(transform, orientation, frame, viewport, scissor, needsFiltering); in TEST_F() 128 EXPECT_EQ(viewport, mOutput.getState().viewport); in TEST_F() 250 const Rect viewport{100, 200}; in TEST_F() local 251 mOutput.editState().viewport = viewport; in TEST_F() 257 EXPECT_THAT(result, RegionEq(Region(viewport))); in TEST_F() 262 const Rect viewport{100, 200}; in TEST_F() local 263 mOutput.editState().viewport = viewport; in TEST_F()
|
/frameworks/native/services/inputflinger/ |
D | InputReaderBase.cpp | 117 for (const DisplayViewport& viewport : mDisplays) { in dump() local 118 dumpViewport(dump, viewport); in dump() 122 void InputReaderConfiguration::dumpViewport(std::string& dump, const DisplayViewport& viewport) in dumpViewport() 124 dump += StringPrintf(INDENT4 "%s\n", viewport.toString().c_str()); in dumpViewport()
|
/frameworks/native/opengl/libagl/ |
D | matrix.cpp | 632 c->viewport.surfaceport.x = x; in ogles_surfaceport() 633 c->viewport.surfaceport.y = y; in ogles_surfaceport() 636 c->viewport.x, in ogles_surfaceport() 637 c->viewport.y, in ogles_surfaceport() 638 c->viewport.w, in ogles_surfaceport() 639 c->viewport.h); in ogles_surfaceport() 642 c->viewport.scissor.x, in ogles_surfaceport() 643 c->viewport.scissor.y, in ogles_surfaceport() 644 c->viewport.scissor.w, in ogles_surfaceport() 645 c->viewport.scissor.h); in ogles_surfaceport() [all …]
|
/frameworks/native/services/surfaceflinger/CompositionEngine/src/ |
D | Output.cpp | 64 const Rect& viewport, const Rect& scissor, bool needsFiltering) { in setProjection() argument 69 mState.viewport = viewport; in setProjection() 197 Region dirty(mState.viewport); in getDirtyRegion()
|
D | OutputLayer.cpp | 106 const Rect& viewport = mOutput.getState().viewport; in calculateInitialCrop() local 111 activeCropFloat = activeCropFloat.intersect(viewport.toFloatRect()); in calculateInitialCrop() 218 if (!activeCrop.intersect(outputState.viewport, &activeCrop)) { in calculateOutputDisplayFrame() 244 if (!frame.intersect(outputState.viewport, &frame)) { in calculateOutputDisplayFrame()
|
D | OutputCompositionState.cpp | 37 dumpVal(out, "viewport", viewport); in dump()
|
/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/services/inputflinger/reader/mapper/ |
D | CursorInputMapper.cpp | 201 std::optional<DisplayViewport> viewport = in updatePointerControllerDisplayViewport() local 203 if (!viewport) { in updatePointerControllerDisplayViewport() 207 viewport = config.getDisplayViewportById(ADISPLAY_ID_DEFAULT); in updatePointerControllerDisplayViewport() 210 if (!viewport) { in updatePointerControllerDisplayViewport() 216 mPointerController->setDisplayViewport(*viewport); in updatePointerControllerDisplayViewport()
|
/frameworks/native/libs/gui/ |
D | LayerState.cpp | 186 viewport(Rect::EMPTY_RECT), in DisplayState() 198 output.write(viewport); in write() 211 input.read(viewport); in read() 230 viewport = other.viewport; in merge()
|
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/impl/ |
D | OutputCompositionState.h | 58 Rect viewport; member
|
/frameworks/native/cmds/surfacereplayer/replayer/ |
D | Replayer.cpp | 590 Rect viewport = Rect(pc.viewport().left(), pc.viewport().top(), pc.viewport().right(), in setDisplayProjection() local 591 pc.viewport().bottom()); in setDisplayProjection() 594 t.setDisplayProjection(mDisplays[id], 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()
|