/packages/apps/Dialer/java/com/android/incallui/incall/impl/ |
D | InCallPaginator.java | 113 int centerX = getWidth() / 2; in onDraw() local 125 float trackLeft = centerX - indicatorOffset - dotRadius; in onDraw() 135 centerX + indicatorOffset, centerY, indicatorRadius, Path.Direction.CW); in onDraw() 137 float trackRight = centerX + indicatorOffset + dotRadius; in onDraw() 147 centerX - indicatorOffset, centerY, indicatorRadius, Path.Direction.CW); in onDraw() 154 centerX - outerOffset, in onDraw() 156 centerX - innerOffset, in onDraw() 162 centerX + innerOffset, in onDraw() 164 centerX + outerOffset, in onDraw() 177 canvas.drawCircle(centerX + activeDotOffset, centerY, dotRadius, activePaint); in onDraw()
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/layout/ |
D | proximity_info.cpp | 131 const float centerX = static_cast<float>(getKeyCenterXOfKeyIdG(keyId, x, isGeometric)); in getNormalizedSquaredDistanceFromCenterFloatG() local 135 return ProximityInfoUtils::getSquaredDistanceFloat(centerX, centerY, touchX, touchY) in getNormalizedSquaredDistanceFromCenterFloatG() 200 int centerX = (hasTouchPositionCorrectionData()) ? static_cast<int>(mSweetSpotCenterXs[keyId]) in getKeyCenterXOfKeyIdG() local 208 if (referencePointX < centerX - keyWidthHalfDiff) { in getKeyCenterXOfKeyIdG() 209 centerX -= keyWidthHalfDiff; in getKeyCenterXOfKeyIdG() 210 } else if (referencePointX > centerX + keyWidthHalfDiff) { in getKeyCenterXOfKeyIdG() 211 centerX += keyWidthHalfDiff; in getKeyCenterXOfKeyIdG() 213 centerX = referencePointX; in getKeyCenterXOfKeyIdG() 216 return centerX; in getKeyCenterXOfKeyIdG()
|
/packages/services/Telephony/src/com/android/phone/ |
D | EmergencyShortcutButton.java | 230 int centerX = mCallNumberInfoView.getLeft() + mCallNumberInfoView.getWidth() / 2; in revealSelectedButton() local 234 centerX, in revealSelectedButton() 237 Math.max(centerX, mConfirmView.getWidth() - centerX) in revealSelectedButton() 253 int centerX = mConfirmView.getLeft() + mConfirmView.getWidth() / 2; in hideSelectedButton() local 257 centerX, in hideSelectedButton() 259 Math.max(centerX, mCallNumberInfoView.getWidth() - centerX) in hideSelectedButton()
|
D | EmergencyInfoGroup.java | 235 int centerX = mEmergencyInfoButton.getLeft() + mEmergencyInfoButton.getWidth() / 2; in revealSelectedButton() local 239 centerX, in revealSelectedButton() 242 Math.max(centerX, mEmergencyInfoConfirmButton.getWidth() - centerX) in revealSelectedButton() 258 int centerX = in hideSelectedButton() local 264 centerX, in hideSelectedButton() 266 Math.max(centerX, mEmergencyInfoButton.getWidth() - centerX) in hideSelectedButton()
|
D | EmergencyActionGroup.java | 188 int centerX = v.getLeft() + v.getWidth() / 2; in revealTheButton() local 192 centerX, in revealTheButton() 195 Math.max(centerX, mSelectedContainer.getWidth() - centerX) in revealTheButton() 269 int centerX = v.getLeft() + v.getWidth() / 2; in hideTheButton() local 273 centerX, in hideTheButton() 275 Math.max(centerX, mSelectedContainer.getWidth() - centerX) in hideTheButton()
|
/packages/apps/Settings/src/com/android/settings/widget/ |
D | DotsPageIndicator.java | 397 float centerX, in getUnselectedPath() argument 416 unselectedDotLeftPath.moveTo(centerX, dotBottomY); in getUnselectedPath() 419 rectF.set(centerX - dotRadius, dotTopY, centerX + dotRadius, dotBottomY); in getUnselectedPath() 423 endX1 = centerX + dotRadius + (joiningFraction * gap); in getUnselectedPath() 425 controlX1 = centerX + halfDotRadius; in getUnselectedPath() 432 endX2 = centerX; in getUnselectedPath() 436 controlX2 = centerX + halfDotRadius; in getUnselectedPath() 478 unselectedDotPath.moveTo(centerX, dotBottomY); in getUnselectedPath() 481 rectF.set(centerX - dotRadius, dotTopY, centerX + dotRadius, dotBottomY); in getUnselectedPath() 485 endX1 = centerX + dotRadius + (gap / 2); in getUnselectedPath() [all …]
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/ |
D | DotsPageIndicator.java | 397 float centerX, in getUnselectedPath() argument 416 unselectedDotLeftPath.moveTo(centerX, dotBottomY); in getUnselectedPath() 419 rectF.set(centerX - dotRadius, dotTopY, centerX + dotRadius, dotBottomY); in getUnselectedPath() 423 endX1 = centerX + dotRadius + (joiningFraction * gap); in getUnselectedPath() 425 controlX1 = centerX + halfDotRadius; in getUnselectedPath() 432 endX2 = centerX; in getUnselectedPath() 436 controlX2 = centerX + halfDotRadius; in getUnselectedPath() 478 unselectedDotPath.moveTo(centerX, dotBottomY); in getUnselectedPath() 481 rectF.set(centerX - dotRadius, dotTopY, centerX + dotRadius, dotBottomY); in getUnselectedPath() 485 endX1 = centerX + dotRadius + (gap / 2); in getUnselectedPath() [all …]
|
/packages/apps/DeskClock/src/com/android/deskclock/widget/ |
D | CircleView.java | 197 public CircleView setCenterX(float centerX) { in setCenterX() argument 199 if (oldCenterX != centerX) { in setCenterX() 200 mCenterX = centerX; in setCenterX() 204 invalidate(centerX, mCenterY, mRadius); in setCenterX() 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 | 119 canvas.drawLine(fullRect.centerX(), fullRect.top, in drawPoint() 120 fullRect.centerX(), fullRect.bottom, paint); in drawPoint() 126 float dx = fullRect.centerX() - dw / 2; in drawPoint() 130 canvas.drawLine(drawRect.centerX(), drawRect.top, in drawPoint() 131 drawRect.centerX(), drawRect.bottom, paint); in drawPoint() 134 canvas.drawCircle(drawRect.centerX(), drawRect.centerY(), in drawPoint()
|
D | ImageShow.java | 393 float centerX = dp.centerX(); 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 | 299 final float centerX = canvas.getWidth() / 2; in onDraw() local 315 canvas.scale(scaleRatio, scaleRatio, centerX, centerY); in onDraw() 318 centerX, in onDraw() 334 canvas.drawCircle(centerX, centerY, mCurrentRippleRingDiameter / 2, mRipplePaint); in onDraw() 342 canvas.scale(scaleRatio, scaleRatio, centerX, centerY); in onDraw() 349 centerX, 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() 224 mOffsetX = Math.round(width / 2f + (range.left - centerX) * scale); in layoutTiles() 230 mOffsetX = Math.round(width / 2f - centerX * 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() 357 mCenterX = centerX; in setPosition() 361 layoutTiles(centerX, centerY, scale, rotation); in setPosition() 419 int centerX = getWidth() / 2, centerY = getHeight() / 2; in render() local [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/ |
D | CropDrawingUtils.java | 76 float centerX, float centerY) { in drawIndicator() argument 77 int left = (int) centerX - indicatorSize / 2; in drawIndicator() 101 drawIndicator(canvas, cropIndicator, indicatorSize, bounds.centerX(), bounds.top); in drawIndicators() 104 … drawIndicator(canvas, cropIndicator, indicatorSize, bounds.centerX(), bounds.bottom); in drawIndicators() 119 float cx = cropBounds.centerX(); 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/Launcher3/tests/tapl/com/android/launcher3/tapl/ |
D | OverviewTask.java | 55 final int centerX = taskBounds.centerX(); in dismiss() local 57 mLauncher.linearGesture(centerX, centerY, centerX, 0, 10); in dismiss()
|
/packages/apps/Dialer/java/com/android/dialer/voicemail/settings/ |
D | RecordButton.java | 78 float centerX = width / 2f; in onSizeChanged() local 83 centerX - viewRadius, centerY - viewRadius, centerX + viewRadius, centerY + viewRadius); in onSizeChanged() 87 (int) centerX - centerIconRadius, in onSizeChanged() 89 (int) centerX + 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() 93 canvas.drawCircle(centerX, centerY, mProgressRadius, mProgressBasePaint); in onDraw()
|
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/util/ |
D | RectFSpringAnim.java | 109 mCurrentCenterX = mStartRect.centerX(); in RectFSpringAnim() 119 if (mRectXAnim != null && mRectXAnim.getTargetPosition() != mTargetRect.centerX()) { 120 mRectXAnim.updatePosition(mCurrentCenterX, mTargetRect.centerX()); 142 OnAnimationEndListener onXEndListener = ((animation, canceled, centerX, velocityX) -> { 152 float endX = mTargetRect.centerX();
|
/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() 262 float centerX = mOval.centerX(); 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 | 55 private int centerX; field in SwipeButtonView 134 centerX = getWidth() / 2; in onLayout() 167 canvas.drawCircle(centerX, centerY, circleRadius, circlePaint); in drawBackgroundCircle() 221 previewView, getLeft() + centerX, getTop() + centerY, circleRadius, maxCircleSize); in finishAnimation() 243 float width = tempPoint[0] + centerX; in getMaxCircleSize() 311 getLeft() + centerX, in setCircleRadius()
|
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/ |
D | CropView.java | 100 float centerX = (width / 2f - rendererCenter[0] + (imageWidth - width) / 2f) in getEdgesHelper() local 104 float leftEdge = centerX - imageWidth / 2f * scale; in getEdgesHelper() 105 float rightEdge = centerX + imageWidth / 2f * scale; in getEdgesHelper() 138 mCenterX = mRenderer.centerX; in setTileSource() 221 mRenderer.centerX = Math.round(mCenterX); in updateCenter()
|
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/ |
D | LetterTileDrawable.java | 126 destRect.set(destRect.centerX() - halfLength, in drawDrawableOnCanvas() 128 destRect.centerX() + halfLength, in drawDrawableOnCanvas() 146 canvas.drawCircle(bounds.centerX(), bounds.centerY(), minDimension / 2, sPaint); in drawLetterTile() 164 canvas.drawText(sFirstChar, 0, 1, bounds.centerX(), in drawLetterTile()
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/bots/ |
D | GestureBot.java | 63 double diffX = endCoord.centerX() - startCoord.centerX(); in gestureSelectFiles() 69 points[i] = new Point(startCoord.centerX(), startCoord.centerY()); in gestureSelectFiles() 74 int newX = startCoord.centerX() + (int) (diffX / TRAVELING_STEPS * i); in gestureSelectFiles()
|
/packages/apps/Contacts/src/com/android/contacts/lettertiles/ |
D | LetterTileDrawable.java | 123 destRect.set(destRect.centerX() - halfLength, in drawBitmap() 125 destRect.centerX() + halfLength, in drawBitmap() 147 canvas.drawCircle(bounds.centerX(), bounds.centerY(), minDimension / 2, sPaint); in drawLetterTile() 167 canvas.drawText(sFirstChar, 0, 1, bounds.centerX(), 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 | 93 private int centerX; field in PieRenderer 138 void onPieOpened(int centerX, int centerY); in onPieOpened() argument 212 setCenter(centerX, centerY); in showInCenter() 621 centerX = (r - l) / 2; in layout() 623 focusX = centerX; in layout() 627 setCenter(centerX, centerY); in layout() 767 focusX = centerX; in run()
|