Home
last modified time | relevance | path

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

123456

/frameworks/base/libs/hwui/utils/
DBlur.cpp29 float Blur::convertRadiusToSigma(float radius) { in convertRadiusToSigma() argument
30 return radius > 0 ? BLUR_SIGMA_SCALE * radius + 0.5f : 0.0f; in convertRadiusToSigma()
40 uint32_t Blur::convertRadiusToInt(float radius) { in convertRadiusToInt() argument
41 const float radiusCeil = ceilf(radius); in convertRadiusToInt()
42 if (MathUtils::areEqual(radiusCeil, radius)) { in convertRadiusToInt()
45 return radius; in convertRadiusToInt()
57 static float legacyConvertRadiusToSigma(float radius) { in legacyConvertRadiusToSigma() argument
58 return radius > 0 ? 0.3f * radius + 0.6f : 0.0f; in legacyConvertRadiusToSigma()
61 void Blur::generateGaussianWeights(float* weights, float radius) { in generateGaussianWeights() argument
62 int32_t intRadius = convertRadiusToInt(radius); in generateGaussianWeights()
[all …]
DBlur.h29 ANDROID_API static float convertRadiusToSigma(float radius);
35 static uint32_t convertRadiusToInt(float radius);
37 static void generateGaussianWeights(float* weights, float radius);
38 static void horizontal(float* weights, int32_t radius, const uint8_t* source, uint8_t* dest,
40 static void vertical(float* weights, int32_t radius, const uint8_t* source, uint8_t* dest,
/frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/
Dthreshold_half.rscript22 static int radius;
34 radius = rad;
40 // x is of the form [-radius .. 0 .. radius]
41 // and sigma varies with radius.
42 // Based on some experimental radius values and sigma's
43 // we approximately fit sigma = f(radius) as
44 // sigma = radius * 0.4 + 0.6
45 // The larger the radius gets, the more our gaussian blur
48 half sigma = 0.4f * (half)radius + 0.6f;
59 for (int r = -radius; r <= radius; r ++) {
[all …]
Dthreshold.rscript22 static int radius;
34 radius = rad;
40 // x is of the form [-radius .. 0 .. radius]
41 // and sigma varies with radius.
42 // Based on some experimental radius values and sigma's
43 // we approximately fit sigma = f(radius) as
44 // sigma = radius * 0.4 + 0.6
45 // The larger the radius gets, the more our gaussian blur
48 float sigma = 0.4f * (float)radius + 0.6f;
59 for (int r = -radius; r <= radius; r ++) {
[all …]
/frameworks/rs/tests/java_api/ImageProcessing2/src/com/android/rs/image/
Dthreshold.rscript22 static int radius;
34 radius = rad;
40 // x is of the form [-radius .. 0 .. radius]
41 // and sigma varies with radius.
42 // Based on some experimental radius values and sigma's
43 // we approximately fit sigma = f(radius) as
44 // sigma = radius * 0.4 + 0.6
45 // The larger the radius gets, the more our gaussian blur
48 float sigma = 0.4f * (float)radius + 0.6f;
59 for (int r = -radius; r <= radius; r ++) {
[all …]
/frameworks/rs/tests/java_api/ImageProcessing/src/com/android/rs/image/
Dthreshold.rscript22 static int radius;
34 radius = rad;
40 // x is of the form [-radius .. 0 .. radius]
41 // and sigma varies with radius.
42 // Based on some experimental radius values and sigma's
43 // we approximately fit sigma = f(radius) as
44 // sigma = radius * 0.4 + 0.6
45 // The larger the radius gets, the more our gaussian blur
48 float sigma = 0.4f * (float)radius + 0.6f;
59 for (int r = -radius; r <= radius; r ++) {
[all …]
/frameworks/layoutlib/bridge/src/android/view/shadow/
DHighQualityShadowPainter.java60 float radius = outline.getRadius() / SCALE_DOWN; in paintRectShadow() local
62 if (radius > rectScaled.width() || radius > rectScaled.height()) { in paintRectShadow()
69 float[] poly = getPoly(rectScaled, elevation / SCALE_DOWN, radius); in paintRectShadow()
71 paintAmbientShadow(poly, canvas, width, height, alpha, rectOriginal, radius); in paintRectShadow()
73 canvas, densityDpi, width, height, alpha, rectOriginal, radius); in paintRectShadow()
102 float alpha, Rect shadowCasterOutline, float radius) { in paintAmbientShadow() argument
126 shadowCasterOutline, radius); in paintAmbientShadow()
141 float radius) { in paintSpotShadow() argument
175 (int) generator.getTranslateY(), width, height, shadowCasterOutline, radius); in paintSpotShadow()
188 int width, int height, Rect shadowCaster, float radius) { in drawScaled() argument
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/ui/
DDisplayUtils.java85 int radius = 0; in getCornerRadiusBottom() local
90 radius = context.getResources().getDimensionPixelSize(resourceId); in getCornerRadiusBottom()
93 if (radius == 0) { in getCornerRadiusBottom()
94 radius = getCornerRadiusDefault(context); in getCornerRadiusBottom()
96 return radius; in getCornerRadiusBottom()
104 int radius = 0; in getCornerRadiusTop() local
109 radius = context.getResources().getDimensionPixelSize(resourceId); in getCornerRadiusTop()
112 if (radius == 0) { in getCornerRadiusTop()
113 radius = getCornerRadiusDefault(context); in getCornerRadiusTop()
115 return radius; in getCornerRadiusTop()
[all …]
/frameworks/base/graphics/java/android/graphics/drawable/
DPaintDrawable.java44 public void setCornerRadius(float radius) { in setCornerRadius() argument
46 if (radius > 0) { in setCornerRadius()
49 radii[i] = radius; in setCornerRadius()
78 int radius = a.getDimensionPixelSize( in inflateTag() local
80 setCornerRadius(radius); in inflateTag()
85 com.android.internal.R.styleable.DrawableCorners_topLeftRadius, radius); in inflateTag()
87 com.android.internal.R.styleable.DrawableCorners_topRightRadius, radius); in inflateTag()
89 com.android.internal.R.styleable.DrawableCorners_bottomLeftRadius, radius); in inflateTag()
91 com.android.internal.R.styleable.DrawableCorners_bottomRightRadius, radius); in inflateTag()
93 if (topLeftRadius != radius || topRightRadius != radius || in inflateTag()
[all …]
/frameworks/base/graphics/java/android/graphics/
DRadialGradient.java64 public RadialGradient(float centerX, float centerY, float radius, in RadialGradient() argument
67 this(centerX, centerY, radius, convertColors(colors), stops, tileMode, in RadialGradient()
88 public RadialGradient(float centerX, float centerY, float radius, in RadialGradient() argument
91 this(centerX, centerY, radius, colors.clone(), stops, tileMode, detectColorSpace(colors)); in RadialGradient()
98 private RadialGradient(float centerX, float centerY, float radius, in RadialGradient() argument
103 if (radius <= 0) { in RadialGradient()
111 mRadius = radius; in RadialGradient()
127 public RadialGradient(float centerX, float centerY, float radius, in RadialGradient() argument
129 this(centerX, centerY, radius, Color.pack(centerColor), Color.pack(edgeColor), tileMode); in RadialGradient()
145 public RadialGradient(float centerX, float centerY, float radius, in RadialGradient() argument
[all …]
DCornerPathEffect.java27 public CornerPathEffect(float radius) { in CornerPathEffect() argument
28 native_instance = nativeCreate(radius); in CornerPathEffect()
31 private static native long nativeCreate(float radius); in nativeCreate() argument
DBlurMaskFilter.java61 public BlurMaskFilter(float radius, Blur style) { in BlurMaskFilter() argument
62 native_instance = nativeConstructor(radius, style.native_int); in BlurMaskFilter()
65 private static native long nativeConstructor(float radius, int style); in nativeConstructor() argument
/frameworks/base/location/java/android/location/
DGeofence.java48 public static Geofence createCircle(double latitude, double longitude, float radius) { in createCircle() argument
49 return new Geofence(latitude, longitude, radius); in createCircle()
52 private Geofence(double latitude, double longitude, float radius) { in Geofence() argument
53 checkRadius(radius); in Geofence()
58 mRadius = radius; in Geofence()
81 private static void checkRadius(float radius) { in checkRadius() argument
82 if (radius <= 0) { in checkRadius()
83 throw new IllegalArgumentException("invalid radius: " + radius); in checkRadius()
109 float radius = in.readFloat();
111 return Geofence.createCircle(latitude, longitude, radius);
/frameworks/base/services/core/java/com/android/server/location/
DGnssGeofenceProvider.java23 public double radius; field in GnssGeofenceProvider.GeofenceEntry
55 entry.radius, in resumeIfStarted()
74 double longitude, double radius, int lastTransition, int monitorTransitions, in addCircularHardwareGeofence() argument
77 boolean added = mNative.addGeofence(geofenceId, latitude, longitude, radius, in addCircularHardwareGeofence()
85 entry.radius = radius; in addCircularHardwareGeofence()
142 public boolean addGeofence(int geofenceId, double latitude, double longitude, double radius, in addGeofence() argument
145 return native_add_geofence(geofenceId, latitude, longitude, radius, lastTransition, in addGeofence()
165 double longitude, double radius, int lastTransition, int monitorTransitions, in native_add_geofence() argument
/frameworks/layoutlib/bridge/src/android/view/
DRectShadowPainter.java67 float radius = viewOutline.getRadius(); in paintShadow() local
68 if (radius <= 0) { in paintShadow()
78 float outerArcRadius = radius + shadowSize; in paintShadow()
88 new float[]{0f, radius / outerArcRadius, 1f}, TileMode.CLAMP)); in paintShadow()
98 inset.inset(radius, radius); in paintShadow()
182 float radius, int rotations) { in drawCorner() argument
186 path.arcTo(-radius, -radius, radius, radius, rotations * PERPENDICULAR_ANGLE, in drawCorner()
/frameworks/base/libs/hwui/pipeline/skia/
DAnimatedDrawables.h60 uirenderer::CanvasPropertyPrimitive* radius, in AnimatedCircle() argument
62 : mX(x), mY(y), mRadius(radius), mPaint(paint) {} in AnimatedCircle()
68 const float radius = mRadius->value; in onGetBounds() local
69 return SkRect::MakeLTRB(x - radius, y - radius, x + radius, y + radius); in onGetBounds()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DCornerHandleView.java154 int radius = getResources().getDimensionPixelSize( in getOuterRadiusPx() local
156 if (radius == 0) { in getOuterRadiusPx()
157 radius = getResources().getDimensionPixelSize( in getOuterRadiusPx()
160 if (radius == 0) { in getOuterRadiusPx()
161 radius = getResources().getDimensionPixelSize( in getOuterRadiusPx()
164 if (radius == 0) { in getOuterRadiusPx()
165 radius = (int) convertDpToPixel(FALLBACK_RADIUS_DP, mContext); in getOuterRadiusPx()
167 return radius; in getOuterRadiusPx()
/frameworks/base/libs/hwui/
DOutline.h33 void setRoundRect(int left, int top, int right, int bottom, float radius, float alpha) { in setRoundRect() argument
36 top == mBounds.top && bottom == mBounds.bottom && radius == mRadius) { in setRoundRect()
43 mRadius = radius; in setRoundRect()
53 if (MathUtils::isPositive(radius)) { in setRoundRect()
54 mPath.addRoundRect(SkRect::MakeLTRB(left, top, right, bottom), radius, radius); in setRoundRect()
DRevealClip.h30 void set(bool shouldClip, float x, float y, float radius) { in set() argument
34 mRadius = radius; in set()
38 mPath.addCircle(x, y, radius); in set()
/frameworks/ml/nn/common/operations/
DLocalResponseNormalization.cpp51 int32_t radius, float bias, float alpha, float beta, in localResponseNormFloat32Impl() argument
64 const int32_t dBegin = std::max(0, i - radius); in localResponseNormFloat32Impl()
66 const int32_t dEnd = std::min(static_cast<int32_t>(axisSize), i + radius + 1); in localResponseNormFloat32Impl()
81 bool localResponseNorm(const T* inputData, const Shape& inputShape, int32_t radius, T bias, T alpha,
85 bool localResponseNorm<float>(const float* inputData, const Shape& inputShape, int32_t radius, in localResponseNorm() argument
94 .range = radius, .bias = bias, .alpha = alpha, .beta = beta}; in localResponseNorm()
100 return localResponseNormFloat32Impl(inputData, inputShape, radius, bias, alpha, beta, axis, in localResponseNorm()
106 bool localResponseNorm<_Float16>(const _Float16* inputData, const Shape& inputShape, int32_t radius, in localResponseNorm() argument
114 localResponseNorm<float>(inputDataFloat32.data(), inputShape, radius, bias, alpha, beta, axis, in localResponseNorm()
/frameworks/rs/support/java/src/androidx/renderscript/
DScriptIntrinsicBlur.java89 public void setRadius(float radius) {
90 if (radius <= 0 || radius > 25) {
93 setVar(0, radius);
/frameworks/base/core/java/android/hardware/location/
DGeofenceHardwareRequest.java42 private void setCircularGeofence(double latitude, double longitude, double radius) { in setCircularGeofence() argument
45 mRadius = radius; in setCircularGeofence()
57 double longitude, double radius) { in createCircularGeofence() argument
59 geofenceRequest.setCircularGeofence(latitude, longitude, radius); in createCircularGeofence()
/frameworks/base/services/core/java/com/android/server/
DLocationUsageLogger.java89 private static int bucketizeRadiusToStatsdEnum(float radius) { in bucketizeRadiusToStatsdEnum() argument
90 if (radius < 0) { in bucketizeRadiusToStatsdEnum()
92 } else if (radius < 100) { in bucketizeRadiusToStatsdEnum()
94 } else if (radius < 200) { in bucketizeRadiusToStatsdEnum()
96 } else if (radius < 300) { in bucketizeRadiusToStatsdEnum()
98 } else if (radius < 1000) { in bucketizeRadiusToStatsdEnum()
100 } else if (radius < 10000) { in bucketizeRadiusToStatsdEnum()
/frameworks/base/rs/java/android/renderscript/
DScriptIntrinsicBlur.java80 public void setRadius(float radius) { in setRadius() argument
81 if (radius <= 0 || radius > 25) { in setRadius()
84 setVar(0, radius); in setRadius()
/frameworks/layoutlib/bridge/src/android/graphics/
DRadialGradient_Delegate.java62 /*package*/ static long nativeCreate(long matrix, float x, float y, float radius, in nativeCreate() argument
64 RadialGradient_Delegate newDelegate = new RadialGradient_Delegate(matrix, x, y, radius, in nativeCreate()
86 private RadialGradient_Delegate(long nativeMatrix, float x, float y, float radius, in RadialGradient_Delegate() argument
89 mJavaPaint = new RadialGradientPaint(x, y, radius, mColors, mPositions, tile); in RadialGradient_Delegate()
98 public RadialGradientPaint(float x, float y, float radius, in RadialGradientPaint() argument
103 mRadius = radius; in RadialGradientPaint()

123456