Home
last modified time | relevance | path

Searched refs:mYCenter (Results 1 – 4 of 4) sorted by relevance

/frameworks/opt/datetimepicker/src/com/android/datetimepicker/time/
DCircleView.java44 private int mYCenter; field in CircleView
100 mYCenter = getHeight() / 2; in onDraw()
101 mCircleRadius = (int) (Math.min(mXCenter, mYCenter) * mCircleRadiusMultiplier); in onDraw()
108 mYCenter -= amPmCircleRadius / 2; in onDraw()
116 canvas.drawCircle(mXCenter, mYCenter, mCircleRadius, mPaint); in onDraw()
120 canvas.drawCircle(mXCenter, mYCenter, 2, mPaint); in onDraw()
DRadialSelectorView.java64 private int mYCenter; field in RadialSelectorView
202 (pointY - mYCenter)*(pointY - mYCenter) + in getDegreesFromCoords()
252 float opposite = Math.abs(pointY - mYCenter); in getDegreesFromCoords()
258 boolean topSide = (pointY < mYCenter); in getDegreesFromCoords()
280 mYCenter = getHeight() / 2; in onDraw()
281 mCircleRadius = (int) (Math.min(mXCenter, mYCenter) * mCircleRadiusMultiplier); in onDraw()
288 mYCenter -= amPmCircleRadius / 2; in onDraw()
299 int pointY = mYCenter - (int) (mLineLength * Math.cos(mSelectionRadians)); in onDraw()
315 pointY = mYCenter - (int) (lineLength * Math.cos(mSelectionRadians)); in onDraw()
321 canvas.drawLine(mXCenter, mYCenter, pointX, pointY, mPaint); in onDraw()
DRadialTextsView.java60 private int mYCenter; field in RadialTextsView
182 mYCenter = getHeight() / 2; in onDraw()
183 mCircleRadius = Math.min(mXCenter, mYCenter) * mCircleRadiusMultiplier; in onDraw()
189 mYCenter -= amPmCircleRadius / 2; in onDraw()
210 calculateGridSizes(numbersRadius, mXCenter, mYCenter, in onDraw()
216 calculateGridSizes(innerNumbersRadius, mXCenter, mYCenter, in onDraw()
/frameworks/base/core/java/android/widget/
DRadialTimePickerView.java167 private int mYCenter; field in RadialTimePickerView
707 mYCenter = getHeight() / 2; in updateLayoutData()
709 final int min = Math.min(mXCenter, mYCenter); in updateLayoutData()
777 canvas.drawCircle(mXCenter, mYCenter, mCircleRadius[HOURS], mPaintBackground); in drawCircleBackground()
781 canvas.drawCircle(mXCenter, mYCenter, CENTER_RADIUS, mPaintCenter); in drawCenter()
801 int pointY = mYCenter - (int) (mLineLength[index] * Math.cos(selectionRadians)); in drawSelector()
829 pointY = mYCenter - (int) (lineLength * Math.cos(selectionRadians)); in drawSelector()
838 canvas.drawLine(mXCenter, mYCenter, pointX, pointY, paint); in drawSelector()
844 canvas.drawCircle(mXCenter, mYCenter, outerRadius, mPaintDebug); in drawDebug()
848 canvas.drawCircle(mXCenter, mYCenter, innerRadius, mPaintDebug); in drawDebug()
[all …]