/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/LeanbackIME/src/com/android/inputmethod/leanback/voice/ |
D | BitmapSoundLevelView.java | 245 int centerX = mCenterTranslationX + (getWidth() / 2); in onDraw() local 248 int size = ((centerX - mMinimumLevelSize) * mPeakLevel) / 100 + mMinimumLevelSize; in onDraw() 251 centerX - size, in onDraw() 253 centerX + size, in onDraw() 260 ((centerX - mMinimumLevelSize) * mCurrentVolume) / 100 + mMinimumLevelSize; in onDraw() 263 centerX - size, in onDraw() 265 centerX + size, in onDraw() 270 canvas.drawCircle(centerX, centerY, mMinimumLevelSize - in onDraw() 276 canvas.drawCircle(centerX, centerY, centerX - MIC_LEVEL_GUIDELINE_OFFSET, mPaint); in onDraw()
|
/packages/services/Telephony/src/com/android/phone/ |
D | EmergencyShortcutButton.java | 209 int centerX = mCallNumberInfoView.getLeft() + mCallNumberInfoView.getWidth() / 2; in revealSelectedButton() local 213 centerX, in revealSelectedButton() 216 Math.max(centerX, mConfirmView.getWidth() - centerX) in revealSelectedButton() 232 int centerX = mConfirmView.getLeft() + mConfirmView.getWidth() / 2; in hideSelectedButton() local 236 centerX, in hideSelectedButton() 238 Math.max(centerX, mCallNumberInfoView.getWidth() - centerX) in hideSelectedButton()
|
D | EmergencyInfoGroup.java | 232 int centerX = mEmergencyInfoButton.getLeft() + mEmergencyInfoButton.getWidth() / 2; in revealSelectedButton() local 236 centerX, in revealSelectedButton() 239 Math.max(centerX, mEmergencyInfoConfirmButton.getWidth() - centerX) in revealSelectedButton() 255 int centerX = in hideSelectedButton() local 261 centerX, in hideSelectedButton() 263 Math.max(centerX, mEmergencyInfoButton.getWidth() - centerX) in hideSelectedButton()
|
D | EmergencyActionGroup.java | 186 int centerX = v.getLeft() + v.getWidth() / 2; in revealTheButton() local 190 centerX, in revealTheButton() 193 Math.max(centerX, mSelectedContainer.getWidth() - centerX) in revealTheButton() 267 int centerX = v.getLeft() + v.getWidth() / 2; in hideTheButton() local 271 centerX, in hideTheButton() 273 Math.max(centerX, mSelectedContainer.getWidth() - centerX) in hideTheButton()
|
/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/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/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/apps/DeskClock/src/com/android/deskclock/widget/ |
D | CircleView.kt | 147 fun setCenterX(centerX: Float): CircleView { in setCenterX() 149 if (oldCenterX != centerX) { in setCenterX() 150 mCenterX = centerX in setCenterX() 154 invalidate(centerX, mCenterY, radius) in setCenterX() 220 private fun invalidate(centerX: Float, centerY: Float, radius: Float) { in invalidate() 221 invalidate((centerX - radius - 0.5f).toInt(), (centerY - radius - 0.5f).toInt(), in invalidate() 222 (centerX + radius + 0.5f).toInt(), (centerY + radius + 0.5f).toInt()) in invalidate()
|
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 | 394 float centerX = dp.centerX(); in drawImageAndAnimate() local 440 canvas.rotate(primary.getAnimRotationValue(), centerX, centerY); in drawImageAndAnimate() local 441 canvas.scale(finalScale, finalScale, centerX, centerY); in drawImageAndAnimate() 457 canvas.scale(1, primary.getAnimRotationValue(), centerX, centerY); in drawImageAndAnimate() 459 canvas.scale(1, primary.getAnimRotationValue(), centerX, centerY); in drawImageAndAnimate() 461 canvas.scale(primary.getAnimRotationValue(), 1, centerX, centerY); in drawImageAndAnimate() local 463 canvas.scale(primary.getAnimRotationValue(), 1, centerX, centerY); in drawImageAndAnimate() local 467 canvas.scale(primary.getAnimRotationValue(), 1, centerX, centerY); in drawImageAndAnimate() local 469 canvas.scale(primary.getAnimRotationValue(), 1, centerX, centerY); in drawImageAndAnimate() local 471 canvas.scale(1, primary.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 | 53 final int centerX = taskBounds.centerX(); in dismiss() local 55 mLauncher.linearGesture(centerX, centerY, centerX, 0, 10); in dismiss()
|
/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/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/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 | 143 destRect.set(destRect.centerX() - halfLength, in drawDrawableOnCanvas() 145 destRect.centerX() + halfLength, in drawDrawableOnCanvas() 163 canvas.drawCircle(bounds.centerX(), bounds.centerY(), minDimension / 2, sPaint); in drawLetterTile() 177 canvas.drawText(mLetters, 0, mLetters.length(), 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()
|