Home
last modified time | relevance | path

Searched refs:centerY (Results 1 – 25 of 139) sorted by relevance

123456

/aosp14/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DTransform3dActivity.java63 rotate(centerX, centerY, camera, matrix, 32.0f); in onDraw()
64 drawBitmap(canvas, centerX, centerY, 0.0f, matrix); in onDraw()
66 rotate(centerX, centerY, camera, matrix, 12.0f); in onDraw()
67 drawBitmap(canvas, centerX, centerY, -mBitmap1.getWidth(), matrix); in onDraw()
69 rotate(centerX, centerY, camera, matrix, 52.0f); in onDraw()
70 drawBitmap(canvas, centerX, centerY, mBitmap1.getWidth(), matrix); in onDraw()
72 rotate(centerX, centerY, camera, matrix, 122.0f); in onDraw()
82 canvas.drawBitmap(mBitmap1, centerX, centerY, null); in drawBitmap()
86 private void rotate(float centerX, float centerY, Camera camera, in rotate() argument
93 matrix.preTranslate(-centerX, -centerY); in rotate()
[all …]
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/
H A DWindowMagnificationAnimationController.java110 void enableWindowMagnification(float scale, float centerX, float centerY, in enableWindowMagnification() argument
137 void enableWindowMagnification(float scale, float centerX, float centerY, in enableWindowMagnification() argument
158 setupEnableAnimationSpecs(scale, centerX, centerY); in enableWindowMagnification()
182 void moveWindowMagnifierToPosition(float centerX, float centerY, in moveWindowMagnifierToPosition() argument
188 enableWindowMagnification(Float.NaN, centerX, centerY, in moveWindowMagnifierToPosition()
196 setupEnableAnimationSpecs(Float.NaN, centerX, centerY); in moveWindowMagnifierToPosition()
210 mStartSpec.set(/* scale*/ 1.0f, centerX, centerY); in setupEnableAnimationSpecs()
224 Float.isNaN(centerY) ? endCenterY : centerY); in setupEnableAnimationSpecs()
351 final float centerY = in onAnimationUpdate() local
393 void set(float scale, float centerX, float centerY) { in set() argument
[all …]
/aosp14/frameworks/base/graphics/java/android/graphics/
H A DRadialGradient.java70 public RadialGradient(float centerX, float centerY, float radius, in RadialGradient() argument
73 this(centerX, centerY, 0f, centerX, centerY, radius, convertColors(colors), in RadialGradient()
94 public RadialGradient(float centerX, float centerY, float radius, in RadialGradient() argument
97 this(centerX, centerY, 0f, centerX, centerY, radius, colors.clone(), stops, in RadialGradient()
189 public RadialGradient(float centerX, float centerY, float radius, in RadialGradient() argument
191 this(centerX, centerY, radius, Color.pack(centerColor), Color.pack(edgeColor), tileMode); in RadialGradient()
207 public RadialGradient(float centerX, float centerY, float radius, in RadialGradient() argument
209 this(centerX, centerY, radius, new long[] {centerColor, edgeColor}, null, tileMode); in RadialGradient()
/aosp14/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
H A DUiObject.java201 return getInteractionController().swipe(srcRect.centerX(), srcRect.centerY(), in dragTo()
202 dstRect.centerX(), dstRect.centerY(), steps, true); in dragTo()
302 rect.centerY(), rect.left + SWIPE_MARGIN_LIMIT, rect.centerY(), steps); in swipeLeft()
329 rect.centerY(), rect.right - SWIPE_MARGIN_LIMIT, rect.centerY(), steps); in swipeRight()
402 return getInteractionController().clickAndSync(rect.centerX(), rect.centerY(), in click()
511 return getInteractionController().longTapNoSync(rect.centerX(), rect.centerY()); in longClick()
633 getInteractionController().longTapNoSync(rect.left + 20, rect.centerY()); in clearTextField()
947 rect.centerY()); in pinchOut()
949 rect.centerY()); in pinchOut()
980 rect.centerY()); in pinchIn()
[all …]
H A DUiScrollable.java443 downY = rect.centerY(); in scrollForward()
445 upY = rect.centerY(); in scrollForward()
524 downY = rect.centerY(); in scrollBackward()
526 upY = rect.centerY(); in scrollBackward()
/aosp14/frameworks/base/tests/FlickerTests/src/com/android/server/wm/flicker/helpers/
H A DPipAppHelper.kt68 initWindowRect.centerY().toFloat()
79 val finalCoord = GestureHelper.Tuple(endX.toFloat(), initWindowRect.centerY().toFloat())
105 val y = initWindowRect.centerY()
165 val yCoord = windowRect.centerY().toFloat()
213 val yCoord = windowRect.centerY().toFloat()
321 uiDevice.click(windowRect.centerX(), windowRect.centerY())
328 uiDevice.click(dismissButtonBounds.centerX(), dismissButtonBounds.centerY())
337 uiDevice.click(windowRect.centerX(), windowRect.centerY())
344 uiDevice.click(expandButtonBounds.centerX(), expandButtonBounds.centerY())
352 uiDevice.click(windowRect.centerX(), windowRect.centerY())
[all …]
/aosp14/frameworks/base/services/accessibility/java/com/android/server/accessibility/magnification/
H A DMagnificationThumbnail.java97 public void setThumbnailBounds(Rect currentBounds, float scale, float centerX, float centerY) { in setThumbnailBounds() argument
104 updateThumbnailMainThread(scale, centerX, centerY); in setThumbnailBounds()
259 public void updateThumbnail(float scale, float centerX, float centerY) { in updateThumbnail() argument
260 mHandler.post(() -> updateThumbnailMainThread(scale, centerX, centerY)); in updateThumbnail()
264 private void updateThumbnailMainThread(float scale, float centerX, float centerY) { in updateThumbnailMainThread() argument
275 && !Float.isNaN(centerY) in updateThumbnailMainThread()
282 var centerYScaled = centerY * ratio - (mThumbnailHeight / 2f + padding); in updateThumbnailMainThread()
H A DFullScreenMagnificationController.java395 final float centerY = getCenterY(); in onMagnificationChangedLocked() local
401 .setCenterY(centerY).build(); in onMagnificationChangedLocked()
411 updateThumbnail(scale, centerX, centerY); in onMagnificationChangedLocked()
571 final float centerY = normPivotY + offsetY; in setScale() local
577 boolean setScaleAndCenter(float scale, float centerX, float centerY, in setScaleAndCenter() argument
602 void updateThumbnail(float scale, float centerX, float centerY) { in updateThumbnail() argument
669 if (Float.isNaN(centerY)) { in updateMagnificationSpecLocked()
670 centerY = getCenterY(); in updateMagnificationSpecLocked()
688 + mMagnificationBounds.top - centerY * normScale; in updateMagnificationSpecLocked()
1236 return display.setScaleAndCenter(Float.NaN, centerX, centerY, in setCenter()
[all …]
H A DWindowMagnificationManager.java551 float centerY) { in enableWindowMagnification() argument
552 return enableWindowMagnification(displayId, scale, centerX, centerY, in enableWindowMagnification()
572 return enableWindowMagnification(displayId, scale, centerX, centerY, animationCallback, in enableWindowMagnification()
590 float centerY, @WindowPosition int windowPosition) { in enableWindowMagnification() argument
591 return enableWindowMagnification(displayId, scale, centerX, centerY, in enableWindowMagnification()
610 float centerY, @Nullable MagnificationAnimationCallback animationCallback, in enableWindowMagnification() argument
620 enabled = magnifier.enableWindowMagnificationInternal(scale, centerX, centerY, in enableWindowMagnification()
1066 boolean enableWindowMagnificationInternal(float scale, float centerX, float centerY, in enableWindowMagnificationInternal() argument
1076 centerX, centerY, mMagnificationFrameOffsetRatio.x, in enableWindowMagnificationInternal()
1249 float centerY, float magnificationFrameOffsetRatioX, in enableWindowMagnificationInternal() argument
[all …]
/aosp14/frameworks/base/core/java/android/gesture/
H A DOrientedBoundingBox.java34 public final float centerY; field in OrientedBoundingBox
41 centerY = cy; in OrientedBoundingBox()
62 matrix.postTranslate(centerX, centerY); in toPath()
/aosp14/frameworks/base/core/tests/coretests/src/android/view/
H A DScaleGestureDetectorTest.java66 final int centerY = windowHeight / 2; in testScaleGestureDetector() local
69 final float[] firstFingerStartCoords = new float[] {centerX + 1.0f, centerY - 1.0f}; in testScaleGestureDetector()
72 final float[] secondFingerStartCoords = new float[] {centerX - 1.0f, centerY + 1.0f}; in testScaleGestureDetector()
/aosp14/frameworks/base/packages/SystemUI/animation/src/com/android/systemui/surfaceeffects/ripple/
H A DRippleView.kt53 private var centerY: Float = 0.0f
56 this.centerY = y
235 canvas.drawCircle(centerX, centerY, maskRadius, ripplePaint)
241 /* top= */ centerY - maskHeight,
243 /* bottom= */ centerY + maskHeight,
/aosp14/frameworks/base/core/java/android/view/
H A DViewAnimationUtils.java70 int centerX, int centerY, float startRadius, float endRadius) { in createCircularReveal() argument
71 return new RevealAnimator(view, centerX, centerY, startRadius, endRadius); in createCircularReveal()
H A DRoundedCorners.java353 int centerX, centerY; in insetWithFrame() local
363 centerY = radius; in insetWithFrame()
367 centerY = radius; in insetWithFrame()
371 centerY = roundedCornerFrame.height() - radius; in insetWithFrame()
375 centerY = roundedCornerFrame.height() - radius; in insetWithFrame()
381 roundedCorners[i] = insetRoundedCorner(i, radius, centerX, centerY, insetLeft, insetTop, in insetWithFrame()
403 int centerY, int insetLeft, int insetTop, int insetRight, int insetBottom) { in insetRoundedCorner() argument
429 hasRoundedCorner ? centerY - insetTop : 0); in insetRoundedCorner()
/aosp14/frameworks/base/core/java/com/android/internal/transition/
H A DEpicenterTranslateClipReveal.java132 final float startY = startBounds.centerY() - endBounds.centerY(); in onAppear()
169 final float endY = endBounds.centerY() - startBounds.centerY(); in onDisappear()
198 final int centerY = bestRect.centerY(); in getEpicenterOrCenter() local
199 return new Rect(centerX, centerY, centerX, centerY); in getEpicenterOrCenter()
/aosp14/frameworks/base/tests/Assist/src/com/android/test/assist/
H A DAssistInteractionSession.java135 int centerY = (int) (mBackground.getHeight()/5*3.8f); in playAssistAnimation() local
136 int radius = (int) Math.sqrt(centerX*centerX + centerY*centerY) + 1; in playAssistAnimation()
137 Animator animator = ViewAnimationUtils.createCircularReveal(mBackground, centerX, centerY, in playAssistAnimation()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/udfps/
H A DBoundingBoxOverlapDetector.kt39 (nativeSensorBounds.centerY() - scaledRadius).toInt(),
41 (nativeSensorBounds.centerY() + scaledRadius).toInt(),
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/data/repository/
H A DLightRevealScrimRepositoryTest.kt120 it.centerY == fingerprintLocation.y
141 it.centerY == fingerprintLocation.y
158 it.centerY == fingerprintLocation.y
161 { it is CircleReveal && it.centerX == faceLocation.x && it.centerY == faceLocation.y },
/aosp14/frameworks/base/core/java/android/transition/
H A DExplode.java140 focalY = epicenter.centerY(); in calculateOut()
144 int centerY = bounds.centerY(); in calculateOut() local
146 double yVector = centerY - focalY; in calculateOut()
/aosp14/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/
H A DCropView.java102 float centerY = (height / 2f - rendererCenter[1] + (imageHeight - height) / 2f) in getEdgesHelper() local
106 float topEdge = centerY - imageHeight / 2f * scale; in getEdgesHelper()
107 float bottomEdge = centerY + imageHeight / 2f * scale; in getEdgesHelper()
139 mCenterY = mRenderer.centerY; in setTileSource()
211 mRenderer.centerY = Math.round(mCenterY); in updateCenter()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DScreenRecordDrawable.java123 canvas.drawText(val, b.centerX(), b.centerY() + textBounds.height() / 2, mPaint); in draw()
126 b.centerY() - mIconRadius, in draw()
128 b.centerY() + mIconRadius); in draw()
/aosp14/frameworks/base/core/tests/coretests/src/android/view/stylus/
H A DHandwritingInitiatorTest.java517 MotionEvent hoverEvent = createStylusHoverEvent(sHwArea1.centerX(), sHwArea1.centerY()); in onResolvePointerIcon_withinHWArea_showPointerIcon()
536 injectStylusEvent(mHandwritingInitiator, sHwArea1.centerX(), sHwArea1.centerY(), in onResolvePointerIcon_afterHandwriting_hidePointerIconForConnectedView()
541 MotionEvent hoverEvent1 = createStylusHoverEvent(sHwArea1.centerX(), sHwArea1.centerY()); in onResolvePointerIcon_afterHandwriting_hidePointerIconForConnectedView()
546 MotionEvent hoverEvent2 = createStylusHoverEvent(sHwArea2.centerX(), sHwArea2.centerY()); in onResolvePointerIcon_afterHandwriting_hidePointerIconForConnectedView()
565 injectStylusEvent(mHandwritingInitiator, sHwArea1.centerX(), sHwArea1.centerY(), in onResolvePointerIcon_afterHandwriting_hidePointerIconForDelegatorView()
570 MotionEvent hoverEvent = createStylusHoverEvent(sHwArea2.centerX(), sHwArea2.centerY()); in onResolvePointerIcon_afterHandwriting_hidePointerIconForDelegatorView()
580 injectStylusEvent(mHandwritingInitiator, sHwArea1.centerX(), sHwArea1.centerY(), in onResolvePointerIcon_showHoverIconAfterTap()
585 MotionEvent hoverEvent1 = createStylusHoverEvent(sHwArea1.centerX(), sHwArea1.centerY()); in onResolvePointerIcon_showHoverIconAfterTap()
591 injectStylusEvent(mHandwritingInitiator, sHwArea1.centerX(), sHwArea1.centerY(), in onResolvePointerIcon_showHoverIconAfterTap()
602 injectStylusEvent(mHandwritingInitiator, sHwArea1.centerX(), sHwArea1.centerY(), in onResolvePointerIcon_showHoverIconAfterFocusChange()
[all …]
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/
H A DDragResizeInputListener.java495 int centerY; in checkDistanceFromCenter() local
501 centerY = mTaskCornerRadius; in checkDistanceFromCenter()
506 centerY = mTaskHeight - mTaskCornerRadius; in checkDistanceFromCenter()
511 centerY = mTaskCornerRadius; in checkDistanceFromCenter()
516 centerY = mTaskHeight - mTaskCornerRadius; in checkDistanceFromCenter()
524 double distanceFromCenter = Math.hypot(x - centerX, y - centerY); in checkDistanceFromCenter()
/aosp14/frameworks/base/core/java/com/android/internal/widget/
H A DLockPatternView.java915 float centerY = getCenterYForRow(row); in detectCellHit() local
917 if ((x - centerX) * (x - centerX) + (y - centerY) * (y - centerY) in detectCellHit()
1186 mInProgressY = centerY + dy; in onDraw()
1223 float centerY = getCenterYForRow(cell.row); in onDraw()
1234 endY = centerY; in onDraw()
1240 lastY = centerY; in onDraw()
1258 float centerY = getCenterYForRow(i); in onDraw()
1383 canvas.drawCircle(centerX, centerY, radius, mPaint);
1645 float centerY = getCenterYForRow(row);
1649 bounds.top = (int) (centerY - cellHitRadius);
[all …]
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/magnification/
H A DMockWindowMagnificationConnection.java142 private void computeMirrorWindowFrame(float centerX, float centerY) { in computeMirrorWindowFrame() argument
145 final float offsetY = Float.isNaN(centerY) ? 0 in computeMirrorWindowFrame()
146 : centerY - mMirrorWindowFrame.exactCenterY(); in computeMirrorWindowFrame()

123456