Lines Matching refs:alpha
198 private static int modulateAlpha(int paintAlpha, int alpha) {
199 int scale = alpha + (alpha >>> 7); // convert to 0..256
241 * Set the alpha level for this drawable [0..255]. Note that this drawable
242 * also has a color in its paint, which has an alpha as well. These two
244 * alpha is 75% (i.e. 192) and the drawable's alpha is 50% (i.e. 128), then
245 * the combined alpha that will be used during drawing will be 37.5%
248 @Override public void setAlpha(int alpha) {
249 mShapeState.mAlpha = alpha;
264 final int alpha = p.getAlpha();
265 if (alpha == 0) {
268 if (alpha == 255) {