Home
last modified time | relevance | path

Searched refs:centerX (Results 1 – 25 of 88) sorted by relevance

1234

/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DTransform3dActivity.java57 final float centerX = getWidth() / 2.0f - mBitmap1.getWidth() / 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/graphics/java/android/graphics/
DRadialGradient.java64 public RadialGradient(float centerX, float centerY, float radius, in RadialGradient() argument
67 this(centerX, centerY, radius, convertColors(colors), stops, tileMode, in RadialGradient()
88 public RadialGradient(float centerX, float centerY, float radius, in RadialGradient() argument
91 this(centerX, centerY, radius, colors.clone(), stops, tileMode, detectColorSpace(colors)); in RadialGradient()
98 private RadialGradient(float centerX, float centerY, float radius, in RadialGradient() argument
109 mX = centerX; in RadialGradient()
127 public RadialGradient(float centerX, float centerY, float radius, in RadialGradient() argument
129 this(centerX, centerY, radius, Color.pack(centerColor), Color.pack(edgeColor), tileMode); in RadialGradient()
145 public RadialGradient(float centerX, float centerY, float radius, in RadialGradient() argument
147 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()
245 return getInteractionController().swipe(rect.centerX(), in swipeUp()
246 rect.bottom - SWIPE_MARGIN_LIMIT, rect.centerX(), rect.top + SWIPE_MARGIN_LIMIT, in swipeUp()
273 return getInteractionController().swipe(rect.centerX(), in swipeDown()
274 rect.top + SWIPE_MARGIN_LIMIT, rect.centerX(), in swipeDown()
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()
[all …]
DUiScrollable.java434 downX = rect.centerX(); in scrollForward()
436 upX = rect.centerX(); in scrollForward()
514 downX = rect.centerX(); in scrollBackward()
516 upX = rect.centerX(); in scrollBackward()
/frameworks/base/core/java/android/gesture/
DOrientedBoundingBox.java33 public final float centerX; field in OrientedBoundingBox
40 centerX = cx; in OrientedBoundingBox()
62 matrix.postTranslate(centerX, centerY); in toPath()
/frameworks/base/core/tests/coretests/src/android/view/
DScaleGestureDetectorTest.java65 final int centerX = windowWidth / 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()
/frameworks/base/core/java/com/android/internal/transition/
DEpicenterTranslateClipReveal.java131 final float startX = startBounds.centerX() - endBounds.centerX(); in onAppear()
168 final float endX = endBounds.centerX() - startBounds.centerX(); in onDisappear()
197 final int centerX = bestRect.centerX(); in getEpicenterOrCenter() local
199 return new Rect(centerX, centerY, centerX, centerY); in getEpicenterOrCenter()
/frameworks/base/tests/Assist/src/com/android/test/assist/
DAssistInteractionSession.java134 int centerX = mBackground.getWidth()/2; 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/native/services/surfaceflinger/tests/utils/
DScreenshotUtils.h124 const int32_t centerX = rect.left + (rect.right - rect.left) / 2; variable
129 expectColor(Rect(rect.left, rect.top, centerX - offsetX, centerY - offsetY), topLeft,
131 expectColor(Rect(centerX + offsetX, rect.top, rect.right, centerY - offsetY), topRight,
133 expectColor(Rect(rect.left, centerY + offsetY, centerX - offsetX, rect.bottom), bottomLeft,
135 expectColor(Rect(centerX + offsetX, centerY + offsetY, rect.right, rect.bottom),
/frameworks/base/core/java/android/transition/
DExplode.java139 focalX = epicenter.centerX(); in calculateOut()
143 int centerX = bounds.centerX(); in calculateOut() local
145 double xVector = centerX - focalX; in calculateOut()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DMagnificationController.java443 final float centerX = normPivotX + offsetX; in setScale() local
446 return setScaleAndCenter(scale, centerX, centerY, animate, id); in setScale()
450 boolean setScaleAndCenter(float scale, float centerX, float centerY, in setScaleAndCenter() argument
457 "setScaleAndCenterLocked(scale = " + scale + ", centerX = " + centerX in setScaleAndCenter()
462 final boolean changed = updateMagnificationSpecLocked(scale, centerX, centerY); in setScaleAndCenter()
481 boolean updateMagnificationSpecLocked(float scale, float centerX, float centerY) { in updateMagnificationSpecLocked() argument
483 if (Float.isNaN(centerX)) { in updateMagnificationSpecLocked()
484 centerX = getCenterX(); in updateMagnificationSpecLocked()
503 + mMagnificationBounds.left - centerX * normScale; in updateMagnificationSpecLocked()
913 public boolean setCenter(int displayId, float centerX, float centerY, boolean animate, int id) { in setCenter() argument
[all …]
/frameworks/base/core/java/android/accessibilityservice/
DAccessibilityService.java546 float scale, float centerX, float centerY); in onMagnificationChanged() argument
1106 float centerX, float centerY) { in onMagnificationChanged() argument
1112 controller.dispatchMagnificationChanged(region, scale, centerX, centerY); in onMagnificationChanged()
1247 final float centerX, final float centerY) { in dispatchMagnificationChanged() argument
1270 region, scale, centerX, centerY); in dispatchMagnificationChanged()
1275 listener.onMagnificationChanged(this, region, scale, centerX, centerY); in dispatchMagnificationChanged()
1471 public boolean setCenter(float centerX, float centerY, boolean animate) { in setCenter() argument
1478 Float.NaN, centerX, centerY, animate); in setCenter()
1503 @NonNull Region region, float scale, float centerX, float centerY); in onMagnificationChanged() argument
2107 float scale, float centerX, float centerY) { in onBind() argument
[all …]
/frameworks/base/services/accessibility/java/com/android/server/accessibility/magnification/
DWindowMagnificationConnectionWrapper.java50 boolean enableWindowMagnification(int displayId, float scale, float centerX, float centerY) { in enableWindowMagnification() argument
52 mConnection.enableWindowMagnification(displayId, scale, centerX, centerY); in enableWindowMagnification()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DScreenRecordDrawable.java123 canvas.drawText(val, b.centerX(), b.centerY() + textBounds.height() / 2, mPaint); in draw()
125 Rect iconBounds = new Rect(b.centerX() - mIconRadius, in draw()
127 b.centerX() + mIconRadius, in draw()
/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/
DCropView.java100 float centerX = (width / 2f - rendererCenter[0] + (imageWidth - width) / 2f) in getEdgesHelper() local
104 float leftEdge = centerX - imageWidth / 2f * scale; in getEdgesHelper()
105 float rightEdge = centerX + imageWidth / 2f * scale; in getEdgesHelper()
138 mCenterX = mRenderer.centerX; in setTileSource()
210 mRenderer.centerX = Math.round(mCenterX); in updateCenter()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DAbstractAccessibilityServiceConnectionTest.java586 final float centerX = 480.0f; in getMagnificationCenterX_notRegistered_shouldRegisterThenUnregister() local
587 when(mMockMagnificationController.getCenterX(displayId)).thenReturn(centerX); in getMagnificationCenterX_notRegistered_shouldRegisterThenUnregister()
591 assertThat(result, is(centerX)); in getMagnificationCenterX_notRegistered_shouldRegisterThenUnregister()
599 final float centerX = 480.0f; in getMagnificationCenterX_serviceNotBelongCurrentUser_returnZero() local
600 when(mMockMagnificationController.getCenterX(displayId)).thenReturn(centerX); in getMagnificationCenterX_serviceNotBelongCurrentUser_returnZero()
664 final float centerX = 50.5f; in setMagnificationScaleAndCenter_notRegistered_shouldRegister() local
667 scale, centerX, centerY, true, SERVICE_ID)).thenReturn(true); in setMagnificationScaleAndCenter_notRegistered_shouldRegister()
671 displayId, scale, centerX, centerY, true); in setMagnificationScaleAndCenter_notRegistered_shouldRegister()
680 final float centerX = 50.5f; in setMagnificationScaleAndCenter_cantControlMagnification_returnFalse() local
683 scale, centerX, centerY, true, SERVICE_ID)).thenReturn(true); in setMagnificationScaleAndCenter_cantControlMagnification_returnFalse()
[all …]
/frameworks/base/core/java/android/widget/
DEdgeEffect.java365 final float centerX = mBounds.centerX(); in draw() local
368 canvas.scale(1.f, Math.min(mGlowScaleY, 1.f) * mBaseGlowScale, centerX, 0); in draw()
376 canvas.drawCircle(centerX, centerY, mRadius, mPaint); in draw()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DNumPadKey.java148 int centerX = getWidth() / 2; in onLayout() local
149 int left = centerX - mDigitText.getMeasuredWidth() / 2; in onLayout()
155 left = centerX - mKlondikeText.getMeasuredWidth() / 2; in onLayout()
/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/opt/photoviewer/src/com/android/ex/photo/views/
DPhotoView.java279 float centerX, centerY; in scale() local
286 centerX = (getWidth() / 2 - relativeScale * mTranslateRect.centerX()) / in scale()
300 centerX = mTranslateRect.centerX(); in scale()
302 centerX = Math.min(Math.max(mTranslateRect.left + widthBuffer, in scale()
313 mScaleRunnable.start(currentScale, targetScale, centerX, centerY); in scale()
913 private void scale(float newScale, float centerX, float centerY) { in scale() argument
972 mMatrix.postScale(factor, factor, centerX, centerY); in scale()
1184 public boolean start(float startScale, float targetScale, float centerX, float centerY) { in start() argument
1189 mCenterX = centerX; in start()
/frameworks/native/libs/input/
DVirtualKeyMap.cpp100 && parseNextIntField(&defn.centerX) in parse()
113 defn.scanCode, defn.centerX, defn.centerY, defn.width, defn.height); in parse()
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/views/
DTiledImageView.java65 public int centerX, centerY; field in TiledImageView.ImageRendererWrapper
159 mRenderer.centerX = source != null ? source.getImageWidth() / 2 : 0; in setTileSource()
275 mRenderer.centerX = swap ? cy : cx; in positionFromMatrix()
305 mRenderer.image.setPosition(mRenderer.centerX, mRenderer.centerY, in onDrawFrame()
/frameworks/base/core/java/com/android/internal/widget/
DLockPatternView.java1134 final float centerX = getCenterXForColumn(currentCell.column); in onDraw()
1139 (getCenterXForColumn(nextCell.column) - centerX); in onDraw()
1142 mInProgressX = centerX + dx; in onDraw()
1157 float centerX = getCenterXForColumn(j); in onDraw()
1168 drawCircle(canvas, (int) centerX, (int) centerY + translationY, in onDraw()
1202 float centerX = getCenterXForColumn(cell.column); in onDraw()
1220 currentPath.lineTo(centerX, centerY); in onDraw()
1229 lastX = centerX; in onDraw()
1273 private void drawCircle(Canvas canvas, float centerX, float centerY, float radius,
1277 canvas.drawCircle(centerX, centerY, radius, mPaint);
[all …]
/frameworks/opt/chips/src/com/android/ex/chips/
DCircularImageView.java107 canvas.drawCircle(dest.centerX(), dest.centerY(), dest.width() / 2f, in drawBitmapWithCircleOnCanvas()
111 canvas.drawCircle(dest.centerX(), dest.centerY(), in drawBitmapWithCircleOnCanvas()

1234