Searched refs:radius (Results 1 - 25 of 119) 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.cpp29 float Blur::convertRadiusToSigma(float radius) { argument
30 return radius > 0 ? BLUR_SIGMA_SCALE * radius + 0.5f : 0.0f;
37 // if the original radius was on an integer boundary and the resulting radius
40 uint32_t Blur::convertRadiusToInt(float radius) { argument
41 const float radiusCeil = ceilf(radius);
42 if (MathUtils::areEqual(radiusCeil, radius)) {
45 return radius;
52 * Based on some experimental radius an
57 legacyConvertRadiusToSigma(float radius) argument
61 generateGaussianWeights(float* weights, float 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, float 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;
/frameworks/rs/java/tests/ImageProcessing2/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/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/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DRoundedRectHelper.java42 public void setClipToRoundedOutline(View view, boolean clip, int radius) { argument
43 mImpl.setClipToRoundedOutline(view, clip, radius);
55 public void setClipToRoundedOutline(View view, boolean clip, int radius); argument
63 public void setClipToRoundedOutline(View view, boolean clip, int radius) { argument
73 public void setClipToRoundedOutline(View view, boolean clip, int radius) { argument
74 RoundedRectHelperApi21.setClipToRoundedOutline(view, clip, radius);
/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.h42 void setRoundRect(int left, int top, int right, int bottom, float radius, float alpha) { argument
49 && radius == mRadius) {
56 mRadius = radius;
60 if (MathUtils::isPositive(radius)) {
62 radius, radius); local
H A DTextDropShadowCache.h37 ShadowText(): glyphCount(0), radius(0.0f), textSize(0.0f), typeface(nullptr),
42 ShadowText(const SkPaint* paint, float radius, uint32_t glyphCount, const glyph_t* srcGlyphs, argument
45 , radius(radius)
81 float radius; member in struct:android::uirenderer::ShadowText
134 int numGlyphs, float radius, const float* positions);
/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/libs/hwui/tests/unit/
H A DFontRendererTests.cpp46 for (int radius : {28, 20, 2}) {
48 radius, positions.data());
51 EXPECT_LE(bounds.getWidth() + radius * 2, (int) result.width);
52 EXPECT_LE(bounds.getHeight() + radius * 2, (int) result.height);
/frameworks/base/rs/java/android/renderscript/
H A DScriptIntrinsicBlur.java21 * specified radius to all elements of an allocation.
35 * default radius is 5.0.
67 * Set the radius of the Blur.
69 * Supported range 0 < radius <= 25
71 * @param radius The radius of the blur
73 public void setRadius(float radius) { argument
74 if (radius <= 0 || radius > 25) {
77 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.
41 * default radius is 5.0.
80 * Set the radius of the Blur.
82 * Supported range 0 < radius <= 25
84 * @param radius The radius of the blur
86 public void setRadius(float radius) { argument
87 if (radius <= 0 || radius > 25) {
90 setVar(0, radius);
[all...]
/frameworks/support/v7/cardview/api21/android/support/v7/widget/
H A DCardViewApi21.java27 ColorStateList backgroundColor, float radius, float elevation, float maxElevation) {
28 final RoundRectDrawable background = new RoundRectDrawable(backgroundColor, radius);
38 public void setRadius(CardViewDelegate cardView, float radius) { argument
39 getCardBackground(cardView).setRadius(radius);
90 final float radius = getRadius(cardView);
92 .calculateHorizontalPadding(elevation, radius, cardView.getPreventCornerOverlap()));
94 .calculateVerticalPadding(elevation, radius, cardView.getPreventCornerOverlap()));
26 initialize(CardViewDelegate cardView, Context context, ColorStateList backgroundColor, float radius, float elevation, float maxElevation) argument
/frameworks/support/v7/cardview/base/android/support/v7/widget/
H A DCardViewImpl.java27 float radius, float elevation, float maxElevation);
29 void setRadius(CardViewDelegate cardView, float radius); argument
26 initialize(CardViewDelegate cardView, Context context, ColorStateList backgroundColor, float radius, float elevation, float maxElevation) argument
/frameworks/base/tools/layoutlib/bridge/src/android/view/
H A DRectShadowPainter.java62 float radius = viewOutline.getRadius();
63 float outerArcRadius = radius + shadowSize;
66 new float[]{0f, radius / outerArcRadius, 1f}, TileMode.CLAMP));
76 inset.inset(radius, radius);
149 * @param radius radius of the arc
153 float radius, int rotations) {
157 path.arcTo(-radius, -radius, radiu
152 drawCorner(Canvas canvas, Paint paint, Path path, float x, float y, float radius, int rotations) argument
[all...]

Completed in 721 milliseconds

12345