Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/android/graphics/
DColorStateListTest.java55 int defaultColor = colorStateList.getColorForState(emptyState, mFailureColor); in testEmptyState() local
56 assertEquals(mResources.getColor(R.color.testcolor2), defaultColor); in testEmptyState() local
61 int defaultColor = mResources.getColor(R.color.color1); in testGetColor() local
62 assertEquals(mResources.getColor(R.color.testcolor2), defaultColor); in testGetColor() local
67 int defaultColor = mResources.getColor(R.color.color_no_default); in testGetColorWhenListHasNoDefault() local
68 assertEquals(mResources.getColor(R.color.testcolor1), defaultColor); in testGetColorWhenListHasNoDefault() local
73 int defaultColor = mResources.getColor(R.color.color_with_lstar); in testLstar() local
74 assertEquals(mResources.getColor(R.color.testcolor3), defaultColor); in testLstar() local
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/
DTileColorPicker.java48 final int defaultColor = 0; in getColor() local
52 return mColorStateList.getColorForState(DISABLE_STATE_SET, defaultColor); in getColor()
54 return mColorStateList.getColorForState(INACTIVE_STATE_SET, defaultColor); in getColor()
56 return mColorStateList.getColorForState(ENABLE_STATE_SET, defaultColor); in getColor()
58 return mColorStateList.getColorForState(ENABLE_STATE_SET, defaultColor); in getColor()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/ui/
DColorSchemeTransition.kt51 private val defaultColor: Int, constant in com.android.systemui.media.controls.ui.AnimatingColorTransition
58 var sourceColor: Int = defaultColor
59 var currentColor: Int = defaultColor
60 var targetColor: Int = defaultColor
69 val newTargetColor = if (scheme == null) defaultColor else extractColor(scheme) in updateColorScheme()
81 applyColor(defaultColor)
230 return Utils.getColorAttr(context, id).defaultColor in loadDefaultColor()
DIlluminationDrawable.kt209 backgroundColor = tint!!.defaultColor in setTintList()
DSquigglyProgress.kt246 updateColors(tint.defaultColor, alpha) in <lambda>()
/frameworks/base/core/java/android/content/res/
DColorStateList.java347 int defaultColor = DEFAULT_COLOR; in inflate() local
402 defaultColor = color; in inflate()
416 mDefaultColor = defaultColor; in inflate()
610 public int getColorForState(@Nullable int[] stateSet, int defaultColor) { in getColorForState() argument
618 return defaultColor; in getColorForState()
697 int defaultColor = DEFAULT_COLOR; in onColorsChanged() local
704 defaultColor = colors[0]; in onColorsChanged()
708 defaultColor = colors[i]; in onColorsChanged()
721 mDefaultColor = defaultColor; in onColorsChanged()
/frameworks/base/tests/JobSchedulerTestApp/src/com/android/demo/jobSchedulerApp/
DMainActivity.java54 defaultColor = getColor(R.color.none_received); in onCreate()
78 int defaultColor; field in MainActivity
105 mShowStartView.setBackgroundColor(defaultColor);
108 mShowStopView.setBackgroundColor(defaultColor);
/frameworks/base/core/java/android/widget/
DDatePickerCalendarDelegate.java200 final int defaultColor; in applyLegacyColorFixes() local
204 defaultColor = color.getColorForState(StateSet.get( in applyLegacyColorFixes()
213 defaultColor = multiplyAlphaComponent(activatedColor, disabledAlpha); in applyLegacyColorFixes()
216 if (activatedColor == 0 || defaultColor == 0) { in applyLegacyColorFixes()
222 final int[] colors = new int[] { activatedColor, defaultColor }; in applyLegacyColorFixes()
DTimePickerClockDelegate.java364 final int defaultColor; in applyLegacyColorFixes() local
368 defaultColor = color.getColorForState(StateSet.get( in applyLegacyColorFixes()
377 defaultColor = multiplyAlphaComponent(activatedColor, disabledAlpha); in applyLegacyColorFixes()
380 if (activatedColor == 0 || defaultColor == 0) { in applyLegacyColorFixes()
386 final int[] colors = new int[] { activatedColor, defaultColor }; in applyLegacyColorFixes()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/wifi/ui/viewmodel/
DLocationBasedWifiViewModel.kt52 val defaultColor: Int = constant
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/wifi/ui/binder/
DWifiViewBinder.kt75 val iconTint: MutableStateFlow<Int> = MutableStateFlow(viewModel.defaultColor) in <lambda>()
76 val decorTint: MutableStateFlow<Int> = MutableStateFlow(viewModel.defaultColor) in <lambda>()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/transition/
DTransitionAnimationHelper.java185 @ColorInt int defaultColor) { in getTransitionBackgroundColorIfSet() argument
187 return defaultColor; in getTransitionBackgroundColorIfSet()
203 return defaultColor; in getTransitionBackgroundColorIfSet()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/mobile/ui/viewmodel/
DLocationBasedMobileViewModel.kt42 val defaultColor: Int = constant
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/mobile/ui/binder/
DMobileIconBinder.kt73 val iconTint: MutableStateFlow<Int> = MutableStateFlow(viewModel.defaultColor) in <lambda>()
74 val decorTint: MutableStateFlow<Int> = MutableStateFlow(viewModel.defaultColor) in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DBouncerKeyguardMessageArea.kt45 mNextMessageColorState?.defaultColor?.let { color -> in <lambda>()
/frameworks/native/opengl/tests/hwc/
DhwcRects.cpp128 const ColorFract defaultColor(0.5, 0.5, 0.5); variable
146 blend(defaultBlend), color(defaultColor), in Rectangle()
DhwcCommit.cpp121 const ColorFract defaultColor(0.5, 0.5, 0.5); variable
1311 blend(defaultBlend), color(defaultColor), alpha(defaultAlpha), in Rectangle()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/taptotransfer/receiver/
DMediaTttReceiverRippleController.kt138 return colorStateList.withLStar(TONE_PERCENT).defaultColor in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/ui/
DControlViewHolder.kt361 clipDrawable.color?.defaultColor ?: newClipColor in startBackgroundAnimation()
365 val oldBaseColor = baseLayer.color?.defaultColor ?: newBaseColor in startBackgroundAnimation()
/frameworks/base/packages/SystemUI/src/com/android/systemui/charging/
DWiredChargingRippleController.kt200 rippleView.setColor(Utils.getColorAttr(context, android.R.attr.colorAccent).defaultColor) in updateRippleColor()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tileimpl/
DQSTileViewImpl.kt519 chevronView.imageTintList?.defaultColor ?: 0, in <lambda>()
651 chevronView.imageTintList?.defaultColor ?: 0 in <lambda>()
/frameworks/base/packages/SystemUI/animation/src/com/android/systemui/animation/
DDialogLaunchAnimator.kt721 ?.defaultColor in start()
/frameworks/base/cmds/bootanimation/
DBootAnimation.cpp986 float color[3], float defaultColor[3]) { in parseColorDecimalString()
988 memcpy(color, defaultColor, sizeof(float) * 3); in parseColorDecimalString()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/pipeline/
DMediaDataManager.kt203 .defaultColor
/frameworks/opt/chips/src/com/android/ex/chips/
DRecipientEditTextView.java1162 int defaultColor = paint.getColor(); in constructChipSpan() local
1181 paint.setColor(defaultColor); in constructChipSpan()