Home
last modified time | relevance | path

Searched refs:mBackgroundColor (Results 1 – 25 of 40) sorted by relevance

12

/aosp12/frameworks/base/core/java/android/text/style/
H A DSuggestionRangeSpan.java32 private int mBackgroundColor; field in SuggestionRangeSpan
37 mBackgroundColor = 0; in SuggestionRangeSpan()
42 mBackgroundColor = src.readInt(); in SuggestionRangeSpan()
57 dest.writeInt(mBackgroundColor); in writeToParcelInternal()
72 mBackgroundColor = backgroundColor; in setBackgroundColor()
77 tp.bgColor = mBackgroundColor; in updateDrawState()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/wrapper/
H A DNotificationCustomViewWrapper.java53 if (needsInversion(mBackgroundColor, mView)) { in onContentUpdated()
59 ColorUtils.colorToHSL(mBackgroundColor, hsl); in onContentUpdated()
60 if (mBackgroundColor != Color.TRANSPARENT && hsl[2] > 0.5) { in onContentUpdated()
62 mBackgroundColor = ColorUtils.HSLToColor(hsl); in onContentUpdated()
H A DNotificationViewWrapper.java59 protected int mBackgroundColor = 0; field in NotificationViewWrapper
112 mBackgroundColor = 0; in onReinflated()
116 mBackgroundColor = backgroundColor; in onReinflated()
323 return mRow.isSummaryWithChildren() ? 0 : mBackgroundColor; in getCustomBackgroundColor()
/aosp12/packages/apps/Camera2/src/com/android/camera/ui/
H A DBottomBar.java72 private int mBackgroundColor; field in BottomBar
130 setPaintColor(mBackgroundAlpha, mBackgroundColor); in refreshPaintColor()
150 setPaintColor(mBackgroundAlpha, mBackgroundColor); in setCaptureButtonUp()
160 setCancelBackgroundColor(mBackgroundAlpha, mBackgroundColor); in setCancelButtonUp()
332 super.setBackgroundColor(mBackgroundColor); in setOverlayBottomBar()
374 mBackgroundColor = color; in setBackgroundColor()
375 setPaintColor(mBackgroundAlpha, mBackgroundColor); in setBackgroundColor()
376 setCancelBackgroundColor(mBackgroundAlpha, mBackgroundColor); in setBackgroundColor()
436 setPaintColor(mBackgroundAlpha, mBackgroundColor); in setBackgroundAlpha()
437 setCancelBackgroundColor(mBackgroundAlpha, mBackgroundColor); in setBackgroundAlpha()
H A DModeTransitionView.java73 private int mBackgroundColor; field in ModeTransitionView
93 mBackgroundColor = getResources().getColor(R.color.video_mode_color); in ModeTransitionView()
173 canvas.drawColor(mBackgroundColor); in onDraw()
181 canvas.drawColor(mBackgroundColor); in onDraw()
435 mBackgroundColor = shadeColor; in resetShade()
494 mBackgroundColor = getResources().getColor(colorId); in setupModeCover()
558 mBackgroundColor = (mBackgroundColor & 0xFFFFFF) | (alphaScaled << 24); in setAlpha()
/aosp12/packages/apps/Car/Notification/src/com/android/car/notification/template/
H A DCarNotificationBaseViewHolder.java90 private int mBackgroundColor; field in CarNotificationBaseViewHolder
184 cardView.setCardBackgroundColor(mBackgroundColor); in bindCardView()
228 mBackgroundColor = notification.color; in initializeColors()
230 mDefaultPrimaryForegroundColor, mBackgroundColor); in initializeColors()
232 mDefaultSecondaryForegroundColor, mBackgroundColor); in initializeColors()
270 return mBackgroundColor != mDefaultBackgroundColor; in hasCustomBackgroundColor()
282 mBackgroundColor = mDefaultBackgroundColor; in reset()
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/views/
H A DScrimView.java46 private int mBackgroundColor; field in ScrimView
73 mBackgroundColor = color; in setBackgroundColor()
87 return mIsVisible && getAlpha() == 1 && Color.alpha(mBackgroundColor) == 255; in isFullyOpaque()
110 && (Color.alpha(mBackgroundColor) / 255f) > threshold; in updateSysUiColors()
/aosp12/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/unfold/
H A DUnfoldBackgroundController.java39 private final float[] mBackgroundColor; field in UnfoldBackgroundController
46 mBackgroundColor = getBackgroundColor(context); in UnfoldBackgroundController()
64 .setColor(mBackgroundLayer, mBackgroundColor) in ensureBackground()
/aosp12/packages/apps/Settings/src/com/android/settings/wifi/qrcode/
H A DQrDecorateView.java42 final private int mBackgroundColor; field in QrDecorateView
83 mBackgroundColor = context.getResources().getColor(R.color.qr_background_color); in QrDecorateView()
94 mBackgroundPaint.setColor(mBackgroundColor); in QrDecorateView()
114 mMaskCanvas.drawColor(mBackgroundColor); in onDraw()
/aosp12/packages/apps/Settings/src/com/android/settings/accessibility/
H A DCaptionAppearanceFragment.java85 private ColorPreference mBackgroundColor; field in CaptionAppearanceFragment
252 mBackgroundColor = (ColorPreference) mCustom.findPreference(PREF_BACKGROUND_COLOR); in initializeAllPreferences()
253 mBackgroundColor.setTitles(bgColorTitles); in initializeAllPreferences()
254 mBackgroundColor.setValues(bgColorValues); in initializeAllPreferences()
277 mBackgroundColor.setOnValueChangedListener(this); in installUpdateListeners()
306 parseColorOpacity(mBackgroundColor, mBackgroundOpacity, backgroundColor); in updateAllPreferences()
382 } else if (mBackgroundColor == preference || mBackgroundOpacity == preference) { in onValueChanged()
383 final int merged = mergeColorOpacity(mBackgroundColor, mBackgroundOpacity); in onValueChanged()
/aosp12/frameworks/base/core/java/android/window/
H A DSplashScreenView.java138 private @ColorInt int mBackgroundColor; field in SplashScreenView.Builder
165 mBackgroundColor = parcelable.getBackgroundColor(); in createFromParcel()
205 mBackgroundColor = backgroundColor; in setBackgroundColor()
268 view.mInitBackgroundColor = mBackgroundColor; in build()
272 view.setBackgroundColor(mBackgroundColor); in build()
708 private int mBackgroundColor; field in SplashScreenView.SplashScreenViewParcelable
724 mBackgroundColor = view.getInitBackgroundColor(); in SplashScreenViewParcelable()
768 mBackgroundColor = source.readInt(); in readParcel()
788 dest.writeInt(mBackgroundColor); in writeToParcel()
829 return mBackgroundColor; in getBackgroundColor()
/aosp12/frameworks/base/packages/SettingsLib/AdaptiveIcon/src/com/android/settingslib/widget/
H A DAdaptiveIcon.java44 int mBackgroundColor = -1; field in AdaptiveIcon
97 mBackgroundColor = color; in setBackgroundColor()
99 Log.d(TAG, "Setting background color " + mBackgroundColor); in setBackgroundColor()
/aosp12/hardware/google/graphics/common/libacryl/include/hardware/exynos/
H A Dacryl.h1054 mBackgroundColor.R = red; in setDefaultColor()
1055 mBackgroundColor.G = green; in setDefaultColor()
1056 mBackgroundColor.B = blue; in setDefaultColor()
1057 mBackgroundColor.A = alpha; in setDefaultColor()
1193 *red = mBackgroundColor.R; in getBackgroundColor()
1194 *green = mBackgroundColor.G; in getBackgroundColor()
1195 *blue = mBackgroundColor.B; in getBackgroundColor()
1196 *alpha = mBackgroundColor.A; in getBackgroundColor()
1210 } mBackgroundColor; variable
/aosp12/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/text/
H A DSubtitleView.java65 private int mBackgroundColor; field in SubtitleView
130 mBackgroundColor = color; in setBackgroundColor()
174 mBackgroundColor = style.backgroundColor; in setStyle()
274 if (Color.alpha(mBackgroundColor) > 0) { in onDraw()
278 paint.setColor(mBackgroundColor); in onDraw()
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/notification/
H A DNotificationMainView.java66 private int mBackgroundColor; field in NotificationMainView
162 mBackgroundColor = color; in updateBackgroundColor()
166 mBackgroundColor)); in updateBackgroundColor() local
176 int oldColor = mBackgroundColor; in updateBackgroundColor()
208 mBackgroundColor)); in applyNotificationInfo() local
/aosp12/frameworks/base/core/java/com/android/internal/widget/
H A DCachingIconView.java55 private int mBackgroundColor; field in CachingIconView
244 mBackgroundColor = color; in setBackgroundColor()
269 icon.mutate().setColorFilter(mBackgroundColor, PorterDuff.Mode.SRC_ATOP); in setOriginalIconColor()
272 background.mutate().setColorFilter(mBackgroundColor, PorterDuff.Mode.SRC_ATOP); in setOriginalIconColor()
H A DSubtitleView.java66 private int mBackgroundColor; field in SubtitleView
162 mBackgroundColor = color; in setBackgroundColor()
281 mBackgroundColor = style.hasBackgroundColor() ? in setStyle()
309 if (Color.alpha(mBackgroundColor) > 0) { in onDraw()
313 paint.setColor(mBackgroundColor); in onDraw()
/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/category/
H A DIconView.java43 private int mBackgroundColor; field in IconView
72 mBackgroundColor = res.getColor(R.color.filtershow_categoryview_background); in setup()
147 return mBackgroundColor; in getBackgroundColor()
197 canvas.drawColor(mBackgroundColor); in onDraw()
/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DGLView.java82 private float [] mBackgroundColor; field in GLView
250 return mBackgroundColor; in getBackgroundColor()
254 mBackgroundColor = color; in setBackgroundColor()
258 if (mBackgroundColor != null) { in renderBackground()
259 view.clearBuffer(mBackgroundColor); in renderBackground()
/aosp12/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/widget/
H A DAdaptiveIconTest.java96 assertThat(icon.mBackgroundColor).isEqualTo(0xff0000); in setBackgroundColor_externalTileWithBackgroundColorRawValue_shouldUpdateIcon()
108 assertThat(icon.mBackgroundColor) in setBackgroundColor_tileWithoutBackgroundColor_shouldSetDefaultBackgroundColor()
124 assertThat(icon.mBackgroundColor) in onBindTile_externalTileWithBackgroundColorHint_shouldUpdateIcon()
/aosp12/packages/apps/Settings/src/com/android/settings/notification/history/
H A DNotificationSbnAdapter.java71 private @ColorInt int mBackgroundColor; field in NotificationSbnAdapter
84 mBackgroundColor = Utils.getColorAttrDefaultColor(context, in NotificationSbnAdapter()
152 mContext, color, mBackgroundColor, mInNightMode); in loadBackground()
246 draw.setColorFilter(mBackgroundColor, PorterDuff.Mode.SRC_ATOP); in loadIcon()
/aosp12/packages/apps/Settings/src/com/android/settings/widget/
H A DSwitchBar.java83 private int mBackgroundColor; field in SwitchBar
116 mBackgroundColor = a.getColor(2, 0); in SwitchBar()
136 setBackgroundColor(mBackgroundColor); in SwitchBar()
180 setBackgroundColor(isChecked ? mBackgroundActivatedColor : mBackgroundColor); in setTextViewLabelAndBackground()
/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/app/
H A DActivityState.java115 protected float[] mBackgroundColor; field in ActivityState
122 return mBackgroundColor; in getBackgroundColor()
126 mBackgroundColor = GalleryUtils.intColorToFloatARGBArray( in onCreate()
/aosp12/frameworks/base/packages/SettingsLib/MainSwitchPreference/src/com/android/settingslib/widget/
H A DMainSwitchBar.java49 private int mBackgroundColor; field in MainSwitchBar
82 mBackgroundColor = context.getColor(R.color.material_grey_600); in MainSwitchBar()
227 setBackgroundColor(isChecked ? mBackgroundActivatedColor : mBackgroundColor); in setBackground()
/aosp12/hardware/interfaces/graphics/composer/2.2/vts/functional/
H A DVtsHalGraphicsComposerV2_2ReadbackTest.cpp940 mBackgroundColor = BLACK; in SetUp()
944 void setBackgroundColor(IComposerClient::Color color) { mBackgroundColor = color; } in setBackgroundColor()
957 backgroundLayer->setColor(mBackgroundColor); in setUpLayers()
991 mTopLayerColor.r * layer->mAlpha + mBackgroundColor.r * (1.0 - alpha); in setExpectedColors()
993 mTopLayerColor.g * layer->mAlpha + mBackgroundColor.g * (1.0 - alpha); in setExpectedColors()
995 mTopLayerColor.b * layer->mAlpha + mBackgroundColor.b * (1.0 - alpha); in setExpectedColors()
996 expectedColors[i].a = alpha + mBackgroundColor.a * (1.0 - alpha); in setExpectedColors()
1000 expectedColors[i].r = mTopLayerColor.r * alpha + mBackgroundColor.r * (1.0 - alpha); in setExpectedColors()
1001 expectedColors[i].g = mTopLayerColor.g * alpha + mBackgroundColor.g * (1.0 - alpha); in setExpectedColors()
1002 expectedColors[i].b = mTopLayerColor.b * alpha + mBackgroundColor.b * (1.0 - alpha); in setExpectedColors()
[all …]

12