Home
last modified time | relevance | path

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

1234

/packages/apps/Dialer/java/com/android/incallui/incall/impl/
DInCallPaginator.java114 int centerY = getHeight() / 2; in onDraw() local
128 centerY - dotRadius, in onDraw()
130 centerY + dotRadius, in onDraw()
135 centerX + indicatorOffset, centerY, indicatorRadius, Path.Direction.CW); in onDraw()
140 centerY - dotRadius, in onDraw()
142 centerY + dotRadius, in onDraw()
147 centerX - indicatorOffset, centerY, indicatorRadius, Path.Direction.CW); in onDraw()
155 centerY - dotRadius, in onDraw()
157 centerY + dotRadius, in onDraw()
163 centerY - dotRadius, in onDraw()
[all …]
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/layout/
Dproximity_info.cpp132 const float centerY = static_cast<float>(getKeyCenterYOfKeyIdG(keyId, y, isGeometric)); in getNormalizedSquaredDistanceFromCenterFloatG() local
135 return ProximityInfoUtils::getSquaredDistanceFloat(centerX, centerY, touchX, touchY) in getNormalizedSquaredDistanceFromCenterFloatG()
227 int centerY; in getKeyCenterYOfKeyIdG() local
229 centerY = mCenterYsG[keyId]; in getKeyCenterYOfKeyIdG()
231 centerY = static_cast<int>(mSweetSpotCenterYsG[keyId]); in getKeyCenterYOfKeyIdG()
233 centerY = static_cast<int>(mSweetSpotCenterYs[keyId]); in getKeyCenterYOfKeyIdG()
236 centerY + mKeyHeights[keyId] > KEYBOARD_HEIGHT && centerY < referencePointY) { in getKeyCenterYOfKeyIdG()
242 return centerY; in getKeyCenterYOfKeyIdG()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DTileImageView.java205 private void layoutTiles(int centerX, int centerY, float scale, int rotation) { in layoutTiles() argument
223 getRange(range, centerX, centerY, mLevel, scale, rotation); in layoutTiles()
225 mOffsetY = Math.round(height / 2f + (range.top - centerY) * scale); in layoutTiles()
231 mOffsetY = Math.round(height / 2f - centerY * scale); in layoutTiles()
239 getRange(range[i - fromLevel], centerX, centerY, i, rotation); in layoutTiles()
354 public boolean setPosition(int centerX, int centerY, float scale, int rotation) { in setPosition() argument
355 if (mCenterX == centerX && mCenterY == centerY in setPosition()
358 mCenterY = centerY; in setPosition()
361 layoutTiles(centerX, centerY, scale, rotation); in setPosition()
419 int centerX = getWidth() / 2, centerY = getHeight() / 2; in render() local
[all …]
DPhotoView.java689 && filmRatio == 1f && r.centerY() != viewH / 2; in drawTileView()
722 float offset = (float) (r.centerY() - viewH / 2) / viewH; in drawTileView()
753 int centerY = (int) (imageH / 2f + (viewH / 2f - cy) / scale + 0.5f); in setTileViewPosition() local
756 int inverseY = imageH - centerY; in setTileViewPosition()
759 case 0: x = centerX; y = centerY; break; in setTileViewPosition()
760 case 90: x = centerY; y = inverseX; break; in setTileViewPosition()
824 && filmRatio == 1f && r.centerY() != h / 2; in draw()
828 int cy = r.centerY(); in draw()
841 float offset = (float) (r.centerY() - h / 2) / h; in draw()
1109 int centerY = mPositionController.getPosition(mTouchBoxIndex) in flingImages() local
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/widget/
DCircleView.java220 public CircleView setCenterY(float centerY) { in setCenterY() argument
222 if (oldCenterY != centerY) { in setCenterY()
223 mCenterY = centerY; in setCenterY()
227 invalidate(mCenterX, centerY, mRadius); in setCenterY()
277 private void invalidate(float centerX, float centerY, float radius) { in invalidate() argument
278 invalidate((int) (centerX - radius - 0.5f), (int) (centerY - radius - 0.5f), in invalidate()
279 (int) (centerX + radius + 0.5f), (int) (centerY + radius + 0.5f)); in invalidate()
/packages/apps/Camera2/src/com/android/camera/widget/
DRoundedThumbnailView.java300 final float centerY = canvas.getHeight() / 2; in onDraw() local
315 canvas.scale(scaleRatio, scaleRatio, centerX, centerY); in onDraw()
319 centerY, in onDraw()
334 canvas.drawCircle(centerX, centerY, mCurrentRippleRingDiameter / 2, mRipplePaint); in onDraw()
342 canvas.scale(scaleRatio, scaleRatio, centerX, centerY); in onDraw()
350 centerY, in onDraw()
356 canvas.drawCircle(centerX, centerY, in onDraw()
366 canvas.scale(scaleRatio, scaleRatio, centerX, centerY); in onDraw()
370 canvas.drawCircle(centerX, centerY, in onDraw()
/packages/services/Telephony/src/com/android/phone/
DEmergencyActionGroup.java248 int centerY = v.getTop() + v.getHeight() / 2; in revealTheButton() local
252 centerY, in revealTheButton()
255 + Math.max(centerY, mSelectedContainer.getHeight() - centerY)); in revealTheButton()
292 int centerY = v.getTop() + v.getHeight() / 2; in hideTheButton() local
296 centerY, in hideTheButton()
298 + Math.max(centerY, mSelectedContainer.getHeight() - centerY), in hideTheButton()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DImageRedEye.java121 canvas.drawLine(fullRect.left, fullRect.centerY(), in drawPoint()
122 fullRect.right, fullRect.centerY(), paint); in drawPoint()
127 float dy = fullRect.centerY() - dh / 2; in drawPoint()
132 canvas.drawLine(drawRect.left, drawRect.centerY(), in drawPoint()
133 drawRect.right, drawRect.centerY(), paint); in drawPoint()
134 canvas.drawCircle(drawRect.centerX(), drawRect.centerY(), in drawPoint()
DImageShow.java394 float centerY = dp.centerY(); in drawImageAndAnimate() local
439 canvas.rotate(master.getAnimRotationValue(), centerX, centerY); in drawImageAndAnimate() local
440 canvas.scale(finalScale, finalScale, centerX, centerY); in drawImageAndAnimate()
456 canvas.scale(1, master.getAnimRotationValue(), centerX, centerY); in drawImageAndAnimate()
458 canvas.scale(1, master.getAnimRotationValue(), centerX, centerY); in drawImageAndAnimate()
460 canvas.scale(master.getAnimRotationValue(), 1, centerX, centerY); in drawImageAndAnimate() local
462 canvas.scale(master.getAnimRotationValue(), 1, centerX, centerY); in drawImageAndAnimate() local
466 canvas.scale(master.getAnimRotationValue(), 1, centerX, centerY); in drawImageAndAnimate() local
468 canvas.scale(master.getAnimRotationValue(), 1, centerX, centerY); in drawImageAndAnimate() local
470 canvas.scale(1, master.getAnimRotationValue(), centerX, centerY); in drawImageAndAnimate()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/
DCropDrawingUtils.java76 float centerX, float centerY) { in drawIndicator() argument
78 int top = (int) centerY - indicatorSize / 2; in drawIndicator()
107 drawIndicator(canvas, cropIndicator, indicatorSize, bounds.left, bounds.centerY()); in drawIndicators()
110 drawIndicator(canvas, cropIndicator, indicatorSize, bounds.right, bounds.centerY()); in drawIndicators()
120 float cy = cropBounds.centerY(); in drawWallpaperSelectionFrame()
176 dst.setRotate(rotation, image.centerX(), image.centerY()); in setImageToScreenMatrix()
182 boolean rot = dst.preRotate(rotation, image.centerX(), image.centerY()); in setImageToScreenMatrix()
/packages/apps/PackageInstaller/src/android/support/wearable/view/
DCircledImageView.java224 mPaint.setShader(new RadialGradient(mOval.centerX(), mOval.centerY(), radius, in onDraw()
227 canvas.drawCircle(mOval.centerX(), mOval.centerY(), radius, mPaint); in onDraw()
235 mOval.set(mOval.centerX() - circleRadius, mOval.centerY() - circleRadius, in onDraw()
236 mOval.centerX() + circleRadius, mOval.centerY() + circleRadius); in onDraw()
264 float centerY = mOval.centerY(); in onDraw() local
266 canvas.drawCircle(centerX, centerY, circleRadius, mPaint); in onDraw()
/packages/apps/Camera2/src/com/android/camera/ui/
DProgressRenderer.java85 public void onDraw(Canvas canvas, int centerX, int centerY) { in onDraw() argument
89 mArcBounds = new RectF(centerX - mProgressRadius, centerY - mProgressRadius, centerX in onDraw()
91 centerY + mProgressRadius); in onDraw()
93 canvas.drawCircle(centerX, centerY, mProgressRadius, mProgressBasePaint); in onDraw()
/packages/apps/Dialer/java/com/android/incallui/answer/impl/affordance/
DSwipeButtonView.java56 private int centerY; field in SwipeButtonView
135 centerY = getHeight() / 2; in onLayout()
167 canvas.drawCircle(centerX, centerY, circleRadius, circlePaint); in drawBackgroundCircle()
221 previewView, getLeft() + centerX, getTop() + centerY, circleRadius, maxCircleSize); in finishAnimation()
245 float height = tempPoint[1] + centerY; in getMaxCircleSize()
312 getTop() + centerY, in setCircleRadius()
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/
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()
222 mRenderer.centerY = Math.round(mCenterY); in updateCenter()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/bots/
DGestureBot.java61 double diffY = endCoord.centerY() - startCoord.centerY(); in gestureSelectFiles()
66 points[i] = new Point(startCoord.centerX(), startCoord.centerY()); in gestureSelectFiles()
72 int newY = startCoord.centerY() + (int) (diffY / TRAVELING_STEPS * i); in gestureSelectFiles()
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/
DLetterTileDrawable.java127 (int) (destRect.centerY() - halfLength + mOffset * destRect.height()), in drawDrawableOnCanvas()
129 (int) (destRect.centerY() + halfLength + mOffset * destRect.height())); in drawDrawableOnCanvas()
146 canvas.drawCircle(bounds.centerX(), bounds.centerY(), minDimension / 2, sPaint); in drawLetterTile()
165 bounds.centerY() + mOffset * bounds.height() + sRect.height() / 2, in drawLetterTile()
/packages/apps/Contacts/src/com/android/contacts/lettertiles/
DLetterTileDrawable.java124 (int) (destRect.centerY() - halfLength + mOffset * destRect.height()), in drawBitmap()
126 (int) (destRect.centerY() + halfLength + mOffset * destRect.height())); in drawBitmap()
147 canvas.drawCircle(bounds.centerX(), bounds.centerY(), minDimension / 2, sPaint); in drawLetterTile()
168 bounds.centerY() + mOffset * bounds.height() - sRect.exactCenterY(), in drawLetterTile()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/accessibility/
DMainKeyboardAccessibilityDelegate.java214 final int y = key.getHitBox().centerY(); in performClickOn()
231 final int y = key.getHitBox().centerY(); in onHoverEnterTo()
252 final int y = key.getHitBox().centerY(); in onHoverExitFrom()
269 final int y = key.getHitBox().centerY(); in performLongClickOn()
/packages/apps/Camera2/src/com/android/camera/captureintent/
DPreviewTransformCalculator.java48 PointF previewViewCenter = new PointF(previewViewRect.centerX(), previewViewRect.centerY()); in toTransformMatrix()
63 new PointF(PreviewBufferRect.centerX(), PreviewBufferRect.centerY()); in toTransformMatrix()
99 new PointF(scaledPreviewStreamRect.centerX(), scaledPreviewStreamRect.centerY()); in toTransformMatrix()
/packages/apps/Gallery/src/com/android/camera/
DImageViewTouchBase.java307 protected void zoomTo(float scale, float centerX, float centerY) { in zoomTo() argument
315 mSuppMatrix.postScale(deltaScale, deltaScale, centerX, centerY); in zoomTo()
321 final float centerY, final float durationMs) { in zoomTo() argument
331 zoomTo(target, centerX, centerY); in zoomTo()
/packages/apps/Gallery2/src/com/android/photos/views/
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()
DTiledImageView.java65 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()
/packages/apps/WallpaperPicker/src/com/android/photos/views/
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()
/packages/apps/Dialer/java/com/android/contacts/common/lettertiles/
DLetterTileDrawable.java149 (int) (destRect.centerY() - halfLength + offset * destRect.height()), in getScaledBounds()
151 (int) (destRect.centerY() + halfLength + offset * destRect.height())); in getScaledBounds()
206 canvas.drawCircle(bounds.centerX(), bounds.centerY(), minDimension / 2, mPaint); in drawLetterTile()
230 bounds.centerY() + mOffset * bounds.height() - mRect.exactCenterY(), in drawLetterTile()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/
DScrollController.java878 final public void setScrollCenter(int centerX, int centerY) { in setScrollCenter() argument
880 vertical.updateScrollCenter(centerY, false); in setScrollCenter()
883 centerY = vertical.getScrollCenter(); in setScrollCenter()
885 mFlingScroller.setFinalY(centerY); in setScrollCenter()
888 mScrollScroller.setFinalY(centerY); in setScrollCenter()

1234