Home
last modified time | relevance | path

Searched refs:centerX (Results 1 – 25 of 57) sorted by relevance

123

/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DTransform3dActivity.java57 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/
DRadialGradient.java54 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/
DUiObject.java198 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 …]
DUiScrollable.java431 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/
DOrientedBoundingBox.java33 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/
DViewAnimationUtils.java52 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/
DPhotoView.java277 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/
DExplode.java140 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/
DEdgeEffect.java323 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/
DCropView.java101 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/
DNumPadKey.java144 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/
DLockPatternView.java917 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/
DVirtualKeyMap.cpp115 && 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/
DTiledImageView.java65 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()
DTiledImageRenderer.java240 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/
DCircularImageView.java107 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/
DScreenMagnifier.java232 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/
DGLU.java72 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/
DGlowPadView.java1155 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/
DCircularBitmapDrawable.java142 canvas.drawCircle(dst.centerX(), dst.centerY(), dst.width() / 2, in onDrawCircularBitmap()
147 canvas.drawCircle(dst.centerX(), dst.centerY(), in onDrawCircularBitmap()
/frameworks/native/include/input/
DVirtualKeyMap.h36 int32_t centerX; member
/frameworks/base/tests/TransformTest/src/com/google/android/test/transform/
DTransformTestActivity.java97 float centerX = detector.getFocusX(); in onScale() local
99 float diffX = centerX - mPosX; in onScale()
/frameworks/native/opengl/tests/gl_jni/jni/
Dgl_code.cpp25 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/
Ddrawing.jd464 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/
Dtritex.cpp36 float centerX, float centerY, float centerZ, float upX, float upY, in gluLookAt() argument
42 float fx = centerX - eyeX; in gluLookAt()

123