/frameworks/base/core/tests/coretests/src/android/graphics/ |
D | ColorStateListTest.java | 55 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
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/ |
D | TileColorPicker.java | 48 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/core/java/com/android/internal/graphics/palette/ |
D | Palette.java | 251 public int getVibrantColor(@ColorInt final int defaultColor) { in getVibrantColor() argument 252 return getColorForTarget(Target.VIBRANT, defaultColor); in getVibrantColor() 262 public int getLightVibrantColor(@ColorInt final int defaultColor) { in getLightVibrantColor() argument 263 return getColorForTarget(Target.LIGHT_VIBRANT, defaultColor); in getLightVibrantColor() 273 public int getDarkVibrantColor(@ColorInt final int defaultColor) { in getDarkVibrantColor() argument 274 return getColorForTarget(Target.DARK_VIBRANT, defaultColor); in getDarkVibrantColor() 284 public int getMutedColor(@ColorInt final int defaultColor) { in getMutedColor() argument 285 return getColorForTarget(Target.MUTED, defaultColor); in getMutedColor() 295 public int getLightMutedColor(@ColorInt final int defaultColor) { in getLightMutedColor() argument 296 return getColorForTarget(Target.LIGHT_MUTED, defaultColor); in getLightMutedColor() [all …]
|
/frameworks/base/core/java/android/content/res/ |
D | ColorStateList.java | 313 int defaultColor = DEFAULT_COLOR; in inflate() local 362 defaultColor = color; in inflate() 376 mDefaultColor = defaultColor; in inflate() 561 public int getColorForState(@Nullable int[] stateSet, int defaultColor) { in getColorForState() argument 569 return defaultColor; in getColorForState() 648 int defaultColor = DEFAULT_COLOR; in onColorsChanged() local 655 defaultColor = colors[0]; in onColorsChanged() 659 defaultColor = colors[i]; in onColorsChanged() 672 mDefaultColor = defaultColor; in onColorsChanged()
|
/frameworks/base/tests/JobSchedulerTestApp/src/com/android/demo/jobSchedulerApp/ |
D | MainActivity.java | 54 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/ |
D | DatePickerCalendarDelegate.java | 200 final int defaultColor; in applyLegacyColorFixes() local 204 defaultColor = color.getColorForState(StateSet.get( in applyLegacyColorFixes() 212 defaultColor = multiplyAlphaComponent(activatedColor, disabledAlpha); in applyLegacyColorFixes() 215 if (activatedColor == 0 || defaultColor == 0) { in applyLegacyColorFixes() 221 final int[] colors = new int[] { activatedColor, defaultColor }; in applyLegacyColorFixes()
|
D | TimePickerClockDelegate.java | 364 final int defaultColor; in applyLegacyColorFixes() local 368 defaultColor = color.getColorForState(StateSet.get( in applyLegacyColorFixes() 376 defaultColor = multiplyAlphaComponent(activatedColor, disabledAlpha); in applyLegacyColorFixes() 379 if (activatedColor == 0 || defaultColor == 0) { in applyLegacyColorFixes() 385 final int[] colors = new int[] { activatedColor, defaultColor }; in applyLegacyColorFixes()
|
/frameworks/native/opengl/tests/hwc/ |
D | hwcRects.cpp | 128 const ColorFract defaultColor(0.5, 0.5, 0.5); variable 146 blend(defaultBlend), color(defaultColor), in Rectangle()
|
D | hwcCommit.cpp | 121 const ColorFract defaultColor(0.5, 0.5, 0.5); variable 1311 blend(defaultBlend), color(defaultColor), alpha(defaultAlpha), in Rectangle()
|
/frameworks/opt/chips/src/com/android/ex/chips/ |
D | RecipientEditTextView.java | 1162 int defaultColor = paint.getColor(); in constructChipSpan() local 1181 paint.setColor(defaultColor); in constructChipSpan()
|