/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 | 66 private ColorExtractor.GradientColors mColors; field in SysuiColorExtractorTests 72 mColors = new ColorExtractor.GradientColors(); in setUp() 73 mColors.setMainColor(Color.RED); in setUp() 74 mColors.setSecondaryColor(Color.RED); in setUp() 79 outGradientColorsNormal.set(mColors); in setUp() 80 outGradientColorsDark.set(mColors); in setUp() 81 outGradientColorsExtraDark.set(mColors); in setUp() 91 mColors.setMainColor(Color.RED); in getColors() 92 mColors.setSecondaryColor(Color.RED); in getColors() 98 mColorExtractor.getColors(which, type), mColors); in getColors()
|
/frameworks/base/core/java/android/content/res/ |
D | ColorStateList.java | 160 private int[] mColors; field in ColorStateList 176 mColors = colors; in ColorStateList() 230 mColors = orig.mColors.clone(); in ColorStateList() 309 final int[] colors = new int[mColors.length]; in withAlpha() 312 colors[i] = (mColors[i] & 0xFFFFFF) | (alpha << 24); in withAlpha() 327 final int[] colors = new int[mColors.length]; in withLStar() 330 colors[i] = modulateColor(mColors[i], 1.0f /* alphaMod */, lStar); in withLStar() 425 mColors = new int[listSize]; in inflate() 427 System.arraycopy(colorList, 0, mColors, 0, listSize); in inflate() 477 defaultAlphaMod = Color.alpha(mColors[i]) / 255.0f; in applyTheme() [all …]
|
/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/SystemUI/src/com/android/systemui/scrim/ |
D | ScrimView.java | 54 private final ColorExtractor.GradientColors mColors; field in ScrimView 86 mColors = new ColorExtractor.GradientColors(); in ScrimView() 164 if (mColors.equals(colors)) { in setColors() 167 mColors.set(colors); in setColors() 183 mTmpColors.set(mColors); in getColors() 231 mainTinted = ColorUtils.blendARGB(mColors.getMainColor(), mTintColor, tintAmount); in updateColorWithTint()
|
/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/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/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 | 75 int[] mColors; field in ColorCutQuantizer 118 final int[] colors = mColors = new int[distinctColorCount]; in quantize() 165 pq.offer(new Vbox(0, mColors.length - 1)); in quantizePixels() 253 final int[] colors = mColors; in fitBox() 349 final int[] colors = mColors; in findSplitPoint() 380 final int[] colors = mColors; in getAverageColor()
|
D | WuQuantizer.java | 61 private int[] mColors; field in WuQuantizer 81 mColors = new int[mInputPixelToCount.keySet().size()]; in quantize() 84 mColors[index++] = color; in quantize() 90 mColors = createResult(createBoxesResult.mResultCount); in quantize() 94 for (int color : mColors) { in quantize() 102 return mColors; in getColors()
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/screenshot/ |
D | FakeScrollCaptureConnection.java | 39 private final int[] mColors = {Color.RED, Color.GREEN, Color.BLUE}; field in FakeScrollCaptureConnection 65 mPaint.setColor(mColors[mNextColor]); in requestImage() 67 mNextColor = (mNextColor++) % mColors.length; in requestImage()
|
/frameworks/base/core/java/com/android/internal/app/ |
D | PlatLogoActivity.java | 351 private int[] mColors = new int[mColorIds.length]; field in PlatLogoActivity.BubblesDrawable 366 mColors[i] = getColor(mColorIds[i]); in BubblesDrawable() 453 mBubbs[mNumBubbs].color = mColors[(int) (Math.random() * mColors.length)]; in randomize()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | ScrimController.java | 213 private GradientColors mColors; field in ScrimController 345 mColors = new GradientColors(); in ScrimController() 1104 mScrimInFront.setColors(mColors, animateScrimInFront); in updateScrims() 1105 mScrimBehind.setColors(mColors, animateBehindScrim); in updateScrims() 1106 mNotificationsScrim.setColors(mColors, animateScrimNotifications); in updateScrims() 1475 mColors.setMainColor(background); in updateThemeColors() 1476 mColors.setSecondaryColor(accent); in updateThemeColors() 1477 mColors.setSupportsDarkText( in updateThemeColors() 1478 ColorUtils.calculateContrast(mColors.getMainColor(), Color.WHITE) > 4.5); in updateThemeColors()
|
/frameworks/base/graphics/java/android/graphics/ |
D | SweepGradient.java | 37 private int[] mColors; field in SweepGradient
|
D | LinearGradient.java | 44 private int[] mColors; field in LinearGradient
|
D | RadialGradient.java | 46 private int[] mColors; field in RadialGradient
|
/frameworks/native/cmds/surfacereplayer/replayer/ |
D | Replayer.h | 153 std::unordered_map<layer_id, HSV> mColors; variable
|
D | Replayer.cpp | 298 mLayers[layerId], mColors[layerId], layerId); in dispatchEvent() 603 mColors[create.id()] = HSV(rand() % 360, 1, 1); in createSurfaceControl() 610 mLayers[create.id()], mColors[create.id()]); in createSurfaceControl()
|
/frameworks/wilhelm/src/ |
D | itfstruct.h | 368 SLHSL mColors[MAX_LED_COUNT]; member
|
/frameworks/base/core/java/android/app/ |
D | Notification.java | 3851 Colors mColors = new Colors(); field in Notification.Builder 5328 mColors.resolvePalette(mContext, mN.color, isBackgroundColorized(p), mInNightMode); in getColors() 5329 return mColors; in getColors()
|