Home
last modified time | relevance | path

Searched refs:tempColors (Results 1 – 4 of 4) 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.java1137 int[] tempColors = gradientColors;
1141 tempColors = st.mTempColors;
1143 if (tempColors == null || tempColors.length != length + 1) {
1144 tempColors = st.mTempColors = new int[length + 1];
1146 System.arraycopy(gradientColors, 0, tempColors, 0, length);
1147 tempColors[length] = gradientColors[length - 1];
1162 mFillPaint.setShader(new SweepGradient(x0, y0, tempColors, tempPositions));
/frameworks/base/libs/hwui/
DBakedOpDispatcher.cpp452 std::unique_ptr<int[]> tempColors; in onBitmapMeshOp() local
455 tempColors.reset(new int[colorsCount]); in onBitmapMeshOp()
456 memset(tempColors.get(), 0xff, colorsCount * sizeof(int)); in onBitmapMeshOp()
457 colors = tempColors.get(); in onBitmapMeshOp()
DOpenGLRenderer.cpp1527 std::unique_ptr<int[]> tempColors;
1530 tempColors.reset(new int[colorsCount]);
1531 memset(tempColors.get(), 0xff, colorsCount * sizeof(int));
1532 colors = tempColors.get();