Home
last modified time | relevance | path

Searched refs:tempColors (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/core/java/android/content/res/
DGradientColor.java437 int[] tempColors = null; in onColorsChange() local
442 tempColors = new int[length]; in onColorsChange()
446 tempColors[i] = mItemColors[i]; in onColorsChange()
451 tempColors = new int[3]; in onColorsChange()
452 tempColors[0] = mStartColor; in onColorsChange()
453 tempColors[1] = mCenterColor; in onColorsChange()
454 tempColors[2] = mEndColor; in onColorsChange()
462 tempColors = new int[2]; in onColorsChange()
463 tempColors[0] = mStartColor; in onColorsChange()
464 tempColors[1] = mEndColor; in onColorsChange()
[all …]
/frameworks/base/graphics/java/android/graphics/drawable/
DGradientDrawable.java1343 int[] tempColors = gradientColors;
1347 tempColors = st.mTempColors;
1349 if (tempColors == null || tempColors.length != length + 1) {
1350 tempColors = st.mTempColors = new int[length + 1];
1352 System.arraycopy(gradientColors, 0, tempColors, 0, length);
1353 tempColors[length] = gradientColors[length - 1];
1368 mFillPaint.setShader(new SweepGradient(x0, y0, tempColors, tempPositions));