/frameworks/base/libs/hwui/utils/ |
D | Blur.cpp | 26 void Blur::generateGaussianWeights(float* weights, int32_t radius) { in generateGaussianWeights() argument 40 float sigma = 0.3f * (float) radius + 0.6f; in generateGaussianWeights() 50 for (int32_t r = -radius; r <= radius; r ++) { in generateGaussianWeights() 52 weights[r + radius] = coeff1 * pow(e, floatR * floatR * coeff2); in generateGaussianWeights() 53 normalizeFactor += weights[r + radius]; in generateGaussianWeights() 58 for (int32_t r = -radius; r <= radius; r ++) { in generateGaussianWeights() 59 weights[r + radius] *= normalizeFactor; in generateGaussianWeights() 63 void Blur::horizontal(float* weights, int32_t radius, in horizontal() argument 77 if (x > radius && x < (width - radius)) { in horizontal() 78 const uint8_t *i = input + (x - radius); in horizontal() [all …]
|
D | Blur.h | 27 static void generateGaussianWeights(float* weights, int32_t radius); 28 static void horizontal(float* weights, int32_t radius, const uint8_t* source, 30 static void vertical(float* weights, int32_t radius, const uint8_t* source,
|
/frameworks/rs/java/tests/ImageProcessing_jb/src/com/android/rs/image/ |
D | threshold.fs | 22 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 + 0.6f; 59 for (int r = -radius; r <= radius; r ++) { [all …]
|
/frameworks/rs/java/tests/ImageProcessing2/src/com/android/rs/image/ |
D | threshold.fs | 22 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 + 0.6f; 59 for (int r = -radius; r <= radius; r ++) { [all …]
|
/frameworks/rs/java/tests/ImageProcessing/src/com/android/rs/image/ |
D | threshold.fs | 22 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 + 0.6f; 59 for (int r = -radius; r <= radius; r ++) { [all …]
|
/frameworks/base/graphics/java/android/graphics/ |
D | RadialGradient.java | 31 public RadialGradient(float x, float y, float radius, in RadialGradient() argument 33 if (radius <= 0) { in RadialGradient() 42 native_instance = nativeCreate1(x, y, radius, colors, positions, tile.nativeInt); in RadialGradient() 43 native_shader = nativePostCreate1(native_instance, x, y, radius, colors, positions, in RadialGradient() 55 public RadialGradient(float x, float y, float radius, in RadialGradient() argument 57 if (radius <= 0) { in RadialGradient() 60 native_instance = nativeCreate2(x, y, radius, color0, color1, tile.nativeInt); in RadialGradient() 61 native_shader = nativePostCreate2(native_instance, x, y, radius, color0, color1, in RadialGradient() 65 private static native int nativeCreate1(float x, float y, float radius, in nativeCreate1() argument 67 private static native int nativeCreate2(float x, float y, float radius, in nativeCreate2() argument [all …]
|
D | CornerPathEffect.java | 27 public CornerPathEffect(float radius) { in CornerPathEffect() argument 28 native_instance = nativeCreate(radius); in CornerPathEffect() 31 private static native int nativeCreate(float radius); in nativeCreate() argument
|
D | BlurMaskFilter.java | 46 public BlurMaskFilter(float radius, Blur style) { in BlurMaskFilter() argument 47 native_instance = nativeConstructor(radius, style.native_int); in BlurMaskFilter() 50 private static native int nativeConstructor(float radius, int style); in nativeConstructor() argument
|
/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 …]
|
D | GradientDrawable.java | 211 public void setCornerRadius(float radius) { in setCornerRadius() argument 212 mGradientState.setCornerRadius(radius); in setCornerRadius() 573 float radius = st.mInnerRadius != -1 ? 577 innerBounds.inset(x - radius, y - radius); 594 ringPath.moveTo(x + radius, y); 596 ringPath.lineTo(x + radius + thickness, y); 991 int radius = a.getDimensionPixelSize( 993 setCornerRadius(radius); 995 com.android.internal.R.styleable.DrawableCorners_topLeftRadius, radius); 997 com.android.internal.R.styleable.DrawableCorners_topRightRadius, radius); [all …]
|
/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/base/core/java/com/android/internal/widget/multiwaveview/ |
D | PointCloud.java | 47 private float radius = 50; field in PointCloud.WaveManager 51 radius = r; in setRadius() 55 return radius; in getRadius() 70 private float radius = 0.0f; field in PointCloud.GlowManager 98 radius = r; in setRadius() 102 return radius; in getRadius() 109 float radius; field in PointCloud.Point 114 radius = r; in Point() 182 if (glowDistance < glowManager.radius) { in getAlphaForPoint() 183 float cosf = FloatMath.cos(PI * 0.25f * glowDistance / glowManager.radius); in getAlphaForPoint() [all …]
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
D | RadialGradient_Delegate.java | 57 /*package*/ static int nativeCreate1(float x, float y, float radius, in nativeCreate1() argument 59 RadialGradient_Delegate newDelegate = new RadialGradient_Delegate(x, y, radius, in nativeCreate1() 65 /*package*/ static int nativeCreate2(float x, float y, float radius, in nativeCreate2() argument 67 return nativeCreate1(x, y, radius, new int[] { color0, color1 }, null /*positions*/, in nativeCreate2() 72 /*package*/ static int nativePostCreate1(int native_shader, float x, float y, float radius, in nativePostCreate1() argument 79 /*package*/ static int nativePostCreate2(int native_shader, float x, float y, float radius, in nativePostCreate2() argument 101 private RadialGradient_Delegate(float x, float y, float radius, int colors[], float positions[], in RadialGradient_Delegate() argument 104 mJavaPaint = new RadialGradientPaint(x, y, radius, mColors, mPositions, tile); in RadialGradient_Delegate() 113 public RadialGradientPaint(float x, float y, float radius, in RadialGradientPaint() argument 118 mRadius = radius; in RadialGradientPaint()
|
/frameworks/base/libs/hwui/ |
D | TextDropShadowCache.h | 34 ShadowText(): len(0), radius(0.0f), textSize(0.0f), typeface(NULL), in ShadowText() 39 ShadowText(SkPaint* paint, float radius, uint32_t len, const char* srcText, in ShadowText() 41 len(len), radius(radius), positions(positions) { in ShadowText() 84 float radius; member 137 int numGlyphs, float radius, const float* positions);
|
D | TextDropShadowCache.cpp | 35 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() 171 int numGlyphs, float radius, const float* positions) { in get() argument 172 ShadowText entry(paint, radius, len, text, positions); in get() 179 len, numGlyphs, radius, positions); in get()
|
D | FontRenderer.h | 94 uint32_t len, int numGlyphs, uint32_t radius, const float* positions); 176 static void computeGaussianWeights(float* weights, int32_t radius); 177 static void horizontalBlur(float* weights, int32_t radius, const uint8_t *source, uint8_t *dest, 179 static void verticalBlur(float* weights, int32_t radius, const uint8_t *source, uint8_t *dest, 183 void blurImage(uint8_t** image, int32_t width, int32_t height, int32_t radius);
|
D | FontRenderer.cpp | 506 uint32_t startIndex, uint32_t len, int numGlyphs, uint32_t radius, const float* positions) { in renderDropShadow() argument 527 uint32_t paddedWidth = (uint32_t) (bounds.right - bounds.left) + 2 * radius; in renderDropShadow() 528 uint32_t paddedHeight = (uint32_t) (bounds.top - bounds.bottom) + 2 * radius; in renderDropShadow() 544 int penX = radius - bounds.left; in renderDropShadow() 545 int penY = radius - bounds.bottom; in renderDropShadow() 557 blurImage(&dataBuffer, paddedWidth, paddedHeight, radius); in renderDropShadow() 635 void FontRenderer::blurImage(uint8_t** image, int32_t width, int32_t height, int32_t radius) { in blurImage() argument 636 if (width * height * radius < RS_MIN_INPUT_CUTOFF) { in blurImage() 637 float *gaussian = new float[2 * radius + 1]; in blurImage() 638 Blur::generateGaussianWeights(gaussian, radius); in blurImage() [all …]
|
/frameworks/base/core/java/android/hardware/location/ |
D | GeofenceHardwareRequest.java | 39 private void setCircularGeofence(double latitude, double longitude, double radius) { in setCircularGeofence() argument 42 mRadius = radius; in setCircularGeofence() 54 double longitude, double radius) { in createCircularGeofence() argument 56 geofenceRequest.setCircularGeofence(latitude, longitude, radius); in createCircularGeofence()
|
/frameworks/base/graphics/java/android/renderscript/ |
D | ScriptIntrinsicBlur.java | 76 public void setRadius(float radius) { in setRadius() argument 77 if (radius <= 0 || radius > 25) { in setRadius() 80 setVar(0, radius); in setRadius()
|
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/ |
D | ScriptIntrinsicBlur.java | 80 public void setRadius(float radius) { in setRadius() argument 81 if (radius <= 0 || radius > 25) { in setRadius() 84 setVar(0, radius); in setRadius()
|
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/ |
D | cull.rs | 45 float3 radius; 46 radius.x = (maxX - sphere.x); 47 radius.y = (maxY - sphere.y); 48 radius.z = (maxZ - sphere.z); 50 sphere.w = length(radius);
|
/frameworks/base/docs/html/reference/renderscript/ |
D | doxygen.css | 162 border-radius: 0.5em; 163 -webkit-border-radius: .5em; 164 -moz-border-radius: .5em; 425 border-top-right-radius: 8px; 426 border-top-left-radius: 8px; 429 -moz-border-radius-topright: 8px; 430 -moz-border-radius-topleft: 8px; 433 -webkit-border-top-right-radius: 8px; 434 -webkit-border-top-left-radius: 8px; 449 border-bottom-left-radius: 8px; [all …]
|
/frameworks/base/core/jni/android/graphics/ |
D | MaskFilter.cpp | 20 static SkMaskFilter* createBlur(JNIEnv* env, jobject, float radius, int blurStyle) { in createBlur() argument 21 SkMaskFilter* filter = SkBlurMaskFilter::Create(SkFloatToScalar(radius), in createBlur() 27 …teEmboss(JNIEnv* env, jobject, jfloatArray dirArray, float ambient, float specular, float radius) { in createEmboss() argument 39 SkFloatToScalar(radius)); in createEmboss()
|
/frameworks/base/tests/touchlag/ |
D | touchlag.cpp | 106 size_t x0, size_t y0, size_t radius, bool filled = false) { in drawCircle() argument 107 ssize_t f = 1 - radius; in drawCircle() 109 ssize_t ddF_y = -2 * radius; in drawCircle() 111 ssize_t y = radius; in drawCircle() 113 drawHLine(buf, pixel, x0-radius, y0, 2*radius); in drawCircle() 115 drawTwoPixels(buf, pixel, x0-radius, y0, 2*radius); in drawCircle()
|
/frameworks/base/docs/html/distribute/googleplay/spotlight/ |
D | index.jd | 19 <img alt="" class="screenshot thumbnail" style="-webkit-border-radius: 5px; 20 -moz-border-radius: 5px; 21 border-radius: 5px height:78px; 48 <img alt="" class="screenshot thumbnail" style="-webkit-border-radius: 5px; 49 -moz-border-radius: 5px; 50 border-radius: 5px height:78px;
|