| /frameworks/base/core/tests/coretests/src/android/colormodel/ |
| D | CamTest.java | 41 int color = cam.viewed(Frame.DEFAULT); in camFromIntToInt() local 119 int color = Cam.getInt(cam.getHue(), cam.getChroma(), CamUtils.lstarFromInt(colorToTest)); in getRedFromGamutMap() local 127 int color = Cam.getInt(cam.getHue(), cam.getChroma(), CamUtils.lstarFromInt(colorToTest)); in getGreenFromGamutMap() local 135 int color = Cam.getInt(cam.getHue(), cam.getChroma(), CamUtils.lstarFromInt(colorToTest)); in getBlueFromGamutMap() local 143 int color = Cam.getInt(cam.getHue(), cam.getChroma(), CamUtils.lstarFromInt(colorToTest)); in getWhiteFromGamutMap() local 151 int color = Cam.getInt(cam.getHue(), cam.getChroma(), CamUtils.lstarFromInt(colorToTest)); in getBlackFromGamutMap() local 159 int color = Cam.getInt(cam.getHue(), cam.getChroma(), CamUtils.lstarFromInt(colorToTest)); in getMidgrayFromGamutMap() local 167 int color = Cam.getInt(cam.getHue(), cam.getChroma(), CamUtils.lstarFromInt(colorToTest)); in getRandomGreenFromGamutMap() local 173 int color = Cam.getInt(309.0f, 40.0f, 70.0f); in gamutMapArbitraryHCL() local 217 int color = 0xFF000000 | i; in testHctReflexivity() local
|
| /frameworks/base/libs/hwui/ |
| D | CanvasTransform.cpp | 36 SkColor makeLight(SkColor color) { in makeLight() 47 SkColor makeDark(SkColor color) { in makeDark() 58 SkColor transformColor(ColorTransform transform, SkColor color) { in transformColor() 69 SkColor transformColorInverse(ColorTransform transform, SkColor color) { in transformColorInverse() 107 SkColor color; in applyColorTransform() local 116 static BitmapPalette paletteForColorHSV(SkColor color) { in paletteForColorHSV() 127 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/native/services/surfaceflinger/tests/utils/ |
| D | ColorUtils.h | 58 static void DegammaColor(half3& color) { in DegammaColor() 72 static void GammaColor(half3& color) { in GammaColor() 78 static void applyMatrix(half3& color, const mat3& mat) { in applyMatrix() 89 static half3 toHalf3(const Color& color) { in toHalf3() 93 static half4 toHalf4(const Color& color) { in toHalf4()
|
| /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() 111 bool PeripheralController::MonoLight::setLightColor(int32_t color) { in setLightColor() 118 bool PeripheralController::RgbLight::setLightColor(int32_t color) { in setLightColor() 144 bool PeripheralController::MultiColorLight::setLightColor(int32_t color) { in setLightColor() 206 int32_t color = toArgb(/*brightness=*/0, intensities.at(LightColor::RED), in getLightColor() local 543 bool PeripheralController::setLightColor(int32_t lightId, int32_t color) { in setLightColor() 562 std::optional<int32_t> color = light->getLightColor(); in getLightColor() local
|
| /frameworks/base/core/java/com/android/internal/util/ |
| D | ContrastColorUtil.java | 366 public static boolean isColorDark(int color) { in isColorDark() 371 private int processColor(int color) { in processColor() 388 public static int findContrastColor(int color, int other, boolean findFg, double minRatio) { in findContrastColor() 424 public static int findAlphaToMeetContrast(int color, int backgroundColor, double minRatio) { in findAlphaToMeetContrast() 458 public static int findContrastColorAgainstDark(int color, int other, boolean findFg, in findContrastColorAgainstDark() 488 public static int ensureTextContrastOnBlack(int color) { in ensureTextContrastOnBlack() 498 public static int ensureLargeTextContrast(int color, int bg, boolean isBgDarker) { in ensureLargeTextContrast() 510 public static int ensureTextContrast(int color, int bg, boolean isBgDarker) { in ensureTextContrast() 523 public static int ensureContrast(int color, int bg, boolean isBgDarker, double minRatio) { in ensureContrast() 532 public static int ensureTextBackgroundColor(int color, int textColor, int hintColor) { in ensureTextBackgroundColor() [all …]
|
| /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()
|
| D | LightsService.java | 297 int color = brightnessInt & 0x000000ff; in setBrightness() local 304 public void setColor(int color) { in setColor() 311 public void setFlashing(int color, int mode, int onMS, int offMS) { in setFlashing() 323 public void pulse(int color, int onMS) { in pulse() 367 private void setLightLocked(int color, int mode, int onMS, int offMS, int brightnessMode) { in setLightLocked() 391 private void setLightUnchecked(int color, int mode, int onMS, int offMS, in setLightUnchecked() 551 static native void setLight_native(int light, int color, int mode, in setLight_native()
|
| /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/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/base/libs/hwui/hwui/ |
| D | BlurDrawLooper.cpp | 24 BlurDrawLooper::BlurDrawLooper(SkColor4f color, float blurSigma, SkPoint offset) in BlurDrawLooper() 37 sk_sp<BlurDrawLooper> BlurDrawLooper::Make(SkColor4f color, SkColorSpace* cs, float blurSigma, in Make()
|
| /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/core/java/com/android/internal/widget/ |
| D | NotificationExpandButton.java | 189 public void setDefaultTextColor(int color) { in setDefaultTextColor() 198 public void setDefaultPillColor(@ColorInt int color) { in setDefaultPillColor() 207 public void setHighlightTextColor(int color) { in setHighlightTextColor() 216 public void setHighlightPillColor(@ColorInt int color) { in setHighlightPillColor()
|
| /frameworks/libs/systemui/iconloaderlib/src/com/android/launcher3/icons/ |
| D | BitmapInfo.java | 56 public final int color; field in BitmapInfo 65 public BitmapInfo(Bitmap icon, int color) { in BitmapInfo() 177 public static BitmapInfo of(@NonNull Bitmap bitmap, int color) { in of() 189 BitmapInfo getExtendedInfo(Bitmap bitmap, int color, in getExtendedInfo()
|
| /frameworks/base/packages/SystemUI/src/com/android/systemui/util/ |
| D | ColorUtil.kt | 54 val color = a.getColor(0, defColor) in getColorWithAlpha() constant
|
| /frameworks/base/core/tests/coretests/src/android/hardware/display/ |
| D | VirtualDisplayTest.java | 305 @ColorInt final int color, @Flags final int windowFlags) { in assertDisplayCanShowPresentation() 370 TestPresentation(Context context, Display display, @ColorInt int color, in TestPresentation() 394 TestDialog(Context context, @ColorInt int color, @Flags int windowFlags) { in TestDialog() 413 private static View createImageView(Context context, @ColorInt int color) { in createImageView() 435 public boolean waitForColor(int color, long timeoutMillis) { in waitForColor() 467 int color = scanImage(image); in onImageAvailable() local
|
| /frameworks/base/libs/hwui/tests/common/scenes/ |
| D | PartialDamageAnimation.cpp | 42 SkColor color = COLORS[static_cast<int>((y / dp(116))) % 4]; in createContent() local 60 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()
|