Lines Matching defs:alpha
158 * colors as this one but where each color has the specified alpha value
161 public ColorStateList withAlpha(int alpha) {
165 colors[i] = (mColors[i] & 0xFFFFFF) | (alpha << 24);
197 float alpha = 1.0f;
209 if (stateResId == com.android.internal.R.attr.alpha) {
212 alpha = attrs.getAttributeFloatValue(i, 1.0f);
236 alpha = r.getFloat(alphaRes);
239 // Apply alpha modulation.
240 final int alphaMod = MathUtils.constrain((int) (Color.alpha(color) * alpha), 0, 255);
272 * color returned from {@link #getColorForState(int[], int)} has an alpha
280 if (Color.alpha(mColors[i]) != 0xFF) {