Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/content/res/
DGradientColor.java432 int[] tempColors = null; in onColorsChange() local
437 tempColors = new int[length]; in onColorsChange()
441 tempColors[i] = mItemColors[i]; in onColorsChange()
446 tempColors = new int[3]; in onColorsChange()
447 tempColors[0] = mStartColor; in onColorsChange()
448 tempColors[1] = mCenterColor; in onColorsChange()
449 tempColors[2] = mEndColor; in onColorsChange()
457 tempColors = new int[2]; in onColorsChange()
458 tempColors[0] = mStartColor; in onColorsChange()
459 tempColors[1] = mEndColor; in onColorsChange()
[all …]
/frameworks/base/graphics/java/android/graphics/drawable/
DGradientDrawable.java1175 int[] tempColors = gradientColors;
1179 tempColors = st.mTempColors;
1181 if (tempColors == null || tempColors.length != length + 1) {
1182 tempColors = st.mTempColors = new int[length + 1];
1184 System.arraycopy(gradientColors, 0, tempColors, 0, length);
1185 tempColors[length] = gradientColors[length - 1];
1200 mFillPaint.setShader(new SweepGradient(x0, y0, tempColors, tempPositions));
/frameworks/base/libs/hwui/
DBakedOpDispatcher.cpp451 std::unique_ptr<int[]> tempColors; in onBitmapMeshOp() local
454 tempColors.reset(new int[colorsCount]); in onBitmapMeshOp()
455 memset(tempColors.get(), 0xff, colorsCount * sizeof(int)); in onBitmapMeshOp()
456 colors = tempColors.get(); in onBitmapMeshOp()