Home
last modified time | relevance | path

Searched refs:restoreAlpha (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/graphics/java/android/graphics/drawable/
DNinePatchDrawable.java207 final int restoreAlpha; in draw() local
209 restoreAlpha = getPaint().getAlpha(); in draw()
210 mPaint.setAlpha((int) (restoreAlpha * state.mBaseAlpha + 0.5f)); in draw()
212 restoreAlpha = -1; in draw()
258 if (restoreAlpha >= 0) { in draw()
259 mPaint.setAlpha(restoreAlpha); in draw()
DBitmapDrawable.java517 final int restoreAlpha; in draw() local
520 restoreAlpha = p.getAlpha(); in draw()
521 p.setAlpha((int) (restoreAlpha * state.mBaseAlpha + 0.5f)); in draw()
523 restoreAlpha = -1; in draw()
571 if (restoreAlpha >= 0) { in draw()
572 paint.setAlpha(restoreAlpha); in draw()
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/
DGLES20Canvas.java468 boolean restoreAlpha = (restoreFlags & SAVE_FLAG_ALPHA) == SAVE_FLAG_ALPHA; in restore()
469 if (restoreAlpha) { in restore()