/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/graphics/java/android/graphics/ |
D | RadialGradient.java | 54 public RadialGradient(float centerX, float centerY, float radius, in RadialGradient() argument 66 mX = centerX; in RadialGradient() 72 init(nativeCreate1(centerX, centerY, radius, colors, stops, tileMode.nativeInt)); in RadialGradient() 83 public RadialGradient(float centerX, float centerY, float radius, in RadialGradient() argument 89 mX = centerX; in RadialGradient() 95 init(nativeCreate2(centerX, centerY, radius, centerColor, edgeColor, tileMode.nativeInt)); in RadialGradient()
|
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/ |
D | UiObject.java | 198 return getInteractionController().swipe(srcRect.centerX(), srcRect.centerY(), in dragTo() 199 dstRect.centerX(), dstRect.centerY(), steps, true); in dragTo() 217 return getInteractionController().swipe(srcRect.centerX(), srcRect.centerY(), destX, destY, in dragTo() 242 return getInteractionController().swipe(rect.centerX(), in swipeUp() 243 rect.bottom - SWIPE_MARGIN_LIMIT, rect.centerX(), rect.top + SWIPE_MARGIN_LIMIT, in swipeUp() 270 return getInteractionController().swipe(rect.centerX(), in swipeDown() 271 rect.top + SWIPE_MARGIN_LIMIT, rect.centerX(), in swipeDown() 395 return getInteractionController().clickAndSync(rect.centerX(), rect.centerY(), in click() 435 return getInteractionController().clickAndWaitForNewWindow(rect.centerX(), rect.centerY(), in clickAndWaitForNewWindow() 504 return getInteractionController().longTapNoSync(rect.centerX(), rect.centerY()); in longClick() [all …]
|
D | UiScrollable.java | 431 downX = rect.centerX(); in scrollForward() 433 upX = rect.centerX(); in scrollForward() 511 downX = rect.centerX(); in scrollBackward() 513 upX = rect.centerX(); in scrollBackward()
|
/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/java/android/view/ |
D | ViewAnimationUtils.java | 52 int centerX, int centerY, float startRadius, float endRadius) { in createCircularReveal() argument 53 return new RevealAnimator(view, centerX, centerY, startRadius, endRadius); in createCircularReveal()
|
/frameworks/opt/photoviewer/src/com/android/ex/photo/views/ |
D | PhotoView.java | 277 float centerX, centerY; in scale() local 284 centerX = (getWidth() / 2 - relativeScale * mTranslateRect.centerX()) / in scale() 298 centerX = mTranslateRect.centerX(); in scale() 300 centerX = Math.min(Math.max(mTranslateRect.left + widthBuffer, in scale() 311 mScaleRunnable.start(currentScale, targetScale, centerX, centerY); in scale() 397 float centerX = getWidth() / 2; in onScaleEnd() local 408 centerX = (minX + maxX) / 2; in onScaleEnd() 410 centerX = Math.min(Math.max(minX, centerX), maxX); in onScaleEnd() 418 mScaleRunnable.start(currentScale, mMaxScale, centerX, centerY); in onScaleEnd() 942 private void scale(float newScale, float centerX, float centerY) { in scale() argument [all …]
|
/frameworks/base/core/java/android/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 | 101 float centerX = (width / 2f - rendererCenter[0] + (imageWidth - width) / 2f) in getEdgesHelper() local 105 float leftEdge = centerX - imageWidth / 2f * scale; in getEdgesHelper() 106 float rightEdge = centerX + imageWidth / 2f * scale; in getEdgesHelper() 139 mCenterX = mRenderer.centerX; in setTileSource() 211 mRenderer.centerX = Math.round(mCenterX); in updateCenter()
|
/frameworks/base/packages/Keyguard/src/com/android/keyguard/ |
D | NumPadKey.java | 144 int centerX = getWidth() / 2; in onLayout() local 145 int left = centerX - mDigitText.getMeasuredWidth() / 2; in onLayout() 151 left = centerX - mKlondikeText.getMeasuredWidth() / 2; in onLayout()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | LockPatternView.java | 917 final float centerX = getCenterXForColumn(currentCell.column); in onDraw() 922 (getCenterXForColumn(nextCell.column) - centerX); in onDraw() 925 mInProgressX = centerX + dx; in onDraw() 940 float centerX = getCenterXForColumn(j); in onDraw() 943 drawCircle(canvas, (int) centerX, (int) centerY + translationY, in onDraw() 970 float centerX = getCenterXForColumn(cell.column); in onDraw() 979 currentPath.lineTo(centerX, centerY); in onDraw() 983 lastX = centerX; in onDraw() 1027 private void drawCircle(Canvas canvas, float centerX, float centerY, float size, 1031 canvas.drawCircle(centerX, centerY, size/2, mPaint);
|
/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()
|
D | TiledImageRenderer.java | 240 public void setPosition(int centerX, int centerY, float scale) { in setPosition() argument 241 if (mCenterX == centerX && mCenterY == centerY in setPosition() 245 mCenterX = centerX; in setPosition() 430 int centerX = mViewWidth / 2, centerY = mViewHeight / 2; in draw() local 431 canvas.translate(centerX, centerY); in draw() 433 canvas.translate(-centerX, -centerY); in draw()
|
/frameworks/opt/chips/src/com/android/ex/chips/ |
D | CircularImageView.java | 107 canvas.drawCircle(dest.centerX(), dest.centerY(), dest.width() / 2f, in drawBitmapWithCircleOnCanvas() 111 canvas.drawCircle(dest.centerX(), dest.centerY(), in drawBitmapWithCircleOnCanvas()
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
D | ScreenMagnifier.java | 232 final float centerX = (-spec.offsetX + magnifiedFrame.width() / 2) / scale; in handleOnMagnifiedBoundsChanged() local 234 mMagnificationController.setScaleAndMagnifiedRegionCenter(scale, centerX, in handleOnMagnifiedBoundsChanged() 1023 final float centerX = normPivotX + offsetX; in setScale() local 1025 setScaleAndMagnifiedRegionCenter(scale, centerX, centerY, animate); in setScale() 1028 public void setMagnifiedRegionCenter(float centerX, float centerY, boolean animate) { in setMagnifiedRegionCenter() argument 1029 setScaleAndMagnifiedRegionCenter(mCurrentMagnificationSpec.scale, centerX, centerY, in setMagnifiedRegionCenter() 1043 public void setScaleAndMagnifiedRegionCenter(float scale, float centerX, float centerY, in setScaleAndMagnifiedRegionCenter() argument 1047 centerX) == 0 in setScaleAndMagnifiedRegionCenter() 1056 Slog.i(LOG_TAG, "scale: " + scale + " offsetX: " + centerX in setScaleAndMagnifiedRegionCenter() 1059 updateMagnificationSpec(scale, centerX, centerY); in setScaleAndMagnifiedRegionCenter()
|
/frameworks/base/opengl/java/android/opengl/ |
D | GLU.java | 72 float centerX, float centerY, float centerZ, float upX, float upY, in gluLookAt() argument 77 Matrix.setLookAtM(scratch, 0, eyeX, eyeY, eyeZ, centerX, centerY, centerZ, in gluLookAt()
|
/frameworks/base/core/java/com/android/internal/widget/multiwaveview/ |
D | GlowPadView.java | 1155 private void updateTargetPosition(int i, float centerX, float centerY) { in updateTargetPosition() argument 1157 updateTargetPosition(i, centerX, centerY, angle); in updateTargetPosition() 1160 private void updateTargetPosition(int i, float centerX, float centerY, float angle) { in updateTargetPosition() argument 1166 targetIcon.setPositionX(centerX); in updateTargetPosition() 1173 private void updateTargetPositions(float centerX, float centerY) { in updateTargetPositions() argument 1174 updateTargetPositions(centerX, centerY, false); in updateTargetPositions() 1177 private void updateTargetPositions(float centerX, float centerY, boolean skipActive) { in updateTargetPositions() argument 1183 updateTargetPosition(i, centerX, centerY, getAngle(alpha, i)); in updateTargetPositions() 1196 private void updatePointCloudPosition(float centerX, float centerY) { in updatePointCloudPosition() argument 1197 mPointCloud.setCenter(centerX, centerY); in updatePointCloudPosition()
|
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/ |
D | CircularBitmapDrawable.java | 142 canvas.drawCircle(dst.centerX(), dst.centerY(), dst.width() / 2, in onDrawCircularBitmap() 147 canvas.drawCircle(dst.centerX(), dst.centerY(), in onDrawCircularBitmap()
|
/frameworks/native/include/input/ |
D | VirtualKeyMap.h | 36 int32_t centerX; member
|
/frameworks/base/tests/TransformTest/src/com/google/android/test/transform/ |
D | TransformTestActivity.java | 97 float centerX = detector.getFocusX(); in onScale() local 99 float diffX = centerX - mPosX; in onScale()
|
/frameworks/native/opengl/tests/gl_jni/jni/ |
D | gl_code.cpp | 25 float centerX, float centerY, float centerZ, float upX, float upY, in gluLookAt() argument 31 float fx = centerX - eyeX; in gluLookAt()
|
/frameworks/base/docs/html/training/wearables/watch-faces/ |
D | drawing.jd | 464 float centerX = width / 2f; 473 float secLength = centerX - 20; 474 float minLength = centerX - 40; 475 float hrLength = centerX - 80; 481 canvas.drawLine(centerX, centerY, centerX + secX, centerY + 488 canvas.drawLine(centerX, centerY, centerX + minX, centerY + minY, 492 canvas.drawLine(centerX, centerY, centerX + hrX, centerY + hrY,
|
/frameworks/native/opengl/tests/tritex/ |
D | tritex.cpp | 36 float centerX, float centerY, float centerZ, float upX, float upY, in gluLookAt() argument 42 float fx = centerX - eyeX; in gluLookAt()
|