/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/services/Telephony/src/com/android/phone/ |
D | EmergencyShortcutButton.java | 210 int centerY = mCallNumberInfoView.getTop() + mCallNumberInfoView.getHeight() / 2; in revealSelectedButton() local 214 centerY, in revealSelectedButton() 217 + Math.max(centerY, mConfirmView.getHeight() - centerY)); in revealSelectedButton() 233 int centerY = mConfirmView.getTop() + mConfirmView.getHeight() / 2; in hideSelectedButton() local 237 centerY, in hideSelectedButton() 239 + Math.max(centerY, mCallNumberInfoView.getHeight() - centerY), in hideSelectedButton()
|
D | EmergencyInfoGroup.java | 233 int centerY = mEmergencyInfoButton.getTop() + mEmergencyInfoButton.getHeight() / 2; in revealSelectedButton() local 237 centerY, in revealSelectedButton() 240 + Math.max(centerY, mEmergencyInfoConfirmButton.getHeight() - centerY)); in revealSelectedButton() 257 int centerY = in hideSelectedButton() local 262 centerY, in hideSelectedButton() 264 + Math.max(centerY, mEmergencyInfoButton.getHeight() - centerY), in hideSelectedButton()
|
D | EmergencyActionGroup.java | 187 int centerY = v.getTop() + v.getHeight() / 2; in revealTheButton() local 191 centerY, in revealTheButton() 194 + Math.max(centerY, mSelectedContainer.getHeight() - centerY)); in revealTheButton() 268 int centerY = v.getTop() + v.getHeight() / 2; in hideTheButton() local 272 centerY, in hideTheButton() 274 + Math.max(centerY, mSelectedContainer.getHeight() - centerY), in hideTheButton()
|
/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/DeskClock/src/com/android/deskclock/widget/ |
D | CircleView.kt | 170 fun setCenterY(centerY: Float): CircleView { in setCenterY() 172 if (oldCenterY != centerY) { in setCenterY() 173 mCenterY = centerY in setCenterY() 177 invalidate(mCenterX, centerY, radius) in setCenterY() 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 | 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/inputmethods/LeanbackIME/src/com/android/inputmethod/leanback/voice/ |
D | BitmapSoundLevelView.java | 246 int centerY = mCenterTranslationY + (getWidth() / 2); in onDraw() local 252 centerY - size, in onDraw() 254 centerY + size); in onDraw() 264 centerY - size, in onDraw() 266 centerY + 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/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 | 395 float centerY = dp.centerY(); 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 | 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/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/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/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/Launcher3/tests/tapl/com/android/launcher3/tapl/ |
D | OverviewTask.java | 54 final int centerY = taskBounds.centerY(); in dismiss() local 55 mLauncher.linearGesture(centerX, centerY, centerX, 0, 10); in dismiss()
|
/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/Car/libs/car-apps-common/src/com/android/car/apps/common/ |
D | LetterTileDrawable.java | 144 (int) (destRect.centerY() - halfLength + mOffset * destRect.height()), in drawDrawableOnCanvas() 146 (int) (destRect.centerY() + halfLength + mOffset * destRect.height())); in drawDrawableOnCanvas() 163 canvas.drawCircle(bounds.centerX(), bounds.centerY(), minDimension / 2, sPaint); in drawLetterTile() 178 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()
|