/frameworks/base/libs/hwui/utils/ |
D | Blur.cpp | 29 float Blur::convertRadiusToSigma(float radius) { in convertRadiusToSigma() argument 30 return radius > 0 ? BLUR_SIGMA_SCALE * radius + 0.5f : 0.0f; in convertRadiusToSigma() 40 uint32_t Blur::convertRadiusToInt(float radius) { in convertRadiusToInt() argument 41 const float radiusCeil = ceilf(radius); in convertRadiusToInt() 42 if (MathUtils::areEqual(radiusCeil, radius)) { in convertRadiusToInt() 45 return radius; in convertRadiusToInt() 57 static float legacyConvertRadiusToSigma(float radius) { in legacyConvertRadiusToSigma() argument 58 return radius > 0 ? 0.3f * radius + 0.6f : 0.0f; in legacyConvertRadiusToSigma() 61 void Blur::generateGaussianWeights(float* weights, float radius) { in generateGaussianWeights() argument 62 int32_t intRadius = convertRadiusToInt(radius); in generateGaussianWeights() [all …]
|
D | Blur.h | 29 ANDROID_API static float convertRadiusToSigma(float radius); 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/java/tests/ImageProcessing2/src/com/android/rs/image/ |
D | threshold.rs | 22 static int radius; 34 radius = rad; 48 float sigma = 0.4f * (float)radius + 0.6f; 59 for (int r = -radius; r <= radius; r ++) { 61 gaussian[r + radius] = coeff1 * pow(e, floatR * floatR * coeff2); 62 normalizeFactor += gaussian[r + radius]; 67 for (int r = -radius; r <= radius; r ++) { 69 gaussian[r + radius] *= normalizeFactor; 81 if ((y > radius) && (y < (height - radius))) { 82 for (int r = -radius; r <= radius; r ++) { [all …]
|
/frameworks/rs/java/tests/ImageProcessing_jb/src/com/android/rs/image/ |
D | threshold.rs | 22 static int radius; 34 radius = rad; 48 float sigma = 0.4f * (float)radius + 0.6f; 59 for (int r = -radius; r <= radius; r ++) { 61 gaussian[r + radius] = coeff1 * pow(e, floatR * floatR * coeff2); 62 normalizeFactor += gaussian[r + radius]; 67 for (int r = -radius; r <= radius; r ++) { 69 gaussian[r + radius] *= normalizeFactor; 81 if ((y > radius) && (y < (height - radius))) { 82 for (int r = -radius; r <= radius; r ++) { [all …]
|
/frameworks/rs/java/tests/ImageProcessing/src/com/android/rs/image/ |
D | threshold.rs | 22 static int radius; 34 radius = rad; 48 float sigma = 0.4f * (float)radius + 0.6f; 59 for (int r = -radius; r <= radius; r ++) { 61 gaussian[r + radius] = coeff1 * pow(e, floatR * floatR * coeff2); 62 normalizeFactor += gaussian[r + radius]; 67 for (int r = -radius; r <= radius; r ++) { 69 gaussian[r + radius] *= normalizeFactor; 81 if ((y > radius) && (y < (height - radius))) { 82 for (int r = -radius; r <= radius; r ++) { [all …]
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
D | PaintDrawable.java | 44 public void setCornerRadius(float radius) { in setCornerRadius() argument 46 if (radius > 0) { in setCornerRadius() 49 radii[i] = radius; in setCornerRadius() 78 int radius = a.getDimensionPixelSize( in inflateTag() local 80 setCornerRadius(radius); in inflateTag() 85 com.android.internal.R.styleable.DrawableCorners_topLeftRadius, radius); in inflateTag() 87 com.android.internal.R.styleable.DrawableCorners_topRightRadius, radius); in inflateTag() 89 com.android.internal.R.styleable.DrawableCorners_bottomLeftRadius, radius); in inflateTag() 91 com.android.internal.R.styleable.DrawableCorners_bottomRightRadius, radius); in inflateTag() 93 if (topLeftRadius != radius || topRightRadius != radius || in inflateTag() [all …]
|
/frameworks/base/graphics/java/android/graphics/ |
D | RadialGradient.java | 54 public RadialGradient(float centerX, float centerY, float radius, in RadialGradient() argument 56 if (radius <= 0) { in RadialGradient() 68 mRadius = radius; in RadialGradient() 72 init(nativeCreate1(centerX, centerY, radius, colors, stops, tileMode.nativeInt)); in RadialGradient() 83 public RadialGradient(float centerX, float centerY, float radius, in RadialGradient() argument 85 if (radius <= 0) { in RadialGradient() 91 mRadius = radius; in RadialGradient() 95 init(nativeCreate2(centerX, centerY, radius, centerColor, edgeColor, tileMode.nativeInt)); in RadialGradient() 120 private static native long nativeCreate1(float x, float y, float radius, in nativeCreate1() argument 122 private static native long nativeCreate2(float x, float y, float radius, in nativeCreate2() argument
|
D | CornerPathEffect.java | 27 public CornerPathEffect(float radius) { in CornerPathEffect() argument 28 native_instance = nativeCreate(radius); in CornerPathEffect() 31 private static native long nativeCreate(float radius); in nativeCreate() argument
|
D | BlurMaskFilter.java | 61 public BlurMaskFilter(float radius, Blur style) { in BlurMaskFilter() argument 62 native_instance = nativeConstructor(radius, style.native_int); in BlurMaskFilter() 65 private static native long nativeConstructor(float radius, int style); in nativeConstructor() argument
|
/frameworks/base/location/java/android/location/ |
D | Geofence.java | 47 public static Geofence createCircle(double latitude, double longitude, float radius) { in createCircle() argument 48 return new Geofence(latitude, longitude, radius); in createCircle() 51 private Geofence(double latitude, double longitude, float radius) { in Geofence() argument 52 checkRadius(radius); in Geofence() 57 mRadius = radius; in Geofence() 80 private static void checkRadius(float radius) { in checkRadius() argument 81 if (radius <= 0) { in checkRadius() 82 throw new IllegalArgumentException("invalid radius: " + radius); in checkRadius() 107 float radius = in.readFloat(); 109 return Geofence.createCircle(latitude, longitude, radius);
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
D | RoundedRectHelper.java | 42 public void setClipToRoundedOutline(View view, boolean clip, int radius) { in setClipToRoundedOutline() argument 43 mImpl.setClipToRoundedOutline(view, clip, radius); in setClipToRoundedOutline() 55 public void setClipToRoundedOutline(View view, boolean clip, int radius); in setClipToRoundedOutline() argument 63 public void setClipToRoundedOutline(View view, boolean clip, int radius) { in setClipToRoundedOutline() argument 73 public void setClipToRoundedOutline(View view, boolean clip, int radius) { in setClipToRoundedOutline() argument 74 RoundedRectHelperApi21.setClipToRoundedOutline(view, clip, radius); in setClipToRoundedOutline()
|
/frameworks/base/tools/layoutlib/bridge/src/android/view/ |
D | RectShadowPainter.java | 62 float radius = viewOutline.getRadius(); in paintShadow() local 63 float outerArcRadius = radius + shadowSize; in paintShadow() 66 new float[]{0f, radius / outerArcRadius, 1f}, TileMode.CLAMP)); in paintShadow() 76 inset.inset(radius, radius); in paintShadow() 153 float radius, int rotations) { in drawCorner() argument 157 path.arcTo(-radius, -radius, radius, radius, rotations * PERPENDICULAR_ANGLE, in drawCorner()
|
/frameworks/support/v7/cardview/api21/android/support/v7/widget/ |
D | CardViewApi21.java | 27 ColorStateList backgroundColor, float radius, float elevation, float maxElevation) { in initialize() argument 28 final RoundRectDrawable background = new RoundRectDrawable(backgroundColor, radius); in initialize() 38 public void setRadius(CardViewDelegate cardView, float radius) { in setRadius() argument 39 getCardBackground(cardView).setRadius(radius); in setRadius() 90 final float radius = getRadius(cardView); in updatePadding() local 92 .calculateHorizontalPadding(elevation, radius, cardView.getPreventCornerOverlap())); in updatePadding() 94 .calculateVerticalPadding(elevation, radius, cardView.getPreventCornerOverlap())); in updatePadding()
|
/frameworks/base/libs/hwui/ |
D | Outline.h | 42 void setRoundRect(int left, int top, int right, int bottom, float radius, float alpha) { in setRoundRect() argument 49 && radius == mRadius) { in setRoundRect() 56 mRadius = radius; in setRoundRect() 60 if (MathUtils::isPositive(radius)) { in setRoundRect() 62 radius, radius); in setRoundRect()
|
D | TextDropShadowCache.cpp | 34 hash = JenkinsHashMix(hash, android::hash_type(radius)); in hash() 59 if (lhs.radius < rhs.radius) return -1; in compare() 60 if (lhs.radius > rhs.radius) return +1; in compare() 149 float radius, const float* positions) { in get() argument 150 ShadowText entry(paint, radius, numGlyphs, glyphs, positions); in get() 157 radius, positions); in get()
|
D | TextDropShadowCache.h | 37 ShadowText(): glyphCount(0), radius(0.0f), textSize(0.0f), typeface(nullptr), in ShadowText() 42 ShadowText(const SkPaint* paint, float radius, uint32_t glyphCount, const glyph_t* srcGlyphs, in ShadowText() 45 , radius(radius) in ShadowText() 81 float radius; member 134 int numGlyphs, float radius, const float* positions);
|
D | Snapshot.cpp | 185 float radius, bool highPriority) { in setClippingRoundRect() argument 209 state->dangerRects[0].bottom = state->dangerRects[1].bottom = bounds.top + radius; in setClippingRoundRect() 210 state->dangerRects[0].right = state->dangerRects[2].right = bounds.left + radius; in setClippingRoundRect() 211 state->dangerRects[1].left = state->dangerRects[3].left = bounds.right - radius; in setClippingRoundRect() 212 state->dangerRects[2].top = state->dangerRects[3].top = bounds.bottom - radius; in setClippingRoundRect() 222 state->innerRect.inset(radius); in setClippingRoundRect() 223 state->radius = radius; in setClippingRoundRect()
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
D | RadialGradient_Delegate.java | 59 /*package*/ static long nativeCreate1(float x, float y, float radius, in nativeCreate1() argument 61 RadialGradient_Delegate newDelegate = new RadialGradient_Delegate(x, y, radius, in nativeCreate1() 67 /*package*/ static long nativeCreate2(float x, float y, float radius, in nativeCreate2() argument 69 return nativeCreate1(x, y, radius, new int[] { color0, color1 }, null /*positions*/, in nativeCreate2() 89 private RadialGradient_Delegate(float x, float y, float radius, int colors[], float positions[], in RadialGradient_Delegate() argument 92 mJavaPaint = new RadialGradientPaint(x, y, radius, mColors, mPositions, tile); in RadialGradient_Delegate() 101 public RadialGradientPaint(float x, float y, float radius, in RadialGradientPaint() argument 106 mRadius = radius; in RadialGradientPaint()
|
/frameworks/base/libs/hwui/tests/unit/ |
D | FontRendererTests.cpp | 46 for (int radius : {28, 20, 2}) { in RENDERTHREAD_TEST() 48 radius, positions.data()); in RENDERTHREAD_TEST() 51 EXPECT_LE(bounds.getWidth() + radius * 2, (int) result.width); in RENDERTHREAD_TEST() 52 EXPECT_LE(bounds.getHeight() + radius * 2, (int) result.height); in RENDERTHREAD_TEST()
|
/frameworks/base/rs/java/android/renderscript/ |
D | ScriptIntrinsicBlur.java | 73 public void setRadius(float radius) { in setRadius() argument 74 if (radius <= 0 || radius > 25) { in setRadius() 77 setVar(0, radius); in setRadius()
|
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/ |
D | ScriptIntrinsicBlur.java | 86 public void setRadius(float radius) { 87 if (radius <= 0 || radius > 25) { 90 setVar(0, radius);
|
/frameworks/base/core/java/android/hardware/location/ |
D | GeofenceHardwareRequest.java | 42 private void setCircularGeofence(double latitude, double longitude, double radius) { in setCircularGeofence() argument 45 mRadius = radius; in setCircularGeofence() 57 double longitude, double radius) { in createCircularGeofence() argument 59 geofenceRequest.setCircularGeofence(latitude, longitude, radius); in createCircularGeofence()
|
/frameworks/rs/java/tests/VrDemo/src/com/example/android/rs/vr/engine/ |
D | bugdroid.rs | 68 static float distanceCircle(float3 center, float radius, float3 normal, 73 float tmp2 = (sqrt(length(pc) * length(pc) - tmp1) - radius); 83 static float distanceDisk(float3 center, float radius, float3 normal, 88 float tmp2 = (sqrt(length(pc) * length(pc) - tmp1) - radius); 89 if (length(pc - dot(normal, pc) * normal) > radius) { 118 float radius = size * 0.22f; 119 v = max(v, cylinder(p1, p2, radius, 144, img)); 121 v = max(v, pill(p1, p2, radius, 144, img)); 123 v -= circle(p1, radius*0.9f, normal, size * 0.05f, 144, img); 173 float radius = size * 0.15f; [all …]
|
/frameworks/support/v7/cardview/eclair-mr1/android/support/v7/widget/ |
D | CardViewEclairMr1.java | 81 ColorStateList backgroundColor, float radius, float elevation, float maxElevation) { in initialize() argument 82 RoundRectDrawableWithShadow background = createBackground(context, backgroundColor, radius, in initialize() 90 ColorStateList backgroundColor, float radius, float elevation, in createBackground() argument 92 return new RoundRectDrawableWithShadow(context.getResources(), backgroundColor, radius, in createBackground() 127 public void setRadius(CardViewDelegate cardView, float radius) { in setRadius() argument 128 getShadowBackground(cardView).setCornerRadius(radius); in setRadius()
|
D | RoundRectDrawableWithShadow.java | 93 RoundRectDrawableWithShadow(Resources resources, ColorStateList backgroundColor, float radius, in RoundRectDrawableWithShadow() argument 102 mCornerRadius = (int) (radius + .5f); in RoundRectDrawableWithShadow() 226 void setCornerRadius(float radius) { in setCornerRadius() argument 227 if (radius < 0f) { in setCornerRadius() 228 throw new IllegalArgumentException("Invalid radius " + radius + in setCornerRadius() 231 radius = (int) (radius + .5f); in setCornerRadius() 232 if (mCornerRadius == radius) { in setCornerRadius() 235 mCornerRadius = radius; in setCornerRadius()
|