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

123456

/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.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/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/tests/java_api/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...]
/frameworks/rs/tests/java_api/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/tests/java_api/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...]
H A Dthreshold_half.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 half sigma = 0.4f * (half)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/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/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
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);
H A DSeekBar.java92 * Set radius in pixels for thumb when SeekBar is focused.
94 public void setActiveRadius(int radius) { argument
95 mActiveRadius = radius;
131 final int radius = isFocused() ? mActiveRadius : mBarHeight / 2;
132 canvas.drawRoundRect(mBackgroundRect, radius, radius, mBackgroundPaint);
133 canvas.drawRoundRect(mSecondProgressRect, radius, radius, mProgressPaint);
134 canvas.drawRoundRect(mProgressRect, radius, radius, mProgressPain
[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 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.
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/tools/layoutlib/bridge/src/android/graphics/
H A DBlurMaskFilter_Delegate.java58 /*package*/ static long nativeConstructor(float radius, int style) { argument
/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/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/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

Completed in 535 milliseconds

123456