Home
last modified time | relevance | path

Searched refs:radius (Results 1 – 25 of 54) sorted by relevance

123

/packages/apps/Launcher3/src/com/android/launcher3/graphics/
DIconShape.java98 public abstract void drawShape(Canvas canvas, float offsetX, float offsetY, float radius, in drawShape() argument
101 public abstract void addToPath(Path path, float offsetX, float offsetY, float radius); in addToPath() argument
139 public final void drawShape(Canvas canvas, float offsetX, float offsetY, float radius,
142 addToPath(mTmpPath, offsetX, offsetY, radius);
188 public void drawShape(Canvas canvas, float offsetX, float offsetY, float radius, Paint p) {
189 canvas.drawCircle(radius + offsetX, radius + offsetY, radius, p);
193 public void addToPath(Path path, float offsetX, float offsetY, float radius) {
194 path.addCircle(radius + offsetX, radius + offsetY, radius, Path.Direction.CW);
220 public void drawShape(Canvas canvas, float offsetX, float offsetY, float radius, Paint p) {
221 float cx = radius + offsetX;
[all …]
/packages/apps/Launcher3/iconloaderlib/src/com/android/launcher3/icons/
DShadowGenerator.java112 public float radius; field in ShadowGenerator.Builder
129 radius = r; in createPill()
132 int centerY = Math.round(radius + shadowBlur + keyShadowDistance); in createPill()
150 c.drawRoundRect(bounds, radius, radius, p); in drawShadow()
155 c.drawRoundRect(bounds, radius, radius, p); in drawShadow()
162 c.drawRoundRect(bounds, radius, radius, p); in drawShadow()
166 c.drawRoundRect(bounds, radius, radius, p); in drawShadow()
/packages/apps/DeskClock/src/com/android/deskclock/timer/
DTimerCircleView.java101 final float radius = Math.min(xCenter, yCenter) - mRadiusOffset; in onDraw() local
111 canvas.drawCircle(xCenter, yCenter, radius, mPaint); in onDraw()
119 canvas.drawCircle(xCenter, yCenter, radius, mPaint); in onDraw()
125 mArcRect.top = yCenter - radius; in onDraw()
126 mArcRect.bottom = yCenter + radius; in onDraw()
127 mArcRect.left = xCenter - radius; in onDraw()
128 mArcRect.right = xCenter + radius; in onDraw()
143 final float dotX = xCenter + (float) (radius * Math.cos(dotAngleRadians)); in onDraw()
144 final float dotY = yCenter + (float) (radius * Math.sin(dotAngleRadians)); in onDraw()
/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/
DStopwatchCircleView.java107 final float radius = Math.min(xCenter, yCenter) - mRadiusOffset; in onDraw() local
118 canvas.drawCircle(xCenter, yCenter, radius, mPaint); in onDraw()
133 mArcRect.top = yCenter - radius; in onDraw()
134 mArcRect.bottom = yCenter + radius; in onDraw()
135 mArcRect.left = xCenter - radius; in onDraw()
136 mArcRect.right = xCenter + radius; in onDraw()
153 final float sweepAngle = mScreenDensity * (float) (360 / (radius * Math.PI)); in onDraw()
160 final float dotX = xCenter + (float) (radius * Math.cos(dotAngleRadians)); in onDraw()
161 final float dotY = yCenter + (float) (radius * Math.sin(dotAngleRadians)); in onDraw()
/packages/apps/DeskClock/src/com/android/deskclock/widget/
DCircleView.java250 public CircleView setRadius(float radius) { in setRadius() argument
252 if (oldRadius != radius) { in setRadius()
253 mRadius = radius; in setRadius()
257 if (radius > oldRadius) { in setRadius()
258 invalidate(mCenterX, mCenterY, radius); in setRadius()
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/PermissionController/src/android/support/wearable/view/
DCircledImageView.java217 final float radius = circleRadius + mCircleBorderWidth + in onDraw() local
223 mPaint.setShader(new RadialGradient(mOval.centerX(), mOval.centerY(), radius, in onDraw()
226 canvas.drawCircle(mOval.centerX(), mOval.centerY(), radius, mPaint); in onDraw() local
306 final float radius = getCircleRadius() + mCircleBorderWidth + in onMeasure() local
308 float desiredWidth = radius * 2; in onMeasure()
309 float desiredHeight = radius * 2; in onMeasure()
421 float radius = mCircleRadius; in getCircleRadius() local
423 radius = Math.max(getMeasuredHeight(), getMeasuredWidth()) * mCircleRadiusPercent; in getCircleRadius()
426 return radius - mRadiusInset; in getCircleRadius()
434 float radius = mCircleRadiusPressed; in getCircleRadiusPressed() local
[all …]
/packages/apps/Dialer/java/com/android/dialer/simulator/impl/
DSimulatorRemoteVideo.java68 private float radius; field in SimulatorRemoteVideo.Renderer
119 radius = Math.min(canvas.getWidth(), canvas.getHeight()) * 0.15f; in moveCircle()
124 if (circleX + radius >= width in moveCircle()
125 || circleX - radius <= 0 in moveCircle()
126 || circleY + radius >= height in moveCircle()
127 || circleY - radius <= 0) { in moveCircle()
139 canvas.drawCircle(circleX, circleY, radius, paint); in drawCircle()
/packages/apps/Launcher3/src/com/android/launcher3/views/
DTopRoundedCornerView.java44 int radius = getResources().getDimensionPixelSize(R.dimen.bg_round_rect_radius); in TopRoundedCornerView() local
45 mRadii = new float[] {radius, radius, radius, radius, 0, 0, 0, 0}; in TopRoundedCornerView()
/packages/apps/LegacyCamera/src/com/android/camera/ui/
DZoomControlWheel.java93 double radius = Math.sqrt(dx * dx + dy * dy); in dispatchTouchEvent() local
161 double radius, int color, int width) { in drawArc() argument
162 mBackgroundRect.set((float) (mCenterX - radius), (float) (mCenterY - radius), in drawArc()
163 (float) (mCenterX + radius), (float) (mCenterY + radius)); in drawArc()
/packages/apps/Launcher3/src/com/android/launcher3/folder/
DPreviewBackground.java146 float radius = getScaledRadius(); in setup() local
147 float shadowRadius = radius + mStrokeWidth; in setup()
151 new float[] {radius / shadowRadius, 1}, in setup()
226 float radius = getScaledRadius(); in drawShadow() local
227 float shadowRadius = radius + mStrokeWidth; in drawShadow()
235 offsetX + radius + shadowRadius, offsetY + shadowRadius + shadowRadius, null); in drawShadow()
243 mShaderMatrix.postTranslate(radius + offsetX, shadowRadius + offsetY); in drawShadow()
252 getShape().drawShape(canvas, offsetX, offsetY, radius, mPaint); in drawShadow()
DClippedFolderIconLayoutRule.java116 float radius = mRadius * (1 + MAX_RADIUS_DILATION * (curNumItems - in getPosition() local
125 result[0] = mAvailableSpace / 2 + (float) (radius * Math.cos(theta) / 2) - halfIconSize; in getPosition()
126 result[1] = mAvailableSpace / 2 + (float) (- radius * Math.sin(theta) / 2) - halfIconSize; in getPosition()
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/
DAvatarGroupRequestDescriptor.java132 final float radius = height / 4F; in generateDestRectArray() local
133 final float imageTwoCenterY = height - radius; in generateDestRectArray()
134 final float lengthOfEdgeA = (float) (radius * Math.sqrt(3)); in generateDestRectArray()
136 final float imageZeroTop = imageZeroCenterY - radius; in generateDestRectArray()
137 final float imageZeroBottom = imageZeroCenterY + radius; in generateDestRectArray()
/packages/services/Car/tests/BugReportApp/src/com/google/android/car/bugreport/
DVoiceRecordingView.java79 float radius = 0; in updateCurrentRadius() local
83 radius += maxRadius * mRecorder.getMaxAmplitude() in updateCurrentRadius()
90 if (radius > mCurrentRadius) { in updateCurrentRadius()
91 mCurrentRadius = radius; in updateCurrentRadius()
93 mCurrentRadius = Math.max(radius, mCurrentRadius - DROPOFF_STEP); in updateCurrentRadius()
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/camerafocus/
DPieRenderer.java69 private int radius; field in PieRenderer
155 radius = res.getDimensionPixelSize(R.dimen.pie_radius_start); in init()
156 circleSize = radius - res.getDimensionPixelSize(R.dimen.focus_radius_offset); in init()
278 int inner = radius + rgap; in layoutPie()
279 int outer = radius + radiusInc - rgap; in layoutPie()
457 if (polar.y < radius) { in onTouchEvent()
674 private static void convertCart(int angle, int radius, Point out) { in convertCart() argument
676 out.x = (int) (radius * Math.cos(a) + 0.5); in convertCart()
677 out.y = (int) (radius * Math.sin(a) + 0.5); in convertCart()
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/
DBlend.cpp1063 double length = (y - alpha * m_wb.correction) * m_wb.direction + m_wb.radius; in MosaicToFrame()
1073 double length = (x - alpha * m_wb.correction) * m_wb.direction + m_wb.radius; in MosaicToFrame()
1106 wy = (length - m_wb.radius) * m_wb.direction + alpha * m_wb.correction; in FrameToMosaic()
1116 wx = (length - m_wb.radius) * m_wb.direction + alpha * m_wb.correction; in FrameToMosaic()
1312 m_wb.radius = dy + radiusTheta * cos(m_wb.theta); in ComputeBlendParameters()
1313 if (m_wb.radius < 0.0) m_wb.radius = -m_wb.radius; in ComputeBlendParameters()
1320 m_wb.radius = dx + radiusTheta * cos(m_wb.theta); in ComputeBlendParameters()
1321 if (m_wb.radius < 0.0) m_wb.radius = -m_wb.radius; in ComputeBlendParameters()
1350 m_wb.y = firstY - m_wb.radius * m_wb.direction; in ComputeBlendParameters()
1377 m_wb.x = firstX - m_wb.radius * m_wb.direction; in ComputeBlendParameters()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/editors/
DEditorColorBorderTabletUI.java77 BasicParameterInt radius; in setColorBorderRepresentation() local
78 radius = (BasicParameterInt) mRep.getParam(FilterColorBorderRepresentation.PARAM_RADIUS); in setColorBorderRepresentation()
79 mCBCornerSizeSeekBar.setMax(radius.getMaximum() - radius.getMinimum()); in setColorBorderRepresentation()
80 mCBCornerSizeSeekBar.setProgress(radius.getValue()); in setColorBorderRepresentation()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DSlidingKeyInputDrawingPreview.java88 final float radius = mPreviewBodyRadius; in drawPreview() local
90 CoordinateUtils.x(mPreviewFrom), CoordinateUtils.y(mPreviewFrom), radius, in drawPreview()
91 CoordinateUtils.x(mPreviewTo), CoordinateUtils.y(mPreviewTo), radius); in drawPreview()
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
DBadgeSpan.java98 final float radius = mDims.getRoundedCornerRadius(); in draw() local
99 canvas.drawRoundRect(rect, radius, radius, mWorkPaint); in draw()
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/view/
DListItemOutlineProvider.java33 public ListItemOutlineProvider(float radius) { in ListItemOutlineProvider() argument
34 mRadius = radius; in ListItemOutlineProvider()
DContactAvatarOutputlineProvider.java42 float radius = Math.min(view.getWidth(), view.getHeight()) * radiusPercent; in getOutline() local
43 outline.setRoundRect(0, 0, view.getWidth(), view.getHeight(), radius); in getOutline()
/packages/apps/Launcher3/SecondaryDisplayLauncher/src/com/android/launcher3/
DSecondaryDisplayLauncher.java225 final int radius = (int) Math.hypot((double) view.getWidth(), (double) view.getHeight()); in revealAnimator() local
227 open ? 0 : radius, open ? radius : 0); in revealAnimator()
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/views/
DTaskMenuView.java275 float radius = Themes.getDialogCornerRadius(getContext()); in createOpenCloseOutlineProvider() local
278 return new RoundedRectRevealOutlineProvider(radius, radius, fromRect, toRect); in createOpenCloseOutlineProvider()
/packages/apps/Dialer/java/com/android/incallui/answer/impl/affordance/
DSwipeButtonHelper.java331 private ValueAnimator getAnimatorToRadius(final boolean right, int radius) { in getAnimatorToRadius() argument
336 ValueAnimator animator = ValueAnimator.ofFloat(targetView.getCircleRadius(), radius); in getAnimatorToRadius()
430 float radius = getRadiusFromTranslation(absTranslation); in setTranslation() local
436 radius, in setTranslation()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
DImageFilterColorBorder.java57 float radius = getParameters().getBorderRadius(); in applyHelper() local
67 float r = radius / 100.f * mBounds.width(); in applyHelper()
/packages/services/Car/tests/MultiDisplayTest/src/com/google/android/car/multidisplaytest/touch/
DTouchPointView.java111 int radius = canvas.getWidth() / 100; in onDraw() local
116 canvas.drawCircle(point.x, point.y, radius, mPaint); in onDraw()

123