Home
last modified time | relevance | path

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

/frameworks/opt/colorpicker/src/com/android/colorpicker/
DColorPickerDialog.java49 protected int[] mColors = null; field in ColorPickerDialog
99 mColors = savedInstanceState.getIntArray(KEY_COLORS); in onCreate()
115 if (mColors != null) { in onCreateDialog()
142 mPalette.drawPalette(mColors, mSelectedColor); in onColorSelected()
164 if (mColors != colors || mSelectedColor != selectedColor) { in setColors()
165 mColors = colors; in setColors()
172 if (mColors != colors) { in setColors()
173 mColors = colors; in setColors()
193 if (mPalette != null && mColors != null) { in refreshPalette()
194 mPalette.drawPalette(mColors, mSelectedColor, mColorContentDescriptions); in refreshPalette()
[all …]
/frameworks/base/core/java/android/content/res/
DColorStateList.java141 private int[] mColors; field in ColorStateList
155 mColors = colors; in ColorStateList()
209 mColors = orig.mColors.clone(); in ColorStateList()
288 final int[] colors = new int[mColors.length]; in withAlpha()
291 colors[i] = (mColors[i] & 0xFFFFFF) | (alpha << 24); in withAlpha()
380 mColors = new int[listSize]; in inflate()
382 System.arraycopy(colorList, 0, mColors, 0, listSize); in inflate()
431 defaultAlphaMod = Color.alpha(mColors[i]) / 255.0f; in applyTheme()
448 R.styleable.ColorStateListItem_color, mColors[i]); in applyTheme()
451 mColors[i] = modulateColorAlpha(baseColor, alphaMod); in applyTheme()
[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()
DSweepGradient_Delegate.java84 mJavaPaint = new SweepGradientPaint(cx, cy, mColors, mPositions); in SweepGradient_Delegate()
DRadialGradient_Delegate.java92 mJavaPaint = new RadialGradientPaint(x, y, radius, mColors, mPositions, tile); in RadialGradient_Delegate()
DLinearGradient_Delegate.java94 mJavaPaint = new LinearGradientPaint(x0, y0, x1, y1, mColors, mPositions, tile); in LinearGradient_Delegate()
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DSearchOrbView.java47 private Colors mColors; field in SearchOrbView
308 return mColors.color; in getOrbColor()
315 mColors = colors; in setOrbColors()
316 mIcon.setColorFilter(mColors.iconColor); in setOrbColors()
319 setOrbViewColor(mColors.color); in setOrbColors()
329 return mColors; in getOrbColors()
354 mColors.color, mColors.brightColor, mColors.color); in updateColorAnimator()
/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/base/packages/SystemUI/src/com/android/systemui/
DBatteryMeterDrawable.java53 private final int[] mColors; field in BatteryMeterDrawable
112 mColors = new int[2*N]; in BatteryMeterDrawable()
114 mColors[2*i] = levels.getInt(i, 0); in BatteryMeterDrawable()
115 mColors[2*i+1] = colors.getColor(i, 0); in BatteryMeterDrawable()
147 mWarningTextPaint.setColor(mColors[1]); in BatteryMeterDrawable()
277 return mColors[mColors.length-1]; in getColorForLevel()
280 for (int i=0; i<mColors.length; i+=2) { in getColorForLevel()
281 thresh = mColors[i]; in getColorForLevel()
282 color = mColors[i+1]; in getColorForLevel()
286 if (i == mColors.length-2) { in getColorForLevel()
/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/support/v7/palette/src/main/java/android/support/v7/graphics/
DColorCutQuantizer.java56 final int[] mColors; field in ColorCutQuantizer
106 final int[] colors = mColors = new int[distinctColorCount]; in ColorCutQuantizer()
153 pq.offer(new Vbox(0, mColors.length - 1)); in quantizePixels()
245 final int[] colors = mColors; in fitBox()
341 final int[] colors = mColors; in findSplitPoint()
370 final int[] colors = mColors; in getAverageColor()
/frameworks/support/core-ui/java/android/support/v4/widget/
DMaterialProgressDrawable.java479 private int[] mColors; field in MaterialProgressDrawable.Ring
588 mColors = colors; in setColors()
610 mCurrentColor = mColors[mColorIndex]; in setColorIndex()
617 return mColors[getNextColorIndex()]; in getNextColor()
621 return (mColorIndex + 1) % (mColors.length); in getNextColorIndex()
685 return mColors[mColorIndex]; in getStartingColor()
/frameworks/base/libs/hwui/
DPatch.cpp40 : mColors(patch->getColors()) { in Patch()
46 if (mColors[i] == 0x0) { in Patch()
198 if ((mColors[oldQuadCount] == 0) || x1 >= x2 || y1 >= y2) { in generateQuad()
DPatch.h67 const uint32_t* mColors; variable
DDisplayListOp.h745 mVertices(vertices), mColors(colors) {} in DrawBitmapMeshOp()
749 mVertices, mColors, mPaint); in applyDraw()
768 const int* mColors; variable
/frameworks/wilhelm/src/
Ditfstruct.h369 SLHSL mColors[MAX_LED_COUNT]; member