/frameworks/base/tests/graphics/HwAccelerationTest/src/com/android/test/hwui/ |
D | Transform3dActivity.java | 57 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/packages/SystemUI/src/com/android/systemui/accessibility/ |
D | WindowMagnificationAnimationController.java | 111 void enableWindowMagnification(float scale, float centerX, float centerY, in enableWindowMagnification() argument 113 enableWindowMagnification(scale, centerX, centerY, 0f, 0f, animationCallback); in enableWindowMagnification() 138 void enableWindowMagnification(float scale, float centerX, float centerY, in enableWindowMagnification() argument 153 mController.updateWindowMagnificationInternal(scale, centerX, centerY, in enableWindowMagnification() 159 setupEnableAnimationSpecs(scale, centerX, centerY); in enableWindowMagnification() 163 mController.updateWindowMagnificationInternal(scale, centerX, centerY, in enableWindowMagnification() 183 void moveWindowMagnifierToPosition(float centerX, float centerY, in moveWindowMagnifierToPosition() argument 189 enableWindowMagnification(Float.NaN, centerX, centerY, in moveWindowMagnifierToPosition() 197 setupEnableAnimationSpecs(Float.NaN, centerX, centerY); in moveWindowMagnifierToPosition() 201 private void setupEnableAnimationSpecs(float scale, float centerX, float centerY) { in setupEnableAnimationSpecs() argument [all …]
|
/frameworks/base/graphics/java/android/graphics/ |
D | RadialGradient.java | 70 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/tests/FlickerTests/test-apps/app-helpers/src/com/android/server/wm/flicker/helpers/ |
D | PipAppHelper.kt | 71 initWindowRect.centerX().toFloat(), in <lambda>() 82 initWindowRect.centerX() + offset * (if (isCloserToRightEdge(wmHelper)) -1 else 1) in <lambda>() 108 val startX = initWindowRect.centerX() in <lambda>() 121 val endX = displayRect.centerX() + offset * (if (isCloserToRightEdge(wmHelper)) 1 else -1) in <lambda>() 139 return windowRect.centerX() > displayRect.centerX() in <lambda>() 157 val initLeftX = (windowRect.centerX() - windowRect.width() / 4).toFloat() in <lambda>() 159 val initRightX = (windowRect.centerX() + windowRect.width() / 4).toFloat() in <lambda>() 205 val initLeftX = (windowRect.centerX() - windowRect.width() / 4).toFloat() in <lambda>() 207 val initRightX = (windowRect.centerX() + windowRect.width() / 4).toFloat() in <lambda>() 213 val finalLeftX = Math.min(initLeftX + (distDecrease / 2), windowRect.centerX().toFloat()) in <lambda>() [all …]
|
D | GameAppHelper.kt | 48 return uiDevice.swipe(bound.centerX(), 0, bound.centerX(), bound.centerY(), SWIPE_STEPS) in swipeDown() 78 bound.centerX(), in switchToPreviousAppByQuickSwitchGesture()
|
/frameworks/base/core/java/com/android/internal/widget/remotecompose/core/operations/ |
D | MatrixScale.java | 28 float centerX, 31 return new MatrixScale(scaleX, scaleY, centerX, centerY); 35 public MatrixScale(float scaleX, float scaleY, float centerX, float centerY) { in MatrixScale() argument 36 super(scaleX, scaleY, centerX, centerY); in MatrixScale()
|
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/ |
D | UiObject.java | 201 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 …]
|
/frameworks/av/media/module/extractors/mp4/ |
D | HeifCleanAperture.cpp | 132 Fraction centerX = calculateCenter(imageW); in convertCleanApertureToRect() local 137 if (!centerX.add(clap.horizOff) || !centerX.subtract(halfW) || !centerX.isInteger() || in convertCleanApertureToRect() 138 centerX.n < 0 || !centerY.add(clap.vertOff) || !centerY.subtract(halfH) || in convertCleanApertureToRect() 143 *left = centerX.getInt32(); in convertCleanApertureToRect()
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/magnification/ |
D | MagnificationThumbnail.java | 102 public void setThumbnailBounds(Rect currentBounds, float scale, float centerX, float centerY) { in setThumbnailBounds() argument 109 updateThumbnailMainThread(scale, centerX, centerY); in setThumbnailBounds() 264 public void updateThumbnail(float scale, float centerX, float centerY) { in updateThumbnail() argument 265 mHandler.post(() -> updateThumbnailMainThread(scale, centerX, centerY)); in updateThumbnail() 269 private void updateThumbnailMainThread(float scale, float centerX, float centerY) { in updateThumbnailMainThread() argument 279 if (!Float.isNaN(centerX) in updateThumbnailMainThread() 286 var centerXScaled = centerX * ratio - (mThumbnailWidth / 2f + padding); in updateThumbnailMainThread()
|
D | MagnificationConnectionManager.java | 552 public boolean enableWindowMagnification(int displayId, float scale, float centerX, in enableWindowMagnification() argument 554 return enableWindowMagnification(displayId, scale, centerX, centerY, in enableWindowMagnification() 572 public boolean enableWindowMagnification(int displayId, float scale, float centerX, in enableWindowMagnification() argument 574 return enableWindowMagnification(displayId, scale, centerX, centerY, animationCallback, in enableWindowMagnification() 591 public boolean enableWindowMagnification(int displayId, float scale, float centerX, in enableWindowMagnification() argument 593 return enableWindowMagnification(displayId, scale, centerX, centerY, in enableWindowMagnification() 611 public boolean enableWindowMagnification(int displayId, float scale, float centerX, in enableWindowMagnification() argument 622 enabled = magnifier.enableWindowMagnificationInternal(scale, centerX, centerY, in enableWindowMagnification() 1094 boolean enableWindowMagnificationInternal(float scale, float centerX, float centerY, in enableWindowMagnificationInternal() argument 1104 normScale, centerX, centerY, mMagnificationFrameOffsetRatio.x, in enableWindowMagnificationInternal() [all …]
|
D | FullScreenMagnificationController.java | 481 final float centerX = getCenterX(); in onMagnificationChangedLocked() local 487 .setCenterX(centerX) in onMagnificationChangedLocked() 498 updateThumbnail(scale, centerX, centerY); in onMagnificationChangedLocked() 675 final float centerX = normPivotX + offsetX; in setScale() local 678 return setScaleAndCenter(scale, centerX, centerY, transformToStubCallback(animate), id); in setScale() 682 boolean setScaleAndCenter(float scale, float centerX, float centerY, in setScaleAndCenter() argument 695 "setScaleAndCenterLocked(scale = " + scale + ", centerX = " + centerX in setScaleAndCenter() 700 changed |= updateMagnificationSpecLocked(scale, centerX, centerY); in setScaleAndCenter() 715 void updateThumbnail(float scale, float centerX, float centerY) { in updateThumbnail() argument 717 mMagnificationThumbnail.updateThumbnail(scale, centerX, centerY); in updateThumbnail() [all …]
|
/frameworks/base/core/java/android/gesture/ |
D | OrientedBoundingBox.java | 33 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/ |
D | ScaleGestureDetectorTest.java | 65 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/ |
D | ViewAnimationUtils.java | 70 int centerX, int centerY, float startRadius, float endRadius) { in createCircularReveal() argument 71 return new RevealAnimator(view, centerX, centerY, startRadius, endRadius); in createCircularReveal()
|
D | RoundedCorners.java | 359 int centerX, centerY; in insetWithFrame() local 368 centerX = radius; in insetWithFrame() 372 centerX = roundedCornerFrame.width() - radius; in insetWithFrame() 376 centerX = roundedCornerFrame.width() - radius; in insetWithFrame() 380 centerX = radius; in insetWithFrame() 387 roundedCorners[i] = insetRoundedCorner(i, radius, centerX, centerY, insetLeft, insetTop, in insetWithFrame() 408 private RoundedCorner insetRoundedCorner(@Position int position, int radius, int centerX, in insetRoundedCorner() argument 434 hasRoundedCorner ? centerX - insetLeft : 0, in insetRoundedCorner()
|
/frameworks/base/packages/SystemUI/animation/src/com/android/systemui/surfaceeffects/ripple/ |
D | RippleView.kt | 52 private var centerX: Float = 0.0f in <lambda>() variable 55 this.centerX = x in <lambda>() 235 canvas.drawCircle(centerX, centerY, maskRadius, ripplePaint) in <lambda>() 240 /* left= */ centerX - maskWidth, in <lambda>() 242 /* right= */ centerX + maskWidth, in <lambda>()
|
/frameworks/base/core/java/com/android/internal/transition/ |
D | EpicenterTranslateClipReveal.java | 131 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/ |
D | AssistInteractionSession.java | 134 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/base/packages/SystemUI/src/com/android/systemui/biometrics/udfps/ |
D | BoundingBoxOverlapDetector.kt | 38 (nativeSensorBounds.centerX() - scaledRadius).toInt(), in isGoodOverlap() 40 (nativeSensorBounds.centerX() + scaledRadius).toInt(), in isGoodOverlap()
|
/frameworks/base/tests/graphics/SilkFX/src/com/android/test/silkfx/hdr/ |
D | RadialGlow.kt | 85 canvas.drawText("Tap to toggle animation", rect.centerX(), innerRect.top - 4.dp(), paint) in onDraw() 86 canvas.drawText("Outside text", rect.centerX(), rect.bottom - 4.dp(), paint) in onDraw() 87 canvas.drawText("Inside text", innerRect.centerX(), innerRect.bottom - 4.dp(), paint) in onDraw()
|
/frameworks/base/core/java/android/transition/ |
D | Explode.java | 139 focalX = epicenter.centerX(); in calculateOut() 143 int centerX = bounds.centerX(); in calculateOut() local 145 double xVector = centerX - focalX; in calculateOut()
|
/frameworks/base/core/java/com/android/internal/widget/remotecompose/core/operations/paint/ |
D | PaintChangeAdapter.java | 109 float centerX, in setRadialGradient() argument 119 float centerX, in setSweepGradient() argument
|
D | PaintChanges.java | 157 float centerX, in setRadialGradient() argument 173 float centerX, in setSweepGradient() argument
|
/frameworks/native/services/surfaceflinger/tests/utils/ |
D | ScreenshotUtils.h | 150 const int32_t centerX = rect.left + (rect.right - rect.left) / 2; variable 155 expectColor(Rect(rect.left, rect.top, centerX - offsetX, centerY - offsetY), topLeft, 157 expectColor(Rect(centerX + offsetX, rect.top, rect.right, centerY - offsetY), topRight, 159 expectColor(Rect(rect.left, centerY + offsetY, centerX - offsetX, rect.bottom), bottomLeft, 161 expectColor(Rect(centerX + offsetX, centerY + offsetY, rect.right, rect.bottom),
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/keyguard/data/repository/ |
D | LightRevealScrimRepositoryTest.kt | 137 it.centerX == fingerprintLocation.x && in <lambda>() 165 it.centerX == fingerprintLocation.x && in <lambda>() 183 it.centerX == fingerprintLocation.x && in <lambda>() 187 { it is CircleReveal && it.centerX == faceLocation.x && it.centerY == faceLocation.y }, in <lambda>()
|