Home
last modified time | relevance | path

Searched defs:color (Results 1 – 25 of 440) sorted by relevance

12345678910>>...18

/frameworks/base/core/tests/coretests/src/android/colormodel/
DCamTest.java47 int color = cam.viewed(Frame.DEFAULT); in camFromIntToInt() local
125 int color = Cam.getInt(cam.getHue(), cam.getChroma(), CamUtils.lstarFromInt(colorToTest)); in getRedFromGamutMap() local
133 int color = Cam.getInt(cam.getHue(), cam.getChroma(), CamUtils.lstarFromInt(colorToTest)); in getGreenFromGamutMap() local
141 int color = Cam.getInt(cam.getHue(), cam.getChroma(), CamUtils.lstarFromInt(colorToTest)); in getBlueFromGamutMap() local
149 int color = Cam.getInt(cam.getHue(), cam.getChroma(), CamUtils.lstarFromInt(colorToTest)); in getWhiteFromGamutMap() local
157 int color = Cam.getInt(cam.getHue(), cam.getChroma(), CamUtils.lstarFromInt(colorToTest)); in getBlackFromGamutMap() local
165 int color = Cam.getInt(cam.getHue(), cam.getChroma(), CamUtils.lstarFromInt(colorToTest)); in getMidgrayFromGamutMap() local
173 int color = Cam.getInt(cam.getHue(), cam.getChroma(), CamUtils.lstarFromInt(colorToTest)); in getRandomGreenFromGamutMap() local
179 int color = Cam.getInt(309.0f, 40.0f, 70.0f); in gamutMapArbitraryHCL() local
223 int color = 0xFF000000 | i; in testHctReflexivity() local
/frameworks/base/libs/hwui/
DCanvasTransform.cpp36 SkColor makeLight(SkColor color) { in makeLight()
47 SkColor makeDark(SkColor color) { in makeDark()
58 SkColor invert(SkColor color) { in invert()
64 SkColor transformColor(ColorTransform transform, SkColor color) { in transformColor()
77 SkColor transformColorInverse(ColorTransform transform, SkColor color) { in transformColorInverse()
131 SkColor color; in applyColorTransform() local
140 static BitmapPalette paletteForColorHSV(SkColor color) { in paletteForColorHSV()
151 SkColor4f color = palette == BitmapPalette::Light ? SkColors::kWhite : SkColors::kBlack; in filterPalette() local
/frameworks/base/graphics/java/android/graphics/
DColor.java455 float[] color = new float[] { in convert() local
478 float[] color = new float[] { in toArgb() local
705 public static ColorSpace colorSpace(@ColorLong long color) { in colorSpace()
724 public static float red(@ColorLong long color) { in red()
744 public static float green(@ColorLong long color) { in green()
764 public static float blue(@ColorLong long color) { in blue()
781 public static float alpha(@ColorLong long color) { in alpha()
797 public static boolean isSrgb(@ColorLong long color) { in isSrgb()
814 public static boolean isWideGamut(@ColorLong long color) { in isWideGamut()
828 public static boolean isInColorSpace(@ColorLong long color, @NonNull ColorSpace colorSpace) { in isInColorSpace()
[all …]
/frameworks/base/core/java/android/widget/
DCalendarView.java170 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/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/external/
DTileColorPickerTest.java50 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/base/core/java/com/android/internal/graphics/palette/
DColorCutQuantizer.java264 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()
/frameworks/base/core/java/com/android/internal/widget/remotecompose/core/operations/utilities/
DColorUtils.java36 boolean isRCColor(long color) { in isRCColor()
40 int getID(long color) { in getID()
53 public int getDefaultColor(long color) { in getDefaultColor()
/frameworks/native/services/inputflinger/reader/controller/
DPeripheralController.cpp30 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()
103 bool PeripheralController::MonoLight::setLightColor(int32_t color) { in setLightColor()
110 bool PeripheralController::RgbLight::setLightColor(int32_t color) { in setLightColor()
136 bool PeripheralController::MultiColorLight::setLightColor(int32_t color) { in setLightColor()
198 int32_t color = toArgb(/*brightness=*/0, intensities.at(LightColor::RED), in getLightColor() local
540 bool PeripheralController::setLightColor(int32_t lightId, int32_t color) { in setLightColor()
557 std::optional<int32_t> color = light->getLightColor(); in getLightColor() local
/frameworks/opt/colorpicker/src/com/android/colorpicker/
DColorPickerSwatch.java43 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()
DColorStateDrawable.java34 public ColorStateDrawable(Drawable[] layers, int color) { in ColorStateDrawable()
61 private static int getPressedColor(int color) { in getPressedColor()
/frameworks/base/core/java/com/android/internal/util/
DContrastColorUtil.java377 public static boolean isColorDark(int color) { in isColorDark()
383 public static boolean isColorDarkLab(int color) { in isColorDarkLab()
389 private int processColor(int color) { in processColor()
406 public static int findContrastColor(int color, int other, boolean findFg, double minRatio) { in findContrastColor()
442 public static int findAlphaToMeetContrast(int color, int backgroundColor, double minRatio) { in findAlphaToMeetContrast()
476 public static int findContrastColorAgainstDark(int color, int other, boolean findFg, in findContrastColorAgainstDark()
506 public static int ensureTextContrastOnBlack(int color) { in ensureTextContrastOnBlack()
516 public static int ensureLargeTextContrast(int color, int bg, boolean isBgDarker) { in ensureLargeTextContrast()
528 public static int ensureTextContrast(int color, int bg, boolean isBgDarker) { in ensureTextContrast()
541 public static int ensureContrast(int color, int bg, boolean isBgDarker, double minRatio) { in ensureContrast()
[all …]
/frameworks/base/services/core/java/com/android/server/lights/
DLogicalLight.java70 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/
DLightState.java51 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/
DILEDArray.cpp63 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/widget/remotecompose/core/operations/
DColorConstant.java50 public ColorConstant(int colorId, int color) { in ColorConstant()
92 public static void apply(@NonNull WireBuffer buffer, int colorId, int color) { in apply()
106 int color = buffer.readInt(); in read() local
/frameworks/base/libs/hwui/hwui/
DBlurDrawLooper.cpp24 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/native/services/surfaceflinger/tests/utils/
DColorUtils.h54 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/packages/SettingsLib/IllustrationPreference/src/com/android/settingslib/widget/
DLottieColorUtils.java149 final int color = context.getColor(DARK_TO_LIGHT_THEME_COLOR_MAP.get(key)); in applyDynamicColors() local
161 final int color = context.getColor(MATERIAL_COLOR_MAP.get(key)); in applyMaterialColor() local
/frameworks/base/core/tests/coretests/src/android/hardware/display/
DVirtualDisplayTest.java305 @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/WindowManager/Shell/src/com/android/wm/shell/bubbles/bar/
DBubbleBarHandleView.java101 private void setHandleColor(int color) { in setHandleColor()
128 private void setHandleProperties(float width, float height, int color) { in setHandleProperties()
139 public void setHandleInitialColor(@ColorInt int color) { in setHandleInitialColor()
188 int color = (int) mArgbEvaluator.evaluate(progress, mRegionSamplerColor, menuColor); in animateHandleForMenu() local
/frameworks/base/core/java/com/android/internal/widget/
DNotificationExpandButton.java236 public void setDefaultTextColor(int color) { in setDefaultTextColor()
245 public void setDefaultPillColor(@ColorInt int color) { in setDefaultPillColor()
254 public void setHighlightTextColor(int color) { in setHighlightTextColor()
263 public void setHighlightPillColor(@ColorInt int color) { in setHighlightPillColor()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/split/
DDividerRoundedCorner.java111 public void setup(boolean isSplitScreen, int color) { in setup()
123 public void onUiModeChange(int color) { in onUiModeChange()
135 public void onCornerColorChange(int color) { in onCornerColorChange()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DStatusIconDisplayable.java23 void setStaticDrawableColor(int color); in setStaticDrawableColor()
39 void setDecorColor(int color); in setDecorColor()
/frameworks/base/core/java/com/android/internal/widget/remotecompose/core/operations/paint/
DPaintBundle.java152 private static String colorInt(int color) { in colorInt()
158 private static String colorInt(@NonNull int[] color) { in colorInt()
286 int color = array[ret++]; in callRegisterGradient() local
316 int color = array[ret++]; in callRegisterGradient() local
341 int color = array[ret++]; in callRegisterGradient() local
728 public void setColorFilter(int color, int mode) { in setColorFilter()
740 public void setColorFilterId(int color, int mode) { in setColorFilterId()
796 public void setColor(int color) { in setColor()
812 int color = (a << 24) | (r << 16) | (g << 8) | b; in setColor() local
833 public void setColorId(int color) { in setColorId()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/
DColorUtil.kt54 val color = a.getColor(0, defColor) in getColorWithAlpha() constant

12345678910>>...18