Home
last modified time | relevance | path

Searched refs:mColor (Results 1 – 25 of 46) sorted by relevance

12

/aosp14/frameworks/base/graphics/java/android/graphics/drawable/
H A DColorStateListDrawable.java87 if (mState.mColor != null) { in applyTheme()
153 if (mState.mColor != null) { in onStateChange()
154 int color = mState.mColor.getColorForState(state, mState.mColor.getDefaultColor()); in onStateChange()
207 if (mState.mColor == null) { in getColorStateList()
210 return mState.mColor; in getColorStateList()
249 ColorStateList mColor = null; field in ColorStateListDrawable.ColorStateListDrawableState
259 mColor = state.mColor; in ColorStateListDrawableState()
274 | (mColor != null ? mColor.getChangingConfigurations() : 0) in getChangingConfigurations()
279 return (mColor != null && mColor.isStateful()) in isStateful()
284 return (mColor != null && mColor.hasFocusStateSpecified()) in hasFocusStateSpecified()
[all …]
H A DRippleDrawable.java492 mState.mColor = color; in setColor()
606 mState.mColor = color; in updateStateFromTypedArray()
620 if (mState.mColor == null && (mState.mTouchThemeAttrs == null in verifyRequiredAttributes()
649 if (state.mColor != null && state.mColor.canApplyTheme()) { in applyTheme()
650 state.mColor = state.mColor.obtainForTheme(t); in applyTheme()
996 ? mState.mColor.getColorForState(getState(), Color.BLACK) in createAnimationProperties()
1235 final int color = mState.mColor.getColorForState(getState(), Color.BLACK); in updateRipplePaint()
1333 ColorStateList mColor = ColorStateList.valueOf(Color.MAGENTA); field in RippleDrawable.RippleState
1344 mColor = origs.mColor; in RippleState()
1372 || (mColor != null && mColor.canApplyTheme()) in canApplyTheme()
[all …]
/aosp14/frameworks/base/graphics/java/android/graphics/
H A DPorterDuffColorFilter.java30 private int mColor; field in PorterDuffColorFilter
42 mColor = color; in PorterDuffColorFilter()
57 return mColor; in getColor()
75 return native_CreateBlendModeFilter(mColor, mMode.nativeInt); in createNativeInstance()
87 return (mColor == other.mColor && mMode.nativeInt == other.mMode.nativeInt); in equals()
92 return 31 * mMode.hashCode() + mColor; in hashCode()
H A DBlendModeColorFilter.java28 @ColorInt final int mColor; field in BlendModeColorFilter
32 mColor = color; in BlendModeColorFilter()
46 return mColor; in getColor()
62 return native_CreateBlendModeFilter(mColor, mMode.getXfermode().porterDuffMode); in createNativeInstance()
79 return 31 * mMode.hashCode() + mColor; in hashCode()
/aosp14/frameworks/base/tests/TransitionTests/src/com/android/transitiontests/
H A DSurfaceAndTextureViews.java84 mView.mColor = SimpleView.LARGE_COLOR; in onCreate()
85 mSurfaceView.mColor = SimpleSurfaceView.LARGE_COLOR; in onCreate()
86 mTextureView.mColor = SimpleTextureView.LARGE_COLOR; in onCreate()
91 mView.mColor = SimpleView.SMALL_COLOR; in onCreate()
92 mSurfaceView.mColor = SimpleSurfaceView.SMALL_COLOR; in onCreate()
106 int mColor = SMALL_COLOR; field in SurfaceAndTextureViews.SimpleView
114 canvas.drawColor(mColor); in onDraw()
122 int mColor = SMALL_COLOR; field in SurfaceAndTextureViews.SimpleSurfaceView
141 canvas.drawColor(mColor); in surfaceChanged()
155 int mColor = SMALL_COLOR; field in SurfaceAndTextureViews.SimpleTextureView
[all …]
/aosp14/frameworks/base/core/java/android/text/style/
H A DBackgroundColorSpan.java40 private final int mColor; field in BackgroundColorSpan
50 mColor = color; in BackgroundColorSpan()
57 mColor = src.readInt(); in BackgroundColorSpan()
84 dest.writeInt(mColor); in writeToParcelInternal()
93 return mColor; in getBackgroundColor()
101 textPaint.bgColor = mColor; in updateDrawState()
H A DForegroundColorSpan.java40 private final int mColor; field in ForegroundColorSpan
51 mColor = color; in ForegroundColorSpan()
58 mColor = src.readInt(); in ForegroundColorSpan()
85 dest.writeInt(mColor); in writeToParcelInternal()
94 return mColor; in getForegroundColor()
102 textPaint.setColor(mColor); in updateDrawState()
H A DLineBackgroundSpan.java68 private final int mColor; field in LineBackgroundSpan.Standard
76 mColor = color; in Standard()
83 mColor = src.readInt(); in Standard()
110 dest.writeInt(mColor); in writeToParcelInternal()
119 return mColor; in getColor()
129 paint.setColor(mColor); in drawBackground()
H A DQuoteSpan.java78 private final int mColor; field in QuoteSpan
110 mColor = color; in QuoteSpan()
119 mColor = src.readInt(); in QuoteSpan()
152 dest.writeInt(mColor); in writeToParcelInternal()
164 return mColor; in getColor()
199 p.setColor(mColor); in drawLeadingMargin()
H A DBulletSpan.java79 private final int mColor; field in BulletSpan
126 mColor = color; in BulletSpan()
136 mColor = src.readInt(); in BulletSpan()
166 dest.writeInt(mColor); in writeToParcelInternal()
199 return mColor; in getColor()
213 paint.setColor(mColor); in drawLeadingMargin()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/ui/
H A DEdgeLight.java38 private int mColor; field in EdgeLight
52 mColor = color; in EdgeLight()
58 mColor = sourceLight.getColor(); in EdgeLight()
66 return mColor; in getColor()
71 boolean changed = mColor != color; in setColor()
72 mColor = color; in setColor()
/aosp14/frameworks/base/core/java/android/hardware/lights/
H A DLightState.java38 private final int mColor; field in LightState
64 mColor = color; in LightState()
130 mColor = in.readInt(); in LightState()
141 return mColor; in getColor()
156 dest.writeInt(mColor); in writeToParcel()
167 return "LightState{Color=0x" + Integer.toHexString(mColor) + ", PlayerId=" in toString()
/aosp14/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/
H A DGLPaint.java23 private int mColor = 0; field in GLPaint
26 mColor = color; in setColor()
30 return mColor; in getColor()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DBarTransitions.java168 private int mColor; field in BarTransitions.BarBackgroundDrawable
209 return mColor; in getColor()
260 mColorStart = mColor; in applyModeBackground()
293 mColor = targetColor; in draw()
299 mColor = targetColor; in draw()
306 mColor = Color.argb( in draw()
318 if (Color.alpha(mColor) > 0) { in draw()
319 mPaint.setColor(mColor); in draw()
323 mPaint.setAlpha((int) (Color.alpha(mColor) * mOverrideAlpha)); in draw()
H A DDemoStatusIcons.java56 private int mColor; field in DemoStatusIcons
70 mColor = DarkIconDispatcher.DEFAULT_ICON_TINT; in DemoStatusIcons()
93 mColor = color; in setColor()
100 child.setStaticDrawableColor(mColor); in updateColors()
101 child.setDecorColor(mColor); in updateColors()
226 v.setStaticDrawableColor(mColor); in updateSlot()
227 v.setDecorColor(mColor); in updateSlot()
272 mModernWifiView.setStaticDrawableColor(mColor); in addModernWifiView()
/aosp14/frameworks/base/core/tests/coretests/src/android/hardware/display/
H A DVirtualDisplayTest.java366 private final int mColor; field in VirtualDisplayTest.TestPresentation
373 mColor = color; in TestPresentation()
384 setContentView(createImageView(getContext(), mColor)); in onCreate() local
390 private final int mColor; field in VirtualDisplayTest.TestDialog
396 mColor = color; in TestDialog()
409 setContentView(createImageView(getContext(), mColor)); in onCreate() local
427 private int mColor = -1; field in VirtualDisplayTest.ImageListener
431 return mColor; in getColor()
438 while (mColor != color) { in waitForColor()
469 if (mColor != color) { in onImageAvailable()
[all …]
/aosp14/frameworks/base/packages/SystemUI/src/com/android/keyguard/
H A DPinShapeHintingView.java42 private int mColor = Utils.getColorAttr(getContext(), PIN_SHAPES) field in PinShapeHintingView
61 DrawableCompat.setTint(drawable, mColor); in PinShapeHintingView()
87 this.mColor = color; in setDrawColor()
109 DrawableCompat.setTint(drawable, mColor); in setAnimatedDrawable()
/aosp14/frameworks/base/core/java/com/android/internal/graphics/palette/
H A DPalette.java131 private final Color mColor; field in Palette.Swatch
136 mColor = Color.valueOf(colorInt); in Swatch()
143 return mColor.toArgb(); in getInt()
155 .append(mColor) in toString()
173 return mPopulation == swatch.mPopulation && mColor.toArgb() == swatch.mColor.toArgb(); in equals()
178 return 31 * mColor.toArgb() + mPopulation; in hashCode()
/aosp14/frameworks/base/tests/BiDiTests/src/com/android/bidi/
H A DBiDiTestViewDrawText.java30 private int mColor; field in BiDiTestViewDrawText
47 mColor = a.getColor(R.styleable.DrawTextTestView_color, Color.YELLOW); in BiDiTestViewDrawText()
61 paint.setColor(mColor); in onDraw()
/aosp14/frameworks/base/tests/UiBench/src/com/android/test/uibench/
H A DInvalidateActivity.java36 public int mColor; field in InvalidateActivity.ColorView
43 mColor = color; in setColor()
49 canvas.drawColor(mColor); in onDraw()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
H A DNotificationIconDozeHelper.java37 private int mColor = Color.BLACK; field in NotificationIconDozeHelper
44 mColor = color; in setColor()
84 int color = NotificationUtils.interpolateColors(mColor, mImageDarkColor, intensity); in updateImageColorFilter()
/aosp14/frameworks/base/packages/SettingsLib/AdaptiveIcon/src/com/android/settingslib/widget/
H A DAdaptiveIcon.java100 mAdaptiveConstantState.mColor = color; in setBackgroundColor()
112 int mColor; field in AdaptiveIcon.AdaptiveConstantState
123 icon.setBackgroundColor(mColor); in newDrawable()
/aosp14/frameworks/base/libs/hwui/hwui/
H A DBlurDrawLooper.cpp25 : mColor(color), mBlurSigma(blurSigma), mOffset(offset) {} in BlurDrawLooper()
30 paint->setColor(mColor); in apply()
/aosp14/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DPointsActivity.java86 private int mColor; field in PointsActivity.RenderingView
90 mColor = color; in RenderingView()
100 p.setColor(mColor); in onDraw()
/aosp14/frameworks/base/services/core/java/com/android/server/lights/
H A DLightsService.java325 if (mColor == 0 && !mFlashing) { in pulse()
328 mColor = 0; in pulse()
363 setLightLocked(mColor, LIGHT_FLASH_NONE, 0, 0, BRIGHTNESS_MODE_USER); in stopFlashing()
374 if (!mInitialized || color != mColor || mode != mMode || onMS != mOnMS || in setLightLocked()
381 mLastColor = mColor; in setLightLocked()
382 mColor = color; in setLightLocked()
429 return mColor; in getColor()
433 private int mColor; field in LightsService.LightImpl

12