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

12

/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 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);
45 /** Create a shader that draws a radial gradient given the center and radius
53 RadialGradient(float x, float y, float radius, int color0, int color1, TileMode tile) argument
61 nativeCreate1(float x, float y, float radius, int colors[], float positions[], int tileMode) argument
63 nativeCreate2(float x, float y, float radius, int color0, int color1, int tileMode) argument
[all...]
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 DPath.java389 * @param radius The radius of a circle to add to the path
392 public void addCircle(float x, float y, float radius, Direction dir) { argument
393 native_addCircle(mNativePath, x, y, radius, dir.nativeInt);
414 * @param rx The x-radius of the rounded corners on the round-rectangle
415 * @param ry The y-radius of the rounded corners on the round-rectangle
427 * two radius values [X, Y]. The corners are ordered top-left, top-right,
576 float radius, int dir);
575 native_addCircle(int nPath, float x, float y, float radius, int dir) argument
H A DMatrix.java513 * Return the mean radius of a circle after it has been mapped by
517 public float mapRadius(float radius) { argument
518 return native_mapRadius(native_instance, radius);
666 float radius);
665 native_mapRadius(int native_object, float radius) argument
H A DCanvas.java888 * Draw the specified circle using the specified paint. If radius is <= 0,
894 * @param radius The radius of the cirle to be drawn
897 public void drawCircle(float cx, float cy, float radius, Paint paint) { argument
898 native_drawCircle(mNativeCanvas, cx, cy, radius,
930 * @param rx The x-radius of the oval used to round the corners
931 * @param ry The y-radius of the oval used to round the corners
1514 float cy, float radius,
1513 native_drawCircle(int nativeCanvas, float cx, float cy, float radius, int paint) argument
H A DPaint.java791 * the main layer, with the specified offset and color, and blur radius.
792 * If radius is 0, then the shadow layer is removed.
794 public native void setShadowLayer(float radius, float dx, float dy, argument
/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;
77 int radius = a.getDimensionPixelSize(
79 setCornerRadius(radius);
84 com.android.internal.R.styleable.DrawableCorners_topLeftRadius, radius);
86 com.android.internal.R.styleable.DrawableCorners_topRightRadius, radius);
[all...]
H A DGradientDrawable.java185 * Specify radius for the corners of the gradient. If this is > 0, then the
188 public void setCornerRadius(float radius) { argument
189 mGradientState.setCornerRadius(radius);
384 // inner radius
385 float radius = st.mInnerRadius != -1 ?
389 innerBounds.inset(x - radius, y - radius);
406 ringPath.moveTo(x + radius, y);
408 ringPath.lineTo(x + radius + thickness, y);
772 int radius
971 setCornerRadius(float radius) argument
[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*/,
74 * Create a shader that draws a radial gradient given the center and radius.
76 * @param x The x-coordinate of the center of the radius
77 * @param y The y-coordinate of the center of the radius
78 * @param radius Must be positive. The radius of the circle for this
87 private RadialGradient_Delegate(float x, float y, float radius, in argument
99 RadialGradientPaint(float x, float y, float radius, int[] colors, float[] positions, TileMode mode) argument
[all...]
H A DPath_Delegate.java346 /*package*/ static void native_addCircle(int nPath, float x, float y, float radius, int dir) { argument
352 // because x/y is the center of the circle, need to offset this by the radius
354 x - radius, y - radius, radius * 2, radius * 2), false);
365 // because x/y is the center of the circle, need to offset this by the radius
H A DCanvas_Delegate.java736 float cx, float cy, float radius, int paint) {
738 new RectF(cx - radius, cy - radius, radius, radius),
735 native_drawCircle(int nativeCanvas, float cx, float cy, float radius, int paint) argument
H A DMatrix_Delegate.java710 /*package*/ static float native_mapRadius(int native_object, float radius) { argument
716 float[] src = new float[] { radius, 0.f, 0.f, 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));
H A DPathEffect.cpp49 static SkPathEffect* Corner_constructor(JNIEnv* env, jobject, float radius){ argument
50 return new SkCornerPathEffect(SkFloatToScalar(radius));
H A DShader.cpp132 float x, float y, float radius,
153 SkFloatToScalar(radius),
165 float x, float y, float radius,
175 SkShader* s = SkGradientShader::CreateRadial(center, SkFloatToScalar(radius), colors, NULL,
131 RadialGradient_create1(JNIEnv* env, jobject, float x, float y, float radius, jintArray colorArray, jfloatArray posArray, int tileMode) argument
164 RadialGradient_create2(JNIEnv* env, jobject, float x, float y, float radius, int color0, int color1, int tileMode) argument
H A DMatrix.cpp317 static jfloat mapRadius(JNIEnv* env, jobject clazz, SkMatrix* matrix, jfloat radius) { argument
318 return SkScalarToFloat(matrix->mapRadius(SkFloatToScalar(radius)));
H A DPath.cpp179 static void addCircle(JNIEnv* env, jobject clazz, SkPath* obj, jfloat x, jfloat y, jfloat radius, SkPath::Direction dir) { argument
182 SkScalar radius_ = SkFloatToScalar(radius);
H A DPaint.cpp412 static void setShadowLayer(JNIEnv* env, jobject jpaint, jfloat radius, argument
417 if (radius <= 0) {
421 paint->setLooper(new SkBlurDrawLooper(SkFloatToScalar(radius),
H A DCanvas.cpp424 jfloat cy, jfloat radius, SkPaint* paint) {
426 SkFloatToScalar(radius), *paint);
423 drawCircle(JNIEnv* env, jobject, SkCanvas* canvas, jfloat cx, jfloat cy, jfloat radius, SkPaint* paint) argument
/frameworks/base/core/java/com/android/internal/widget/
H A DLockPatternView.java656 final float radius = mSquareWidth * mDiameterFactor * 0.5f;
687 invalidateRect.set((int) (left - radius), (int) (top - radius),
688 (int) (right + radius), (int) (bottom + radius));
707 invalidateRect.union((int) (left - radius), (int) (top - radius),
708 (int) (right + radius), (int) (bottom + radius));
831 float radius
[all...]
/frameworks/base/location/java/android/location/
H A DLocationManager.java903 * (latitude, longitude) and the given radius. When the device
934 * @param radius the radius of the central point of the
945 float radius, long expiration, PendingIntent intent) {
948 ", longitude = " + longitude + ", radius = " + radius +
953 mService.addProximityAlert(latitude, longitude, radius,
944 addProximityAlert(double latitude, double longitude, float radius, long expiration, PendingIntent intent) argument
/frameworks/base/services/java/com/android/server/
H A DLocationManagerService.java1343 float radius, long expiration, PendingIntent intent) {
1347 mRadius = radius;
1369 double radius = loc.distanceTo(mLocation);
1370 return radius <= Math.max(mRadius,accuracy);
1525 float radius, long expiration, PendingIntent intent) {
1528 addProximityAlertLocked(latitude, longitude, radius, expiration, intent);
1540 float radius, long expiration, PendingIntent intent) {
1558 latitude, longitude, radius, expiration, intent);
1342 ProximityAlert(int uid, double latitude, double longitude, float radius, long expiration, PendingIntent intent) argument
1524 addProximityAlert(double latitude, double longitude, float radius, long expiration, PendingIntent intent) argument
1539 addProximityAlertLocked(double latitude, double longitude, float radius, long expiration, PendingIntent intent) argument

Completed in 239 milliseconds

12