Home
last modified time | relevance | path

Searched defs:backgroundColor (Results 1 – 25 of 62) sorted by relevance

123

/aosp12/packages/apps/Car/Notification/src/com/android/car/notification/
H A DNotificationUtils.java148 @ColorInt int notificationColor, @ColorInt int backgroundColor) { in resolveContrastColor()
155 public static boolean isColorLight(int backgroundColor) { in isColorLight()
198 @ColorInt int foregroundColor, @ColorInt int backgroundColor, double minContrastRatio) { in findContrastColorAgainstLightBackground()
233 @ColorInt int foregroundColor, @ColorInt int backgroundColor, double minContrastRatio) { in findContrastColorAgainstDarkBackground()
266 @ColorInt int foregroundColor, @ColorInt int backgroundColor, double minContrastRatio) { in getContrastedForegroundColor()
/aosp12/frameworks/base/core/java/android/view/
H A DTaskTransitionSpec.java37 public final int backgroundColor; field in TaskTransitionSpec
52 int backgroundColor, Set<Integer> animationBoundInsets) { in TaskTransitionSpec()
/aosp12/frameworks/base/core/java/com/android/internal/util/
H A DContrastColorUtil.java336 public static int findAlphaToMeetContrast(int color, int backgroundColor, double minRatio) { in findAlphaToMeetContrast()
476 int backgroundColor) { in resolveContrastColor()
492 int backgroundColor, boolean isDark) { in resolveContrastColor()
526 public static int resolvePrimaryColor(Context context, int backgroundColor, in resolvePrimaryColor()
538 public static int resolveSecondaryColor(Context context, int backgroundColor, in resolveSecondaryColor()
550 public static int resolveDefaultColor(Context context, int backgroundColor, in resolveDefaultColor()
595 private static boolean shouldUseDark(int backgroundColor, boolean defaultBackgroundIsDark) { in shouldUseDark()
604 public static double calculateLuminance(int backgroundColor) { in calculateLuminance()
609 public static double calculateContrast(int foregroundColor, int backgroundColor) { in calculateContrast()
613 public static boolean satisfiesTextContrast(int backgroundColor, int foregroundColor) { in satisfiesTextContrast()
[all …]
/aosp12/packages/apps/Contacts/src/com/android/contacts/list/
H A DContactListPinnedHeaderView.java42 int backgroundColor = a.getColor( in ContactListPinnedHeaderView() local
/aosp12/frameworks/base/core/java/android/util/
H A DLauncherIcons.java101 public Drawable getBadgeDrawable(int foregroundRes, int backgroundColor) { in getBadgeDrawable()
105 public Drawable getBadgedDrawable(Drawable base, int foregroundRes, int backgroundColor) { in getBadgedDrawable()
/aosp12/frameworks/base/core/java/android/text/style/
H A DSuggestionRangeSpan.java71 public void setBackgroundColor(int backgroundColor) { in setBackgroundColor()
/aosp12/frameworks/base/core/java/android/view/accessibility/
H A DCaptioningManager.java318 public final int backgroundColor; field in CaptioningManager.CaptionStyle
356 private CaptionStyle(int foregroundColor, int backgroundColor, int edgeType, int edgeColor, in CaptionStyle()
480 final int backgroundColor = Secure.getInt( in getCustomStyle() local
/aosp12/frameworks/base/apct-tests/perftests/core/src/android/graphics/perftests/
H A DVectorDrawablePerfTest.java78 int backgroundColor = bmp.getPixel(w / 4, h / 2); in testBitmapDrawPerf() local
/aosp12/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/
H A DGlifLayout.java127 ColorStateList backgroundColor = in init() local
289 int backgroundColor = 0; in updateBackground() local
/aosp12/frameworks/native/libs/renderengine/tests/
H A DRenderEngineTest.cpp339 const ubyte4& backgroundColor) { in expectShadowColor()
378 const ubyte4& backgroundColor) { in expectShadowColorWithoutCaster()
1223 const ubyte4& casterColor, const ubyte4& backgroundColor) { in drawShadow()
1260 const ubyte4& backgroundColor) { in drawShadowWithoutCaster()
1310 const ubyte4 backgroundColor(255.f, 255.f, 255.f, 255.f); in TEST_P() local
1658 const ubyte4 backgroundColor(255, 255, 255, 255); in TEST_P() local
1674 const ubyte4 backgroundColor(255, 255, 255, 255); in TEST_P() local
1693 const ubyte4 backgroundColor(255, 255, 255, 255); in TEST_P() local
1713 const ubyte4 backgroundColor(255, 255, 255, 255); in TEST_P() local
1734 const ubyte4 backgroundColor(255, 255, 255, 255); in TEST_P() local
[all …]
/aosp12/packages/apps/Messaging/src/com/android/messaging/ui/
H A DViewPagerTabStrip.java49 int backgroundColor = res.getColor(R.color.action_bar_background_color); in ViewPagerTabStrip() local
/aosp12/packages/apps/Dialer/java/com/android/contacts/common/list/
H A DViewPagerTabStrip.java47 int backgroundColor = ThemeComponent.get(context).theme().getColorPrimary(); in ViewPagerTabStrip() local
/aosp12/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/emoji/
H A DEmojiCategoryPageIndicatorView.java41 public void setColors(final int foregroundColor, final int backgroundColor) { in setColors()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/globalactions/
H A DGlobalActionsFlatLayout.java53 protected HardwareBgDrawable getBackgroundDrawable(int backgroundColor) { in getBackgroundDrawable()
H A DGlobalActionsLayoutLite.java56 protected HardwareBgDrawable getBackgroundDrawable(int backgroundColor) { in getBackgroundDrawable()
H A DGlobalActionsLayout.java65 protected HardwareBgDrawable getBackgroundDrawable(int backgroundColor) { in getBackgroundDrawable()
/aosp12/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/startingsurface/
H A DSplashscreenIconDrawableFactory.java61 static Drawable[] makeIconDrawable(@ColorInt int backgroundColor, @ColorInt int themeColor, in makeIconDrawable()
169 public MaskBackgroundDrawable(@ColorInt int backgroundColor) { in MaskBackgroundDrawable()
/aosp12/packages/apps/Messaging/src/com/android/messaging/datamodel/media/
H A DSimSelectorAvatarRequest.java74 final int backgroundColor = selected ? subColor : Color.WHITE; in renderSimAvatarInternal() local
H A DImageRequest.java226 final int backgroundColor = mDescriptor.circleBackgroundColor; in postProcessOnBitmapResourceLoaded() local
/aosp12/packages/apps/TvSettings/Settings/src/com/android/tv/settings/dialog/old/
H A DBaseContentFragment.java54 int backgroundColor) { in buildArgs()
60 int backgroundColor) { in buildArgs()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/wrapper/
H A DNotificationViewWrapper.java114 int backgroundColor = getBackgroundColor(mView); in onReinflated() local
174 int backgroundColor = getBackgroundColor(viewGroup); in childrenNeedInversion() local
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/media/
H A DIlluminationDrawable.kt67 private var backgroundColor = Color.TRANSPARENT regex
/aosp12/frameworks/av/media/libstagefright/renderfright/tests/
H A DRenderEngineTest.cpp950 const ubyte4& casterColor, const ubyte4& backgroundColor) { in drawShadow()
1310 const ubyte4 backgroundColor(255, 255, 255, 255); in TEST_F() local
1327 const ubyte4 backgroundColor(255, 255, 255, 255); in TEST_F() local
1344 const ubyte4 backgroundColor(255, 255, 255, 255); in TEST_F() local
1362 const ubyte4 backgroundColor(255, 255, 255, 255); in TEST_F() local
1382 const ubyte4 backgroundColor(255, 255, 255, 255); in TEST_F() local
/aosp12/frameworks/base/packages/SystemUI/monet/src/com/android/systemui/monet/
H A DColorScheme.kt70 val backgroundColor regex
/aosp12/frameworks/base/core/java/android/window/
H A DSplashScreenView.java204 public Builder setBackgroundColor(@ColorInt int backgroundColor) { in setBackgroundColor()
646 int backgroundColor) { in applySystemBarsContrastColor()

123