Home
last modified time | relevance | path

Searched refs:offsetTo (Results 1 – 25 of 94) sorted by relevance

1234

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/
DFloatingContentCoordinatorTest.kt86 rect200px.offsetTo(0, 500) in testOnContentMoved_twoRects()
90 rect200px.offsetTo(0, 0) in testOnContentMoved_twoRects()
102 rect200px.offsetTo(0, 275) in testOnContentMoved_twoRects()
112 rect200px.offsetTo(0, 110) in testOnContentMoved_twoRects()
140 rect200px.offsetTo(0, 150) in testOnContentMoved_threeRects()
154 rect200px.offsetTo(0, 500) in testOnContentMoved_respectsUpperBounds()
160 rect200px.offsetTo(0, 90) in testOnContentMoved_respectsUpperBounds()
172 rect100px.offsetTo(0, screenBounds.bottom - 100) in testOnContentMoved_respectsLowerBounds()
178 rect200px.offsetTo(0, 800) in testOnContentMoved_respectsLowerBounds()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/pip/
DPipSnapAlgorithm.java91 stackBounds.offsetTo(offset, movementBounds.top); in applySnapFraction()
95 stackBounds.offsetTo(movementBounds.right, offset); in applySnapFraction()
99 stackBounds.offsetTo(offset, movementBounds.bottom); in applySnapFraction()
103 stackBounds.offsetTo(movementBounds.left, offset); in applySnapFraction()
117 stackBounds.offsetTo(stashType == STASH_TYPE_LEFT in applySnapFraction()
150 boundsOut.offsetTo(movementBounds.left, boundedTop); in snapRectToClosestEdge()
152 boundsOut.offsetTo(boundedLeft, movementBounds.top); in snapRectToClosestEdge()
154 boundsOut.offsetTo(movementBounds.right, boundedTop); in snapRectToClosestEdge()
156 boundsOut.offsetTo(boundedLeft, movementBounds.bottom); in snapRectToClosestEdge()
DPhonePipKeepClearAlgorithm.java97 pipBounds.offsetTo(pipBounds.left, in adjust()
101 pipBounds.offsetTo(insets.right - pipBounds.width(), pipBounds.top); in adjust()
103 pipBounds.offsetTo(insets.left, pipBounds.top); in adjust()
164 rectToMove.offsetTo(tmp.left, tmp.top); in tryOffset()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/animation/
DFloatProperties.kt42 rect?.offsetTo(value.toInt(), rect.top) in setValue()
61 rect?.offsetTo(rect.left, value.toInt()) in setValue()
114 rect?.offsetTo(value, rect.top) in setValue()
133 rect?.offsetTo(rect.left, value) in setValue()
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/
DStyledCornersBitmapDrawable.java258 flapCornerRectF.offsetTo(left, top); in draw()
263 flapCornerRectF.offsetTo(right - mCornerFlapSide, top); in draw()
268 flapCornerRectF.offsetTo(right - mCornerFlapSide, bottom - mCornerFlapSide); in draw()
273 flapCornerRectF.offsetTo(left, bottom - mCornerFlapSide); in draw()
313 fakeCornerRectF.offsetTo(left, top); in drawFakeCornersForCompatibilityMode()
322 fakeCornerRectF.offsetTo(right - fakeCornerRectF.width(), top); in drawFakeCornersForCompatibilityMode()
332 .offsetTo(right - fakeCornerRectF.width(), bottom - fakeCornerRectF.height()); in drawFakeCornersForCompatibilityMode()
341 fakeCornerRectF.offsetTo(left, bottom - fakeCornerRectF.height()); in drawFakeCornersForCompatibilityMode()
414 roundedCornerRectF.offsetTo(left, top); in recalculatePath()
428 roundedCornerRectF.offsetTo(right - roundedCornerRectF.width(), top); in recalculatePath()
[all …]
/frameworks/base/tests/SurfaceViewBufferTests/src/com/android/test/
DGeometryTests.kt146 svBounds.offsetTo(surfaceViewPosition.left, surfaceViewPosition.top) in <lambda>()
171 svBounds.offsetTo(surfaceViewPosition.left, surfaceViewPosition.top) in <lambda>()
194 svBounds.offsetTo(surfaceViewPosition.left, surfaceViewPosition.top) in <lambda>()
218 svBounds.offsetTo(surfaceViewPosition.left, surfaceViewPosition.top) in <lambda>()
DSharedBufferModeScreenRecordTests.kt48 svBounds.offsetTo(position.left, position.top) in testAutoRefresh()
DSharedBufferModeTests.kt78 svBounds.offsetTo(position.left, position.top) in <lambda>()
/frameworks/native/include/ui/
DRect.h181 Rect& offsetTo(const Point& p) { in offsetTo() function
182 return offsetTo(p.x, p.y); in offsetTo()
188 Rect& offsetTo(int32_t x, int32_t y);
/frameworks/native/libs/ui/include/ui/
DRect.h181 Rect& offsetTo(const Point& p) { in offsetTo() function
182 return offsetTo(p.x, p.y); in offsetTo()
188 Rect& offsetTo(int32_t x, int32_t y);
/frameworks/native/libs/ui/include_vndk/ui/
DRect.h181 Rect& offsetTo(const Point& p) { in offsetTo() function
182 return offsetTo(p.x, p.y); in offsetTo()
188 Rect& offsetTo(int32_t x, int32_t y);
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/tv/
DTvPipKeepClearAlgorithmTest.kt286 expectedBounds.offsetTo(expectedBounds.left, SCREEN_SIZE.height - STASH_OFFSET) in test_AnchorBottomRight_RestrictedBottomSheet_StashDownAtAnchor()
328 expectedBounds.offsetTo(SCREEN_SIZE.width - STASH_OFFSET, expectedBounds.top) in test_AnchorBottomRight_UnrestrictedBottomSheet_RestrictedSidebar_StashAboveBottomSheet()
377 expectedBounds.offsetTo(SCREEN_SIZE.width - STASH_OFFSET, expectedBounds.top) in test_Stashed_UnstashBoundsBecomeUnobstructed_Unstashes()
408 expectedBounds.offsetTo(SCREEN_SIZE.width - STASH_OFFSET, expectedBounds.top) in test_Stashed_UnstashBoundsStaysObstructed_DoesNotTriggerStash()
440 expectedBounds.offsetTo(SCREEN_SIZE.width - STASH_OFFSET, expectedBounds.top) in test_Stashed_UnstashBoundsObstructionChanges_UnstashTimeExtended()
549 expectedBounds.offsetTo(SCREEN_SIZE.width - STASH_OFFSET, expectedBounds.top) in test_AnchorRightExpandedPiP_RestrictedRightSidebar_StashedRight()
572 sidebar.offsetTo(SCREEN_SIZE.width - width, 0) in makeSideBar()
/frameworks/base/core/java/android/hardware/input/
DKeyboardLayoutPreviewDrawable.java362 oval.offsetTo(mLeft + mTopWidth - 2 * mKeyRadius, mTop); in build()
367 oval.offsetTo(mLeft + mTopWidth - 2 * mKeyRadius, in build()
373 oval.offsetTo(mLeft + mTopWidth - mBottomWidth, in build()
379 oval.offsetTo(mLeft + mTopWidth - mBottomWidth - 2 * mKeyRadius, in build()
385 oval.offsetTo(mLeft, mTop + mLeftHeight - 2 * mKeyRadius); in build()
390 oval.offsetTo(mLeft, mTop); in build()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/magnification/
DMagnificationConnectionManagerTest.java333 requestedRect.offsetTo(requestedRect.right + 10, requestedRect.bottom + 10); in onRectangleOnScreenRequested_trackingDisabledByOnDrag_withoutMovingMagnifier()
355 requestedRect.offsetTo(requestedRect.right + 10, requestedRect.bottom + 10); in onRectangleOnScreenRequested_trackingDisabledByScroll_withoutMovingMagnifier()
390 requestedRect.offsetTo(requestedRect.right + 10, requestedRect.bottom + 10); in onRectangleOnScreenRequested_imeVisibilityDefaultInvisible_withoutMovingMagnifier()
408 requestedRect.offsetTo(requestedRect.right + 10, requestedRect.bottom + 10); in onRectangleOnScreenRequested_trackingEnabledByDefault_movingMagnifier()
427 requestedRect.offsetTo(requestedRect.right + 10, requestedRect.bottom + 10); in onRectangleOnScreenRequested_imeInvisible_withoutMovingMagnifier()
448 requestedRect.offsetTo(requestedRect.right + 10, requestedRect.bottom + 10); in onRectangleOnScreenRequested_trackingEnabledByDragAndReset_movingMagnifier()
466 requestedRect.offsetTo(requestedRect.right + 10, requestedRect.bottom + 10); in onRectangleOnScreenRequested_followTypingIsDisabled_withoutMovingMagnifier()
486 requestedRect.offsetTo(requestedRect.right + 10, requestedRect.bottom + 10); in onRectangleOnScreenRequested_trackingDisabled_withoutMovingMagnifier()
506 requestedRect.offsetTo(requestedRect.right + 10, requestedRect.bottom + 10); in onRectangleOnScreenRequested_trackingDisabledAndEnabledMagnifier_movingMagnifier()
/frameworks/base/services/core/java/com/android/server/wm/
DWindowChangeAnimationSpec.java127 startClip.offsetTo(0, 0); in createBoundsInterpolator()
128 endClip.offsetTo(0, 0); in createBoundsInterpolator()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/pip/
DPipSurfaceTransactionHelper.java52 mTmpDestinationRectF.offsetTo(0, 0); in scale()
69 mTmpDestinationRectF.offsetTo(0, 0); in scale()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip2/
DPipSurfaceTransactionHelper.java116 mTmpSourceRectF.offsetTo(0, 0); in scale()
136 mTmpDestinationRect.offsetTo(0, 0); in scaleAndCrop()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/
DPipSurfaceTransactionHelper.java116 mTmpSourceRectF.offsetTo(0, 0); in scale()
136 mTmpDestinationRect.offsetTo(0, 0); in scaleAndCrop()
/frameworks/base/tests/TaskOrganizerTest/src/com/android/test/taskembed/
DResizeTasksSyncTest.kt87 secondBounds.offsetTo(0, 0) in <lambda>()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/tv/
DTvPipKeepClearAlgorithm.kt358 downPosition.offsetTo(bounds.left, newTop) in <lambda>()
371 upPosition.offsetTo(bounds.left, newTop) in <lambda>()
387 rightPosition.offsetTo(newLeft, bounds.top) in <lambda>()
400 leftPosition.offsetTo(newLeft, bounds.top) in <lambda>()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/onehanded/
DOneHandedDisplayAreaOrganizer.java252 mLastVisualDisplayBounds.offsetTo(0, 0); in resetWindowsOffset()
277 mLastVisualDisplayBounds.offsetTo(0, Math.round(mLastVisualOffset)); in finishOffset()
/frameworks/base/libs/WindowManager/Jetpack/src/androidx/window/extensions/embedding/
DTaskFragmentAnimationSpec.java191 startClip.offsetTo(0, 0); in createChangeBoundsChangeAnimations()
192 endClip.offsetTo(0, 0); in createChangeBoundsChangeAnimations()
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/
DWindowMagnificationController.java1217 mSourceBounds.offsetTo(0, mSourceBounds.top); in calculateSourceBounds()
1219 mSourceBounds.offsetTo(mWindowBounds.width() - mSourceBounds.width(), in calculateSourceBounds()
1224 mSourceBounds.offsetTo(mSourceBounds.left, 0); in calculateSourceBounds()
1226 mSourceBounds.offsetTo(mSourceBounds.left, in calculateSourceBounds()
1279 mTmpRect.offsetTo(mMagnificationFrameBoundary.left, mTmpRect.top); in updateMagnificationFramePosition()
1282 mTmpRect.offsetTo(leftOffset, mTmpRect.top); in updateMagnificationFramePosition()
1286 mTmpRect.offsetTo(mTmpRect.left, mMagnificationFrameBoundary.top); in updateMagnificationFramePosition()
1289 mTmpRect.offsetTo(mTmpRect.left, topOffset); in updateMagnificationFramePosition()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/bubbles/
DBaseBubblePinController.kt136 rect.offsetTo(screenCenterX - rect.width() / 2, screenBottom - rect.height()) in <lambda>()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/
DFloatingContentCoordinator.kt352 proposedNewBounds.offsetTo( in <lambda>()

1234