Home
last modified time | relevance | path

Searched refs:mPositions (Results 1 – 8 of 8) sorted by relevance

/frameworks/layoutlib/bridge/src/android/graphics/
DGradient_Delegate.java29 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()
DSweepGradient_Delegate.java86 mJavaPaint = new SweepGradientPaint(cx, cy, mColors, mPositions); in SweepGradient_Delegate()
DRadialGradient_Delegate.java89 mJavaPaint = new RadialGradientPaint(x, y, radius, mColors, mPositions, tile); in RadialGradient_Delegate()
DLinearGradient_Delegate.java89 mJavaPaint = new LinearGradientPaint(x0, y0, x1, y1, mColors, mPositions, tile); in LinearGradient_Delegate()
/frameworks/base/graphics/java/android/graphics/
DSweepGradient.java31 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()
DRadialGradient.java33 private float[] mPositions; field in RadialGradient
113 mPositions = stops != null ? stops.clone() : null; in RadialGradient()
153 mColorLongs, mPositions, mTileMode.nativeInt, in createNativeInstance()
DLinearGradient.java36 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/
DGradientDrawable.java708 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();