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

123

/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 int nativeCreate(float radius); argument
H A DBlurMaskFilter.java20 * This takes a mask, and blurs its edge by the specified radius. Whether or
42 * @param radius The radius to extend the blur from the original mask. Must be > 0.
46 public BlurMaskFilter(float radius, Blur style) { argument
47 native_instance = nativeConstructor(radius, style.native_int);
50 private static native int nativeConstructor(float radius, int style); argument
H A DRadialGradient.java21 /** Create a shader that draws a radial gradient given the center and radius.
22 @param x The x-coordinate of the center of the radius
23 @param y The y-coordinate of the center of the radius
24 @param radius Must be positive. The radius of the circle for this gradient
31 public RadialGradient(float x, float y, float radius, argument
33 if (radius <= 0) {
34 throw new IllegalArgumentException("radius must be > 0");
42 native_instance = nativeCreate1(x, y, radius, colors, positions, tile.nativeInt);
43 native_shader = nativePostCreate1(native_instance, x, y, radius, color
55 RadialGradient(float x, float y, float radius, int color0, int color1, TileMode tile) argument
65 nativeCreate1(float x, float y, float radius, int colors[], float positions[], int tileMode) argument
67 nativeCreate2(float x, float y, float radius, int color0, int color1, int tileMode) argument
70 nativePostCreate1(int native_shader, float x, float y, float radius, int colors[], float positions[], int tileMode) argument
72 nativePostCreate2(int native_shader, float x, float y, float radius, int color0, int color1, int tileMode) argument
[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...]
H A DGradientDrawable.java184 * @param radii 4 pairs of X and Y radius for each corner, specified in pixels.
198 * <p>Specify radius for the corners of the gradient. If this is > 0, then the
205 * @param radius The radius in pixels of the corners of the rectangle shape
211 public void setCornerRadius(float radius) { argument
212 mGradientState.setCornerRadius(radius);
322 * <p>Sets the center location of the gradient. The radius is honored only when
341 * <p>Sets the radius of the gradient. The radius is honored only when the
347 * @param gradientRadius The radius o
1239 setCornerRadius(float radius) argument
[all...]
/frameworks/base/graphics/java/android/renderscript/
H A DScriptIntrinsicBlur.java25 * specified radius to all elements of an allocation.
39 * default radius is 5.0.
70 * Set the radius of the Blur.
72 * Supported range 0 < radius <= 25
74 * @param radius The radius of the blur
76 public void setRadius(float radius) { argument
77 if (radius <= 0 || radius > 25) {
80 setVar(0, radius);
[all...]
/frameworks/base/location/java/android/location/
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/tools/layoutlib/bridge/src/android/graphics/
H A DBlurMaskFilter_Delegate.java58 /*package*/ static int nativeConstructor(float radius, int style) { argument
H A DCornerPathEffect_Delegate.java65 /*package*/ static int nativeCreate(float radius) { argument
H A DRadialGradient_Delegate.java57 /*package*/ static int nativeCreate1(float x, float y, float radius, argument
59 RadialGradient_Delegate newDelegate = new RadialGradient_Delegate(x, y, radius,
65 /*package*/ static int nativeCreate2(float x, float y, float radius, argument
67 return nativeCreate1(x, y, radius, new int[] { color0, color1 }, null /*positions*/,
72 /*package*/ static int nativePostCreate1(int native_shader, float x, float y, float radius, argument
79 /*package*/ static int nativePostCreate2(int native_shader, float x, float y, float radius, argument
88 * Create a shader that draws a radial gradient given the center and radius.
90 * @param x The x-coordinate of the center of the radius
91 * @param y The y-coordinate of the center of the radius
92 * @param radius Mus
101 RadialGradient_Delegate(float x, float y, float radius, int colors[], float positions[], TileMode tile) argument
113 RadialGradientPaint(float x, float y, float radius, int[] colors, float[] positions, TileMode mode) argument
[all...]
/frameworks/support/renderscript/v8/java/src/android/support/v8/renderscript/
H A DScriptIntrinsicBlur.java25 * specified radius to all elements of an allocation.
39 * default radius is 5.0.
70 * Set the radius of the Blur.
72 * Supported range 0 < radius <= 25
74 * @param radius The radius of the blur
76 public void setRadius(float radius) { argument
77 if (radius <= 0 || radius > 25) {
80 setVar(0, radius);
[all...]
/frameworks/base/libs/hwui/
H A DTextDropShadowCache.h35 ShadowText(): radius(0), len(0), textSize(0.0f), typeface(NULL) {
38 ShadowText(SkPaint* paint, uint32_t radius, uint32_t len, const char* srcText, argument
40 radius(radius), len(len), positions(positions) {
62 uint32_t radius; member in struct:android::uirenderer::ShadowText
86 LTE_INT(radius) {
133 int numGlyphs, uint32_t radius, const float* positions);
H A DFontRenderer.cpp488 uint32_t startIndex, uint32_t len, int numGlyphs, uint32_t radius, const float* positions) {
508 uint32_t paddedWidth = (uint32_t) (bounds.right - bounds.left) + 2 * radius;
509 uint32_t paddedHeight = (uint32_t) (bounds.top - bounds.bottom) + 2 * radius;
516 int penX = radius - bounds.left;
517 int penY = radius - bounds.bottom;
521 blurImage(dataBuffer, paddedWidth, paddedHeight, radius);
627 void FontRenderer::computeGaussianWeights(float* weights, int32_t radius) { argument
633 // x is of the form [-radius .. 0 .. radius]
634 // and sigma varies with radius
487 renderDropShadow(SkPaint* paint, const char *text, uint32_t startIndex, uint32_t len, int numGlyphs, uint32_t radius, const float* positions) argument
664 horizontalBlur(float* weights, int32_t radius, const uint8_t* source, uint8_t* dest, int32_t width, int32_t height) argument
708 verticalBlur(float* weights, int32_t radius, const uint8_t* source, uint8_t* dest, int32_t width, int32_t height) argument
753 blurImage(uint8_t *image, int32_t width, int32_t height, int32_t radius) argument
[all...]
H A DShapeCache.cpp57 PathTexture* CircleShapeCache::getCircle(float radius, SkPaint* paint) { argument
58 CircleShapeCacheEntry entry(radius, paint);
63 path.addCircle(radius, radius, radius, SkPath::kCW_Direction);
H A DTextDropShadowCache.cpp105 int numGlyphs, uint32_t radius, const float* positions) {
106 ShadowText entry(paint, radius, len, text, positions);
113 len, numGlyphs, radius, positions);
104 get(SkPaint* paint, const char* text, uint32_t len, int numGlyphs, uint32_t radius, const float* positions) argument
H A DFontRenderer.h83 uint32_t len, int numGlyphs, uint32_t radius, const float* positions);
178 static void computeGaussianWeights(float* weights, int32_t radius);
179 static void horizontalBlur(float* weights, int32_t radius, const uint8_t *source, uint8_t *dest,
181 static void verticalBlur(float* weights, int32_t radius, const uint8_t *source, uint8_t *dest,
183 static void blurImage(uint8_t* image, int32_t width, int32_t height, int32_t radius);
/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/tests/RenderScriptTests/ImageProcessing/src/com/android/rs/image/
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/base/tests/RenderScriptTests/ImageProcessing2/src/com/android/rs/image/
H A Dfisheye.rsh39 const float radius = 1.15 * bound;
40 radius2 = radius*radius;
H A Dfisheye_approx.rsh39 const float radius = 1.15 * bound;
40 radius2 = radius*radius;
/frameworks/base/core/jni/android/graphics/
H A DMaskFilter.cpp20 static SkMaskFilter* createBlur(JNIEnv* env, jobject, float radius, int blurStyle) { argument
21 SkMaskFilter* filter = SkBlurMaskFilter::Create(SkFloatToScalar(radius),
27 static SkMaskFilter* createEmboss(JNIEnv* env, jobject, jfloatArray dirArray, float ambient, float specular, float radius) { argument
39 SkFloatToScalar(radius));
/frameworks/base/docs/html/reference/renderscript/
H A Ddoxygen.css162 border-radius: 0.5em;
163 -webkit-border-radius: .5em;
164 -moz-border-radius: .5em;
425 border-top-right-radius: 8px;
426 border-top-left-radius: 8px;
429 -moz-border-radius-topright: 8px;
430 -moz-border-radius-topleft: 8px;
433 -webkit-border-top-right-radius: 8px;
434 -webkit-border-top-left-radius: 8px;
449 border-bottom-left-radius
[all...]
/frameworks/base/tests/touchlag/
H A Dtouchlag.cpp106 size_t x0, size_t y0, size_t radius, bool filled = false) {
107 ssize_t f = 1 - radius;
109 ssize_t ddF_y = -2 * radius;
111 ssize_t y = radius;
113 drawHLine(buf, pixel, x0-radius, y0, 2*radius);
115 drawTwoPixels(buf, pixel, x0-radius, y0, 2*radius);
105 drawCircle(Buffer* buf, uint32_t pixel, size_t x0, size_t y0, size_t radius, bool filled = false) argument
/frameworks/support/renderscript/v8/rs_support/driver/
H A DrsdIntrinsicBlur.cpp30 float radius; member in struct:ConvolveParams
41 // x is of the form [-radius .. 0 .. radius]
42 // and sigma varies with radius.
43 // Based on some experimental radius values and sigma's
44 // we approximately fit sigma = f(radius) as
45 // sigma = radius * 0.4 + 0.6
46 // The larger the radius gets, the more our gaussian blur
49 float sigma = 0.4f * cp->radius + 0.6f;
59 cp->iradius = (float)ceil(cp->radius)
[all...]

Completed in 798 milliseconds

123