/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/ |
H A D | StopwatchCircleView.java | 44 /** An amount to subtract from the true radius to account for drawing thicknesses. */ 106 final float radius = Math.min(xCenter, yCenter) - mRadiusOffset; 117 canvas.drawCircle(xCenter, yCenter, radius, mPaint); 132 mArcRect.top = yCenter - radius; 133 mArcRect.bottom = yCenter + radius; 134 mArcRect.left = xCenter - radius; 135 mArcRect.right = xCenter + radius; 152 final float sweepAngle = mScreenDensity * (float) (360 / (radius * Math.PI)); 159 final float dotX = xCenter + (float) (radius * Math.cos(dotAngleRadians)); 160 final float dotY = yCenter + (float) (radius * Mat [all...] |
/packages/apps/DeskClock/src/com/android/deskclock/timer/ |
H A D | TimerCircleView.java | 40 /** An amount to subtract from the true radius to account for drawing thicknesses. */ 100 final float radius = Math.min(xCenter, yCenter) - mRadiusOffset; 110 canvas.drawCircle(xCenter, yCenter, radius, mPaint); 118 canvas.drawCircle(xCenter, yCenter, radius, mPaint); 124 mArcRect.top = yCenter - radius; 125 mArcRect.bottom = yCenter + radius; 126 mArcRect.left = xCenter - radius; 127 mArcRect.right = xCenter + radius; 142 final float dotX = xCenter + (float) (radius * Math.cos(dotAngleRadians)); 143 final float dotY = yCenter + (float) (radius * Mat [all...] |
/packages/apps/Dialer/InCallUI/src/com/android/incallui/widget/multiwaveview/ |
H A D | PointCloud.java | 46 private float radius = 50; field in class:PointCloud.WaveManager 50 radius = r; 54 return radius; 69 private float radius = 0.0f; field in class:PointCloud.GlowManager 97 radius = r; 101 return radius; 108 float radius; field in class:PointCloud.Point 113 radius = r; 137 Log.w(TAG, "Must specify an inner radius"); 182 if (glowDistance < glowManager.radius) { [all...] |
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/ |
H A D | ExternalDragPreviewProvider.java | 70 // Use 0.9f times the radius for the actual circle to account for icon normalization. 71 float radius = getPreviewBounds().width() * 0.5f; 72 canvas.drawCircle(DRAG_BITMAP_PADDING / 2 + radius, 73 DRAG_BITMAP_PADDING / 2 + radius, radius * 0.9f, paint);
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/ |
H A D | AvatarGroupRequestDescriptor.java | 91 * radius * squareRoot(2). Therefore, the following emerges. 93 * w * squareRoot(2) = 2 (radius + radius * squareRoot(2)) 94 * Solving for radius we get: 95 * d = 2 * radius = ( squareRoot(2) / (squareRoot(2) + 1)) * w 115 * a = radius * squareRoot(3) due to the triangle being a 30-60-90 right triangle. 116 * b = radius of circle 117 * c = 2 * radius of circle 124 * radius of the circle, this is the length of edge b. Also we know that the 125 * distance from image zero to image two's center is 2 * radius, edg [all...] |
/packages/apps/DeskClock/src/com/android/deskclock/widget/ |
H A D | CircleView.java | 55 * A Property wrapper around the radius functionality handled by the 59 new Property<CircleView, Float>(Float.class, "radius") { 251 * @return the radius of the circle 258 * Sets the radius of the circle and invalidates only the affected area. 260 * @param radius the radius to use 264 public CircleView setRadius(float radius) { argument 266 if (oldRadius != radius) { 267 mRadius = radius; 271 if (radius > oldRadiu 291 invalidate(float centerX, float centerY, float radius) argument [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
H A D | SlidingKeyInputDrawingPreview.java | 88 final float radius = mPreviewBodyRadius; 90 CoordinateUtils.x(mPreviewFrom), CoordinateUtils.y(mPreviewFrom), radius, 91 CoordinateUtils.x(mPreviewTo), CoordinateUtils.y(mPreviewTo), radius);
|
/packages/apps/Launcher3/src/com/android/launcher3/folder/ |
H A D | ClippedFolderIconLayoutRule.java | 92 // We bump the radius up between 0 and MAX_RADIUS_DILATION % as the number of items increase 93 float radius = mRadius * (1 + MAX_RADIUS_DILATION * (curNumItems - 102 result[0] = mAvailableSpace / 2 + (float) (radius * Math.cos(theta) / 2) - halfIconSize; 103 result[1] = mAvailableSpace / 2 + (float) (- radius * Math.sin(theta) / 2) - halfIconSize;
|
H A D | FolderIcon.java | 549 int radius = getScaledRadius(); 551 mClipPath.addCircle(radius, radius, radius, Path.Direction.CW); 579 float radius = getScaledRadius(); 581 canvas.drawCircle(radius, radius, radius, paint); 587 canvas.drawCircle(radius, radius, radiu [all...] |
/packages/apps/PackageInstaller/src/android/support/wearable/view/ |
H A D | CircledImageView.java | 218 final float radius = circleRadius + mCircleBorderWidth + 224 mPaint.setShader(new RadialGradient(mOval.centerX(), mOval.centerY(), radius, 227 canvas.drawCircle(mOval.centerX(), mOval.centerY(), radius, mPaint); 307 final float radius = getCircleRadius() + mCircleBorderWidth + 309 float desiredWidth = radius * 2; 310 float desiredHeight = radius * 2; 422 float radius = mCircleRadius; 424 radius = Math.max(getMeasuredHeight(), getMeasuredWidth()) * mCircleRadiusPercent; 427 return radius - mRadiusInset; 435 float radius [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/browse/ |
H A D | BadgeSpan.java | 44 * Returns the radius to use for the rounded corners on the background rect. 98 final float radius = mDims.getRoundedCornerRadius(); 99 canvas.drawRoundRect(rect, radius, radius, mWorkPaint);
|
/packages/apps/LegacyCamera/src/com/android/camera/ui/ |
H A D | ZoomControlWheel.java | 93 double radius = Math.sqrt(dx * dx + dy * dy); 161 double radius, int color, int width) { 162 mBackgroundRect.set((float) (mCenterX - radius), (float) (mCenterY - radius), 163 (float) (mCenterX + radius), (float) (mCenterY + radius)); 160 drawArc(Canvas canvas, int startAngle, int sweepAngle, double radius, int color, int width) argument
|
H A D | IndicatorControlWheelContainer.java | 76 double radius = Math.sqrt(dx * dx + dy * dy); 79 if (radius <= mShutterButtonRadius) {
|
H A D | IndicatorControlWheel.java | 261 double radius = Math.sqrt(dx * dx + dy * dy); 264 if ((radius <= (mWheelRadius + mStrokeWidth)) && (radius > mShutterButtonRadius)) {
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
H A D | ImageFilterColorBorder.java | 57 float radius = getParameters().getBorderRadius(); 67 float r = radius / 100.f * mBounds.width();
|
H A D | FilterColorBorderRepresentation.java | 54 public FilterColorBorderRepresentation(int color, int size, int radius) { argument 64 mParamRadius.setValue(radius); 178 writer.name("radius"); 192 } else if (name.equalsIgnoreCase("radius")) {
|
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/ |
H A D | MosaicTypes.h | 140 double radius; member in struct:__anon8
|
H A D | Blend.cpp | 1063 double length = (y - alpha * m_wb.correction) * m_wb.direction + m_wb.radius; 1073 double length = (x - alpha * m_wb.correction) * m_wb.direction + m_wb.radius; 1106 wy = (length - m_wb.radius) * m_wb.direction + alpha * m_wb.correction; 1116 wx = (length - m_wb.radius) * m_wb.direction + alpha * m_wb.correction; 1310 // Calculate radius position to make ends exactly the same Y offset 1312 m_wb.radius = dy + radiusTheta * cos(m_wb.theta); 1313 if (m_wb.radius < 0.0) m_wb.radius = -m_wb.radius; 1318 // Calculate radius positio [all...] |
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/ |
H A D | SoundLevels.java | 139 final float radius = mMinimumLevel + (1f - mMinimumLevel) * mCurrentVolume / 100; 141 canvas.drawCircle(mCenterX, mCenterY, radius * mMaximumLevelSize, mPrimaryLevelPaint);
|
/packages/services/Car/car-support-lib/src/android/support/car/ui/ |
H A D | CircularClipAnimation.java | 36 * step computes the effect's parameters (circle center and radius), which it then passes to 148 // Compute the radius. 149 final float radius = getFillRadius(width, height, 155 // Set up animation values. Note that the minimum radius should be larger than 0, 158 mAnimator.setFloatValues(mCircleStartRadius, radius); 160 mAnimator.setFloatValues(radius, 1);
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/editors/ |
H A D | EditorColorBorderTabletUI.java | 77 BasicParameterInt radius; 78 radius = (BasicParameterInt) mRep.getParam(FilterColorBorderRepresentation.PARAM_RADIUS); 79 mCBCornerSizeSeekBar.setMax(radius.getMaximum() - radius.getMinimum()); 80 mCBCornerSizeSeekBar.setProgress(radius.getValue());
|
/packages/apps/UnifiedEmail/src/com/android/mail/bitmap/ |
H A D | AbstractAvatarDrawable.java | 132 final float radius = bounds.width() / 2f - mBorderWidth / 2; 133 canvas.drawCircle(bounds.centerX(), bounds.centerY(), radius, mBorderPaint);
|
/packages/apps/Gallery/src/com/android/camera/ |
H A D | HighlightView.java | 189 int radius = mDrawRect.width() / 2; 190 int delta = distanceFromCenter - radius; 205 } else if (distanceFromCenter < radius) {
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
H A D | ImageDraw.java | 245 float radius = mTmpStrokData.mRadius; 248 if (radius != mTmpStrokData.mRadius) {
|
/packages/apps/Camera2/src/com/android/camera/processing/imagebackend/ |
H A D | TaskConvertImageToRGBPreview.java | 827 final int radius = inscribedCircleRadius(safeCrop.width() / subsample, safeCrop.height() 829 resultWidth = 2 * radius; 830 resultHeight = 2 * radius;
|