/packages/apps/Dialer/java/com/android/incallui/incall/impl/ |
D | InCallPaginator.java | 114 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/ |
D | proximity_info.cpp | 132 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/ |
D | TileImageView.java | 205 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 …]
|
D | PhotoView.java | 689 && 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/ |
D | CircleView.java | 220 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/ |
D | RoundedThumbnailView.java | 300 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/ |
D | EmergencyActionGroup.java | 248 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/ |
D | ImageRedEye.java | 121 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()
|
D | ImageShow.java | 394 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/ |
D | CropDrawingUtils.java | 76 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/ |
D | CircledImageView.java | 224 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/ |
D | ProgressRenderer.java | 85 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/ |
D | SwipeButtonView.java | 56 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/ |
D | CropView.java | 102 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/ |
D | GestureBot.java | 61 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/ |
D | LetterTileDrawable.java | 127 (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/ |
D | LetterTileDrawable.java | 124 (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/ |
D | MainKeyboardAccessibilityDelegate.java | 214 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/ |
D | PreviewTransformCalculator.java | 48 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/ |
D | ImageViewTouchBase.java | 307 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/ |
D | TiledImageRenderer.java | 240 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()
|
D | TiledImageView.java | 65 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/ |
D | TiledImageRenderer.java | 240 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/ |
D | LetterTileDrawable.java | 149 (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/ |
D | ScrollController.java | 878 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()
|