/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
D | Transform3dActivity.java | 58 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/ |
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 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/ |
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() 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 …]
|
D | UiScrollable.java | 443 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/ |
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()
|
/frameworks/base/core/java/android/gesture/ |
D | OrientedBoundingBox.java | 34 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/ |
D | ScaleGestureDetectorTest.java | 66 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/ |
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 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/ |
D | RippleView.kt | 53 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/ |
D | LightRevealScrimRepositoryTest.kt | 106 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/ |
D | EpicenterTranslateClipReveal.java | 132 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/ |
D | AssistInteractionSession.java | 135 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/ |
D | Explode.java | 140 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/ |
D | WindowMagnificationManager.java | 545 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 …]
|
D | FullScreenMagnificationController.java | 540 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/ |
D | ScreenshotUtils.h | 142 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/ |
D | ScreenRecordDrawable.java | 123 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/ |
D | CropView.java | 102 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/ |
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()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/ |
D | UdfpsEnrollProgressBarDrawable.java | 335 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/ |
D | ScreenDecorHwcLayer.kt | 205 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/ |
D | MockWindowMagnificationConnection.java | 142 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()
|