Home
last modified time | relevance | path

Searched refs:mColors (Results 1 – 23 of 23) sorted by relevance

/frameworks/opt/colorpicker/src/com/android/colorpicker/
DColorPickerDialog.java48 protected int[] mColors = null; field in ColorPickerDialog
97 mColors = savedInstanceState.getIntArray(KEY_COLORS); in onCreate()
111 if (mColors != null) { in onCreateDialog()
138 mPalette.drawPalette(mColors, mSelectedColor); in onColorSelected()
160 if (mColors != colors || mSelectedColor != selectedColor) { in setColors()
161 mColors = colors; in setColors()
168 if (mColors != colors) { in setColors()
169 mColors = colors; in setColors()
182 if (mPalette != null && mColors != null) { in refreshPalette()
183 mPalette.drawPalette(mColors, mSelectedColor); in refreshPalette()
[all …]
/frameworks/support/v7/palette/src/android/support/v7/graphics/
DColorHistogram.java26 private final int[] mColors; field in ColorHistogram
43 mColors = new int[mNumberColors]; in ColorHistogram()
61 return mColors; in getColors()
101 mColors[currentColorIndex] = currentColor; in countFrequencies()
119 mColors[currentColorIndex] = currentColor; in countFrequencies()
DColorCutQuantizer.java57 private final int[] mColors; field in ColorCutQuantizer
97 mColors = new int[rawColorCount]; in ColorCutQuantizer()
101 mColors[validColorCount++] = color; in ColorCutQuantizer()
108 for (final int color : mColors) { in ColorCutQuantizer()
218 final int color = mColors[i]; in fitBox()
300 Arrays.sort(mColors, mLowerIndex, mUpperIndex + 1); in findSplitPoint()
308 final int color = mColors[i]; in findSplitPoint()
342 final int color = mColors[i]; in getAverageColor()
388 final int color = mColors[i]; in modifySignificantOctet()
389 mColors[i] = Color.rgb((color >> 8) & 0xFF, (color >> 16) & 0xFF, color & 0xFF); in modifySignificantOctet()
[all …]
/frameworks/base/core/java/android/content/res/
DColorStateList.java68 private int[] mColors; // must be parallel to mStateSpecs field in ColorStateList
83 mColors = colors; in ColorStateList()
162 final int[] colors = new int[mColors.length]; in withAlpha()
165 colors[i] = (mColors[i] & 0xFFFFFF) | (alpha << 24); in withAlpha()
252 mColors = new int[listSize]; in inflate()
254 System.arraycopy(colorList, 0, mColors, 0, listSize); in inflate()
278 final int n = mColors.length; in isOpaque()
280 if (Color.alpha(mColors[i]) != 0xFF) { in isOpaque()
301 return mColors[i]; in getColorForState()
331 return mColors; in getColors()
[all …]
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
DGradient_Delegate.java26 protected final int[] mColors; field in Gradient_Delegate
67 mColors = colors; in Gradient_Delegate()
79 private final int[] mColors; field in Gradient_Delegate.GradientPaint
85 mColors = colors; in GradientPaint()
117 mGradient[i] = computeColor(mColors[prevPos], mColors[nextPos], percent); in precomputeGradientColors()
DRadialGradient_Delegate.java90 mJavaPaint = new RadialGradientPaint(x, y, radius, mColors, mPositions, tile); in RadialGradient_Delegate()
DSweepGradient_Delegate.java84 mJavaPaint = new SweepGradientPaint(cx, cy, mColors, mPositions); in SweepGradient_Delegate()
DLinearGradient_Delegate.java92 mJavaPaint = new LinearGradientPaint(x0, y0, x1, y1, mColors, mPositions, tile); in LinearGradient_Delegate()
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DSearchOrbView.java46 private Colors mColors; field in SearchOrbView
306 return mColors.color; in getOrbColor()
313 mColors = colors; in setOrbColors()
314 mIcon.setColorFilter(mColors.iconColor); in setOrbColors()
317 setOrbViewColor(mColors.color); in setOrbColors()
327 return mColors; in getOrbColors()
347 mColors.color, mColors.brightColor, mColors.color); in enableOrbColorAnimation()
/frameworks/base/graphics/java/android/graphics/
DSweepGradient.java32 private int[] mColors; field in SweepGradient
63 mColors = colors; in SweepGradient()
93 copy = new SweepGradient(mCx, mCy, mColors.clone(), in copy()
DLinearGradient.java34 private int[] mColors; field in LinearGradient
65 mColors = colors; in LinearGradient()
101 copy = new LinearGradient(mX0, mY0, mX1, mY1, mColors.clone(), in copy()
DRadialGradient.java36 private int[] mColors; field in RadialGradient
69 mColors = colors; in RadialGradient()
106 copy = new RadialGradient(mX, mY, mRadius, mColors.clone(), in copy()
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DBitmapMeshLayerActivity.java42 private int[] mColors; field in BitmapMeshLayerActivity.BitmapMeshView
59 mColors = new int[] { in BitmapMeshView()
75 canvas.drawBitmapMesh(mBitmap1, 3, 3, mVertices, 0, mColors, 0, null); in onDraw()
DBitmapMeshActivity.java41 private int[] mColors; field in BitmapMeshActivity.BitmapMeshView
58 mColors = new int[] { in BitmapMeshView()
82 canvas.drawBitmapMesh(mBitmap1, 3, 3, mVertices, 0, mColors, 0, null); in onDraw()
/frameworks/wilhelm/src/itf/
DILEDArray.c73 thiz->mColors[index] = color; in ILEDArray_SetColor()
92 SLHSL color = thiz->mColors[index]; in ILEDArray_GetColor()
114 SLHSL *color = thiz->mColors; in ILEDArray_init()
/frameworks/native/opengl/tests/testLatency/src/com/android/testlatency/
DTestLatencyView.java126 mTriangleVerticesData2[i+2] = mColors[cbase]; in onDrawFrame()
127 mTriangleVerticesData2[i+3] = mColors[cbase+1]; in onDrawFrame()
128 mTriangleVerticesData2[i+4] = mColors[cbase+2]; in onDrawFrame()
129 mTriangleVerticesData2[i+5] = mColors[cbase+3]; in onDrawFrame()
232 private final float[] mColors = { field in TestLatencyView.Renderer
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DBatteryMeterView.java51 private final int[] mColors; field in BatteryMeterView
197 mColors = new int[2*N]; in BatteryMeterView()
199 mColors[2*i] = levels.getInt(i, 0); in BatteryMeterView()
200 mColors[2*i+1] = colors.getColor(i, 0); in BatteryMeterView()
234 mWarningTextPaint.setColor(mColors[1]); in BatteryMeterView()
289 return mColors[mColors.length-1]; in getColorForLevel()
292 for (int i=0; i<mColors.length; i+=2) { in getColorForLevel()
293 thresh = mColors[i]; in getColorForLevel()
294 color = mColors[i+1]; in getColorForLevel()
/frameworks/base/graphics/java/android/graphics/drawable/
DGradientDrawable.java871 final int[] colors = st.mColors;
1293 st.mColors = new int[3];
1294 st.mColors[0] = startColor;
1295 st.mColors[1] = centerColor;
1296 st.mColors[2] = endColor;
1304 st.mColors = new int[2];
1305 st.mColors[0] = startColor;
1306 st.mColors[1] = endColor;
1490 public int[] mColors;
1537 if (state.mColors != null) {
[all …]
/frameworks/base/libs/hwui/
DPatch.cpp61 mColors = patch->getColors(); in createMesh()
66 if (mColors[i] == 0x0) { in createMesh()
222 if ((mColors[oldQuadCount] == 0) || x1 >= x2 || y1 >= y2) { in generateQuad()
DPatch.h70 const uint32_t* mColors; variable
DDisplayListOp.h808 mVertices(vertices), mColors(colors) {} in DrawBitmapMeshOp()
812 mVertices, mColors, getPaint(renderer)); in applyDraw()
831 const int* mColors; variable
/frameworks/support/v4/java/android/support/v4/widget/
DMaterialProgressDrawable.java419 private int[] mColors; field in MaterialProgressDrawable.Ring
475 mPaint.setColor(mColors[mColorIndex]); in draw()
514 mArrowPaint.setColor(mColors[mColorIndex]); in drawTriangle()
527 mColors = colors; in setColors()
545 mColorIndex = (mColorIndex + 1) % (mColors.length); in goToNextColor()
/frameworks/wilhelm/src/
Ditfstruct.h364 SLHSL mColors[MAX_LED_COUNT]; member