Home
last modified time | relevance | path

Searched refs:mColors (Results 1 – 19 of 19) 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.java68 private ColorExtractor.GradientColors mColors; field in SysuiColorExtractorTests
74 mColors = new ColorExtractor.GradientColors(); in setUp()
75 mColors.setMainColor(Color.RED); in setUp()
76 mColors.setSecondaryColor(Color.RED); in setUp()
81 outGradientColorsNormal.set(mColors); in setUp()
82 outGradientColorsDark.set(mColors); in setUp()
83 outGradientColorsExtraDark.set(mColors); in setUp()
94 mColors.setMainColor(Color.RED); in getColors()
95 mColors.setSecondaryColor(Color.RED); in getColors()
101 mColorExtractor.getColors(which, type), mColors); in getColors()
/frameworks/base/core/java/android/content/res/
DColorStateList.java160 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/services/core/java/com/android/server/sensorprivacy/
DCameraPrivacyLightController.java79 private final int[] mColors; field in CameraPrivacyLightController
99 mColors = context.getResources().getIntArray(R.array.config_cameraPrivacyLightColors); in CameraPrivacyLightController()
100 if (ArrayUtils.isEmpty(mColors)) { in CameraPrivacyLightController()
125 if (thresholdsLux.length != mColors.length - 1) { in CameraPrivacyLightController()
127 + " Found " + mColors.length + " colors and " + thresholdsLux.length in CameraPrivacyLightController()
242 mLightSensor == null ? mColors[mColors.length - 1] : computeCurrentLightColor(); in updateLightSession()
271 return mColors[i]; in computeCurrentLightColor()
274 return mColors[mColors.length - 1]; in computeCurrentLightColor()
/frameworks/base/tests/graphics/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/scrim/
DScrimView.java57 private final ColorExtractor.GradientColors mColors; field in ScrimView
90 mColors = new ColorExtractor.GradientColors(); in ScrimView()
175 if (mColors.equals(colors)) { in setColors()
178 mColors.set(colors); in setColors()
203 mTmpColors.set(mColors); in getColors()
251 mainTinted = ColorUtils.blendARGB(mColors.getMainColor(), mTintColor, tintAmount); in updateColorWithTint()
/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/base/packages/SettingsLib/src/com/android/settingslib/graph/
DBatteryMeterDrawableBase.java70 private final int[] mColors; field in BatteryMeterDrawableBase
107 mColors = new int[2 * N]; in BatteryMeterDrawableBase()
109 mColors[2 * i] = levels.getInt(i, 0); in BatteryMeterDrawableBase()
111 mColors[2 * i + 1] = Utils.getColorAttrDefaultColor(context, in BatteryMeterDrawableBase()
114 mColors[2 * i + 1] = colors.getColor(i, 0); in BatteryMeterDrawableBase()
150 if (mColors.length > 1) { in BatteryMeterDrawableBase()
151 mWarningTextPaint.setColor(mColors[1]); in BatteryMeterDrawableBase()
282 for (int i = 0; i < mColors.length; i += 2) { in getColorForLevel()
283 thresh = mColors[i]; in getColorForLevel()
284 color = mColors[i + 1]; in getColorForLevel()
[all …]
/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.java75 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()
DWuQuantizer.java61 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/scroll/
DFakeScrollCaptureConnection.java39 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/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DScrimController.java227 private GradientColors mColors; field in ScrimController
390 mColors = new GradientColors(); in ScrimController()
1251 mScrimInFront.setColors(mColors, animateScrimInFront); in updateScrims()
1252 mScrimBehind.setColors(mColors, animateBehindScrim); in updateScrims()
1253 mNotificationsScrim.setColors(mColors, animateScrimNotifications); in updateScrims()
1296 mScrimStateListener.accept(mState, alpha, mColors); in dispatchBackScrimState()
1609 mColors.setMainColor(background); in updateThemeColors()
1610 mColors.setSecondaryColor(accent); in updateThemeColors()
1612 mColors.setSupportsDarkText(isBackgroundLight); in updateThemeColors()
/frameworks/base/graphics/java/android/graphics/
DSweepGradient.java37 private int[] mColors; field in SweepGradient
DLinearGradient.java44 private int[] mColors; field in LinearGradient
DRadialGradient.java46 private int[] mColors; field in RadialGradient
/frameworks/wilhelm/src/
Ditfstruct.h368 SLHSL mColors[MAX_LED_COUNT]; member
/frameworks/base/core/java/android/app/
DNotification.java4381 Colors mColors = new Colors(); field in Notification.Builder
5890 mColors.resolvePalette(mContext, mN.color, isBackgroundColorized(p), mInNightMode); in getColors()
5891 return mColors; in getColors()
5899 mColors.resolvePalette(mContext, mN.color, !isHeader && mN.isColorized(), mInNightMode); in getColors()
5900 return mColors; in getColors()