Home
last modified time | relevance | path

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

1234567

/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/ImageProcessing2/src/com/android/rs/image/
Dthreshold.rs22 static int radius;
34 radius = rad;
48 float sigma = 0.4f * (float)radius + 0.6f;
59 for (int r = -radius; r <= radius; r ++) {
61 gaussian[r + radius] = coeff1 * pow(e, floatR * floatR * coeff2);
62 normalizeFactor += gaussian[r + radius];
67 for (int r = -radius; r <= radius; r ++) {
69 gaussian[r + radius] *= normalizeFactor;
81 if ((y > radius) && (y < (height - radius))) {
82 for (int r = -radius; r <= radius; r ++) {
[all …]
/frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/
Dthreshold.rs22 static int radius;
34 radius = rad;
48 float sigma = 0.4f * (float)radius + 0.6f;
59 for (int r = -radius; r <= radius; r ++) {
61 gaussian[r + radius] = coeff1 * pow(e, floatR * floatR * coeff2);
62 normalizeFactor += gaussian[r + radius];
67 for (int r = -radius; r <= radius; r ++) {
69 gaussian[r + radius] *= normalizeFactor;
81 if ((y > radius) && (y < (height - radius))) {
82 for (int r = -radius; r <= radius; r ++) {
[all …]
Dthreshold_half.rs22 static int radius;
34 radius = rad;
48 half sigma = 0.4f * (half)radius + 0.6f;
59 for (int r = -radius; r <= radius; r ++) {
61 gaussian[r + radius] = coeff1 * pow(e, halfR * halfR * coeff2);
62 normalizeFactor += gaussian[r + radius];
67 for (int r = -radius; r <= radius; r ++) {
69 gaussian[r + radius] *= normalizeFactor;
81 if ((y > radius) && (y < (height - radius))) {
82 for (int r = -radius; r <= radius; r ++) {
[all …]
/frameworks/rs/tests/java_api/ImageProcessing/src/com/android/rs/image/
Dthreshold.rs22 static int radius;
34 radius = rad;
48 float sigma = 0.4f * (float)radius + 0.6f;
59 for (int r = -radius; r <= radius; r ++) {
61 gaussian[r + radius] = coeff1 * pow(e, floatR * floatR * coeff2);
62 normalizeFactor += gaussian[r + radius];
67 for (int r = -radius; r <= radius; r ++) {
69 gaussian[r + radius] *= normalizeFactor;
81 if ((y > radius) && (y < (height - radius))) {
82 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 …]
/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/ml/nn/common/operations/
DNormalization.cpp30 int32_t radius, float bias, float alpha, float beta, in localResponseNormFloat32Impl() argument
43 const int32_t dBegin = std::max(0, i - radius); in localResponseNormFloat32Impl()
45 const int32_t dEnd = std::min(static_cast<int32_t>(axisSize), i + radius + 1); in localResponseNormFloat32Impl()
59 bool localResponseNormFloat16(const _Float16* inputData, const Shape& inputShape, int32_t radius, in localResponseNormFloat16() argument
67 localResponseNormFloat32(inputDataFloat32.data(), inputShape, radius, bias, alpha, beta, axis, in localResponseNormFloat16()
74 bool localResponseNormFloat32(const float* inputData, const Shape& inputShape, int32_t radius, in localResponseNormFloat32() argument
83 .range = radius, .bias = bias, .alpha = alpha, .beta = beta}; in localResponseNormFloat32()
89 return localResponseNormFloat32Impl(inputData, inputShape, radius, bias, alpha, beta, axis, in localResponseNormFloat32()
/frameworks/ml/nn/runtime/test/generated/models/
Dspace_to_depth_quant8_2.model.cpp9 auto radius = model->addOperand(&type1); in CreateModel() local
13 model->setOperandValue(radius, radius_init, sizeof(int32_t) * 1); in CreateModel()
14 model->addOperation(ANEURALNETWORKS_SPACE_TO_DEPTH, {input, radius}, {output}); in CreateModel()
33 auto radius = model->addOperand(&type1); in CreateModel_dynamic_output_shape() local
37 model->setOperandValue(radius, radius_init, sizeof(int32_t) * 1); in CreateModel_dynamic_output_shape()
38 model->addOperation(ANEURALNETWORKS_SPACE_TO_DEPTH, {input, radius}, {output}); in CreateModel_dynamic_output_shape()
Ddepth_to_space_quant8_2.model.cpp9 auto radius = model->addOperand(&type1); in CreateModel() local
13 model->setOperandValue(radius, radius_init, sizeof(int32_t) * 1); in CreateModel()
14 model->addOperation(ANEURALNETWORKS_DEPTH_TO_SPACE, {input, radius}, {output}); in CreateModel()
33 auto radius = model->addOperand(&type1); in CreateModel_dynamic_output_shape() local
37 model->setOperandValue(radius, radius_init, sizeof(int32_t) * 1); in CreateModel_dynamic_output_shape()
38 model->addOperation(ANEURALNETWORKS_DEPTH_TO_SPACE, {input, radius}, {output}); in CreateModel_dynamic_output_shape()
Ddepth_to_space_quant8_1.model.cpp9 auto radius = model->addOperand(&type1); in CreateModel() local
13 model->setOperandValue(radius, radius_init, sizeof(int32_t) * 1); in CreateModel()
14 model->addOperation(ANEURALNETWORKS_DEPTH_TO_SPACE, {input, radius}, {output}); in CreateModel()
33 auto radius = model->addOperand(&type1); in CreateModel_dynamic_output_shape() local
37 model->setOperandValue(radius, radius_init, sizeof(int32_t) * 1); in CreateModel_dynamic_output_shape()
38 model->addOperation(ANEURALNETWORKS_DEPTH_TO_SPACE, {input, radius}, {output}); in CreateModel_dynamic_output_shape()
Dspace_to_depth_quant8_1.model.cpp9 auto radius = model->addOperand(&type1); in CreateModel() local
13 model->setOperandValue(radius, radius_init, sizeof(int32_t) * 1); in CreateModel()
14 model->addOperation(ANEURALNETWORKS_SPACE_TO_DEPTH, {input, radius}, {output}); in CreateModel()
33 auto radius = model->addOperand(&type1); in CreateModel_dynamic_output_shape() local
37 model->setOperandValue(radius, radius_init, sizeof(int32_t) * 1); in CreateModel_dynamic_output_shape()
38 model->addOperation(ANEURALNETWORKS_SPACE_TO_DEPTH, {input, radius}, {output}); in CreateModel_dynamic_output_shape()
Dlocal_response_norm_float_3.model.cpp9 auto radius = model->addOperand(&type1); in CreateModel() local
16 model->setOperandValue(radius, radius_init, sizeof(int32_t) * 1); in CreateModel()
23 …model->addOperation(ANEURALNETWORKS_LOCAL_RESPONSE_NORMALIZATION, {input, radius, bias, alpha, bet… in CreateModel()
43 auto radius = model->addOperand(&type1); in CreateModel_dynamic_output_shape() local
50 model->setOperandValue(radius, radius_init, sizeof(int32_t) * 1); in CreateModel_dynamic_output_shape()
57 …model->addOperation(ANEURALNETWORKS_LOCAL_RESPONSE_NORMALIZATION, {input, radius, bias, alpha, bet… in CreateModel_dynamic_output_shape()
Dlocal_response_norm_float_1.model.cpp9 auto radius = model->addOperand(&type1); in CreateModel() local
16 model->setOperandValue(radius, radius_init, sizeof(int32_t) * 1); in CreateModel()
23 …model->addOperation(ANEURALNETWORKS_LOCAL_RESPONSE_NORMALIZATION, {input, radius, bias, alpha, bet… in CreateModel()
43 auto radius = model->addOperand(&type1); in CreateModel_dynamic_output_shape() local
50 model->setOperandValue(radius, radius_init, sizeof(int32_t) * 1); in CreateModel_dynamic_output_shape()
57 …model->addOperation(ANEURALNETWORKS_LOCAL_RESPONSE_NORMALIZATION, {input, radius, bias, alpha, bet… in CreateModel_dynamic_output_shape()
Dlocal_response_norm_float_4.model.cpp9 auto radius = model->addOperand(&type1); in CreateModel() local
16 model->setOperandValue(radius, radius_init, sizeof(int32_t) * 1); in CreateModel()
23 …model->addOperation(ANEURALNETWORKS_LOCAL_RESPONSE_NORMALIZATION, {input, radius, bias, alpha, bet… in CreateModel()
43 auto radius = model->addOperand(&type1); in CreateModel_dynamic_output_shape() local
50 model->setOperandValue(radius, radius_init, sizeof(int32_t) * 1); in CreateModel_dynamic_output_shape()
57 …model->addOperation(ANEURALNETWORKS_LOCAL_RESPONSE_NORMALIZATION, {input, radius, bias, alpha, bet… in CreateModel_dynamic_output_shape()
Dlocal_response_norm_float_4_relaxed.model.cpp9 auto radius = model->addOperand(&type1); in CreateModel() local
16 model->setOperandValue(radius, radius_init, sizeof(int32_t) * 1); in CreateModel()
23 …model->addOperation(ANEURALNETWORKS_LOCAL_RESPONSE_NORMALIZATION, {input, radius, bias, alpha, bet… in CreateModel()
45 auto radius = model->addOperand(&type1); in CreateModel_dynamic_output_shape() local
52 model->setOperandValue(radius, radius_init, sizeof(int32_t) * 1); in CreateModel_dynamic_output_shape()
59 …model->addOperation(ANEURALNETWORKS_LOCAL_RESPONSE_NORMALIZATION, {input, radius, bias, alpha, bet… in CreateModel_dynamic_output_shape()
Dlocal_response_norm_float_2_relaxed.model.cpp9 auto radius = model->addOperand(&type1); in CreateModel() local
16 model->setOperandValue(radius, radius_init, sizeof(int32_t) * 1); in CreateModel()
23 …model->addOperation(ANEURALNETWORKS_LOCAL_RESPONSE_NORMALIZATION, {input, radius, bias, alpha, bet… in CreateModel()
45 auto radius = model->addOperand(&type1); in CreateModel_dynamic_output_shape() local
52 model->setOperandValue(radius, radius_init, sizeof(int32_t) * 1); in CreateModel_dynamic_output_shape()
59 …model->addOperation(ANEURALNETWORKS_LOCAL_RESPONSE_NORMALIZATION, {input, radius, bias, alpha, bet… in CreateModel_dynamic_output_shape()
/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.java152 int radius = getResources().getDimensionPixelSize( in getOuterRadiusPx() local
154 if (radius == 0) { in getOuterRadiusPx()
155 radius = getResources().getDimensionPixelSize( in getOuterRadiusPx()
158 if (radius == 0) { in getOuterRadiusPx()
159 radius = getResources().getDimensionPixelSize( in getOuterRadiusPx()
162 if (radius == 0) { in getOuterRadiusPx()
163 radius = (int) convertDpToPixel(FALLBACK_RADIUS_DP, mContext); in getOuterRadiusPx()
165 return radius; in getOuterRadiusPx()

1234567