/frameworks/rs/java/tests/ImageProcessing/src/com/android/rs/image/ |
H A D | fisheye_approx.rsh | 39 const float radius = 1.15f * bound; 40 radius2 = radius*radius;
|
/frameworks/rs/java/tests/ImageProcessing2/src/com/android/rs/image/ |
H A D | fisheye.rsh | 39 const float radius = 1.15f * bound; 40 radius2 = radius*radius;
|
H A D | fisheye_approx.rsh | 39 const float radius = 1.15f * bound; 40 radius2 = radius*radius;
|
/frameworks/rs/java/tests/ImageProcessing_jb/src/com/android/rs/image/ |
H A D | fisheye.rsh | 39 const float radius = 1.15f * bound; 40 radius2 = radius*radius;
|
H A D | fisheye_approx.rsh | 39 const float radius = 1.15f * bound; 40 radius2 = radius*radius;
|
/frameworks/rs/java/tests/ScriptGroupTest/src/com/android/rs/sgtest/ |
H A D | fisheye_approx_f.rsh | 41 const float radius = 1.15f * bound; 42 radius2 = radius*radius;
|
/frameworks/base/core/jni/android/graphics/ |
H A D | MaskFilter.cpp | 24 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);
|
/frameworks/base/graphics/java/android/graphics/drawable/shapes/ |
H A D | RoundRectShape.java | 44 * @param outerRadii An array of 8 radius values, for the outer roundrect. 52 * @param innerRadii An array of 8 radius values, for the inner roundrect. 86 float radius = 0; 88 radius = mOuterRadii[0]; 90 if (mOuterRadii[i] != radius) { 101 radius);
|
/frameworks/base/libs/hwui/ |
H A D | Snapshot.cpp | 185 float radius, bool highPriority) { 209 state->dangerRects[0].bottom = state->dangerRects[1].bottom = bounds.top + radius; 210 state->dangerRects[0].right = state->dangerRects[2].right = bounds.left + radius; 211 state->dangerRects[1].left = state->dangerRects[3].left = bounds.right - radius; 212 state->dangerRects[2].top = state->dangerRects[3].top = bounds.bottom - radius; 222 state->innerRect.inset(radius); 223 state->radius = radius; 184 setClippingRoundRect(LinearAllocator& allocator, const Rect& bounds, float radius, bool highPriority) argument
|
H A D | TextDropShadowCache.cpp | 34 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 D | CanvasState.cpp | 226 float radius; local 227 if (!outline->getAsRoundRect(&bounds, &radius)) return; // only RR supported 229 bool outlineIsRounded = MathUtils::isPositive(radius); 235 setClippingRoundRect(allocator, bounds, radius, false); 240 const Rect& rect, float radius, bool highPriority) { 241 mSnapshot->setClippingRoundRect(allocator, rect, radius, highPriority); 239 setClippingRoundRect(LinearAllocator& allocator, const Rect& rect, float radius, bool highPriority) argument
|
/frameworks/base/libs/hwui/utils/ |
H A D | MathUtils.h | 72 inline static int divisionsNeededToApproximateArc(float radius, argument 74 const float errConst = (-threshold / radius + 1);
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | RadialGradient_Delegate.java | 59 /*package*/ static long nativeCreate1(float x, float y, float radius, argument 61 RadialGradient_Delegate newDelegate = new RadialGradient_Delegate(x, y, radius, 67 /*package*/ static long nativeCreate2(float x, float y, float radius, argument 69 return nativeCreate1(x, y, radius, new int[] { color0, color1 }, null /*positions*/, 76 * Create a shader that draws a radial gradient given the center and radius. 78 * @param x The x-coordinate of the center of the radius 79 * @param y The y-coordinate of the center of the radius 80 * @param radius Must be positive. The radius of the circle for this 89 private RadialGradient_Delegate(float x, float y, float radius, in argument 101 RadialGradientPaint(float x, float y, float radius, int[] colors, float[] positions, TileMode mode) argument [all...] |
/frameworks/support/v17/leanback/api21/android/support/v17/leanback/widget/ |
H A D | RoundedRectHelperApi21.java | 30 RoundedRectOutlineProvider(int radius) { argument 31 mRadius = radius;
|
/frameworks/support/v7/cardview/eclair-mr1/android/support/v7/widget/ |
H A D | RoundRectDrawableWithShadow.java | 93 RoundRectDrawableWithShadow(Resources resources, ColorStateList backgroundColor, float radius, argument 102 mCornerRadius = (int) (radius + .5f); 226 void setCornerRadius(float radius) { argument 227 if (radius < 0f) { 228 throw new IllegalArgumentException("Invalid radius " + radius + 231 radius = (int) (radius + .5f); 232 if (mCornerRadius == radius) { 235 mCornerRadius = radius; [all...] |
H A D | CardViewEclairMr1.java | 45 // increment corner radius to account for half pixels. 81 ColorStateList backgroundColor, float radius, float elevation, float maxElevation) { 82 RoundRectDrawableWithShadow background = createBackground(context, backgroundColor, radius, 90 ColorStateList backgroundColor, float radius, float elevation, 92 return new RoundRectDrawableWithShadow(context.getResources(), backgroundColor, radius, 127 public void setRadius(CardViewDelegate cardView, float radius) { argument 128 getShadowBackground(cardView).setCornerRadius(radius); 80 initialize(CardViewDelegate cardView, Context context, ColorStateList backgroundColor, float radius, float elevation, float maxElevation) argument 89 createBackground(Context context, ColorStateList backgroundColor, float radius, float elevation, float maxElevation) argument
|
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/ |
H A D | FisheyeFilter.java | 156 float radius = 1.15f * bound; 157 float radius2 = radius * radius;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
H A D | KeyguardUserSwitcherScrim.java | 101 float radius = mLayoutWidth * OUTER_EXTENT; 104 new RadialGradient(isLtr ? mLayoutWidth : 0, 0, radius, 108 new float[] { Math.max(0f, mLayoutWidth * INNER_EXTENT / radius), 1f },
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | Outline.java | 159 * 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
|
/frameworks/base/libs/hwui/protos/ |
H A D | hwui.proto | 75 required float radius = 4; 83 required float radius = 3;
|
/frameworks/base/tests/touchlag/ |
H A D | touchlag.cpp | 106 size_t x0, size_t y0, size_t radius, bool filled = false) { 107 ssize_t f = 1 - radius; 109 ssize_t ddF_y = -2 * radius; 111 ssize_t y = radius; 113 drawHLine(buf, pixel, x0-radius, y0, 2*radius); 115 drawTwoPixels(buf, pixel, x0-radius, y0, 2*radius); 105 drawCircle(Buffer* buf, uint32_t pixel, size_t x0, size_t y0, size_t radius, bool filled = false) argument
|
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/date/ |
H A D | TextViewWithCircularIndicator.java | 74 int radius = Math.min(width, height) / 2; 75 canvas.drawCircle(width / 2, height / 2, radius, mCirclePaint);
|
/frameworks/rs/java/tests/VrDemo/src/com/example/android/rs/vr/engine/ |
H A 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 [all...] |
/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | RippleForeground.java | 72 /** Ripple target radius used when bounded. Not used for clamping. */ 116 final float radius = getCurrentRadius(); 117 if (alpha > 0 && radius > 0) { 121 c.drawCircle(x, y, radius, p); 294 final RenderNodeAnimator radius = new RenderNodeAnimator(mPropRadius, mTargetRadius); 295 radius.setDuration(radiusDuration); 296 radius.setInterpolator(DECELERATE_INTERPOLATOR); 313 set.add(radius); 384 * Property for animating radius between its initial and target values.
|
/frameworks/support/design/base/android/support/design/widget/ |
H A D | ShadowDrawableWrapper.java | 81 public ShadowDrawableWrapper(Resources resources, Drawable content, float radius, argument 91 mCornerRadius = Math.round(radius); 179 public void setCornerRadius(float radius) { argument 180 radius = Math.round(radius); 181 if (mCornerRadius == radius) { 184 mCornerRadius = radius;
|