Searched defs:radius (Results 1 - 25 of 79) sorted by relevance

1234

/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 DOutline.java159 * corner radius.
173 * Sets the Outline to the rounded rect defined by the input rect, and corner radius.
175 * Passing a zero radius is equivalent to calling {@link #setRect(int, int, int, int)}
177 public void setRoundRect(int left, int top, int right, int bottom, float radius) { argument
185 mRadius = radius;
192 public void setRoundRect(@NonNull Rect rect, float radius) { argument
193 setRoundRect(rect.left, rect.top, rect.right, rect.bottom, radius);
214 * Returns the rounded rect radius, if set, or a value less than 0 if a path has
218 * @return the rounded rect radius, or value < 0
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/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/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/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/support/v17/leanback/api21/android/support/v17/leanback/widget/
H A DRoundedRectHelperApi21.java30 RoundedRectOutlineProvider(int radius) { argument
31 mRadius = radius;
/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/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/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 DTextDropShadowCache.cpp34 hash = JenkinsHashMix(hash, android::hash_type(radius));
59 if (lhs.radius < rhs.radius) return -1;
60 if (lhs.radius > rhs.radius) return +1;
149 float radius, const float* positions) {
150 ShadowText entry(paint, radius, numGlyphs, glyphs, positions);
157 radius, positions);
148 get(const SkPaint* paint, const glyph_t* glyphs, int numGlyphs, float radius, const float* positions) argument
H A DFrameBuilder.h60 float radius; member in struct:android::uirenderer::FrameBuilder::LightGeometry
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
/frameworks/base/libs/hwui/utils/
H A DPaintUtils.h100 SkScalar radius; member in struct:android::uirenderer::PaintUtils::TextShadow
110 textShadow->radius = Blur::convertSigmaToRadius(blur.fSigma);
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 DMathUtils.h72 inline static int divisionsNeededToApproximateArc(float radius, argument
74 const float errConst = (-threshold / radius + 1);
/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...]
/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/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/core/jni/android/graphics/
H A DMaskFilter.cpp24 static jlong createBlur(JNIEnv* env, jobject, jfloat radius, jint blurStyle) { argument
25 SkScalar sigma = SkBlurMask::ConvertRadiusToSigma(radius);
31 static jlong createEmboss(JNIEnv* env, jobject, jfloatArray dirArray, jfloat ambient, jfloat specular, jfloat radius) { argument
40 SkScalar sigma = SkBlurMask::ConvertRadiusToSigma(radius);
H A DPathEffect.cpp57 static jlong Corner_constructor(JNIEnv* env, jobject, jfloat radius){ argument
58 SkPathEffect* effect = SkCornerPathEffect::Create(radius);
/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...]

Completed in 442 milliseconds

1234