Home
last modified time | relevance | path

Searched refs:colorInt (Results 1 – 9 of 9) sorted by relevance

/aosp12/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/unfold/
H A DUnfoldBackgroundController.java82 int colorInt = context.getResources().getColor(R.color.unfold_transition_background); in getBackgroundColor() local
84 (float) red(colorInt) / 255.0F, in getBackgroundColor()
85 (float) green(colorInt) / 255.0F, in getBackgroundColor()
86 (float) blue(colorInt) / 255.0F in getBackgroundColor()
/aosp12/frameworks/base/core/java/android/app/
H A DWallpaperColors.java116 final int colorInt = parcel.readInt(); in WallpaperColors() local
117 Color color = Color.valueOf(colorInt); in WallpaperColors()
122 final int colorInt = parcel.readInt(); in WallpaperColors() local
124 mAllColors.put(colorInt, population); in WallpaperColors()
209 int colorInt = swatch.getInt(); in fromBitmap() local
210 populationByColor.put(colorInt, swatch.getPopulation()); in fromBitmap()
333 for (int colorInt : mainColorInts) { in WallpaperColors()
334 mainColors.add(Color.valueOf(colorInt)); in WallpaperColors()
H A DNotification.java9386 @ColorInt Integer colorInt, @ColorRes int defaultColorRes, PendingIntent intent) { in makeAction() argument
9387 if (colorInt == null || !mBuilder.isCallActionColorCustomizable()) { in makeAction()
9388 colorInt = mBuilder.mContext.getColor(defaultColorRes); in makeAction()
9392 new ForegroundColorSpan(colorInt), in makeAction()
/aosp12/frameworks/base/graphics/java/android/graphics/drawable/
H A DRippleShader.java197 public void setColor(@ColorInt int colorInt, @ColorInt int sparkleColorInt) { in setColor() argument
198 Color color = Color.valueOf(colorInt); in setColor()
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/monet/
H A DColorSchemeTest.java97 int colorInt = 0xffB3588A; // H350 C50 T50 in testTertiaryHueWrapsProperly() local
98 ColorScheme colorScheme = new ColorScheme(colorInt, false /* darkTheme */); in testTertiaryHueWrapsProperly()
/aosp12/frameworks/base/core/java/com/android/internal/graphics/palette/
H A DWSMeansQuantizer.java120 int colorInt = mPointProvider.toInt(cluster); in quantize() local
121 swatches.add(new Palette.Swatch(colorInt, mClusterPopulations[i])); in quantize()
H A DPalette.java135 public Swatch(@ColorInt int colorInt, int population) { in Swatch() argument
136 mColor = Color.valueOf(colorInt); in Swatch()
/aosp12/frameworks/base/cmds/bootanimation/
H A DBootAnimation.cpp936 int colorInt = atoi(colorString.c_str()); in parseColorDecimalString() local
937 color[0] = ((float)((colorInt >> 16) & 0xFF)) / 0xFF; // r in parseColorDecimalString()
938 color[1] = ((float)((colorInt >> 8) & 0xFF)) / 0xFF; // g in parseColorDecimalString()
939 color[2] = ((float)(colorInt & 0xFF)) / 0xFF; // b in parseColorDecimalString()
/aosp12/frameworks/base/services/core/java/com/android/server/wallpaper/
H A DWallpaperManagerService.java3523 int colorInt = getAttributeInt(parser, "allColorsValue" + i, 0); in parseWallpaperAttributes() local
3525 allColors.put(colorInt, population); in parseWallpaperAttributes()