Home
last modified time | relevance | path

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

12

/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/animation/
DColorSchemeTransition.kt52 private val defaultColor: Int, constant in com.android.systemui.media.controls.ui.animation.AnimatingColorTransition
59 var sourceColor: Int = defaultColor
60 var currentColor: Int = defaultColor
61 var targetColor: Int = defaultColor
70 val newTargetColor = if (scheme == null) defaultColor else extractColor(scheme) in updateColorScheme()
82 applyColor(defaultColor)
232 return Utils.getColorAttr(context, id).defaultColor in loadDefaultColor()
/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/util/
DDrawableDump.kt37 if (Compile.IS_DEBUG) hexColorString(getSolidColors(drawable)?.defaultColor) in <lambda>()
166 append(hexColorString(colorStateList.defaultColor)) in Appendable()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/wifi/ui/viewmodel/
DLocationBasedWifiViewModel.kt32 val defaultColor: Int = Color.WHITE constant in com.android.systemui.statusbar.pipeline.wifi.ui.viewmodel.LocationBasedWifiViewModel
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/wifi/ui/binder/
DWifiViewBinder.kt77 val iconTint: MutableStateFlow<Int> = MutableStateFlow(viewModel.defaultColor) in <lambda>()
78 val decorTint: MutableStateFlow<Int> = MutableStateFlow(viewModel.defaultColor) in <lambda>()
/frameworks/base/libs/WindowManager/Jetpack/tests/unittest/src/androidx/window/extensions/embedding/
DDividerPresenterTest.java619 final Color defaultColor = Color.valueOf(Color.RED); in testGetContainerBackgroundColor() local
633 assertEquals(defaultColor, in testGetContainerBackgroundColor()
634 DividerPresenter.getContainerBackgroundColor(container, defaultColor)); in testGetContainerBackgroundColor()
639 DividerPresenter.getContainerBackgroundColor(container, defaultColor)); in testGetContainerBackgroundColor()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/mobile/ui/viewmodel/
DLocationBasedMobileViewModel.kt43 val defaultColor: Int = Color.WHITE in <lambda>() constant in com.android.systemui.statusbar.pipeline.mobile.ui.viewmodel.LocationBasedMobileViewModel
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/transition/
DTransitionAnimationHelper.java251 @ColorInt int defaultColor) { in getTransitionBackgroundColorIfSet() argument
253 return defaultColor; in getTransitionBackgroundColorIfSet()
269 return defaultColor; in getTransitionBackgroundColorIfSet()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DBouncerKeyguardMessageArea.kt60 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()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyboard/docking/ui/viewmodel/
DKeyboardDockingIndicationViewModel.kt127 color = Utils.getColorAttr(context, android.R.attr.colorAccent).defaultColor, in createEffectConfig()
/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/media/controls/ui/drawable/
DIlluminationDrawable.kt209 backgroundColor = tint!!.defaultColor in setTintList()
DSquigglyProgress.kt251 updateColors(tint.defaultColor, alpha) in <lambda>()
/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/controls/ui/
DControlViewHolder.kt363 clipDrawable.color?.defaultColor ?: newClipColor in startBackgroundAnimation()
367 val oldBaseColor = baseLayer.color?.defaultColor ?: newBaseColor in startBackgroundAnimation()
/frameworks/base/libs/WindowManager/Jetpack/src/androidx/window/extensions/embedding/
DDividerPresenter.java286 @NonNull TaskFragmentContainer container, @NonNull Color defaultColor) { in getContainerBackgroundColor() argument
292 return defaultColor; in getContainerBackgroundColor()
299 return defaultColor; in getContainerBackgroundColor()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/mobile/ui/binder/
DMobileIconBinder.kt93 val decorTint: MutableStateFlow<Int> = MutableStateFlow(viewModel.defaultColor) in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tileimpl/
DQSTileViewImpl.kt733 chevronView.imageTintList?.defaultColor ?: 0, in <lambda>()
1063 chevronView.imageTintList?.defaultColor ?: 0 in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/bluetooth/qsdialog/
DBluetoothTileDialogDelegate.kt393 .defaultColor in <lambda>()

12