Home
last modified time | relevance | path

Searched refs:centerY (Results 1 – 25 of 81) sorted by relevance

1234

/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DTransform3dActivity.java58 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/graphics/java/android/graphics/
DRadialGradient.java54 public RadialGradient(float centerX, float centerY, float radius, in RadialGradient() argument
67 mY = centerY; 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
90 mY = centerY; 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.java201 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 …]
DUiScrollable.java443 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/services/accessibility/java/com/android/server/accessibility/
DMagnificationController.java212 final float centerY = (mMagnificationBounds.height() / 2.0f in onMagnificationRegionChanged() local
215 scale, centerX, centerY, false, INVALID_ID); in onMagnificationRegionChanged()
420 final float centerY = normPivotY + offsetY; in setScale() local
422 return setScaleAndCenterLocked(scale, centerX, centerY, animate, id); in setScale()
440 public boolean setCenter(float centerX, float centerY, boolean animate, int id) { in setCenter() argument
445 return setScaleAndCenterLocked(Float.NaN, centerX, centerY, animate, id); in setCenter()
466 float scale, float centerX, float centerY, boolean animate, int id) { in setScaleAndCenter() argument
471 return setScaleAndCenterLocked(scale, centerX, centerY, animate, id); in setScaleAndCenter()
475 private boolean setScaleAndCenterLocked(float scale, float centerX, float centerY, in setScaleAndCenterLocked() argument
477 final boolean changed = updateMagnificationSpecLocked(scale, centerX, centerY); in setScaleAndCenterLocked()
[all …]
/frameworks/base/core/java/android/gesture/
DOrientedBoundingBox.java34 public final float centerY; field in OrientedBoundingBox
41 centerY = cy; in OrientedBoundingBox()
62 matrix.postTranslate(centerX, centerY); in toPath()
/frameworks/base/core/java/android/accessibilityservice/
DAccessibilityService.java374 float scale, float centerX, float centerY); in onMagnificationChanged() argument
688 float centerX, float centerY) { in onMagnificationChanged() argument
691 region, scale, centerX, centerY); in onMagnificationChanged()
811 final float centerX, final float centerY) { in dispatchMagnificationChanged() argument
834 region, scale, centerX, centerY); in dispatchMagnificationChanged()
839 listener.onMagnificationChanged(this, region, scale, centerX, centerY); in dispatchMagnificationChanged()
1035 public boolean setCenter(float centerX, float centerY, boolean animate) { in setCenter() argument
1042 Float.NaN, centerX, centerY, animate); in setCenter()
1067 @NonNull Region region, float scale, float centerX, float centerY); in onMagnificationChanged() argument
1475 float scale, float centerX, float centerY) { in onBind() argument
[all …]
DIAccessibilityServiceClient.aidl44 void onMagnificationChanged(in Region region, float scale, float centerX, float centerY); in onMagnificationChanged() argument
/frameworks/base/core/java/com/android/internal/transition/
DEpicenterTranslateClipReveal.java132 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/core/java/android/view/
DViewAnimationUtils.java70 int centerX, int centerY, float startRadius, float endRadius) { in createCircularReveal() argument
71 return new RevealAnimator(view, centerX, centerY, startRadius, endRadius); in createCircularReveal()
/frameworks/base/tests/Assist/src/com/android/test/assist/
DAssistInteractionSession.java135 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/
DExplode.java140 focalY = epicenter.centerY(); in calculateOut()
144 int centerY = bounds.centerY(); in calculateOut() local
146 double yVector = centerY - focalY; in calculateOut()
/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/
DCropView.java102 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/
DCircularBitmapDrawable.java114 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/opt/photoviewer/src/com/android/ex/photo/views/
DPhotoView.java279 float centerX, centerY; in scale() local
288 centerY = (getHeight() / 2 - relativeScale * mTranslateRect.centerY()) / in scale()
306 centerY = mTranslateRect.centerY(); in scale()
308 centerY = Math.min(Math.max(mTranslateRect.top + heightBuffer, 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
1190 mCenterY = centerY; in start()
/frameworks/support/v7/appcompat/tests/src/android/support/v7/testutils/
DTestUtils.java182 final int centerY = bitmap.getHeight() / 2; in assertCenterPixelOfColor() local
183 final @ColorInt int colorAtCenterPixel = bitmap.getPixel(centerX, centerY); in assertCenterPixelOfColor()
189 + " but at position (" + centerX + "," + centerY + ") out of (" in assertCenterPixelOfColor()
/frameworks/base/core/java/com/android/internal/widget/
DLockPatternView.java1074 final float centerY = getCenterYForRow(currentCell.row); in onDraw()
1080 (getCenterYForRow(nextCell.row) - centerY); in onDraw()
1082 mInProgressY = centerY + dy; in onDraw()
1093 float centerY = getCenterYForRow(i); in onDraw()
1103 drawCircle(canvas, (int) centerX, (int) centerY + translationY, in onDraw()
1133 float centerY = getCenterYForRow(cell.row); in onDraw()
1141 currentPath.lineTo(centerX, centerY); in onDraw()
1146 lastY = centerY; in onDraw()
1189 private void drawCircle(Canvas canvas, float centerX, float centerY, float radius,
1193 canvas.drawCircle(centerX, centerY, radius, mPaint);
[all …]
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/views/
DTiledImageView.java65 public int centerX, centerY; field in TiledImageView.ImageRendererWrapper
160 mRenderer.centerY = source != null ? source.getImageHeight() / 2 : 0; in setTileSource()
276 mRenderer.centerY = swap ? cx : cy; 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()
246 mCenterY = centerY; 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/native/libs/input/
DVirtualKeyMap.cpp116 && parseNextIntField(&defn.centerY) in parse()
128 defn.scanCode, defn.centerX, defn.centerY, defn.width, defn.height); in parse()
/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/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/tests/TransformTest/src/com/google/android/test/transform/
DTransformTestActivity.java98 float centerY = detector.getFocusY(); in onScale() local
100 float diffY = centerY - mPosY; in onScale()
/frameworks/native/include/input/
DVirtualKeyMap.h37 int32_t centerY; member
/frameworks/native/opengl/tests/gl_jni/jni/
Dgl_code.cpp25 float centerX, float centerY, float centerZ, float upX, float upY, in gluLookAt() argument
32 float fy = centerY - eyeY; in gluLookAt()

1234