Home
last modified time | relevance | path

Searched refs:backgroundColor (Results 1 – 25 of 101) sorted by relevance

12345

/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/wrapper/
DNotificationViewWrapper.java117 int backgroundColor = getBackgroundColor(mView); in onReinflated() local
118 if (backgroundColor != Color.TRANSPARENT) { in onReinflated()
119 mBackgroundColor = backgroundColor; in onReinflated()
177 int backgroundColor = getBackgroundColor(viewGroup); in childrenNeedInversion() local
178 if (Color.alpha(backgroundColor) != 255) { in childrenNeedInversion()
179 backgroundColor = ContrastColorUtil.compositeColors(backgroundColor, parentBackground); in childrenNeedInversion()
180 backgroundColor = ColorUtils.setAlphaComponent(backgroundColor, 255); in childrenNeedInversion()
186 if (ColorUtils.calculateContrast(foreground, backgroundColor) < 3) { in childrenNeedInversion()
190 if (childrenNeedInversion(backgroundColor, (ViewGroup) child)) { in childrenNeedInversion()
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/panel/component/mediaoutput/ui/viewmodel/
DDeviceIconViewModel.kt27 val backgroundColor: Color constant
32 override val backgroundColor: Color, constant in com.android.systemui.volume.panel.component.mediaoutput.ui.viewmodel.DeviceIconViewModel.IsPlaying
38 override val backgroundColor: Color, constant in com.android.systemui.volume.panel.component.mediaoutput.ui.viewmodel.DeviceIconViewModel.IsNotPlaying
/frameworks/base/core/java/com/android/internal/util/
DContrastColorUtil.java424 public static int findAlphaToMeetContrast(int color, int backgroundColor, double minRatio) { in findAlphaToMeetContrast() argument
426 int bg = backgroundColor; in findAlphaToMeetContrast()
564 int backgroundColor) { in resolveContrastColor() argument
566 backgroundColor, false /* isDark */); in resolveContrastColor()
580 int backgroundColor, boolean isDark) { in resolveContrastColor() argument
584 color = ContrastColorUtil.ensureTextContrast(color, backgroundColor, isDark); in resolveContrastColor()
592 ContrastColorUtil.contrastChange(resolvedColor, color, backgroundColor), in resolveContrastColor()
614 public static int resolvePrimaryColor(Context context, int backgroundColor, in resolvePrimaryColor() argument
616 boolean useDark = shouldUseDark(backgroundColor, defaultBackgroundIsDark); in resolvePrimaryColor()
626 public static int resolveSecondaryColor(Context context, int backgroundColor, in resolveSecondaryColor() argument
[all …]
/frameworks/base/core/java/android/view/accessibility/
DCaptioningManager.java422 public final int backgroundColor; field in CaptioningManager.CaptionStyle
460 private CaptionStyle(int foregroundColor, int backgroundColor, int edgeType, int edgeColor, in CaptionStyle() argument
463 mHasBackgroundColor = hasColor(backgroundColor); in CaptionStyle()
471 this.backgroundColor = mHasBackgroundColor ? backgroundColor : Color.BLACK; in CaptionStyle()
506 overlay.backgroundColor : backgroundColor; in applyStyle()
584 final int backgroundColor = Secure.getInt( in getCustomStyle() local
585 cr, Secure.ACCESSIBILITY_CAPTIONING_BACKGROUND_COLOR, defStyle.backgroundColor); in getCustomStyle()
598 return new CaptionStyle(foregroundColor, backgroundColor, edgeType, edgeColor, in getCustomStyle()
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/
DGlifLayout.java127 ColorStateList backgroundColor = in init() local
129 setBackgroundBaseColor(backgroundColor); in init()
289 int backgroundColor = 0; in updateBackground() local
291 backgroundColor = backgroundBaseColor.getDefaultColor(); in updateBackground()
293 backgroundColor = primaryColor.getDefaultColor(); in updateBackground()
297 ? new GlifPatternDrawable(backgroundColor) in updateBackground()
298 : new ColorDrawable(backgroundColor); in updateBackground()
/frameworks/base/packages/SystemUI/compose/core/src/com/android/compose/activity/
DEdgeToEdgeActivitContent.kt54 val backgroundColor = MaterialTheme.colorScheme.background in EdgeToEdgeActivityContent() constant
55 Box(modifier.fillMaxSize().background(backgroundColor)) { in EdgeToEdgeActivityContent()
56 CompositionLocalProvider(LocalContentColor provides contentColorFor(backgroundColor)) { in EdgeToEdgeActivityContent()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/common/
DThemeUtils.kt78 val backgroundColor = task.taskDescription?.backgroundColor ?: return systemTheme in isLight() constant
79 return if (Color.valueOf(backgroundColor).luminance() < 0.5) { in isLight()
/frameworks/av/media/libstagefright/renderfright/tests/
DRenderEngineTest.cpp193 const ubyte4& backgroundColor) { in expectShadowColor()
226 expectBufferColor(backgroundRegion, backgroundColor.r, backgroundColor.g, backgroundColor.b, in expectShadowColor()
227 backgroundColor.a); in expectShadowColor()
363 const ubyte4& backgroundColor);
950 const ubyte4& casterColor, const ubyte4& backgroundColor) { in drawShadow() argument
960 ColorSourceVariant::fillColor(bgLayer, backgroundColor.r / 255.0f, backgroundColor.g / 255.0f, in drawShadow()
961 backgroundColor.b / 255.0f, this); in drawShadow()
962 bgLayer.alpha = backgroundColor.a / 255.0f; in drawShadow()
1310 const ubyte4 backgroundColor(255, 255, 255, 255); in TEST_F() local
1321 drawShadow<ColorSourceVariant>(castingLayer, settings, casterColor, backgroundColor); in TEST_F()
[all …]
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/ribbon/ui/composable/
DRibbon.kt52 backgroundColor: Color? = Color.Red, in <lambda>()
76 .thenIf(backgroundColor != null) { Modifier.background(backgroundColor!!) } in <lambda>()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/startingsurface/
DSplashscreenIconDrawableFactory.java64 static Drawable[] makeIconDrawable(@ColorInt int backgroundColor, @ColorInt int themeColor, in makeIconDrawable() argument
70 backgroundColor != Color.TRANSPARENT && backgroundColor != themeColor; in makeIconDrawable()
88 background = new MaskBackgroundDrawable(backgroundColor); in makeIconDrawable()
187 public MaskBackgroundDrawable(@ColorInt int backgroundColor) { in MaskBackgroundDrawable() argument
193 if (backgroundColor != Color.TRANSPARENT) { in MaskBackgroundDrawable()
196 mBackgroundPaint.setColor(backgroundColor); in MaskBackgroundDrawable()
/frameworks/native/libs/renderengine/tests/
DRenderEngineTest.cpp390 const ubyte4& backgroundColor) { in expectShadowColor() argument
425 expectBufferColor(backgroundRegion, backgroundColor.r, backgroundColor.g, backgroundColor.b, in expectShadowColor()
426 backgroundColor.a); in expectShadowColor()
430 const ubyte4& backgroundColor) { in expectShadowColorWithoutCaster() argument
444 expectBufferColor(backgroundRegion, backgroundColor.r, backgroundColor.g, backgroundColor.b, in expectShadowColorWithoutCaster()
445 backgroundColor.a); in expectShadowColorWithoutCaster()
588 const ubyte4& casterColor, const ubyte4& backgroundColor);
591 const ubyte4& backgroundColor);
1326 const ubyte4& backgroundColor) { in drawShadow() argument
1338 ColorSourceVariant::fillColor(bgLayer, backgroundColor.r / 255.0f, backgroundColor.g / 255.0f, in drawShadow()
[all …]
/frameworks/base/core/java/android/util/
DLauncherIcons.java103 public Drawable getBadgeDrawable(Drawable badgeForeground, int backgroundColor) { in getBadgeDrawable() argument
104 return getBadgedDrawable(null, badgeForeground, backgroundColor); in getBadgeDrawable()
108 Drawable base, Drawable badgeForeground, int backgroundColor) { in getBadgedDrawable() argument
120 badgeForeground.setTint(backgroundColor); in getBadgedDrawable()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/ui/drawable/
DIlluminationDrawable.kt65 private var backgroundColor = Color.TRANSPARENT variable
167 ColorUtils.colorToHSL(backgroundColor, tmpHsl) in animateBackground()
191 paint.color = blendARGB(initialBackground, backgroundColor, progress) in animateBackground()
209 backgroundColor = tint!!.defaultColor in setTintList()
/frameworks/base/core/java/android/text/style/
DSuggestionRangeSpan.java81 public void setBackgroundColor(int backgroundColor) { in setBackgroundColor() argument
82 mBackgroundColor = backgroundColor; in setBackgroundColor()
/frameworks/base/packages/SystemUI/src/com/android/systemui/communal/util/
DCommunalColors.kt35 val backgroundColor: StateFlow<Color> constant
46 override val backgroundColor: StateFlow<Color> = constant
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/bouncer/ui/composable/
DPinBouncer.kt161 backgroundColor = MaterialTheme.colorScheme.surfaceVariant, in DigitButton()
198 val backgroundColor = in ActionButton() constant
208 backgroundColor = backgroundColor, in ActionButton()
230 backgroundColor: Color, in PinPadButton()
269 else -> backgroundColor in PinPadButton()
DBouncerScene.kt74 val backgroundColor = MaterialTheme.colorScheme.surface in Content() constant
78 drawRect(color = backgroundColor) in Content()
/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/framework/util/
DEntryHighlight.kt45 val backgroundColor by animateColorAsState( constant
57 Box(modifier = Modifier.background(color = backgroundColor)) { in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/communal/ui/viewmodel/
DCommunalTransitionViewModel.kt134 combine(showCommunalFromOccluded, communalColors.backgroundColor) { in <lambda>()
136 backgroundColor, in <lambda>() method
139 backgroundColor in <lambda>()
/frameworks/base/apct-tests/perftests/core/src/android/graphics/perftests/
DVectorDrawablePerfTest.java78 int backgroundColor = bmp.getPixel(w / 4, h / 2); in testBitmapDrawPerf() local
81 assertTrue("The background should be white", backgroundColor == Color.WHITE); in testBitmapDrawPerf()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/back/
DCustomCrossActivityBackAnimation.kt182 customizedBackgroundColor = result.backgroundColor in <lambda>()
204 var backgroundColor = 0 in <lambda>() variable
233 result.backgroundColor = animationInfo.customBackground in loadAll()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DLetterboxAppearanceCalculator.kt183 val backgroundColor = outerLetterboxBackgroundColor() in getOuterAppearance() constant
185 ContrastColorUtil.calculateContrast(darkAppearanceIconColor, backgroundColor) in getOuterAppearance()
187 ContrastColorUtil.calculateContrast(lightAppearanceIconColor, backgroundColor) in getOuterAppearance()
/frameworks/base/packages/CredentialManager/horologist/src/com/google/android/horologist/compose/tools/
DWearPreview.kt22 backgroundColor = 0xff000000,
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/
DMaximizeMenu.kt323 rootView.background.setTint(style.backgroundColor) in bind()
425 backgroundColor = menuBackgroundColor, in calculateMenuStyle()
503 backgroundColor = activeBackground, in createMaximizeDrawable()
519 backgroundColor = colorScheme.surfaceContainerLow.toArgb(), in createMaximizeDrawable()
528 @ColorInt backgroundColor: Int, in createMaximizeButtonDrawable()
565 paint.color = backgroundColor in createMaximizeButtonDrawable()
607 @ColorInt val backgroundColor: Int, in requireViewById() constant in MenuStyle
/frameworks/base/packages/SystemUI/src/com/android/systemui/globalactions/
DGlobalActionsLayout.java65 protected HardwareBgDrawable getBackgroundDrawable(int backgroundColor) { in getBackgroundDrawable() argument
67 background.setTint(backgroundColor); in getBackgroundDrawable()

12345