Lines Matching refs:alpha
121 private void setAlpha(float alpha) {
122 if (mAlpha != alpha) {
123 if (DEBUG) Slog.v(TAG, "setAlpha alpha=" + alpha);
125 mDimSurface.setAlpha(alpha);
126 if (alpha == 0 && mShowing) {
130 } else if (alpha > 0 && !mShowing) {
136 Slog.w(TAG, "Failure setting alpha immediately", e);
138 mAlpha = alpha;
208 * @param alpha The dim value to end at.
211 void show(int layer, float alpha, long duration) {
212 if (DEBUG) Slog.v(TAG, "show: layer=" + layer + " alpha=" + alpha
228 if ((animating && (mTargetAlpha != alpha || durationEndsEarlier(duration)))
229 || (!animating && mAlpha != alpha)) {
232 setAlpha(alpha);
241 mTargetAlpha = alpha;
283 float alpha = mStartAlpha + alphaDelta * (curTime - mStartTime) / mDuration;
284 if (alphaDelta > 0 && alpha > mTargetAlpha ||
285 alphaDelta < 0 && alpha < mTargetAlpha) {
287 alpha = mTargetAlpha;
289 if (DEBUG) Slog.v(TAG, "stepAnimation: curTime=" + curTime + " alpha=" + alpha);
290 setAlpha(alpha);