Searched refs:radius (Results 1 - 25 of 102) sorted by relevance

12345

/frameworks/base/graphics/java/android/graphics/
H A DCornerPathEffect.java24 * the specified radius.
25 * @param radius Amount to round sharp angles between line segments.
27 public CornerPathEffect(float radius) { argument
28 native_instance = nativeCreate(radius);
31 private static native long nativeCreate(float radius); argument
H A DBlurMaskFilter.java20 * This takes a mask, and blurs its edge by the specified radius. Whether or
57 * @param radius The radius to extend the blur from the original mask. Must be > 0.
61 public BlurMaskFilter(float radius, Blur style) { argument
62 native_instance = nativeConstructor(radius, style.native_int);
65 private static native long nativeConstructor(float radius, int style); argument
H A DRadialGradient.java43 /** Create a shader that draws a radial gradient given the center and radius.
44 @param centerX The x-coordinate of the center of the radius
45 @param centerY The y-coordinate of the center of the radius
46 @param radius Must be positive. The radius of the circle for this gradient.
54 public RadialGradient(float centerX, float centerY, float radius, argument
56 if (radius <= 0) {
57 throw new IllegalArgumentException("radius must be > 0");
68 mRadius = radius;
72 init(nativeCreate1(centerX, centerY, radius, color
83 RadialGradient(float centerX, float centerY, float radius, int centerColor, int edgeColor, @NonNull TileMode tileMode) argument
120 nativeCreate1(float x, float y, float radius, int colors[], float positions[], int tileMode) argument
122 nativeCreate2(float x, float y, float radius, int color0, int color1, int tileMode) argument
[all...]
/frameworks/base/libs/hwui/utils/
H A DBlur.cpp31 float Blur::convertRadiusToSigma(float radius) { argument
32 return radius > 0 ? BLUR_SIGMA_SCALE * radius + 0.5f : 0.0f;
39 // if the original radius was on an integer boundary and the resulting radius
42 uint32_t Blur::convertRadiusToInt(float radius) { argument
43 const float radiusCeil = ceilf(radius);
44 if (MathUtils::areEqual(radiusCeil, radius)) {
47 return radius;
54 * Based on some experimental radius an
59 legacyConvertRadiusToSigma(float radius) argument
63 generateGaussianWeights(float* weights, int32_t radius) argument
94 horizontal(float* weights, int32_t radius, const uint8_t* source, uint8_t* dest, int32_t width, int32_t height) argument
138 vertical(float* weights, int32_t radius, const uint8_t* source, uint8_t* dest, int32_t width, int32_t height) argument
[all...]
H A DBlur.h28 // If radius > 0, return the corresponding sigma, else return 0
29 ANDROID_API static float convertRadiusToSigma(float radius);
30 // If sigma > 0.5, return the corresponding radius, else return 0
32 // If the original radius was on an integer boundary then after the sigma to
33 // radius conversion a small rounding error may be introduced. This function
35 static uint32_t convertRadiusToInt(float radius);
37 static void generateGaussianWeights(float* weights, int32_t radius);
38 static void horizontal(float* weights, int32_t radius, const uint8_t* source,
40 static void vertical(float* weights, int32_t radius, const uint8_t* source,
/frameworks/rs/java/tests/ImageProcessing/src/com/android/rs/image/
H A Dthreshold.rs22 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
[all...]
H A Dfisheye.rsh39 const float radius = 1.15f * bound;
40 radius2 = radius*radius;
H A Dfisheye_approx.rsh39 const float radius = 1.15f * bound;
40 radius2 = radius*radius;
/frameworks/rs/java/tests/ImageProcessing2/src/com/android/rs/image/
H A Dthreshold.fs22 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
[all...]
/frameworks/rs/java/tests/ImageProcessing_jb/src/com/android/rs/image/
H A Dthreshold.rs22 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
[all...]
/frameworks/base/graphics/java/android/graphics/drawable/
H A DPaintDrawable.java40 * Specify radius for the corners of the rectangle. If this is > 0, then the
42 * @param radius the radius for the corners of the rectangle
44 public void setCornerRadius(float radius) { argument
46 if (radius > 0) {
49 radii[i] = radius;
78 int radius = a.getDimensionPixelSize(
80 setCornerRadius(radius);
85 com.android.internal.R.styleable.DrawableCorners_topLeftRadius, radius);
87 com.android.internal.R.styleable.DrawableCorners_topRightRadius, radius);
[all...]
/frameworks/base/location/java/android/location/
H A DIGpsGeofenceHardware.aidl28 longitude, double radius, int lastTransition, int monitorTransition,
H A DGeofence.java43 * @param radius radius in meters
47 public static Geofence createCircle(double latitude, double longitude, float radius) { argument
48 return new Geofence(latitude, longitude, radius);
51 private Geofence(double latitude, double longitude, float radius) { argument
52 checkRadius(radius);
57 mRadius = radius;
80 private static void checkRadius(float radius) { argument
81 if (radius <= 0) {
82 throw new IllegalArgumentException("invalid radius
[all...]
/frameworks/base/libs/hwui/
H A DRevealClip.h34 void set(bool shouldClip, float x, float y, float radius) { argument
38 mRadius = radius;
42 mPath.addCircle(x, y, radius);
H A DOutline.h34 void setRoundRect(int left, int top, int right, int bottom, float radius, float alpha) { argument
37 mRadius = radius;
40 radius, radius); local
H A DTextDropShadowCache.h36 ShadowText(): len(0), radius(0.0f), textSize(0.0f), typeface(NULL),
41 ShadowText(const SkPaint* paint, float radius, uint32_t len, const char* srcText, argument
43 len(len), radius(radius), positions(positions) {
86 float radius; member in struct:android::uirenderer::ShadowText
139 int numGlyphs, float radius, const float* positions);
/frameworks/base/core/java/com/android/internal/widget/multiwaveview/
H A DPointCloud.java47 private float radius = 50; field in class:PointCloud.WaveManager
51 radius = r;
55 return radius;
70 private float radius = 0.0f; field in class:PointCloud.GlowManager
98 radius = r;
102 return radius;
109 float radius; field in class:PointCloud.Point
114 radius = r;
138 Log.w(TAG, "Must specify an inner radius");
182 if (glowDistance < glowManager.radius) {
[all...]
/frameworks/base/core/java/android/hardware/location/
H A DGeofenceHardwareRequest.java42 private void setCircularGeofence(double latitude, double longitude, double radius) { argument
45 mRadius = radius;
54 * @param radius Radius of the geofence (in meters)
57 double longitude, double radius) {
59 geofenceRequest.setCircularGeofence(latitude, longitude, radius);
146 * Returns the radius of this geofence.
56 createCircularGeofence(double latitude, double longitude, double radius) argument
/frameworks/base/rs/java/android/renderscript/
H A DScriptIntrinsicBlur.java21 * specified radius to all elements of an allocation.
35 * default radius is 5.0.
66 * Set the radius of the Blur.
68 * Supported range 0 < radius <= 25
70 * @param radius The radius of the blur
72 public void setRadius(float radius) { argument
73 if (radius <= 0 || radius > 25) {
76 setVar(0, radius);
[all...]
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DBlurMaskFilter_Delegate.java58 /*package*/ static long nativeConstructor(float radius, int style) { argument
H A DCornerPathEffect_Delegate.java65 /*package*/ static long nativeCreate(float radius) { argument
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/
H A DScriptIntrinsicBlur.java25 * specified radius to all elements of an allocation.
39 * default radius is 5.0.
74 * Set the radius of the Blur.
76 * Supported range 0 < radius <= 25
78 * @param radius The radius of the blur
80 public void setRadius(float radius) { argument
81 if (radius <= 0 || radius > 25) {
84 setVar(0, radius);
[all...]
/frameworks/support/v7/cardview/api21/android/support/v7/widget/
H A DCardViewApi21.java25 float radius, float elevation, float maxElevation) {
26 final RoundRectDrawable backgroundDrawable = new RoundRectDrawable(backgroundColor, radius);
35 public void setRadius(CardViewDelegate cardView, float radius) { argument
36 ((RoundRectDrawable) (cardView.getBackground())).setRadius(radius);
87 final float radius = getRadius(cardView);
89 .calculateHorizontalPadding(elevation, radius, cardView.getPreventCornerOverlap()));
91 .calculateVerticalPadding(elevation, radius, cardView.getPreventCornerOverlap()));
24 initialize(CardViewDelegate cardView, Context context, int backgroundColor, float radius, float elevation, float maxElevation) argument
H A DRoundRectDrawable.java45 public RoundRectDrawable(int backgroundColor, float radius) { argument
46 mRadius = radius;
100 void setRadius(float radius) { argument
101 if (radius == mRadius) {
104 mRadius = radius;
/frameworks/support/v7/cardview/base/android/support/v7/widget/
H A DCardViewImpl.java23 void initialize(CardViewDelegate cardView, Context context, int backgroundColor, float radius, argument
26 void setRadius(CardViewDelegate cardView, float radius); argument

Completed in 7143 milliseconds

12345