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.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/packages/SystemUI/tests/src/com/android/systemui/colorextraction/
DSysuiColorExtractorTests.java63 private ColorExtractor.GradientColors mColors; field in SysuiColorExtractorTests
69 mColors = new ColorExtractor.GradientColors(); in setUp()
70 mColors.setMainColor(Color.RED); in setUp()
71 mColors.setSecondaryColor(Color.RED); in setUp()
75 outGradientColorsNormal.set(mColors); in setUp()
76 outGradientColorsDark.set(mColors); in setUp()
77 outGradientColorsExtraDark.set(mColors); in setUp()
83 mColors.setMainColor(Color.RED); in getColors()
84 mColors.setSecondaryColor(Color.RED); in getColors()
90 mColorExtractor.getColors(which, type), mColors); in getColors()
/frameworks/layoutlib/bridge/src/android/graphics/
DGradient_Delegate.java28 protected final int[] mColors; field in Gradient_Delegate
73 mColors = Arrays.stream(colors).mapToInt(Color::toArgb).toArray(); in Gradient_Delegate()
85 private final int[] mColors; field in Gradient_Delegate.GradientPaint
91 mColors = colors; in GradientPaint()
118 mGradient[i] = mColors[0]; in precomputeGradientColors()
127 mGradient[i] = mColors[prevPos]; in precomputeGradientColors()
132 mGradient[i] = computeColor(mColors[prevPos], mColors[nextPos], percent); in precomputeGradientColors()
DSweepGradient_Delegate.java86 mJavaPaint = new SweepGradientPaint(cx, cy, mColors, mPositions); in SweepGradient_Delegate()
DRadialGradient_Delegate.java89 mJavaPaint = new RadialGradientPaint(x, y, radius, mColors, mPositions, tile); in RadialGradient_Delegate()
DLinearGradient_Delegate.java89 mJavaPaint = new LinearGradientPaint(x0, y0, x1, y1, mColors, mPositions, tile); in LinearGradient_Delegate()
/frameworks/base/core/java/android/content/res/
DColorStateList.java144 private int[] mColors; field in ColorStateList
160 mColors = colors; in ColorStateList()
214 mColors = orig.mColors.clone(); in ColorStateList()
293 final int[] colors = new int[mColors.length]; in withAlpha()
296 colors[i] = (mColors[i] & 0xFFFFFF) | (alpha << 24); in withAlpha()
385 mColors = new int[listSize]; in inflate()
387 System.arraycopy(colorList, 0, mColors, 0, listSize); in inflate()
437 defaultAlphaMod = Color.alpha(mColors[i]) / 255.0f; in applyTheme()
454 R.styleable.ColorStateListItem_color, mColors[i]); in applyTheme()
457 mColors[i] = modulateColorAlpha(baseColor, alphaMod); in applyTheme()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DScrimView.java42 private final ColorExtractor.GradientColors mColors; field in ScrimView
66 mColors = new ColorExtractor.GradientColors(); in ScrimView()
110 if (mColors.equals(colors)) { in setColors()
113 mColors.set(colors); in setColors()
123 return mColors; in getColors()
143 int mainTinted = ColorUtils.blendARGB(mColors.getMainColor(), mTintColor, in updateColorWithTint()
/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/SettingsLib/src/com/android/settingslib/graph/
DBatteryMeterDrawableBase.java69 private final int[] mColors; field in BatteryMeterDrawableBase
106 mColors = new int[2 * N]; in BatteryMeterDrawableBase()
108 mColors[2 * i] = levels.getInt(i, 0); in BatteryMeterDrawableBase()
110 mColors[2 * i + 1] = Utils.getColorAttrDefaultColor(context, in BatteryMeterDrawableBase()
113 mColors[2 * i + 1] = colors.getColor(i, 0); in BatteryMeterDrawableBase()
149 if (mColors.length > 1) { in BatteryMeterDrawableBase()
150 mWarningTextPaint.setColor(mColors[1]); in BatteryMeterDrawableBase()
281 for (int i = 0; i < mColors.length; i += 2) { in getColorForLevel()
282 thresh = mColors[i]; in getColorForLevel()
283 color = mColors[i + 1]; in getColorForLevel()
[all …]
/frameworks/wilhelm/src/itf/
DILEDArray.cpp73 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/core/java/com/android/internal/graphics/palette/
DColorCutQuantizer.java76 int[] mColors; field in ColorCutQuantizer
126 final int[] colors = mColors = new int[distinctColorCount]; in quantize()
173 pq.offer(new Vbox(0, mColors.length - 1)); in quantizePixels()
265 final int[] colors = mColors; in fitBox()
361 final int[] colors = mColors; in findSplitPoint()
392 final int[] colors = mColors; in getAverageColor()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DScrimController.java138 private GradientColors mColors; field in ScrimController
213 mColors = mColorExtractor.getNeutralColors(); in ScrimController()
564 mScrimInFront.setColors(mColors, animateScrimInFront); in updateScrims()
565 mScrimBehind.setColors(mColors, animateScrimBehind); in updateScrims()
568 int textColor = mColors.supportsDarkText() ? Color.BLACK : Color.WHITE; in updateScrims()
569 int mainColor = mColors.getMainColor(); in updateScrims()
886 int color = mColors.getMainColor(); in getBackgroundColor()
901 mColors = mColorExtractor.getNeutralColors(); in onColorsChanged()
/frameworks/native/services/surfaceflinger/tests/hwc2/
DHwc2TestProperties.cpp157 : Hwc2TestProperty(mColors, mCompositionSupport), in Hwc2TestColor()
185 mColors = mBaseColors; in update()
189 mColors.clear(); in update()
194 mColors.push_back(baseColor); in update()
DHwc2TestProperties.h212 std::vector<hwc_color_t> mColors; variable
/frameworks/base/graphics/java/android/graphics/
DSweepGradient.java36 private int[] mColors; field in SweepGradient
DRadialGradient.java40 private int[] mColors; field in RadialGradient
DLinearGradient.java43 private int[] mColors; field in LinearGradient
/frameworks/native/cmds/surfacereplayer/replayer/
DReplayer.cpp299 mLayers[layerId], mColors[layerId], layerId); in dispatchEvent()
614 mColors[create.id()] = HSV(rand() % 360, 1, 1); in createSurfaceControl()
621 mLayers[create.id()], mColors[create.id()]); in createSurfaceControl()
DReplayer.h145 std::unordered_map<layer_id, HSV> mColors; variable
/frameworks/wilhelm/src/
Ditfstruct.h368 SLHSL mColors[MAX_LED_COUNT]; member