Home
last modified time | relevance | path

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

123456

/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DTransform3dActivity.java58 final float centerY = getHeight() / 2.0f - mBitmap1.getHeight() / 2.0f; in onDraw() local
63 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()
73 drawBitmap(canvas, centerX, centerY, mBitmap1.getWidth() * 2.0f, matrix); in onDraw()
77 private void drawBitmap(Canvas canvas, float centerX, float centerY, float offset, in drawBitmap() argument
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/
DWindowMagnificationAnimationController.java110 void enableWindowMagnification(float scale, float centerX, float centerY, in enableWindowMagnification() argument
112 enableWindowMagnification(scale, centerX, centerY, 0f, 0f, animationCallback); in enableWindowMagnification()
137 void enableWindowMagnification(float scale, float centerX, float centerY, in enableWindowMagnification() argument
152 mController.enableWindowMagnificationInternal(scale, centerX, centerY, in enableWindowMagnification()
158 setupEnableAnimationSpecs(scale, centerX, centerY); in enableWindowMagnification()
162 mController.enableWindowMagnificationInternal(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()
200 private void setupEnableAnimationSpecs(float scale, float centerX, float centerY) { in setupEnableAnimationSpecs() argument
[all …]
DWindowMagnificationController.java486 (int) transformedRect.centerX(), (int) transformedRect.centerY()); in onRotate()
593 void setWindowSizeAndCenter(int width, int height, float centerX, float centerY) { in setWindowSizeAndCenter() argument
601 centerY = mMagnificationFrame.centerY(); in setWindowSizeAndCenter()
606 setMagnificationFrame(frameWidth, frameHeight, (int) centerX, (int) centerY); in setWindowSizeAndCenter()
613 private void setMagnificationFrame(int width, int height, int centerX, int centerY) { in setMagnificationFrame() argument
617 final int initY = centerY - height / 2; in setMagnificationFrame()
902 public void enableWindowMagnification(float scale, float centerX, float centerY, in enableWindowMagnification() argument
905 mAnimationController.enableWindowMagnification(scale, centerX, centerY, in enableWindowMagnification()
921 void enableWindowMagnificationInternal(float scale, float centerX, float centerY) { in enableWindowMagnificationInternal() argument
922 enableWindowMagnificationInternal(scale, centerX, centerY, Float.NaN, Float.NaN); in enableWindowMagnificationInternal()
[all …]
/frameworks/base/graphics/java/android/graphics/
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()
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
DUiObject.java201 return getInteractionController().swipe(srcRect.centerX(), srcRect.centerY(), in dragTo()
202 dstRect.centerX(), dstRect.centerY(), steps, true); in dragTo()
220 return getInteractionController().swipe(srcRect.centerX(), srcRect.centerY(), destX, destY, 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()
442 return getInteractionController().clickAndWaitForNewWindow(rect.centerX(), rect.centerY(), in clickAndWaitForNewWindow()
511 return getInteractionController().longTapNoSync(rect.centerX(), rect.centerY()); in longClick()
633 getInteractionController().longTapNoSync(rect.left + 20, rect.centerY()); in clearTextField()
942 Point startPoint1 = new Point(rect.centerX() - FINGER_TOUCH_HALF_WIDTH, rect.centerY()); in pinchOut()
[all …]
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()
/frameworks/base/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/helpers/
DPipAppHelper.kt162 uiDevice.click(windowRect.centerX(), windowRect.centerY()) in closePipWindow()
169 uiDevice.click(dismissButtonBounds.centerX(), dismissButtonBounds.centerY()) in closePipWindow()
182 uiDevice.click(windowRect.centerX(), windowRect.centerY()) in expandPipWindowToApp()
189 uiDevice.click(expandButtonBounds.centerX(), expandButtonBounds.centerY()) in expandPipWindowToApp()
199 uiDevice.click(windowRect.centerX(), windowRect.centerY()) in doubleClickPipWindow()
200 uiDevice.click(windowRect.centerX(), windowRect.centerY()) in doubleClickPipWindow()
/frameworks/base/core/java/android/gesture/
DOrientedBoundingBox.java34 public final float centerY; field in OrientedBoundingBox
41 centerY = cy; in OrientedBoundingBox()
62 matrix.postTranslate(centerX, centerY); in toPath()
/frameworks/base/core/tests/coretests/src/android/view/
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()
/frameworks/base/core/java/android/view/
DViewAnimationUtils.java70 int centerX, int centerY, float startRadius, float endRadius) { in createCircularReveal() argument
71 return new RevealAnimator(view, centerX, centerY, startRadius, endRadius); in createCircularReveal()
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()
/frameworks/base/packages/SystemUI/animation/src/com/android/systemui/surfaceeffects/ripple/
DRippleView.kt53 private var centerY: Float = 0.0f in <lambda>() variable
56 this.centerY = y in <lambda>()
235 canvas.drawCircle(centerX, centerY, maskRadius, ripplePaint) in <lambda>()
241 /* top= */ centerY - maskHeight, in <lambda>()
243 /* bottom= */ centerY + maskHeight, in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/data/repository/
DLightRevealScrimRepositoryTest.kt106 it.centerY == fingerprintLocation.y in <lambda>()
129 it.centerY == fingerprintLocation.y in <lambda>()
146 it.centerY == fingerprintLocation.y in <lambda>()
152 it.centerY == faceLocation.y in <lambda>()
/frameworks/base/core/java/com/android/internal/transition/
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()
/frameworks/base/tests/Assist/src/com/android/test/assist/
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()
/frameworks/base/core/java/android/transition/
DExplode.java140 focalY = epicenter.centerY(); in calculateOut()
144 int centerY = bounds.centerY(); in calculateOut() local
146 double yVector = centerY - focalY; in calculateOut()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/magnification/
DWindowMagnificationManager.java545 float centerY) { in enableWindowMagnification() argument
546 return enableWindowMagnification(displayId, scale, centerX, centerY, in enableWindowMagnification()
565 float centerY, @Nullable MagnificationAnimationCallback animationCallback, int id) { in enableWindowMagnification() argument
566 return enableWindowMagnification(displayId, scale, centerX, centerY, animationCallback, in enableWindowMagnification()
584 float centerY, @WindowPosition int windowPosition) { in enableWindowMagnification() argument
585 return enableWindowMagnification(displayId, scale, centerX, centerY, in enableWindowMagnification()
604 float centerY, @Nullable MagnificationAnimationCallback animationCallback, in enableWindowMagnification() argument
614 enabled = magnifier.enableWindowMagnificationInternal(scale, centerX, centerY, in enableWindowMagnification()
1011 boolean enableWindowMagnificationInternal(float scale, float centerX, float centerY, in enableWindowMagnificationInternal() argument
1021 centerX, centerY, mMagnificationFrameOffsetRatio.x, in enableWindowMagnificationInternal()
[all …]
DFullScreenMagnificationController.java540 final float centerY = normPivotY + offsetY; in setScale() local
542 return setScaleAndCenter(scale, centerX, centerY, transformToStubCallback(animate), id); in setScale()
546 boolean setScaleAndCenter(float scale, float centerX, float centerY, in setScaleAndCenter() argument
554 + ", centerY = " + centerY + ", endCallback = " in setScaleAndCenter()
557 final boolean changed = updateMagnificationSpecLocked(scale, centerX, centerY); in setScaleAndCenter()
578 boolean updateMagnificationSpecLocked(float scale, float centerX, float centerY) { in updateMagnificationSpecLocked() argument
583 if (Float.isNaN(centerY)) { in updateMagnificationSpecLocked()
584 centerY = getCenterY(); in updateMagnificationSpecLocked()
602 + mMagnificationBounds.top - centerY * normScale; in updateMagnificationSpecLocked()
1065 public boolean setCenter(int displayId, float centerX, float centerY, boolean animate, int id) { in setCenter() argument
[all …]
/frameworks/native/services/surfaceflinger/tests/utils/
DScreenshotUtils.h142 const int32_t centerY = rect.top + (rect.bottom - rect.top) / 2; variable
146 expectColor(Rect(rect.left, rect.top, centerX - offsetX, centerY - offsetY), topLeft,
148 expectColor(Rect(centerX + offsetX, rect.top, rect.right, centerY - offsetY), topRight,
150 expectColor(Rect(rect.left, centerY + offsetY, centerX - offsetX, rect.bottom), bottomLeft,
152 expectColor(Rect(centerX + offsetX, centerY + offsetY, rect.right, rect.bottom),
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
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()
/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/
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()
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/
DCircularBitmapDrawable.java114 canvas.drawCircle(bounds.centerX(), bounds.centerY(), in onDrawPlaceholderOrProgress()
152 canvas.drawCircle(dst.centerX(), dst.centerY(), dst.width() / 2, in onDrawCircularBitmap()
157 canvas.drawCircle(dst.centerX(), dst.centerY(), in onDrawCircularBitmap()
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/
DUdfpsEnrollProgressBarDrawable.java335 canvas.rotate(-90f, getBounds().centerX(), getBounds().centerY()); in draw()
372 final float centerY = getBounds().centerY() + centerYOffset; in draw() local
380 final int top = Math.round(centerY - boundsYOffset); in draw()
382 final int bottom = Math.round(centerY + boundsYOffset); in draw()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DScreenDecorHwcLayer.kt205 val centerY = protectionRect.centerY() in <lambda>() constant
207 val scaledDistanceY = (centerY - protectionRect.top) * cameraProtectionProgress in <lambda>()
210 floor(centerY - scaledDistanceY).toInt(), in <lambda>()
212 ceil(centerY + scaledDistanceY).toInt() in <lambda>()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/magnification/
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