Searched refs:alphaMod (Results 1 – 4 of 4) sorted by relevance
/frameworks/base/core/java/android/content/res/ |
D | ColorStateList.java | 275 final float alphaMod = a.getFloat(R.styleable.ColorStateListItem_alpha, 1.0f); in inflate() local 302 final int color = modulateColorAlpha(baseColor, alphaMod); in inflate() 395 final float alphaMod = a.getFloat( in applyTheme() local 397 mColors[i] = modulateColorAlpha(baseColor, alphaMod); in applyTheme() 445 private int modulateColorAlpha(int baseColor, float alphaMod) { in modulateColorAlpha() argument 446 if (alphaMod == 1.0f) { in modulateColorAlpha() 451 final int alpha = MathUtils.constrain((int) (baseAlpha * alphaMod + 0.5f), 0, 255); in modulateColorAlpha()
|
/frameworks/base/core/java/android/widget/ |
D | RadialTimePickerView.java | 653 final float alphaMod = mInputEnabled ? 1 : mDisabledAlpha; in onDraw() local 656 drawHours(canvas, alphaMod); in onDraw() 657 drawMinutes(canvas, alphaMod); in onDraw() 658 drawCenter(canvas, alphaMod); in onDraw() 665 private void drawHours(Canvas canvas, float alphaMod) { in drawHours() argument 666 final int hoursAlpha = (int) (mAlpha[HOURS].getValue() * alphaMod + 0.5f); in drawHours() 669 drawSelector(canvas, mIsOnInnerCircle ? HOURS_INNER : HOURS, null, alphaMod); in drawHours() 685 private void drawMinutes(Canvas canvas, float alphaMod) { in drawMinutes() argument 686 final int minutesAlpha = (int) (mAlpha[MINUTES].getValue() * alphaMod + 0.5f); in drawMinutes() 689 drawSelector(canvas, MINUTES, mSelectorPath, alphaMod); in drawMinutes() [all …]
|
D | DatePickerCalendarDelegate.java | 229 private int multiplyAlphaComponent(int color, float alphaMod) { in multiplyAlphaComponent() argument 232 final int dstAlpha = (int) (srcAlpha * alphaMod + 0.5f); in multiplyAlphaComponent()
|
D | TimePickerClockDelegate.java | 274 private int multiplyAlphaComponent(int color, float alphaMod) { in multiplyAlphaComponent() argument 277 final int dstAlpha = (int) (srcAlpha * alphaMod + 0.5f); in multiplyAlphaComponent()
|