/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/services/Telephony/src/com/android/phone/ |
D | EmergencyShortcutButton.java | 231 int centerY = mCallNumberInfoView.getTop() + mCallNumberInfoView.getHeight() / 2; in revealSelectedButton() local 235 centerY, in revealSelectedButton() 238 + Math.max(centerY, mConfirmView.getHeight() - centerY)); in revealSelectedButton() 254 int centerY = mConfirmView.getTop() + mConfirmView.getHeight() / 2; in hideSelectedButton() local 258 centerY, in hideSelectedButton() 260 + Math.max(centerY, mCallNumberInfoView.getHeight() - centerY), in hideSelectedButton()
|
D | EmergencyInfoGroup.java | 236 int centerY = mEmergencyInfoButton.getTop() + mEmergencyInfoButton.getHeight() / 2; in revealSelectedButton() local 240 centerY, in revealSelectedButton() 243 + Math.max(centerY, mEmergencyInfoConfirmButton.getHeight() - centerY)); in revealSelectedButton() 260 int centerY = in hideSelectedButton() local 265 centerY, in hideSelectedButton() 267 + Math.max(centerY, mEmergencyInfoButton.getHeight() - centerY), in hideSelectedButton()
|
D | EmergencyActionGroup.java | 189 int centerY = v.getTop() + v.getHeight() / 2; in revealTheButton() local 193 centerY, in revealTheButton() 196 + Math.max(centerY, mSelectedContainer.getHeight() - centerY)); in revealTheButton() 270 int centerY = v.getTop() + v.getHeight() / 2; in hideTheButton() local 274 centerY, in hideTheButton() 276 + Math.max(centerY, mSelectedContainer.getHeight() - centerY), in hideTheButton()
|
/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/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/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/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/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/Dialer/java/com/android/dialer/voicemail/settings/ |
D | RecordButton.java | 79 float centerY = viewRadius + trackWidth / 2f; in onSizeChanged() local 83 centerX - viewRadius, centerY - viewRadius, centerX + viewRadius, centerY + viewRadius); in onSizeChanged() 88 (int) centerY - centerIconRadius, in onSizeChanged() 90 (int) centerY + centerIconRadius); in onSizeChanged()
|
/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/PermissionController/src/android/support/wearable/view/ |
D | CircledImageView.java | 223 mPaint.setShader(new RadialGradient(mOval.centerX(), mOval.centerY(), radius, in onDraw() 226 canvas.drawCircle(mOval.centerX(), mOval.centerY(), radius, mPaint); in onDraw() 234 mOval.set(mOval.centerX() - circleRadius, mOval.centerY() - circleRadius, in onDraw() 235 mOval.centerX() + circleRadius, mOval.centerY() + circleRadius); in onDraw() 263 float centerY = mOval.centerY(); in onDraw() local 265 canvas.drawCircle(centerX, centerY, circleRadius, mPaint); 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/Launcher3/tests/tapl/com/android/launcher3/tapl/ |
D | OverviewTask.java | 56 final int centerY = taskBounds.centerY(); in dismiss() local 57 mLauncher.linearGesture(centerX, centerY, centerX, 0, 10); in dismiss()
|
/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/DocumentsUI/tests/common/com/android/documentsui/bots/ |
D | GestureBot.java | 64 double diffY = endCoord.centerY() - startCoord.centerY(); in gestureSelectFiles() 69 points[i] = new Point(startCoord.centerX(), startCoord.centerY()); in gestureSelectFiles() 75 int newY = startCoord.centerY() + (int) (diffY / TRAVELING_STEPS * i); in gestureSelectFiles()
|
/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/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/Dialer/java/com/android/dialer/callcomposer/camera/camerafocus/ |
D | PieRenderer.java | 94 private int centerY; field in PieRenderer 138 void onPieOpened(int centerX, int centerY); in onPieOpened() argument 212 setCenter(centerX, centerY); in showInCenter() 622 centerY = (b - t) / 2; in layout() 624 focusY = centerY; in layout() 627 setCenter(centerX, centerY); in layout() 768 focusY = centerY; in run()
|
/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/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()
|