Searched defs:radius (Results 1 - 25 of 84) 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.java171 * corner radius.
185 * Sets the Outline to the rounded rect defined by the input rect, and corner radius.
187 * Passing a zero radius is equivalent to calling {@link #setRect(int, int, int, int)}
189 public void setRoundRect(int left, int top, int right, int bottom, float radius) { argument
201 mRadius = radius;
207 public void setRoundRect(@NonNull Rect rect, float radius) { argument
208 setRoundRect(rect.left, rect.top, rect.right, rect.bottom, radius);
229 * Returns the rounded rect radius, if set, or a value less than 0 if a path has
233 * @return the rounded rect radius, or value < 0
H A DRadialGradient.java45 * Create a shader that draws a radial gradient given the center and radius.
47 * @param centerX The x-coordinate of the center of the radius
48 * @param centerY The y-coordinate of the center of the radius
49 * @param radius Must be positive. The radius of the circle for this gradient.
57 public RadialGradient(float centerX, float centerY, float radius, argument
60 if (radius <= 0) {
61 throw new IllegalArgumentException("radius must be > 0");
72 mRadius = radius;
79 * Create a shader that draws a radial gradient given the center and radius
88 RadialGradient(float centerX, float centerY, float radius, @ColorInt int centerColor, @ColorInt int edgeColor, @NonNull TileMode tileMode) argument
129 nativeCreate1(long matrix, float x, float y, float radius, int colors[], float positions[], int tileMode) argument
131 nativeCreate2(long matrix, 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.
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/rs/support/java/src/android/support/v8/renderscript/
H A DScriptIntrinsicBlur.java25 * specified radius to all elements of an allocation.
41 * default radius is 5.0.
83 * Set the radius of the Blur.
85 * Supported range 0 < radius <= 25
87 * @param radius The radius of the blur
89 public void setRadius(float radius) { argument
90 if (radius <= 0 || radius > 25) {
93 setVar(0, radius);
[all...]
/frameworks/support/v17/leanback/api21/android/support/v17/leanback/widget/
H A DRoundedRectHelperApi21.java32 RoundedRectOutlineProvider(int radius) { argument
33 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
66 public void setClipToRoundedOutline(View view, boolean clip, int radius) { argument
79 public void setClipToRoundedOutline(View view, boolean clip, int radius) { argument
80 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 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 DCanvasState.h136 const Rect& rect, float radius, bool highPriority = true) {
137 mSnapshot->setClippingRoundRect(allocator, rect, radius, highPriority);
135 setClippingRoundRect(LinearAllocator& allocator, const Rect& rect, float radius, bool highPriority = true) 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
H A DSnapshot.cpp117 float radius, bool highPriority) {
141 state->dangerRects[0].bottom = state->dangerRects[1].bottom = bounds.top + radius;
142 state->dangerRects[0].right = state->dangerRects[2].right = bounds.left + radius;
143 state->dangerRects[1].left = state->dangerRects[3].left = bounds.right - radius;
144 state->dangerRects[2].top = state->dangerRects[3].top = bounds.bottom - radius;
154 state->innerRect.inset(radius);
155 state->radius = radius;
116 setClippingRoundRect(LinearAllocator& allocator, const Rect& bounds, float radius, bool highPriority) argument
/frameworks/base/libs/hwui/pipeline/skia/
H A DAnimatedDrawables.h64 uirenderer::CanvasPropertyPrimitive* radius, uirenderer::CanvasPropertyPaint* paint)
67 , mRadius(radius)
74 const float radius = mRadius->value; variable
75 return SkRect::MakeLTRB(x - radius, y - radius, x + radius, y + radius);
63 AnimatedCircle(uirenderer::CanvasPropertyPrimitive* x, uirenderer::CanvasPropertyPrimitive* y, uirenderer::CanvasPropertyPrimitive* radius, uirenderer::CanvasPropertyPaint* paint) argument
/frameworks/base/libs/hwui/utils/
H A DPaintUtils.h72 SkScalar radius; member in struct:android::uirenderer::PaintUtils::TextShadow
82 textShadow->radius = Blur::convertSigmaToRadius(blur.fSigma);
/frameworks/base/tools/layoutlib/bridge/src/android/view/
H A DRectShadowPainter.java50 float radius = viewOutline.getRadius();
51 if (radius <= 0) {
52 // We can not paint a shadow with radius 0
63 viewRight, viewBottom, radius, elevation);
86 float bottom, float radius, float elevation) {
87 left = left + radius;
88 top = top + radius;
89 right = right - radius;
90 bottom = bottom - radius;
99 ret[points][0] = (float) (left - radius
85 generateRectangleCoordinates(float left, float top, float right, float bottom, float radius, float elevation) argument
[all...]
/frameworks/support/v7/cardview/src/android/support/v7/widget/
H A DCardViewApi21Impl.java29 ColorStateList backgroundColor, float radius, float elevation, float maxElevation) {
30 final RoundRectDrawable background = new RoundRectDrawable(backgroundColor, radius);
40 public void setRadius(CardViewDelegate cardView, float radius) { argument
41 getCardBackground(cardView).setRadius(radius);
92 final float radius = getRadius(cardView);
94 .calculateHorizontalPadding(elevation, radius, cardView.getPreventCornerOverlap()));
96 .calculateVerticalPadding(elevation, radius, cardView.getPreventCornerOverlap()));
28 initialize(CardViewDelegate cardView, Context context, ColorStateList backgroundColor, float radius, float elevation, float maxElevation) argument
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.cpp59 static jlong Corner_constructor(JNIEnv* env, jobject, jfloat radius){ argument
60 SkPathEffect* effect = SkCornerPathEffect::Make(radius).release();

Completed in 8205 milliseconds

1234