Home
last modified time | relevance | path

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

/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DEdgeEffect.java68 private static final float MAX_ALPHA = 0.8f; field in EdgeEffect
200 mEdgeAlpha = mEdgeAlphaStart = Math.max(PULL_EDGE_BEGIN, Math.min(distance, MAX_ALPHA)); in onPull()
204 mGlowAlpha = mGlowAlphaStart = Math.min(MAX_ALPHA, in onPull()
294 mGlowAlphaStart, Math.min(velocity * VELOCITY_GLOW_FACTOR * .00001f, MAX_ALPHA)); in onAbsorb()
/packages/apps/Car/LatinIME/src/com/android/inputmethod/latin/car/
DKeyboardView.java147 private static final int MAX_ALPHA = 255; field in KeyboardView
368 mPaint.setAlpha(MAX_ALPHA); in KeyboardView()
821 (int) ((backgroundWidth - key.x - key.width) / key.width * MAX_ALPHA); in onBufferDraw()
822 if (alpha > MAX_ALPHA) { in onBufferDraw()
823 alpha = MAX_ALPHA; in onBufferDraw()
832 alpha = (int) ((3 - mAnimateOutValue * 4) * MAX_ALPHA); in onBufferDraw()
835 alpha = (int) ((1 - mAnimateOutValue * 2) * MAX_ALPHA); in onBufferDraw()
837 if (alpha > MAX_ALPHA) { in onBufferDraw()
838 alpha = MAX_ALPHA; in onBufferDraw()
/packages/apps/Contacts/src/com/android/contacts/list/
DPinnedHeaderListView.java74 private static final int MAX_ALPHA = 255; field in PinnedHeaderListView
321 header.alpha = MAX_ALPHA; in setFadingHeader()
331 header.alpha = MAX_ALPHA * (headerHeight + portion) / headerHeight; in setFadingHeader()