Home
last modified time | relevance | path

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

12

/packages/apps/InCallUI/src/com/android/incallui/widget/multiwaveview/
DPointCloud.java47 private float radius = 50; field in PointCloud.WaveManager
51 radius = r; in setRadius()
55 return radius; in getRadius()
70 private float radius = 0.0f; field in PointCloud.GlowManager
98 radius = r; in setRadius()
102 return radius; in getRadius()
109 float radius; field in PointCloud.Point
114 radius = r; in Point()
183 if (glowDistance < glowManager.radius) { in getAlphaForPoint()
184 float cosf = FloatMath.cos(PI * 0.25f * glowDistance / glowManager.radius); in getAlphaForPoint()
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/widget/multiwaveview/
DPointCloud.java47 private float radius = 50; field in PointCloud.WaveManager
51 radius = r; in setRadius()
55 return radius; in getRadius()
70 private float radius = 0.0f; field in PointCloud.GlowManager
98 radius = r; in setRadius()
102 return radius; in getRadius()
109 float radius; field in PointCloud.Point
114 radius = r; in Point()
183 if (glowDistance < glowManager.radius) { in getAlphaForPoint()
184 float cosf = FloatMath.cos(PI * 0.25f * glowDistance / glowManager.radius); in getAlphaForPoint()
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/
DCircleTimerView.java142 float radius = Math.min(xCenter, yCenter) - mRadiusOffset; in onDraw() local
147 canvas.drawCircle (xCenter, yCenter, radius, mPaint); in onDraw()
149 drawRedDot(canvas, 0f, xCenter, yCenter, radius); in onDraw()
156 mArcRect.top = yCenter - radius; in onDraw()
157 mArcRect.bottom = yCenter + radius; in onDraw()
158 mArcRect.left = xCenter - radius; in onDraw()
159 mArcRect.right = xCenter + radius; in onDraw()
183 if (mMarkerTime != -1 && radius > 0 && mIntervalTime != 0) { in onDraw()
191 (float) (360 / (radius * Math.PI)) , false, mPaint); in onDraw()
193 drawRedDot(canvas, redPercent, xCenter, yCenter, radius); in onDraw()
[all …]
/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 …]
DMosaicTypes.h140 double radius; member
/packages/apps/Camera/jni/feature_mos/src/mosaic/
DBlend.cpp1083 double length = (y - alpha * m_wb.correction) * m_wb.direction + m_wb.radius; in MosaicToFrame()
1093 double length = (x - alpha * m_wb.correction) * m_wb.direction + m_wb.radius; in MosaicToFrame()
1126 wy = (length - m_wb.radius) * m_wb.direction + alpha * m_wb.correction; in FrameToMosaic()
1136 wx = (length - m_wb.radius) * m_wb.direction + alpha * m_wb.correction; in FrameToMosaic()
1332 m_wb.radius = dy + radiusTheta * cos(m_wb.theta); in ComputeBlendParameters()
1333 if (m_wb.radius < 0.0) m_wb.radius = -m_wb.radius; in ComputeBlendParameters()
1340 m_wb.radius = dx + radiusTheta * cos(m_wb.theta); in ComputeBlendParameters()
1341 if (m_wb.radius < 0.0) m_wb.radius = -m_wb.radius; in ComputeBlendParameters()
1370 m_wb.y = firstY - m_wb.radius * m_wb.direction; in ComputeBlendParameters()
1397 m_wb.x = firstX - m_wb.radius * m_wb.direction; in ComputeBlendParameters()
[all …]
DMosaicTypes.h140 double radius; member
/packages/apps/Camera2/jni/feature_mos/src/mosaic/
DBlend.cpp1083 double length = (y - alpha * m_wb.correction) * m_wb.direction + m_wb.radius; in MosaicToFrame()
1093 double length = (x - alpha * m_wb.correction) * m_wb.direction + m_wb.radius; in MosaicToFrame()
1126 wy = (length - m_wb.radius) * m_wb.direction + alpha * m_wb.correction; in FrameToMosaic()
1136 wx = (length - m_wb.radius) * m_wb.direction + alpha * m_wb.correction; in FrameToMosaic()
1332 m_wb.radius = dy + radiusTheta * cos(m_wb.theta); in ComputeBlendParameters()
1333 if (m_wb.radius < 0.0) m_wb.radius = -m_wb.radius; in ComputeBlendParameters()
1340 m_wb.radius = dx + radiusTheta * cos(m_wb.theta); in ComputeBlendParameters()
1341 if (m_wb.radius < 0.0) m_wb.radius = -m_wb.radius; in ComputeBlendParameters()
1370 m_wb.y = firstY - m_wb.radius * m_wb.direction; in ComputeBlendParameters()
1397 m_wb.x = firstX - m_wb.radius * m_wb.direction; in ComputeBlendParameters()
[all …]
DMosaicTypes.h140 double radius; member
/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()
DIndicatorControlWheel.java261 double radius = Math.sqrt(dx * dx + dy * dy); in dispatchTouchEvent() local
264 if ((radius <= (mWheelRadius + mStrokeWidth)) && (radius > mShutterButtonRadius)) { in dispatchTouchEvent()
DIndicatorControlWheelContainer.java76 double radius = Math.sqrt(dx * dx + dy * dy); in dispatchTouchEvent() local
79 if (radius <= mShutterButtonRadius) { in dispatchTouchEvent()
/packages/apps/Launcher3/src/com/android/launcher3/
DCling.java254 int radius = DynamicGrid.pxFromDp(WORKSPACE_OUTER_CIRCLE_RADIUS_DPS, metrics); in getWorkspaceCutOutBounds() local
255 return new Rect(halfWidth - radius, halfHeight - yOffset - radius, halfWidth + radius, in getWorkspaceCutOutBounds()
256 halfHeight - yOffset + radius); in getWorkspaceCutOutBounds()
516 float radius = Math.min(maxRadius, (bubbleContent.getMeasuredWidth() + buffer) / 2); in dispatchDraw() local
518 bubbleRect.centerY(), radius, in dispatchDraw()
/packages/apps/UnifiedEmail/src/com/android/mail/bitmap/
DAttachmentGridDrawable.java94 final float radius = mCoordinates.overflowDiameter / 2f; in draw() local
96 final float x = mCoordinates.overflowXEnd - mCoordinates.attachmentPreviewsX - radius; in draw()
97 final float y = mCoordinates.overflowYEnd - mCoordinates.attachmentPreviewsY - radius; in draw()
100 canvas.drawCircle(x, y, radius, mPaint); in draw()
/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/
DSlidingKeyInputPreview.java80 final float radius = mPreviewBodyRadius; in drawPreview() local
82 CoordinateUtils.x(mPreviewFrom), CoordinateUtils.y(mPreviewFrom), radius, in drawPreview()
83 CoordinateUtils.x(mPreviewTo), CoordinateUtils.y(mPreviewTo), radius); in drawPreview()
/packages/wallpapers/HoloSpiral/src/com/android/wallpaper/holospiral/
DHoloSpiralRS.java218 private void generateSpiral(ScriptField_VertexColor_s points, float depth, float radius, in generateSpiral() argument
232 Float3 position = new Float3(radius * (float) Math.cos(radians), in generateSpiral()
233 radius * (float) Math.sin(radians), (percentage * depth) - halfDepth); in generateSpiral()
/packages/apps/Gallery/src/com/android/camera/
DHighlightView.java189 int radius = mDrawRect.width() / 2; in getHit() local
190 int delta = distanceFromCenter - radius; in getHit()
205 } else if (distanceFromCenter < radius) { in getHit()
/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()
DFilterColorBorderRepresentation.java54 public FilterColorBorderRepresentation(int color, int size, int radius) { in FilterColorBorderRepresentation() argument
64 mParamRadius.setValue(radius); in FilterColorBorderRepresentation()
/packages/apps/Camera/src/com/android/camera/ui/
DPieRenderer.java680 private static void convertCart(int angle, int radius, Point out) { in convertCart() argument
682 out.x = (int) (radius * Math.cos(a) + 0.5); in convertCart()
683 out.y = (int) (radius * Math.sin(a) + 0.5); in convertCart()
/packages/apps/VideoEditor/src/com/android/videoeditor/widgets/
DZoomControl.java207 final double radius = Math.sqrt((x * x) + (y * y)); in checkHit() local
208 if (radius < mInternalRadius) { in checkHit()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DImageDraw.java245 float radius = mTmpStrokData.mRadius; in displayDrawLook() local
248 if (radius != mTmpStrokData.mRadius) { in displayDrawLook()
/packages/apps/Camera2/src/com/android/camera/ui/
DPieRenderer.java975 private static void convertCart(int angle, int radius, Point out) { in convertCart() argument
977 out.x = (int) (radius * Math.cos(a) + 0.5); in convertCart()
978 out.y = (int) (radius * Math.sin(a) + 0.5); in convertCart()
/packages/apps/DeskClock/src/com/android/deskclock/timer/
DCountingTimerView.java560 float radius = Math.min(width, height) / 2; in withinVirtualButtonBounds() local
564 return distance < radius; in withinVirtualButtonBounds()

12