Home
last modified time | relevance | path

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

12345

/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.java70 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/packages/SystemUI/src/com/android/systemui/accessibility/
DWindowMagnificationAnimationController.java106 void enableWindowMagnification(float scale, float centerX, float centerY, in enableWindowMagnification() argument
110 setupEnableAnimationSpecs(scale, centerX, centerY); in enableWindowMagnification()
113 mController.enableWindowMagnification(scale, centerX, centerY); in enableWindowMagnification()
132 private void setupEnableAnimationSpecs(float scale, float centerX, float centerY) { in setupEnableAnimationSpecs() argument
139 mStartSpec.set(/* scale*/ 1.0f, centerX, centerY); in setupEnableAnimationSpecs()
141 R.integer.magnification_default_scale) : scale, centerX, centerY); in setupEnableAnimationSpecs()
146 Float.isNaN(centerY) ? currentCenterY : centerY); in setupEnableAnimationSpecs()
268 final float centerY = in onAnimationUpdate() local
270 mController.enableWindowMagnification(sentScale, centerX, centerY); in onAnimationUpdate()
317 void set(float scale, float centerX, float centerY) { in set() argument
[all …]
DWindowMagnificationConnectionImpl.java53 float centerY, IRemoteMagnificationAnimationCallback callback) { in enableWindowMagnification() argument
56 centerY, callback)); in enableWindowMagnification()
/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/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/tests/coretests/src/android/view/
DScaleGestureDetectorTest.java66 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/
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/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/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/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/helpers/
DPipAppHelper.kt136 uiDevice.click(dismissButtonBounds.centerX(), dismissButtonBounds.centerY()) in closePipWindow()
153 uiDevice.click(windowRect.centerX(), windowRect.centerY()) in expandPipWindow()
168 uiDevice.click(windowRect.centerX(), windowRect.centerY()) in expandPipWindowToApp()
169 uiDevice.click(windowRect.centerX(), windowRect.centerY()) in expandPipWindowToApp()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/magnification/
DWindowMagnificationManager.java264 void enableWindowMagnification(int displayId, float scale, float centerX, float centerY) { in enableWindowMagnification() argument
265 enableWindowMagnification(displayId, scale, centerX, centerY, null); in enableWindowMagnification()
280 void enableWindowMagnification(int displayId, float scale, float centerX, float centerY, in enableWindowMagnification() argument
291 enabled = magnifier.enableWindowMagnificationInternal(scale, centerX, centerY, in enableWindowMagnification()
591 boolean enableWindowMagnificationInternal(float scale, float centerX, float centerY, in enableWindowMagnificationInternal() argument
598 centerX, centerY, animationCallback)) { in enableWindowMagnificationInternal()
690 float centerY, MagnificationAnimationCallback animationCallback) { in enableWindowMagnificationInternal() argument
692 displayId, scale, centerX, centerY, animationCallback); in enableWindowMagnificationInternal()
DFullScreenMagnificationController.java488 final float centerY = normPivotY + offsetY; in setScale() local
490 return setScaleAndCenter(scale, centerX, centerY, transformToStubCallback(animate), id); in setScale()
494 boolean setScaleAndCenter(float scale, float centerX, float centerY, in setScaleAndCenter() argument
502 + ", centerY = " + centerY + ", endCallback = " in setScaleAndCenter()
505 final boolean changed = updateMagnificationSpecLocked(scale, centerX, centerY); in setScaleAndCenter()
526 boolean updateMagnificationSpecLocked(float scale, float centerX, float centerY) { in updateMagnificationSpecLocked() argument
531 if (Float.isNaN(centerY)) { in updateMagnificationSpecLocked()
532 centerY = getCenterY(); in updateMagnificationSpecLocked()
550 + mMagnificationBounds.top - centerY * normScale; in updateMagnificationSpecLocked()
978 public boolean setCenter(int displayId, float centerX, float centerY, boolean animate, int id) { in setCenter() argument
[all …]
DWindowMagnificationGestureHandler.java172 private void enableWindowMagnifier(float centerX, float centerY) { in enableWindowMagnifier() argument
174 Slog.i(mLogTag, "enableWindowMagnifier :" + centerX + ", " + centerY); in enableWindowMagnifier()
180 mWindowMagnificationMgr.enableWindowMagnification(mDisplayId, scale, centerX, centerY); in enableWindowMagnifier()
190 private void toggleMagnification(float centerX, float centerY) { in toggleMagnification() argument
194 enableWindowMagnifier(centerX, centerY); in toggleMagnification()
/frameworks/native/services/surfaceflinger/tests/utils/
DScreenshotUtils.h137 const int32_t centerY = rect.top + (rect.bottom - rect.top) / 2; variable
141 expectColor(Rect(rect.left, rect.top, centerX - offsetX, centerY - offsetY), topLeft,
143 expectColor(Rect(centerX + offsetX, rect.top, rect.right, centerY - offsetY), topRight,
145 expectColor(Rect(rect.left, centerY + offsetY, centerX - offsetX, rect.bottom), bottomLeft,
147 expectColor(Rect(centerX + offsetX, centerY + offsetY, rect.right, rect.bottom),
/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/core/java/android/accessibilityservice/
DAccessibilityService.java580 float scale, float centerX, float centerY); in onMagnificationChanged() argument
1166 float centerX, float centerY) { in onMagnificationChanged() argument
1172 controller.dispatchMagnificationChanged(region, scale, centerX, centerY); in onMagnificationChanged()
1307 final float centerX, final float centerY) { in dispatchMagnificationChanged() argument
1330 region, scale, centerX, centerY); in dispatchMagnificationChanged()
1335 listener.onMagnificationChanged(this, region, scale, centerX, centerY); in dispatchMagnificationChanged()
1531 public boolean setCenter(float centerX, float centerY, boolean animate) { in setCenter() argument
1538 Float.NaN, centerX, centerY, animate); in setCenter()
1563 @NonNull Region region, float scale, float centerX, float centerY); in onMagnificationChanged() argument
2196 float scale, float centerX, float centerY) { in onBind() argument
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DScreenRecordDrawable.java123 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/
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/base/services/tests/servicestests/src/com/android/server/accessibility/
DAbstractAccessibilityServiceConnectionTest.java636 final float centerY = 640.0f; in getMagnificationCenterY_notRegistered_shouldRegisterThenUnregister() local
637 when(mMockFullScreenMagnificationController.getCenterY(displayId)).thenReturn(centerY); in getMagnificationCenterY_notRegistered_shouldRegisterThenUnregister()
641 assertThat(result, is(centerY)); in getMagnificationCenterY_notRegistered_shouldRegisterThenUnregister()
649 final float centerY = 640.0f; in getMagnificationCenterY_serviceNotBelongCurrentUser_returnZero() local
650 when(mMockFullScreenMagnificationController.getCenterY(displayId)).thenReturn(centerY); in getMagnificationCenterY_serviceNotBelongCurrentUser_returnZero()
691 final float centerY = 100.5f; in setMagnificationScaleAndCenter_notRegistered_shouldRegister() local
693 scale, centerX, centerY, true, SERVICE_ID)).thenReturn(true); in setMagnificationScaleAndCenter_notRegistered_shouldRegister()
697 displayId, scale, centerX, centerY, true); in setMagnificationScaleAndCenter_notRegistered_shouldRegister()
707 final float centerY = 100.5f; in setMagnificationScaleAndCenter_cantControlMagnification_returnFalse() local
709 scale, centerX, centerY, true, SERVICE_ID)).thenReturn(true); in setMagnificationScaleAndCenter_cantControlMagnification_returnFalse()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/magnification/
DMockWindowMagnificationConnection.java133 private void computeMirrorWindowFrame(float centerX, float centerY) { in computeMirrorWindowFrame() argument
136 final float offsetY = Float.isNaN(centerY) ? 0 in computeMirrorWindowFrame()
137 : centerY - mMirrorWindowFrame.exactCenterY(); in computeMirrorWindowFrame()
/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/native/libs/input/
DVirtualKeyMap.cpp101 && parseNextIntField(&defn.centerY) in parse()
113 defn.scanCode, defn.centerX, defn.centerY, defn.width, defn.height); in parse()
/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()

12345