/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/libs/input/ |
D | MouseCursorController.cpp | 77 if (!mLocked.viewport.isValid()) { in getBoundsLocked() 81 *outMinX = mLocked.viewport.logicalLeft; in getBoundsLocked() 82 *outMinY = mLocked.viewport.logicalTop; in getBoundsLocked() 83 *outMaxX = mLocked.viewport.logicalRight - 1; in getBoundsLocked() 84 *outMaxY = mLocked.viewport.logicalBottom - 1; in getBoundsLocked() 155 return mLocked.viewport.displayId; in getDisplayId() 203 static void getNonRotatedSize(const DisplayViewport& viewport, int32_t& width, int32_t& height) { in getNonRotatedSize() argument 204 width = viewport.deviceWidth; in getNonRotatedSize() 205 height = viewport.deviceHeight; in getNonRotatedSize() 207 if (viewport.orientation == DISPLAY_ORIENTATION_90 || in getNonRotatedSize() [all …]
|
D | PointerController.cpp | 251 void PointerController::setDisplayViewport(const DisplayViewport& viewport) { in setDisplayViewport() argument 258 mCursorController.setDisplayViewport(viewport, getAdditionalMouseResources); in setDisplayViewport() 259 if (viewport.displayId != mLocked.pointerDisplayId) { in setDisplayViewport() 262 mContext.getPolicy()->onPointerDisplayIdChanged(viewport.displayId, xPos, yPos); in setDisplayViewport() 263 mLocked.pointerDisplayId = viewport.displayId; in setDisplayViewport() 283 for (const DisplayViewport& viewport : viewports) { in onDisplayViewportsUpdated() local 284 displayIdSet.insert(viewport.displayId); in onDisplayViewportsUpdated()
|
D | MouseCursorController.h | 55 void setDisplayViewport(const DisplayViewport& viewport, bool getAdditionalMouseResources); 76 DisplayViewport viewport; member
|
D | PointerController.h | 61 virtual void setDisplayViewport(const DisplayViewport& viewport);
|
/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 | 342 public final void populateViewportLocked(DisplayViewport viewport) { in populateViewportLocked() argument 343 viewport.orientation = mCurrentOrientation; in populateViewportLocked() 346 viewport.logicalFrame.set(mCurrentLayerStackRect); in populateViewportLocked() 348 viewport.logicalFrame.setEmpty(); in populateViewportLocked() 352 viewport.physicalFrame.set(mCurrentDisplayRect); in populateViewportLocked() 354 viewport.physicalFrame.setEmpty(); in populateViewportLocked() 360 viewport.deviceWidth = isRotated ? info.height : info.width; in populateViewportLocked() 361 viewport.deviceHeight = isRotated ? info.width : info.height; in populateViewportLocked() 363 viewport.uniqueId = info.uniqueId; in populateViewportLocked() 366 viewport.physicalPort = ((DisplayAddress.Physical) info.address).getPort(); in populateViewportLocked() [all …]
|
D | DisplayManagerService.java | 2332 DisplayViewport viewport; in getViewportLocked() local 2335 viewport = mViewports.get(i); in getViewportLocked() 2336 if (viewport.type == viewportType && uniqueId.equals(viewport.uniqueId)) { in getViewportLocked() 2337 return viewport; in getViewportLocked() 2342 viewport = new DisplayViewport(); in getViewportLocked() 2343 viewport.type = viewportType; in getViewportLocked() 2344 viewport.uniqueId = uniqueId; in getViewportLocked() 2345 mViewports.add(viewport); in getViewportLocked() 2346 return viewport; in getViewportLocked() 2351 final DisplayViewport viewport = getViewportLocked(viewportType, info.uniqueId); in populateViewportLocked() local [all …]
|
/frameworks/base/libs/input/tests/ |
D | PointerController_test.cpp | 182 DisplayViewport viewport; in ensureDisplayViewportIsSet() local 183 viewport.displayId = displayId; in ensureDisplayViewportIsSet() 184 viewport.logicalRight = 1600; in ensureDisplayViewportIsSet() 185 viewport.logicalBottom = 1200; in ensureDisplayViewportIsSet() 186 viewport.physicalRight = 800; in ensureDisplayViewportIsSet() 187 viewport.physicalBottom = 600; in ensureDisplayViewportIsSet() 188 viewport.deviceWidth = 400; in ensureDisplayViewportIsSet() 189 viewport.deviceHeight = 300; in ensureDisplayViewportIsSet() 190 mPointerController->setDisplayViewport(viewport); in ensureDisplayViewportIsSet()
|
/frameworks/native/services/inputflinger/ |
D | InputReaderBase.cpp | 151 for (const DisplayViewport& viewport : mDisplays) { in dump() local 152 dumpViewport(dump, viewport); in dump() 156 void InputReaderConfiguration::dumpViewport(std::string& dump, const DisplayViewport& viewport) in dumpViewport() 158 dump += StringPrintf(INDENT4 "%s\n", viewport.toString().c_str()); in dumpViewport()
|
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/ |
D | LayerFE.h | 123 const Rect& viewport; member 186 lhs.viewport == rhs.viewport && lhs.dataspace == rhs.dataspace && 208 PrintTo(settings.viewport, os); in PrintTo()
|
/frameworks/native/services/inputflinger/reader/mapper/ |
D | CursorInputMapper.cpp | 210 if (auto viewport = mDeviceContext.getAssociatedViewport(); viewport) { in configure() local 214 isPointer && (viewport->displayId != mPointerController->getDisplayId()); in configure() 216 : std::make_optional(viewport->displayId); in configure() 233 if (auto viewport = config->getDisplayViewportById(*mDisplayId); viewport) { in configure() local 234 mOrientation = getInverseRotation(viewport->orientation); in configure()
|
/frameworks/native/cmds/surfacereplayer/replayer/trace_creator/ |
D | trace_creator.py | 266 change.projection.viewport.left, \ 267 change.projection.viewport.top, \ 268 change.projection.viewport.right,\ 269 change.projection.viewport.bottom = rectangle()
|
/frameworks/native/services/surfaceflinger/CompositionEngine/src/planner/ |
D | CachedSet.cpp | 165 const Rect& viewport = outputState.layerStackSpace.getContent(); in render() local 172 .clip = viewport, in render() 181 .clip = Region(viewport), in render() 185 .viewport = viewport, in render()
|
/frameworks/native/cmds/surfacereplayer/replayer/ |
D | Replayer.cpp | 579 Rect viewport = Rect(pc.viewport().left(), pc.viewport().top(), pc.viewport().right(), in setDisplayProjection() local 580 pc.viewport().bottom()); in setDisplayProjection() 583 t.setDisplayProjection(mDisplays[id], ui::toRotation(pc.orientation()), viewport, frame); in setDisplayProjection()
|
/frameworks/native/services/surfaceflinger/ |
D | RefreshRateOverlay.cpp | 302 void RefreshRateOverlay::setViewport(ui::Size viewport) { in setViewport() argument 304 const auto width = std::min({kMaxWidth, viewport.width, viewport.height}); in setViewport()
|
D | EffectLayer.cpp | 61 prepareShadowClientComposition(*layerSettings, targetSettings.viewport); in prepareClientCompositionList()
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/magnification/ |
D | FullScreenMagnificationController.java | 527 final Rect viewport = mTempRect; in setScale() local 528 mMagnificationRegion.getBounds(viewport); in setScale() 532 (viewport.width() / 2.0f - spec.offsetX + viewport.left) / oldScale; in setScale() 534 (viewport.height() / 2.0f - spec.offsetY + viewport.top) / oldScale; in setScale()
|
/frameworks/native/services/inputflinger/reader/ |
D | InputReader.cpp | 453 std::optional<DisplayViewport> viewport = in updatePointerDisplayLocked() local 455 if (!viewport) { in updatePointerDisplayLocked() 459 viewport = mConfig.getDisplayViewportById(ADISPLAY_ID_DEFAULT); in updatePointerDisplayLocked() 461 if (!viewport) { in updatePointerDisplayLocked() 467 controller->setDisplayViewport(*viewport); in updatePointerDisplayLocked()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/display/ |
D | DisplayManagerServiceTest.java | 320 DisplayViewport viewport = viewports.get(i); in testPhysicalViewports() local 321 assertNotNull(viewport); in testPhysicalViewports() 322 DisplayInfo displayInfo = bs.getDisplayInfo(viewport.displayId); in testPhysicalViewports() 324 == viewport.type); in testPhysicalViewports() 325 assertTrue(viewport.valid); in testPhysicalViewports() 326 assertTrue(Arrays.binarySearch(displayIds, viewport.displayId) >= 0); in testPhysicalViewports()
|
/frameworks/native/cmds/surfacereplayer/proto/src/ |
D | trace.proto | 139 required Rectangle viewport = 2; field
|
/frameworks/native/services/inputflinger/include/ |
D | InputReaderBase.h | 323 void dumpViewport(std::string& dump, const DisplayViewport& viewport) const;
|
/frameworks/native/libs/renderengine/gl/ |
D | GLESRenderEngine.cpp | 1328 void GLESRenderEngine::setViewportAndProjection(Rect viewport, Rect clip) { in setViewportAndProjection() argument 1330 mVpWidth = viewport.getWidth(); in setViewportAndProjection() 1331 mVpHeight = viewport.getHeight(); in setViewportAndProjection() 1335 glViewport(viewport.left, viewport.top, mVpWidth, mVpHeight); in setViewportAndProjection()
|
/frameworks/av/media/libstagefright/renderfright/gl/ |
D | GLESRenderEngine.cpp | 1248 void GLESRenderEngine::setViewportAndProjection(Rect viewport, Rect clip) { in setViewportAndProjection() argument 1250 mVpWidth = viewport.getWidth(); in setViewportAndProjection() 1251 mVpHeight = viewport.getHeight(); in setViewportAndProjection() 1255 glViewport(viewport.left, viewport.top, mVpWidth, mVpHeight); in setViewportAndProjection()
|