Searched refs:mColors (Results 1 - 25 of 26) sorted by relevance

12

/frameworks/base/graphics/java/android/graphics/
H A DSweepGradient.java36 private int[] mColors; field in class:SweepGradient
67 mColors = colors.clone();
85 mColors = null;
92 return nativeCreate1(nativeMatrix, mCx, mCy, mColors, mPositions);
105 copy = new SweepGradient(mCx, mCy, mColors.clone(),
H A DRadialGradient.java37 private int[] mColors; field in class:RadialGradient
73 mColors = colors.clone();
106 mColors, mPositions, mTileMode.nativeInt);
120 copy = new RadialGradient(mX, mY, mRadius, mColors.clone(),
H A DLinearGradient.java38 private int[] mColors; field in class:LinearGradient
71 mColors = colors.clone();
97 mColors = null;
106 mColors, mPositions, mTileMode.nativeInt);
120 copy = new LinearGradient(mX0, mY0, mX1, mY1, mColors.clone(),
/frameworks/opt/colorpicker/src/com/android/colorpicker/
H A DColorPickerDialog.java49 protected int[] mColors = null; field in class:ColorPickerDialog
99 mColors = savedInstanceState.getIntArray(KEY_COLORS);
115 if (mColors != null) {
142 mPalette.drawPalette(mColors, mSelectedColor);
164 if (mColors != colors || mSelectedColor != selectedColor) {
165 mColors = colors;
172 if (mColors != colors) {
173 mColors = colors;
193 if (mPalette != null && mColors != null) {
194 mPalette.drawPalette(mColors, mSelectedColo
[all...]
/frameworks/layoutlib/bridge/src/android/graphics/
H A DGradient_Delegate.java26 protected final int[] mColors; field in class:Gradient_Delegate
67 mColors = colors;
79 private final int[] mColors; field in class:Gradient_Delegate.GradientPaint
85 mColors = colors;
117 mGradient[i] = computeColor(mColors[prevPos], mColors[nextPos], percent);
H A DLinearGradient_Delegate.java97 mJavaPaint = new LinearGradientPaint(x0, y0, x1, y1, mColors, mPositions, tile);
H A DRadialGradient_Delegate.java96 mJavaPaint = new RadialGradientPaint(x, y, radius, mColors, mPositions, tile);
H A DSweepGradient_Delegate.java92 mJavaPaint = new SweepGradientPaint(cx, cy, mColors, mPositions);
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DBitmapMeshActivity.java41 private int[] mColors; field in class:BitmapMeshActivity.BitmapMeshView
58 mColors = new int[] {
82 canvas.drawBitmapMesh(mBitmap1, 3, 3, mVertices, 0, mColors, 0, null);
H A DBitmapMeshLayerActivity.java42 private int[] mColors; field in class:BitmapMeshLayerActivity.BitmapMeshView
59 mColors = new int[] {
75 canvas.drawBitmapMesh(mBitmap1, 3, 3, mVertices, 0, mColors, 0, null);
/frameworks/wilhelm/src/itf/
H A DILEDArray.cpp73 thiz->mColors[index] = color;
92 SLHSL color = thiz->mColors[index];
114 SLHSL *color = thiz->mColors;
/frameworks/base/core/java/android/content/res/
H A DColorStateList.java141 private int[] mColors; field in class:ColorStateList
155 mColors = colors;
209 mColors = orig.mColors.clone();
288 final int[] colors = new int[mColors.length];
291 colors[i] = (mColors[i] & 0xFFFFFF) | (alpha << 24);
380 mColors = new int[listSize];
382 System.arraycopy(colorList, 0, mColors, 0, listSize);
431 defaultAlphaMod = Color.alpha(mColors[i]) / 255.0f;
448 R.styleable.ColorStateListItem_color, mColors[
[all...]
/frameworks/support/leanback/src/main/java/androidx/leanback/widget/
H A DSearchOrbView.java49 private Colors mColors; field in class:SearchOrbView
309 return mColors.color;
316 mColors = colors;
317 mIcon.setColorFilter(mColors.iconColor);
320 setOrbViewColor(mColors.color);
330 return mColors;
355 mColors.color, mColors.brightColor, mColors.color);
/frameworks/native/opengl/tests/testLatency/src/com/android/testlatency/
H A DTestLatencyView.java126 mTriangleVerticesData2[i+2] = mColors[cbase];
127 mTriangleVerticesData2[i+3] = mColors[cbase+1];
128 mTriangleVerticesData2[i+4] = mColors[cbase+2];
129 mTriangleVerticesData2[i+5] = mColors[cbase+3];
232 private final float[] mColors = { field in class:TestLatencyView.Renderer
/frameworks/base/core/java/com/android/internal/graphics/palette/
H A DColorCutQuantizer.java76 int[] mColors; field in class:ColorCutQuantizer
126 final int[] colors = mColors = new int[distinctColorCount];
173 pq.offer(new Vbox(0, mColors.length - 1));
265 final int[] colors = mColors;
361 final int[] colors = mColors;
392 final int[] colors = mColors;
/frameworks/support/palette/src/main/java/androidx/palette/graphics/
H A DColorCutQuantizer.java57 final int[] mColors; field in class:ColorCutQuantizer
108 final int[] colors = mColors = new int[distinctColorCount];
155 pq.offer(new Vbox(0, mColors.length - 1));
248 final int[] colors = mColors;
344 final int[] colors = mColors;
375 final int[] colors = mColors;
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/graph/
H A DBatteryMeterDrawableBase.java69 private final int[] mColors; field in class:BatteryMeterDrawableBase
106 mColors = new int[2 * N];
108 mColors[2 * i] = levels.getInt(i, 0);
110 mColors[2 * i + 1] = Utils.getColorAttr(context, colors.getThemeAttributeId(i, 0));
112 mColors[2 * i + 1] = colors.getColor(i, 0);
148 if (mColors.length > 1) {
149 mWarningTextPaint.setColor(mColors[1]);
274 for (int i = 0; i < mColors.length; i += 2) {
275 thresh = mColors[i];
276 color = mColors[
[all...]
/frameworks/base/libs/hwui/
H A DPatch.h66 const uint32_t* mColors; member in class:android::uirenderer::Patch
H A DPatch.cpp40 : mColors(patch->getColors()) {
45 if (mColors[i] == 0x0) {
197 if ((mColors[oldQuadCount] == 0) || x1 >= x2 || y1 >= y2) {
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DScrimView.java53 private final ColorExtractor.GradientColors mColors; field in class:ScrimView
96 mColors = new ColorExtractor.GradientColors();
236 if (mColors.equals(colors)) {
239 mColors.set(colors);
249 return mColors;
269 int mainTinted = ColorUtils.blendARGB(mColors.getMainColor(), mTintColor,
271 int secondaryTinted = ColorUtils.blendARGB(mColors.getSecondaryColor(), mTintColor,
/frameworks/support/swiperefreshlayout/src/main/java/androidx/swiperefreshlayout/widget/
H A DCircularProgressDrawable.java629 int[] mColors; field in class:CircularProgressDrawable.Ring
630 // mColorIndex represents the offset into the available mColors that the
757 mColors = colors;
763 return mColors;
794 mCurrentColor = mColors[mColorIndex];
801 return mColors[getNextColorIndex()];
805 return (mColorIndex + 1) % (mColors.length);
863 return mColors[mColorIndex];
/frameworks/native/services/surfaceflinger/tests/hwc2/
H A DHwc2TestProperties.cpp157 : Hwc2TestProperty(mColors, mCompositionSupport),
185 mColors = mBaseColors;
189 mColors.clear();
194 mColors.push_back(baseColor);
H A DHwc2TestProperties.h212 std::vector<hwc_color_t> mColors; member in class:Hwc2TestColor
/frameworks/native/cmds/surfacereplayer/replayer/
H A DReplayer.cpp303 mLayers[layerId], mColors[layerId], layerId);
621 mColors[create.id()] = HSV(rand() % 360, 1, 1);
628 mLayers[create.id()], mColors[create.id()]);
662 mColors.erase(id);
H A DReplayer.h148 std::unordered_map<layer_id, HSV> mColors; member in class:android::Replayer

Completed in 474 milliseconds

12