Home
last modified time | relevance | path

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

12

/frameworks/base/core/java/android/view/accessibility/
DCaptioningManager.java321 public final int backgroundColor; field in CaptioningManager.CaptionStyle
359 private CaptionStyle(int foregroundColor, int backgroundColor, int edgeType, int edgeColor, in CaptionStyle() argument
362 mHasBackgroundColor = hasColor(backgroundColor); in CaptionStyle()
370 this.backgroundColor = mHasBackgroundColor ? backgroundColor : Color.BLACK; in CaptionStyle()
405 overlay.backgroundColor : backgroundColor; in applyStyle()
483 final int backgroundColor = Secure.getInt( in getCustomStyle() local
484 cr, Secure.ACCESSIBILITY_CAPTIONING_BACKGROUND_COLOR, defStyle.backgroundColor); in getCustomStyle()
497 return new CaptionStyle(foregroundColor, backgroundColor, edgeType, edgeColor, in getCustomStyle()
/frameworks/support/v7/mediarouter/src/android/support/v7/app/
DMediaRouterThemeHelper.java99 int backgroundColor = getThemeColor(context, 0, android.R.attr.colorBackground); in getButtonTextColor() local
101 if (ColorUtils.calculateContrast(primaryColor, backgroundColor) < MIN_CONTRAST) { in getButtonTextColor()
134 int backgroundColor = (int) backgroundView.getTag(); in setVolumeSliderColor() local
135 controllerColor = ColorUtils.compositeColors(controllerColor, backgroundColor); in setVolumeSliderColor()
/frameworks/support/v7/cardview/eclair-mr1/android/support/v7/widget/
DCardViewEclairMr1.java81 ColorStateList backgroundColor, float radius, float elevation, float maxElevation) { in initialize() argument
82 RoundRectDrawableWithShadow background = createBackground(context, backgroundColor, radius, in initialize()
90 ColorStateList backgroundColor, float radius, float elevation, in createBackground() argument
92 return new RoundRectDrawableWithShadow(context.getResources(), backgroundColor, radius, in createBackground()
DRoundRectDrawableWithShadow.java93 RoundRectDrawableWithShadow(Resources resources, ColorStateList backgroundColor, float radius, in RoundRectDrawableWithShadow() argument
99 setBackground(backgroundColor); in RoundRectDrawableWithShadow()
/frameworks/base/core/java/android/text/style/
DSuggestionRangeSpan.java67 public void setBackgroundColor(int backgroundColor) { in setBackgroundColor() argument
68 mBackgroundColor = backgroundColor; in setBackgroundColor()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DNotificationCustomViewWrapper.java123 private boolean isColorLight(int backgroundColor) { in isColorLight() argument
124 return Color.alpha(backgroundColor) == 0 in isColorLight()
125 || ColorUtils.calculateLuminance(backgroundColor) > 0.5; in isColorLight()
/frameworks/support/v7/appcompat/tests/src/android/support/v7/widget/
DAppCompatBaseViewTest.java353 final @ColorInt int backgroundColor = ResourcesCompat.getColor( in testBackgroundTintingAcrossModeChange() local
358 backgroundColor, 0); in testBackgroundTintingAcrossModeChange()
397 ColorUtils.compositeColors(emeraldDefault, backgroundColor), in testBackgroundTintingAcrossModeChange()
404 view, ColorUtils.compositeColors(emeraldDisabled, backgroundColor), in testBackgroundTintingAcrossModeChange()
425 final @ColorInt int backgroundColor = ResourcesCompat.getColor( in testBackgroundTintingViewCompatAcrossModeChange() local
430 backgroundColor, 0); in testBackgroundTintingViewCompatAcrossModeChange()
469 ColorUtils.compositeColors(emeraldDefault, backgroundColor), in testBackgroundTintingViewCompatAcrossModeChange()
476 view, ColorUtils.compositeColors(emeraldDisabled, backgroundColor), in testBackgroundTintingViewCompatAcrossModeChange()
/frameworks/support/v4/tests/java/android/support/v4/testutils/
DTestUtilsMatchers.java42 public static Matcher backgroundColor(@ColorInt final int backgroundColor) { in backgroundColor() method in TestUtilsMatchers
67 40, 40, backgroundColor, true); in backgroundColor()
/frameworks/support/v7/cardview/src/android/support/v7/widget/
DCardView.java218 ColorStateList backgroundColor; in initialize() local
220 backgroundColor = a.getColorStateList(R.styleable.CardView_cardBackgroundColor); in initialize()
230 backgroundColor = ColorStateList.valueOf(hsv[2] > 0.5f in initialize()
255 IMPL.initialize(mCardViewDelegate, context, backgroundColor, radius, in initialize()
/frameworks/support/v7/cardview/api21/android/support/v7/widget/
DCardViewApi21.java27 ColorStateList backgroundColor, float radius, float elevation, float maxElevation) { in initialize() argument
28 final RoundRectDrawable background = new RoundRectDrawable(backgroundColor, radius); in initialize()
DRoundRectDrawable.java55 public RoundRectDrawable(ColorStateList backgroundColor, float radius) { in RoundRectDrawable() argument
58 setBackground(backgroundColor); in RoundRectDrawable()
/frameworks/base/cmds/bootanimation/
DBootAnimation.cpp560 if (!parseColor(color, part.backgroundColor)) { in parseAnimationDesc()
562 part.backgroundColor[0] = 0.0f; in parseAnimationDesc()
563 part.backgroundColor[1] = 0.0f; in parseAnimationDesc()
564 part.backgroundColor[2] = 0.0f; in parseAnimationDesc()
711 part.backgroundColor[0], in playAnimation()
712 part.backgroundColor[1], in playAnimation()
713 part.backgroundColor[2], in playAnimation()
DBootAnimation.h77 float backgroundColor[3]; member
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/
DExtendedBitmapDrawable.java739 public int backgroundColor = 0; field in ExtendedBitmapDrawable.ExtendedOptions
813 if (backgroundColor == 0 in validate()
824 if (backgroundColor != 0 && Color.alpha(backgroundColor) != 255) { in validate()
DTileDrawable.java98 mPaint.setColor(mOpts.backgroundColor); in draw()
/frameworks/support/v7/cardview/base/android/support/v7/widget/
DCardViewImpl.java26 void initialize(CardViewDelegate cardView, Context context, ColorStateList backgroundColor, in initialize() argument
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/
DHeadersSupportFragment.java253 private void updateFadingEdgeToBrandColor(int backgroundColor) { in updateFadingEdgeToBrandColor() argument
259 new int[] {Color.TRANSPARENT, backgroundColor}); in updateFadingEdgeToBrandColor()
DHeadersFragment.java251 private void updateFadingEdgeToBrandColor(int backgroundColor) { in updateFadingEdgeToBrandColor() argument
257 new int[] {Color.TRANSPARENT, backgroundColor}); in updateFadingEdgeToBrandColor()
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/model/
DRecentsTaskLoadPlan.java177 int backgroundColor = loader.getActivityBackgroundColor(t.taskDescription); in preloadPlan() local
184 activityColor, backgroundColor, isLaunchTarget, isStackTask, isSystemApp, in preloadPlan()
/frameworks/base/media/java/android/media/
DCea708CaptionRenderer.java507 CaptionColor backgroundColor = new CaptionColor(opacity, red, green, blue); in parseC1() local
516 new CaptionPenColor(foregroundColor, backgroundColor, edgeColor))); in parseC1()
520 foregroundColor, backgroundColor, edgeColor)); in parseC1()
918 public final CaptionColor backgroundColor; field in Cea708CCParser.CaptionPenColor
921 public CaptionPenColor(CaptionColor foregroundColor, CaptionColor backgroundColor, in CaptionPenColor() argument
924 this.backgroundColor = backgroundColor; in CaptionPenColor()
2143 ? style.backgroundColor : DEFAULT_CAPTION_STYLE.backgroundColor); in setCaptionStyle()
/frameworks/base/core/java/com/android/internal/widget/
DSubtitleView.java279 style.backgroundColor : defStyle.backgroundColor; in setStyle()
/frameworks/opt/bitmap/sample/src/com/example/bitmapsample/
DMainActivity.java117 opts.backgroundColor = Color.LTGRAY; in getView()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DBatteryMeterDrawable.java300 int backgroundColor = getBackgroundColor(darkIntensity); in setDarkIntensity() local
303 mFramePaint.setColor(backgroundColor); in setDarkIntensity()
/frameworks/support/v4/tests/java/android/support/v4/view/
DBaseViewPagerTest.java344 backgroundColor(Color.RED)))); in verifyPageContent()
356 backgroundColor(Color.GREEN)))); in verifyPageContent()
369 backgroundColor(Color.BLUE)))); in verifyPageContent()
/frameworks/base/core/java/android/app/
DActivityManager.java1063 public void setBackgroundColor(int backgroundColor) { in setBackgroundColor() argument
1065 if ((backgroundColor != 0) && (Color.alpha(backgroundColor) != 255)) { in setBackgroundColor()
1068 mColorBackground = backgroundColor; in setBackgroundColor()

12