/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/support/design/tests/src/android/support/design/widget/ |
D | AppBarWithToolbarAndTabsTest.java | 63 final int centerX = appbarOnScreenXY[0] + mAppBar.getWidth() / 2; in testScrollingToolbarAndScrollingTabs() local 75 centerX, in testScrollingToolbarAndScrollingTabs() 88 centerX, in testScrollingToolbarAndScrollingTabs() 103 centerX, in testScrollingToolbarAndScrollingTabs() 118 centerX, in testScrollingToolbarAndScrollingTabs() 132 centerX, in testScrollingToolbarAndScrollingTabs() 156 final int centerX = appbarOnScreenXY[0] + mAppBar.getWidth() / 2; in testScrollingToolbarAndPinnedTabs() local 168 centerX, in testScrollingToolbarAndPinnedTabs() 181 centerX, in testScrollingToolbarAndPinnedTabs() 196 centerX, in testScrollingToolbarAndPinnedTabs() [all …]
|
D | AppBarWithCollapsingToolbarTest.java | 51 final int centerX = appbarOnScreenXY[0] + mAppBar.getWidth() / 2; in testPinnedToolbar() local 65 centerX, in testPinnedToolbar() 78 centerX, in testPinnedToolbar() 95 centerX, in testPinnedToolbar() 111 centerX, in testPinnedToolbar() 126 centerX, in testPinnedToolbar() 158 final int centerX = appbarOnScreenXY[0] + mAppBar.getWidth() / 2; in testScrollingToolbar() local 173 centerX, in testScrollingToolbar() 189 centerX, in testScrollingToolbar() 205 centerX, in testScrollingToolbar() [all …]
|
D | AppBarWithToolbarTest.java | 50 final int centerX = appbarOnScreenXY[0] + mAppBar.getWidth() / 2; in testScrollToolbarWithFitSystemWindowsParent() local 58 centerX, in testScrollToolbarWithFitSystemWindowsParent() 70 centerX, in testScrollToolbarWithFitSystemWindowsParent()
|
/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 …]
|
D | UiScrollable.java | 434 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/graphics/java/android/graphics/ |
D | RadialGradient.java | 57 public RadialGradient(float centerX, float centerY, float radius, in RadialGradient() argument 70 mX = centerX; in RadialGradient() 88 public RadialGradient(float centerX, float centerY, float radius, in RadialGradient() argument 94 mX = centerX; in RadialGradient()
|
/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/services/accessibility/java/com/android/server/accessibility/ |
D | MagnificationController.java | 448 final float centerX = normPivotX + offsetX; in setScale() local 451 return setScaleAndCenterLocked(scale, centerX, centerY, animate, id); in setScale() 469 public boolean setCenter(float centerX, float centerY, boolean animate, int id) { in setCenter() argument 474 return setScaleAndCenterLocked(Float.NaN, centerX, centerY, animate, id); in setCenter() 495 float scale, float centerX, float centerY, boolean animate, int id) { in setScaleAndCenter() argument 500 return setScaleAndCenterLocked(scale, centerX, centerY, animate, id); in setScaleAndCenter() 504 private boolean setScaleAndCenterLocked(float scale, float centerX, float centerY, in setScaleAndCenterLocked() argument 506 final boolean changed = updateMagnificationSpecLocked(scale, centerX, centerY); in setScaleAndCenterLocked() 595 private boolean updateMagnificationSpecLocked(float scale, float centerX, float centerY) { in updateMagnificationSpecLocked() argument 597 if (Float.isNaN(centerX)) { in updateMagnificationSpecLocked() [all …]
|
/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()
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | ScaleGestureDetectorTest.java | 73 final int centerX = displayWidth / 2; in testScaleGestureDetector() local 77 final float[] firstFingerStartCoords = new float[] {centerX + 1.0f, centerY - 1.0f}; in testScaleGestureDetector() 80 final float[] secondFingerStartCoords = new float[] {centerX - 1.0f, centerY + 1.0f}; in testScaleGestureDetector()
|
/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/core/java/android/accessibilityservice/ |
D | AccessibilityService.java | 378 float scale, float centerX, float centerY); in onMagnificationChanged() argument 719 float centerX, float centerY) { in onMagnificationChanged() argument 722 region, scale, centerX, centerY); in onMagnificationChanged() 856 final float centerX, final float centerY) { in dispatchMagnificationChanged() argument 879 region, scale, centerX, centerY); in dispatchMagnificationChanged() 884 listener.onMagnificationChanged(this, region, scale, centerX, centerY); in dispatchMagnificationChanged() 1080 public boolean setCenter(float centerX, float centerY, boolean animate) { in setCenter() argument 1087 Float.NaN, centerX, centerY, animate); in setCenter() 1112 @NonNull Region region, float scale, float centerX, float centerY); in onMagnificationChanged() argument 1553 float scale, float centerX, float centerY) { in onBind() argument [all …]
|
/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/support/transition/src/android/support/transition/ |
D | Explode.java | 140 focalX = epicenter.centerX(); in calculateOut() 144 int centerX = bounds.centerX(); in calculateOut() local 146 float xVector = centerX - focalX; in calculateOut()
|
/frameworks/base/core/java/android/widget/ |
D | EdgeEffect.java | 323 final float centerX = mBounds.centerX(); in draw() local 326 canvas.scale(1.f, Math.min(mGlowScaleY, 1.f) * mBaseGlowScale, centerX, 0); in draw() 334 canvas.drawCircle(centerX, centerY, mRadius, mPaint); 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()
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
D | NumPadKey.java | 147 int centerX = getWidth() / 2; in onLayout() local 148 int left = centerX - mDigitText.getMeasuredWidth() / 2; in onLayout() 154 left = centerX - mKlondikeText.getMeasuredWidth() / 2; in onLayout()
|
/frameworks/support/wear/src/android/support/wear/widget/ |
D | CircledImageView.java | 244 mOval.centerX() - circleRadius, in onDraw() 246 mOval.centerX() + circleRadius, in onDraw() 278 float centerX = mOval.centerX(); in onDraw() local 281 canvas.drawCircle(centerX, centerY, circleRadius, mPaint); in onDraw() 756 canvas.drawCircle(mBounds.centerX(), mBounds.centerY(), mShadowRadius, in draw() 792 mBounds.centerX(), in updateRadialGradient()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | LockPatternView.java | 1087 final float centerX = getCenterXForColumn(currentCell.column); in onDraw() 1092 (getCenterXForColumn(nextCell.column) - centerX); in onDraw() 1095 mInProgressX = centerX + dx; in onDraw() 1110 float centerX = getCenterXForColumn(j); in onDraw() 1121 drawCircle(canvas, (int) centerX, (int) centerY + translationY, in onDraw() 1150 float centerX = getCenterXForColumn(cell.column); in onDraw() 1159 currentPath.lineTo(centerX, centerY); in onDraw() 1163 lastX = centerX; in onDraw() 1207 private void drawCircle(Canvas canvas, float centerX, float centerY, float radius, 1211 canvas.drawCircle(centerX, centerY, radius, mPaint); [all …]
|
/frameworks/opt/photoviewer/src/com/android/ex/photo/views/ |
D | PhotoView.java | 279 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/ |
D | VirtualKeyMap.cpp | 115 && parseNextIntField(&defn.centerX) in parse() 128 defn.scanCode, defn.centerX, defn.centerY, defn.width, defn.height); in parse()
|
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/views/ |
D | TiledImageView.java | 65 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()
|