Lines Matching refs:viewport
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()
369 static void getNonRotatedSize(const DisplayViewport& viewport, int32_t& width, int32_t& height) { in getNonRotatedSize() argument
370 width = viewport.deviceWidth; in getNonRotatedSize()
371 height = viewport.deviceHeight; in getNonRotatedSize()
373 if (viewport.orientation == DISPLAY_ORIENTATION_90 in getNonRotatedSize()
374 || viewport.orientation == DISPLAY_ORIENTATION_270) { in getNonRotatedSize()
379 void PointerController::setDisplayViewport(const DisplayViewport& viewport) { in setDisplayViewport() argument
381 if (viewport == mLocked.viewport) { in setDisplayViewport()
385 const DisplayViewport oldViewport = mLocked.viewport; in setDisplayViewport()
386 mLocked.viewport = viewport; in setDisplayViewport()
391 getNonRotatedSize(viewport, newDisplayWidth, newDisplayHeight); in setDisplayViewport()
394 if (oldViewport.displayId != viewport.displayId in setDisplayViewport()
410 } else if (oldViewport.orientation != viewport.orientation) { in setDisplayViewport()
437 switch (viewport.orientation) { in setDisplayViewport()
441 y = viewport.deviceHeight - temp; in setDisplayViewport()
444 x = viewport.deviceWidth - x; in setDisplayViewport()
445 y = viewport.deviceHeight - y; in setDisplayViewport()
449 x = viewport.deviceWidth - y; in setDisplayViewport()
652 if (!mLocked.viewport.isValid()) { in updatePointerLocked()
660 mLocked.pointerSprite->setDisplayId(mLocked.viewport.displayId); in updatePointerLocked()
778 if (!mLocked.viewport.isValid()) { in loadResourcesLocked()
782 mPolicy->loadPointerResources(&mResources, mLocked.viewport.displayId); in loadResourcesLocked()
783 mPolicy->loadPointerIcon(&mLocked.pointerIcon, mLocked.viewport.displayId); in loadResourcesLocked()
789 &mLocked.animationResources, mLocked.viewport.displayId); in loadResourcesLocked()