| /frameworks/base/core/tests/coretests/src/android/colormodel/ |
| D | CamTest.java | 38 int color = cam.viewed(Frame.DEFAULT); in camFromIntToInt() local 116 int color = Cam.getInt(cam.getHue(), cam.getChroma(), CamUtils.lstarFromInt(colorToTest)); in getRedFromGamutMap() local 124 int color = Cam.getInt(cam.getHue(), cam.getChroma(), CamUtils.lstarFromInt(colorToTest)); in getGreenFromGamutMap() local 132 int color = Cam.getInt(cam.getHue(), cam.getChroma(), CamUtils.lstarFromInt(colorToTest)); in getBlueFromGamutMap() local 140 int color = Cam.getInt(cam.getHue(), cam.getChroma(), CamUtils.lstarFromInt(colorToTest)); in getWhiteFromGamutMap() local 148 int color = Cam.getInt(cam.getHue(), cam.getChroma(), CamUtils.lstarFromInt(colorToTest)); in getBlackFromGamutMap() local 156 int color = Cam.getInt(cam.getHue(), cam.getChroma(), CamUtils.lstarFromInt(colorToTest)); in getMidgrayFromGamutMap() local 164 int color = Cam.getInt(cam.getHue(), cam.getChroma(), CamUtils.lstarFromInt(colorToTest)); in getRandomGreenFromGamutMap() local 170 int color = Cam.getInt(309.0f, 40.0f, 70.0f); in gamutMapArbitraryHCL() local
|
| /frameworks/base/libs/hwui/ |
| D | CanvasTransform.cpp | 34 SkColor makeLight(SkColor color) { in makeLight() 45 SkColor makeDark(SkColor color) { in makeDark() 56 SkColor transformColor(ColorTransform transform, SkColor color) { in transformColor() 67 SkColor transformColorInverse(ColorTransform transform, SkColor color) { in transformColorInverse() 111 SkColor color; in applyColorTransform() local 120 static BitmapPalette paletteForColorHSV(SkColor color) { in paletteForColorHSV() 131 SkColor color = palette == BitmapPalette::Light ? SK_ColorWHITE : SK_ColorBLACK; in filterPalette() local
|
| /frameworks/base/graphics/java/android/graphics/ |
| D | Color.java | 452 float[] color = new float[] { in convert() local 475 float[] color = new float[] { in toArgb() local 702 public static ColorSpace colorSpace(@ColorLong long color) { in colorSpace() 721 public static float red(@ColorLong long color) { in red() 741 public static float green(@ColorLong long color) { in green() 761 public static float blue(@ColorLong long color) { in blue() 778 public static float alpha(@ColorLong long color) { in alpha() 794 public static boolean isSrgb(@ColorLong long color) { in isSrgb() 811 public static boolean isWideGamut(@ColorLong long color) { in isWideGamut() 825 public static boolean isInColorSpace(@ColorLong long color, @NonNull ColorSpace colorSpace) { in isInColorSpace() [all …]
|
| /frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/external/ |
| D | TileColorPickerTest.java | 50 final int color = mTileColorPicker.getColor(Tile.STATE_UNAVAILABLE); in testGetColor_StateUnavailable_ReturnUnavailableColor() local 59 final int color = mTileColorPicker.getColor(Tile.STATE_INACTIVE); in testGetColor_StateInactive_ReturnInactiveColor() local 68 final int color = mTileColorPicker.getColor(Tile.STATE_ACTIVE); in testGetColor_StateActive_ReturnActiveColor() local
|
| /frameworks/libs/systemui/iconloaderlib/src/com/android/launcher3/icons/ |
| D | BitmapInfo.java | 50 public final int color; field in BitmapInfo 52 public BitmapInfo(Bitmap icon, int color) { in BitmapInfo() 111 public static BitmapInfo fromByteArray(byte[] data, int color, UserHandle user, in fromByteArray() 138 public static BitmapInfo of(@NonNull Bitmap bitmap, int color) { in of() 150 BitmapInfo getExtendedInfo(Bitmap bitmap, int color, in getExtendedInfo()
|
| /frameworks/base/core/java/android/widget/ |
| D | CalendarView.java | 170 public void setSelectedWeekBackgroundColor(@ColorInt int color) { in setSelectedWeekBackgroundColor() 198 public void setFocusedMonthDateColor(@ColorInt int color) { in setFocusedMonthDateColor() 226 public void setUnfocusedMonthDateColor(@ColorInt int color) { in setUnfocusedMonthDateColor() 254 public void setWeekNumberColor(@ColorInt int color) { in setWeekNumberColor() 282 public void setWeekSeparatorLineColor(@ColorInt int color) { in setWeekSeparatorLineColor() 601 void setSelectedWeekBackgroundColor(@ColorInt int color); in setSelectedWeekBackgroundColor() 604 void setFocusedMonthDateColor(@ColorInt int color); in setFocusedMonthDateColor() 607 void setUnfocusedMonthDateColor(@ColorInt int color); in setUnfocusedMonthDateColor() 610 void setWeekNumberColor(@ColorInt int color); in setWeekNumberColor() 613 void setWeekSeparatorLineColor(@ColorInt int color); in setWeekSeparatorLineColor() [all …]
|
| /frameworks/opt/colorpicker/src/com/android/colorpicker/ |
| D | ColorPickerSwatch.java | 43 public void onColorSelected(int color); in onColorSelected() 46 public ColorPickerSwatch(Context context, int color, boolean checked, in ColorPickerSwatch() 60 protected void setColor(int color) { in setColor()
|
| D | ColorStateDrawable.java | 34 public ColorStateDrawable(Drawable[] layers, int color) { in ColorStateDrawable() 61 private static int getPressedColor(int color) { in getPressedColor()
|
| /frameworks/base/core/java/com/android/internal/graphics/palette/ |
| D | ColorCutQuantizer.java | 264 final int color = colors[i]; in fitBox() local 388 final int color = colors[i]; in getAverageColor() local 420 final int color = a[i]; in modifySignificantOctet() local 429 final int color = a[i]; in modifySignificantOctet() local 451 private static int quantizeFromRgb888(int color) { in quantizeFromRgb888() 467 private static int approximateToRgb888(int color) { in approximateToRgb888() 475 static int quantizedRed(int color) { in quantizedRed() 482 static int quantizedGreen(int color) { in quantizedGreen() 489 static int quantizedBlue(int color) { in quantizedBlue()
|
| D | LABPointProvider.java | 42 public float[] fromInt(int color) { in fromInt() 54 int color = Color.rgb(rgb[0], rgb[1], rgb[2]); in toInt() local
|
| /frameworks/native/services/inputflinger/reader/controller/ |
| D | PeripheralController.cpp | 30 static inline int32_t getAlpha(int32_t color) { in getAlpha() 34 static inline int32_t getRed(int32_t color) { in getRed() 38 static inline int32_t getGreen(int32_t color) { in getGreen() 42 static inline int32_t getBlue(int32_t color) { in getBlue() 107 bool PeripheralController::MonoLight::setLightColor(int32_t color) { in setLightColor() 114 bool PeripheralController::RgbLight::setLightColor(int32_t color) { in setLightColor() 140 bool PeripheralController::MultiColorLight::setLightColor(int32_t color) { in setLightColor() 202 int32_t color = toArgb(0 /* brightness */, intensities.at(LightColor::RED) /* red */, in getLightColor() local 482 bool PeripheralController::setLightColor(int32_t lightId, int32_t color) { in setLightColor() 501 std::optional<int32_t> color = light->getLightColor(); in getLightColor() local
|
| /frameworks/base/services/core/java/com/android/server/lights/ |
| D | LogicalLight.java | 70 public abstract void setColor(int color); in setColor() 75 public abstract void setFlashing(int color, int mode, int onMS, int offMS); in setFlashing() 85 public abstract void pulse(int color, int onMS); in pulse()
|
| /frameworks/base/core/java/android/hardware/lights/ |
| D | LightState.java | 51 public LightState(@ColorInt int color) { in LightState() 63 public LightState(@ColorInt int color, int playerId) { in LightState() 90 public Builder setColor(@ColorInt int color) { in setColor()
|
| /frameworks/wilhelm/src/itf/ |
| D | ILEDArray.cpp | 63 SLHSL color = *pColor; in ILEDArray_SetColor() local 92 SLHSL color = thiz->mColors[index]; in ILEDArray_GetColor() local 114 SLHSL *color = thiz->mColors; in ILEDArray_init() local
|
| /frameworks/base/core/java/com/android/internal/util/ |
| D | ContrastColorUtil.java | 283 private int processColor(int color) { in processColor() 300 public static int findContrastColor(int color, int other, boolean findFg, double minRatio) { in findContrastColor() 336 public static int findAlphaToMeetContrast(int color, int backgroundColor, double minRatio) { in findAlphaToMeetContrast() 370 public static int findContrastColorAgainstDark(int color, int other, boolean findFg, in findContrastColorAgainstDark() 399 public static int ensureTextContrastOnBlack(int color) { in ensureTextContrastOnBlack() 409 public static int ensureLargeTextContrast(int color, int bg, boolean isBgDarker) { in ensureLargeTextContrast() 421 public static int ensureTextContrast(int color, int bg, boolean isBgDarker) { in ensureTextContrast() 434 public static int ensureContrast(int color, int bg, boolean isBgDarker, double minRatio) { in ensureContrast() 443 public static int ensureTextBackgroundColor(int color, int textColor, int hintColor) { in ensureTextBackgroundColor() 457 public static int resolveColor(Context context, int color, boolean defaultBackgroundIsDark) { in resolveColor() [all …]
|
| /frameworks/native/services/surfaceflinger/ |
| D | RefreshRateOverlay.cpp | 35 void RefreshRateOverlay::SevenSegmentDrawer::drawRect(const Rect& r, const half4& color, in drawRect() 58 const half4& color, in drawSegment() 86 void RefreshRateOverlay::SevenSegmentDrawer::drawDigit(int digit, int left, const half4& color, in drawDigit() 113 int number, const half4& color, bool showSpinner) { in drawNumber() 222 half4 color; in getOrCreateBuffers() local
|
| /frameworks/base/libs/hwui/hwui/ |
| D | BlurDrawLooper.cpp | 22 BlurDrawLooper::BlurDrawLooper(SkColor4f color, float blurSigma, SkPoint offset) in BlurDrawLooper() 35 sk_sp<BlurDrawLooper> BlurDrawLooper::Make(SkColor4f color, SkColorSpace* cs, float blurSigma, in Make()
|
| /frameworks/native/cmds/surfacereplayer/replayer/ |
| D | BufferQueueScheduler.cpp | 26 const sp<SurfaceControl>& surfaceControl, const HSV& color, int id) in BufferQueueScheduler() 68 const sp<SurfaceControl>& surfaceControl, const HSV& color) { in setSurfaceControl() 91 auto color = mColor.getRGB(); in fillSurface() local
|
| /frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
| D | StatusIconDisplayable.java | 23 void setStaticDrawableColor(int color); in setStaticDrawableColor() 24 void setDecorColor(int color); in setDecorColor()
|
| /frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
| D | ScreenshotTests.java | 157 int color = bitmap.getPixel(x, y); in getNumMatchingPixels() local 166 static boolean matchesColor(PixelColor expectedColor, int color) { in matchesColor() 206 public PixelColor(int color) { in PixelColor() 226 private int getMinValue(short color) { in getMinValue() 230 private int getMaxValue(short color) { in getMaxValue()
|
| /frameworks/native/services/surfaceflinger/tests/utils/ |
| D | ColorUtils.h | 54 static void DegammaColor(half3& color) { in DegammaColor() 68 static void GammaColor(half3& color) { in GammaColor() 74 static void applyMatrix(half3& color, const mat3& mat) { in applyMatrix()
|
| /frameworks/base/core/java/com/android/internal/widget/ |
| D | NotificationExpandButton.java | 184 public void setDefaultTextColor(int color) { in setDefaultTextColor() 193 public void setDefaultPillColor(@ColorInt int color) { in setDefaultPillColor() 202 public void setHighlightTextColor(int color) { in setHighlightTextColor() 211 public void setHighlightPillColor(@ColorInt int color) { in setHighlightPillColor()
|
| /frameworks/base/libs/hwui/tests/common/scenes/ |
| D | PartialDamageAnimation.cpp | 40 SkColor color = COLORS[static_cast<int>((y / dp(116))) % 4]; in createContent() local 58 SkColor color = TestUtils::interpolateColor(curFrame / 150.0f, 0xFFF44336, 0xFFF8BBD0); in doFrame() local
|
| /frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/template/ |
| D | ProgressBarMixin.java | 34 @Nullable private ColorStateList color; field in ProgressBarMixin 100 public void setColor(@Nullable ColorStateList color) { in setColor()
|
| /frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/ |
| D | TextAttribute.java | 34 public TextColor color; field in TextAttribute 38 boolean strikeThrough, TextColor color) { in TextAttribute()
|