/frameworks/base/tests/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 | 110 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 …]
|
D | WindowMagnificationController.java | 486 (int) transformedRect.centerX(), (int) transformedRect.centerY()); in onRotate() 593 void setWindowSizeAndCenter(int width, int height, float centerX, float centerY) { in setWindowSizeAndCenter() argument 597 if (Float.isNaN(centerX)) { in setWindowSizeAndCenter() 598 centerX = mMagnificationFrame.centerX(); in setWindowSizeAndCenter() 600 if (Float.isNaN(centerX)) { 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 616 final int initX = centerX - width / 2; in setMagnificationFrame() 902 public void enableWindowMagnification(float scale, float centerX, float centerY, in enableWindowMagnification() argument 905 mAnimationController.enableWindowMagnification(scale, centerX, centerY, in enableWindowMagnification() [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/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/base/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/helpers/ |
D | PipAppHelper.kt | 162 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()
|
D | SplitScreenHelper.kt | 94 displayBounds.centerX(), 5, in getPrimary() 95 displayBounds.centerX(), displayBounds.bottom, 20 /* steps */ in getPrimary() 107 displayBounds.centerX(), displayBounds.centerY(), in getPrimary() 108 displayBounds.centerX(), displayBounds.centerY() - 150, 20 /* steps */ in getPrimary()
|
/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 | 353 int centerX, centerY; in insetWithFrame() local 362 centerX = radius; in insetWithFrame() 366 centerX = roundedCornerFrame.width() - radius; in insetWithFrame() 370 centerX = roundedCornerFrame.width() - radius; in insetWithFrame() 374 centerX = radius; in insetWithFrame() 381 roundedCorners[i] = insetRoundedCorner(i, radius, centerX, centerY, insetLeft, insetTop, in insetWithFrame() 402 private RoundedCorner insetRoundedCorner(@Position int position, int radius, int centerX, in insetRoundedCorner() argument 428 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/packages/SystemUI/tests/src/com/android/systemui/keyguard/data/repository/ |
D | LightRevealScrimRepositoryTest.kt | 105 it.centerX == fingerprintLocation.x && in <lambda>() 128 it.centerX == fingerprintLocation.x && in <lambda>() 145 it.centerX == fingerprintLocation.x && in <lambda>() 151 it.centerX == faceLocation.x && 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/tests/FlickerTests/src/com/android/server/wm/flicker/helpers/ |
D | GameAppHelper.kt | 51 bound.centerX(), bound.top, bound.centerX(), bound.centerY(), SWIPE_STEPS) in swipeDown() 81 bound.centerX(), targetYPos.toInt(), endX, targetYPos.toInt(), SWIPE_STEPS) in switchToPreviousAppByQuickSwitchGesture()
|
/frameworks/base/tests/SilkFX/src/com/android/test/silkfx/hdr/ |
D | RadialGlow.kt | 87 canvas.drawText("Tap to toggle animation", rect.centerX(), innerRect.top - 4.dp(), paint) in onDraw() 88 canvas.drawText("Outside text", rect.centerX(), rect.bottom - 4.dp(), paint) in onDraw() 89 canvas.drawText("Inside text", innerRect.centerX(), innerRect.bottom - 4.dp(), paint) in onDraw()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ |
D | LockscreenWallpaperTest.kt | 45 assertThat(wallpaperDrawable.drawable.bounds.centerX()) in testLockscreenWallpaper_onSmallerInternalDisplay_centerAlignsDrawable() 46 .isEqualTo(wallpaperDrawable.bounds.centerX()) in testLockscreenWallpaper_onSmallerInternalDisplay_centerAlignsDrawable()
|
/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/services/accessibility/java/com/android/server/accessibility/magnification/ |
D | WindowMagnificationManager.java | 544 public boolean enableWindowMagnification(int displayId, float scale, float centerX, in enableWindowMagnification() argument 546 return enableWindowMagnification(displayId, scale, centerX, centerY, in enableWindowMagnification() 564 public boolean enableWindowMagnification(int displayId, float scale, float centerX, in enableWindowMagnification() argument 566 return enableWindowMagnification(displayId, scale, centerX, centerY, animationCallback, in enableWindowMagnification() 583 public boolean enableWindowMagnification(int displayId, float scale, float centerX, in enableWindowMagnification() argument 585 return enableWindowMagnification(displayId, scale, centerX, centerY, in enableWindowMagnification() 603 public boolean enableWindowMagnification(int displayId, float scale, float centerX, 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 …]
|
D | FullScreenMagnificationController.java | 539 final float centerX = normPivotX + offsetX; 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 553 "setScaleAndCenterLocked(scale = " + scale + ", centerX = " + centerX in setScaleAndCenter() 557 final boolean changed = updateMagnificationSpecLocked(scale, centerX, centerY); in setScaleAndCenter() 578 boolean updateMagnificationSpecLocked(float scale, float centerX, float centerY) { in updateMagnificationSpecLocked() argument 580 if (Float.isNaN(centerX)) { in updateMagnificationSpecLocked() 581 centerX = getCenterX(); in updateMagnificationSpecLocked() 600 + mMagnificationBounds.left - centerX * 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/ |
D | ScreenshotUtils.h | 141 const int32_t centerX = rect.left + (rect.right - rect.left) / 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/ |
D | ScreenRecordDrawable.java | 123 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/ |
D | CropView.java | 100 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/opt/bitmap/src/com/android/bitmap/drawable/ |
D | CircularBitmapDrawable.java | 114 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()
|