/packages/apps/DeskClock/src/com/android/deskclock/widget/ |
D | CircleView.kt | 51 var radius: Float variable 60 radius = a.getDimension(R.styleable.CircleView_radius, 0.0f) 87 canvas.drawCircle(mCenterX, mCenterY, radius, mCirclePaint) in onDraw() 135 invalidate(mCenterX, mCenterY, radius) in setFillColor() 153 invalidate(oldCenterX, mCenterY, radius) in setCenterX() 154 invalidate(centerX, mCenterY, radius) in setCenterX() 176 invalidate(mCenterX, oldCenterY, radius) in setCenterY() 177 invalidate(mCenterX, centerY, radius) in setCenterY() 193 fun setRadius(radius: Float): CircleView { in setRadius() 194 val oldRadius = this.radius in setRadius() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/graphics/ |
D | IconShape.java | 77 public abstract void drawShape(Canvas canvas, float offsetX, float offsetY, float radius, in drawShape() argument 80 public abstract void addToPath(Path path, float offsetX, float offsetY, float radius); in addToPath() argument 113 public final void drawShape(Canvas canvas, float offsetX, float offsetY, float radius, 116 addToPath(mTmpPath, offsetX, offsetY, radius); 192 public void addToPath(Path path, float offsetX, float offsetY, float radius) { 193 path.addCircle(radius + offsetX, radius + offsetY, radius, Path.Direction.CW); 218 public void drawShape(Canvas canvas, float offsetX, float offsetY, float radius, Paint p) { 219 float cx = radius + offsetX; 220 float cy = radius + offsetY; 221 float cr = radius * mRadiusRatio; [all …]
|
/packages/modules/NeuralNetworks/common/operations/ |
D | LocalResponseNormalization.cpp | 52 int32_t radius, float bias, float alpha, float beta, in localResponseNormFloat32Impl() argument 65 const int32_t dBegin = std::max(0, i - radius); in localResponseNormFloat32Impl() 67 const int32_t dEnd = std::min(static_cast<int32_t>(axisSize), i + radius + 1); in localResponseNormFloat32Impl() 82 bool localResponseNorm(const T* inputData, const Shape& inputShape, int32_t radius, T bias, T alpha, 86 bool localResponseNorm<float>(const float* inputData, const Shape& inputShape, int32_t radius, in localResponseNorm() argument 91 radius = std::min(radius, static_cast<int32_t>(inputShape.dimensions[axis])); in localResponseNorm() 96 .range = radius, .bias = bias, .alpha = alpha, .beta = beta}; in localResponseNorm() 102 return localResponseNormFloat32Impl(inputData, inputShape, radius, bias, alpha, beta, axis, in localResponseNorm() 108 bool localResponseNorm<_Float16>(const _Float16* inputData, const Shape& inputShape, int32_t radius, in localResponseNorm() argument 116 localResponseNorm<float>(inputDataFloat32.data(), inputShape, radius, bias, alpha, beta, axis, in localResponseNorm() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/popup/ |
D | RoundedArrowDrawable.java | 59 public RoundedArrowDrawable(float width, float height, float radius, float popupRadius, in RoundedArrowDrawable() argument 70 addDownPointingRoundedTriangleToPath(width, height, radius, mPath); in RoundedArrowDrawable() 107 float radius, Path path) { in addDownPointingRoundedTriangleToPath() argument 115 float roundedPointCenterY = (float) (height - (radius / sin(theta))); in addDownPointingRoundedTriangleToPath() 118 float p = radius / tanTheta; in addDownPointingRoundedTriangleToPath() 135 centerX - radius, in addDownPointingRoundedTriangleToPath() 136 roundedPointCenterY - radius, in addDownPointingRoundedTriangleToPath() 137 centerX + radius, in addDownPointingRoundedTriangleToPath() 138 roundedPointCenterY + radius, in addDownPointingRoundedTriangleToPath()
|
/packages/apps/DeskClock/src/com/android/deskclock/timer/ |
D | TimerCircleView.kt | 98 val radius = min(xCenter, yCenter) - mRadiusOffset in onDraw() constant 109 canvas.drawCircle(xCenter.toFloat(), yCenter.toFloat(), radius, mPaint) in onDraw() 118 canvas.drawCircle(xCenter.toFloat(), yCenter.toFloat(), 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() 145 val dotX = xCenter + (radius * cos(dotAngleRadians)).toFloat() in onDraw() 146 val dotY = yCenter + (radius * sin(dotAngleRadians)).toFloat() in onDraw()
|
/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/ |
D | StopwatchCircleView.kt | 104 val radius = min(xCenter, yCenter) - mRadiusOffset in onDraw() constant 114 canvas.drawCircle(xCenter.toFloat(), yCenter.toFloat(), radius, mPaint) in onDraw() 129 mArcRect.top = yCenter - radius in onDraw() 130 mArcRect.bottom = yCenter + radius in onDraw() 131 mArcRect.left = xCenter - radius in onDraw() 132 mArcRect.right = xCenter + radius in onDraw() 149 val sweepAngle = mScreenDensity * (360 / (radius * Math.PI)).toFloat() in onDraw() 156 val dotX = xCenter + (radius * cos(dotAngleRadians)).toFloat() in onDraw() 157 val dotY = yCenter + (radius * sin(dotAngleRadians)).toFloat() in onDraw()
|
/packages/apps/Dialer/java/com/android/dialer/simulator/impl/ |
D | SimulatorRemoteVideo.java | 68 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/folder/ |
D | PreviewBackground.java | 170 float radius = getScaledRadius(); in setup() local 171 float shadowRadius = radius + mStrokeWidth; in setup() 175 new float[]{radius / shadowRadius, 1}, in setup() 254 float radius = getScaledRadius(); in drawShadow() local 255 float shadowRadius = radius + mStrokeWidth; in drawShadow() 263 offsetX + radius + shadowRadius, offsetY + shadowRadius + shadowRadius, null); in drawShadow() 271 mShaderMatrix.postTranslate(radius + offsetX, shadowRadius + offsetY); in drawShadow() 280 getShape().drawShape(canvas, offsetX, offsetY, radius, mPaint); in drawShadow() 352 float radius = getScaledRadius() * ICON_OVERLAP_FACTOR; in getClipPath() local 354 float radiusDifference = radius - getRadius(); in getClipPath() [all …]
|
D | ClippedFolderIconLayoutRule.java | 116 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/modules/Permission/PermissionController/src/android/support/wearable/view/ |
D | CircledImageView.java | 217 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/Launcher3/src/com/android/launcher3/views/ |
D | TopRoundedCornerView.java | 38 float radius = Themes.getDialogCornerRadius(context); in TopRoundedCornerView() local 39 mRadii = new float[] {radius, radius, radius, radius, 0, 0, 0, 0}; in TopRoundedCornerView()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/dashboard/ |
D | PartialCircleView.java | 99 final float radius = ((width > height) ? height / 2 : width / 2) - (mStrokeWidth / 2); in onDraw() local 110 oval.set(x - radius, in onDraw() 111 y - radius, in onDraw() 112 x + radius, in onDraw() 113 y + radius); in onDraw()
|
/packages/apps/LegacyCamera/src/com/android/camera/ui/ |
D | ZoomControlWheel.java | 93 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/Messaging/src/com/android/messaging/datamodel/media/ |
D | AvatarGroupRequestDescriptor.java | 132 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/android/car/bugreport/ |
D | VoiceRecordingView.java | 79 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/ThemePicker/src/com/android/customization/picker/theme/ |
D | ThemeOptionPreviewer.java | 335 float radius = useRoundedQSB(cornerRadius) in setQsbRadius() local 338 radius, radius, radius, radius, in setQsbRadius() 339 radius, radius, radius, radius}); in setQsbRadius()
|
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/camerafocus/ |
D | PieRenderer.java | 69 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/QuickAccessWallet/src/com/android/systemui/plugin/globalactions/wallet/ |
D | WalletCardView.java | 53 float radius = getRadius(); in draw() local 54 canvas.drawRoundRect(0, 0, getWidth(), getHeight(), radius, radius, mBorderPaint); in draw()
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/ |
D | LauncherSwipeHandlerV2.java | 163 float progress, float radius) { 164 super.update(config, currentRect, progress, radius); 171 windowAlphaThreshold, radius, false); 226 float radius) { 227 super.update(config, currentRect, progress, radius); 316 float radius) {
|
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/ |
D | Blend.cpp | 1063 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/Car/Messenger/src/com/android/car/messenger/impl/datamodels/util/ |
D | AvatarUtil.java | 358 float radius = cropToCircle ? (halfHeight - inset) / 2 : (float) desiredHeight / 4F; in generateDestRectArray() local 359 float imageTwoCenterY = (float) desiredHeight - radius; in generateDestRectArray() 360 float lengthOfEdgeA = (float) (radius * Math.sqrt(3)); in generateDestRectArray() 362 float imageZeroTop = imageZeroCenterY - radius - 2 * inset; in generateDestRectArray() 363 float imageZeroBottom = imageZeroCenterY + radius - 2 * inset; in generateDestRectArray()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
D | SlidingKeyInputDrawingPreview.java | 88 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/Gallery2/src/com/android/gallery3d/filtershow/editors/ |
D | EditorColorBorderTabletUI.java | 77 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/modules/NeuralNetworks/runtime/test/specs/V1_0/ |
D | local_response_norm_float_1.mod.py | 3 radius = Int32Scalar("radius", 20) variable 9 model = model.Operation("LOCAL_RESPONSE_NORMALIZATION", i1, radius, bias, alpha, beta).To(output)
|
D | local_response_norm_float_4.mod.py | 3 radius = Int32Scalar("radius", 2) variable 9 model = model.Operation("LOCAL_RESPONSE_NORMALIZATION", i1, radius, bias, alpha, beta).To(output)
|