Searched refs:mPositions (Results 1 – 8 of 8) sorted by relevance
/frameworks/layoutlib/bridge/src/android/graphics/ |
D | Gradient_Delegate.java | 29 protected final float[] mPositions; field in Gradient_Delegate 74 mPositions = positions; in Gradient_Delegate() 86 private final float[] mPositions; field in Gradient_Delegate.GradientPaint 92 mPositions = positions; in GradientPaint() 117 if (currentPos < mPositions[0]) { in precomputeGradientColors() 122 while (nextPos < mPositions.length && currentPos >= mPositions[nextPos]) { in precomputeGradientColors() 126 if (nextPos == mPositions.length || currentPos == prevPos) { in precomputeGradientColors() 129 float percent = (currentPos - mPositions[prevPos]) / in precomputeGradientColors() 130 (mPositions[nextPos] - mPositions[prevPos]); in precomputeGradientColors()
|
D | SweepGradient_Delegate.java | 86 mJavaPaint = new SweepGradientPaint(cx, cy, mColors, mPositions); in SweepGradient_Delegate()
|
D | RadialGradient_Delegate.java | 89 mJavaPaint = new RadialGradientPaint(x, y, radius, mColors, mPositions, tile); in RadialGradient_Delegate()
|
D | LinearGradient_Delegate.java | 89 mJavaPaint = new LinearGradientPaint(x0, y0, x1, y1, mColors, mPositions, tile); in LinearGradient_Delegate()
|
/frameworks/base/graphics/java/android/graphics/ |
D | SweepGradient.java | 31 private float[] mPositions; field in SweepGradient 103 mPositions = positions != null ? positions.clone() : null; in SweepGradient() 135 return nativeCreate(nativeMatrix, mCx, mCy, mColorLongs, mPositions, in createNativeInstance()
|
D | RadialGradient.java | 33 private float[] mPositions; field in RadialGradient 113 mPositions = stops != null ? stops.clone() : null; in RadialGradient() 153 mColorLongs, mPositions, mTileMode.nativeInt, in createNativeInstance()
|
D | LinearGradient.java | 36 private float[] mPositions; field in LinearGradient 113 mPositions = positions != null ? positions.clone() : null; in LinearGradient() 157 mColorLongs, mPositions, mTileMode.nativeInt, in createNativeInstance()
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
D | GradientDrawable.java | 708 mGradientState.mPositions = offsets; in setColors() 1320 gradientColors, st.mPositions, Shader.TileMode.CLAMP)); 1759 st.mPositions = new float[3]; 1760 st.mPositions[0] = 0.0f; 1762 st.mPositions[1] = st.mCenterX != 0.5f ? st.mCenterX : st.mCenterY; 1763 st.mPositions[2] = 1f; 1985 public float[] mPositions; 2051 if (orig.mPositions != null) { 2052 mPositions = orig.mPositions.clone();
|