Home
last modified time | relevance | path

Searched refs:viewport (Results 1 – 25 of 35) 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()
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 …]
Dandroid_hardware_display_DisplayViewport.h30 DisplayViewport* viewport);
/frameworks/base/libs/input/
DMouseCursorController.cpp77 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 …]
DPointerController.cpp171 void PointerController::setDisplayViewport(const DisplayViewport& viewport) { in setDisplayViewport() argument
178 mCursorController.setDisplayViewport(viewport, getAdditionalMouseResources); in setDisplayViewport()
197 for (DisplayViewport viewport : viewports) { in onDisplayViewportsUpdated() local
198 displayIdSet.insert(viewport.displayId); in onDisplayViewportsUpdated()
DMouseCursorController.h55 void setDisplayViewport(const DisplayViewport& viewport, bool getAdditionalMouseResources);
76 DisplayViewport viewport; member
DPointerController.h61 virtual void setDisplayViewport(const DisplayViewport& viewport);
/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.java262 public final void populateViewportLocked(DisplayViewport viewport) { in populateViewportLocked() argument
263 viewport.orientation = mCurrentOrientation; in populateViewportLocked()
266 viewport.logicalFrame.set(mCurrentLayerStackRect); in populateViewportLocked()
268 viewport.logicalFrame.setEmpty(); in populateViewportLocked()
272 viewport.physicalFrame.set(mCurrentDisplayRect); in populateViewportLocked()
274 viewport.physicalFrame.setEmpty(); in populateViewportLocked()
280 viewport.deviceWidth = isRotated ? info.height : info.width; in populateViewportLocked()
281 viewport.deviceHeight = isRotated ? info.width : info.height; in populateViewportLocked()
283 viewport.uniqueId = info.uniqueId; in populateViewportLocked()
286 viewport.physicalPort = ((DisplayAddress.Physical) info.address).getPort(); in populateViewportLocked()
[all …]
DDisplayManagerService.java1794 DisplayViewport viewport;
1797 viewport = mViewports.get(i);
1798 if (viewport.type == viewportType && uniqueId.equals(viewport.uniqueId)) {
1799 return viewport;
1804 viewport = new DisplayViewport();
1805 viewport.type = viewportType;
1806 viewport.uniqueId = uniqueId;
1807 mViewports.add(viewport);
1808 return viewport;
1813 final DisplayViewport viewport = getViewportLocked(viewportType, info.uniqueId);
[all …]
/frameworks/base/libs/input/tests/
DPointerController_test.cpp172 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/
DInputReaderBase.cpp148 for (const DisplayViewport& viewport : mDisplays) { in dump() local
149 dumpViewport(dump, viewport); in dump()
153 void InputReaderConfiguration::dumpViewport(std::string& dump, const DisplayViewport& viewport) in dumpViewport()
155 dump += StringPrintf(INDENT4 "%s\n", viewport.toString().c_str()); in dumpViewport()
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/
DLayerFE.h124 const Rect& viewport; member
183 lhs.clearRegion.hasSameRects(rhs.clearRegion) && lhs.viewport == rhs.viewport &&
208 PrintTo(settings.viewport, os); in PrintTo()
/frameworks/native/cmds/surfacereplayer/replayer/trace_creator/
Dtrace_creator.py266 change.projection.viewport.left, \
267 change.projection.viewport.top, \
268 change.projection.viewport.right,\
269 change.projection.viewport.bottom = rectangle()
/frameworks/native/services/surfaceflinger/
DRefreshRateOverlay.cpp243 void RefreshRateOverlay::setViewport(ui::Size viewport) { in setViewport() argument
244 Rect frame((3 * viewport.width) >> 4, viewport.height >> 5); in setViewport()
245 frame.offsetBy(viewport.width >> 5, viewport.height >> 4); in setViewport()
DEffectLayer.cpp61 prepareShadowClientComposition(*layerSettings, targetSettings.viewport); in prepareClientCompositionList()
DDisplayDevice.h92 void setProjection(ui::Rotation orientation, Rect viewport, Rect frame);
/frameworks/native/services/surfaceflinger/CompositionEngine/src/planner/
DCachedSet.cpp162 const Rect& viewport = outputState.layerStackSpace.content; in render() local
169 .clip = viewport, in render()
176 .clip = Region(viewport), in render()
181 .viewport = viewport, in render()
/frameworks/native/cmds/surfacereplayer/replayer/
DReplayer.cpp579 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/base/services/accessibility/java/com/android/server/accessibility/magnification/
DFullScreenMagnificationController.java475 final Rect viewport = mTempRect; in setScale() local
476 mMagnificationRegion.getBounds(viewport); in setScale()
480 (viewport.width() / 2.0f - spec.offsetX + viewport.left) / oldScale; in setScale()
482 (viewport.height() / 2.0f - spec.offsetY + viewport.top) / oldScale; in setScale()
/frameworks/native/services/inputflinger/reader/
DInputReader.cpp453 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/native/cmds/surfacereplayer/proto/src/
Dtrace.proto134 required Rectangle viewport = 2; field
/frameworks/native/services/inputflinger/include/
DInputReaderBase.h317 void dumpViewport(std::string& dump, const DisplayViewport& viewport) const;
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/
DOutputTest.cpp296 const Rect viewport{10, 20, 30, 40}; in TEST_F() local
298 mOutput->setProjection(orientation, viewport, frame); in TEST_F()
302 EXPECT_EQ(viewport, mOutput->getState().layerStackSpace.content); in TEST_F()
306 EXPECT_EQ(viewport, state.layerStackSpace.content); in TEST_F()
307 EXPECT_EQ(viewport, state.layerStackSpace.bounds); in TEST_F()
334 const Rect viewport{10, 20, 30, 40}; in TEST_F() local
336 mOutput->setProjection(orientation, viewport, frame); in TEST_F()
340 EXPECT_EQ(viewport, mOutput->getState().layerStackSpace.content); in TEST_F()
344 EXPECT_EQ(viewport, state.layerStackSpace.content); in TEST_F()
345 EXPECT_EQ(viewport, state.layerStackSpace.bounds); in TEST_F()
[all …]
/frameworks/native/libs/renderengine/gl/
DGLESRenderEngine.cpp1322 void GLESRenderEngine::setViewportAndProjection(Rect viewport, Rect clip) { in setViewportAndProjection() argument
1324 mVpWidth = viewport.getWidth(); in setViewportAndProjection()
1325 mVpHeight = viewport.getHeight(); in setViewportAndProjection()
1329 glViewport(viewport.left, viewport.top, mVpWidth, mVpHeight); in setViewportAndProjection()
/frameworks/av/media/libstagefright/renderfright/gl/
DGLESRenderEngine.cpp1248 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()

12