Home
last modified time | relevance | path

Searched refs:alphaMod (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/core/java/android/content/res/
DColorStateList.java333 final float alphaMod = a.getFloat(R.styleable.ColorStateListItem_alpha, 1.0f); in inflate() local
360 final int color = modulateColorAlpha(baseColor, alphaMod); in inflate()
455 final float alphaMod = a.getFloat( in applyTheme() local
457 mColors[i] = modulateColorAlpha(baseColor, alphaMod); in applyTheme()
507 private int modulateColorAlpha(int baseColor, float alphaMod) { in modulateColorAlpha() argument
508 if (alphaMod == 1.0f) { in modulateColorAlpha()
513 final int alpha = MathUtils.constrain((int) (baseAlpha * alphaMod + 0.5f), 0, 255); in modulateColorAlpha()
/frameworks/base/core/java/android/widget/
DRadialTimePickerView.java668 final float alphaMod = mInputEnabled ? 1 : mDisabledAlpha; in onDraw() local
674 drawHours(canvas, selectorPath, alphaMod); in onDraw()
675 drawMinutes(canvas, selectorPath, alphaMod); in onDraw()
676 drawCenter(canvas, alphaMod); in onDraw()
725 private void drawHours(Canvas canvas, Path selectorPath, float alphaMod) { in drawHours() argument
726 final int hoursAlpha = (int) (255f * (1f - mHoursToMinutes) * alphaMod + 0.5f); in drawHours()
758 private void drawMinutes(Canvas canvas, Path selectorPath, float alphaMod) { in drawMinutes() argument
759 final int minutesAlpha = (int) (255f * mHoursToMinutes * alphaMod + 0.5f); in drawMinutes()
783 private void drawCenter(Canvas canvas, float alphaMod) { in drawCenter() argument
784 mPaintCenter.setAlpha((int) (255 * alphaMod + 0.5f)); in drawCenter()
DDatePickerCalendarDelegate.java225 private int multiplyAlphaComponent(int color, float alphaMod) { in multiplyAlphaComponent() argument
228 final int dstAlpha = (int) (srcAlpha * alphaMod + 0.5f); in multiplyAlphaComponent()
DTimePickerClockDelegate.java389 private int multiplyAlphaComponent(int color, float alphaMod) { in multiplyAlphaComponent() argument
392 final int dstAlpha = (int) (srcAlpha * alphaMod + 0.5f); in multiplyAlphaComponent()