/frameworks/opt/colorpicker/src/com/android/colorpicker/ |
D | ColorPickerDialog.java | 49 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/ |
D | SysuiColorExtractorTests.java | 63 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/ |
D | Gradient_Delegate.java | 28 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()
|
D | SweepGradient_Delegate.java | 86 mJavaPaint = new SweepGradientPaint(cx, cy, mColors, mPositions); in SweepGradient_Delegate()
|
D | RadialGradient_Delegate.java | 89 mJavaPaint = new RadialGradientPaint(x, y, radius, mColors, mPositions, tile); in RadialGradient_Delegate()
|
D | LinearGradient_Delegate.java | 89 mJavaPaint = new LinearGradientPaint(x0, y0, x1, y1, mColors, mPositions, tile); in LinearGradient_Delegate()
|
/frameworks/base/core/java/android/content/res/ |
D | ColorStateList.java | 144 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/ |
D | ScrimView.java | 42 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/ |
D | BitmapMeshLayerActivity.java | 42 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()
|
D | BitmapMeshActivity.java | 41 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/ |
D | BatteryMeterDrawableBase.java | 69 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/ |
D | ILEDArray.cpp | 73 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/ |
D | TestLatencyView.java | 126 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/ |
D | ColorCutQuantizer.java | 76 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/ |
D | ScrimController.java | 138 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/ |
D | Hwc2TestProperties.cpp | 157 : Hwc2TestProperty(mColors, mCompositionSupport), in Hwc2TestColor() 185 mColors = mBaseColors; in update() 189 mColors.clear(); in update() 194 mColors.push_back(baseColor); in update()
|
D | Hwc2TestProperties.h | 212 std::vector<hwc_color_t> mColors; variable
|
/frameworks/base/graphics/java/android/graphics/ |
D | SweepGradient.java | 36 private int[] mColors; field in SweepGradient
|
D | RadialGradient.java | 40 private int[] mColors; field in RadialGradient
|
D | LinearGradient.java | 43 private int[] mColors; field in LinearGradient
|
/frameworks/native/cmds/surfacereplayer/replayer/ |
D | Replayer.cpp | 299 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()
|
D | Replayer.h | 145 std::unordered_map<layer_id, HSV> mColors; variable
|
/frameworks/wilhelm/src/ |
D | itfstruct.h | 368 SLHSL mColors[MAX_LED_COUNT]; member
|