Searched defs:alpha (Results 101 - 125 of 184) sorted by relevance

12345678

/frameworks/base/graphics/java/android/graphics/drawable/
H A DRotateDrawable.java128 public void setAlpha(int alpha) { argument
129 mState.mDrawable.setAlpha(alpha);
H A DShapeDrawable.java209 private static int modulateAlpha(int paintAlpha, int alpha) { argument
210 int scale = alpha + (alpha >>> 7); // convert to 0..256
269 * Set the alpha level for this drawable [0..255]. Note that this drawable
270 * also has a color in its paint, which has an alpha as well. These two
272 * alpha is 75% (i.e. 192) and the drawable's alpha is 50% (i.e. 128), then
273 * the combined alpha that will be used during drawing will be 37.5% (i.e.
277 public void setAlpha(int alpha) { argument
278 mShapeState.mAlpha = alpha;
[all...]
/frameworks/base/libs/hwui/
H A DLayer.h154 inline void setAlpha(int alpha) { argument
155 this->alpha = alpha;
158 inline void setAlpha(int alpha, SkXfermode::Mode mode) { argument
159 this->alpha = alpha;
164 return alpha;
398 int alpha; member in class:android::uirenderer::Layer
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
H A DKeyguardWidgetFrame.java85 // Multiple callers may try and adjust the alpha of the frame. When a caller shows
252 * layers on the content (child) so that updating the alpha of the outlines doesn't
264 * layers on the content (child) so that updating the alpha of the outlines doesn't
304 public void setBackgroundAlpha(float alpha) { argument
305 if (Float.compare(mBackgroundAlpha, alpha) != 0) {
306 mBackgroundAlpha = alpha;
315 public void setContentAlpha(float alpha) { argument
316 mContentAlpha = alpha;
319 content.setAlpha(alpha);
412 public void fadeFrame(Object caller, boolean takeControl, float alpha, in argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DSearchPanelCircleView.java315 float alpha = 1.0f-t;
316 alpha = Math.max((alpha - 0.5f) * 2.0f, 0);
317 mLogo.setAlpha(alpha);
547 float alpha; field in class:SearchPanelCircleView.Ripple
563 alpha = 1.0f - animation.getAnimatedFraction();
564 alpha = mDisappearInterpolator.getInterpolation(alpha);
587 mRipplePaint.setAlpha((int) (alpha * 255));
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DKeyguardAffordanceView.java40 * layer when alpha is changed.
189 float alpha = mCircleRadius / mMinBackgroundRadius;
190 alpha = Math.min(1.0f, alpha);
191 int color = (int) mColorInterpolator.evaluate(alpha, mNormalColor, mInverseColor);
210 int color = Color.argb((int) (Color.alpha(mCircleColor) * fraction),
397 public void setImageAlpha(float alpha, boolean animate) { argument
398 setImageAlpha(alpha, animate, -1, null, null);
402 * Sets the alpha of the containing image
404 * @param alpha Th
410 setImageAlpha(float alpha, boolean animate, long duration, Interpolator interpolator, Runnable runnable) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DKeyguardAffordanceHelper.java344 float alpha = absTranslation / getMinTranslationAmount();
346 // We interpolate the alpha of the other icons to 0
347 float fadeOutAlpha = SWIPE_RESTING_ALPHA_AMOUNT * (1.0f - alpha);
350 // We interpolate the alpha of the targetView to 1
351 alpha = fadeOutAlpha + alpha;
357 updateIcon(targetView, radius, alpha, false, false);
369 float alpha = newRadius / mMinBackgroundRadius;
371 // We interpolate the alpha of the other icons to 0
372 float fadeOutAlpha = SWIPE_RESTING_ALPHA_AMOUNT * (1.0f - alpha);
397 updateIcon(KeyguardAffordanceView view, float circleRadius, float alpha, boolean animate, boolean slowRadiusAnimation) argument
406 updateIconAlpha(KeyguardAffordanceView view, float alpha, boolean animate) argument
413 getScale(float alpha) argument
[all...]
/frameworks/base/services/core/java/com/android/server/display/
H A DColorFade.java630 private boolean showSurface(float alpha) { argument
631 if (!mSurfaceVisible || mSurfaceAlpha != alpha) {
635 mSurfaceControl.setAlpha(alpha);
641 mSurfaceAlpha = alpha;
/frameworks/base/services/core/java/com/android/server/wm/
H A DScreenRotationAnimation.java300 private void setSnapshotTransformInTransaction(Matrix matrix, float alpha) { argument
314 mSurfaceControl.setAlpha(alpha);
H A DSession.java449 public void setUniverseTransform(IBinder window, float alpha, float offx, float offy, argument
456 alpha, offx, offy, dsdx, dtdx, dsdy, dtdy);
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DBitmap_Delegate.java235 * @return true if the bitmap alpha should be used at render time
500 int alpha = paint != null ? paint.getAlpha() : 0xFF;
501 BufferedImage image = createCopy(bitmap.getImage(), BufferedImage.TYPE_INT_ARGB, alpha);
503 // create the delegate. The actual Bitmap config is only an alpha channel
589 // in this case we have to manually compare the alpha channel as the rest is garbage.
635 * if alpha is different than 255, then it is applied to the alpha channel of each pixel.
639 * @param alpha an optional alpha modifier
642 /*package*/ static BufferedImage createCopy(BufferedImage image, int imageType, int alpha) { argument
[all...]
H A DBlendComposite.java102 private float alpha; field in class:BlendComposite
109 private BlendComposite(BlendingMode mode, float alpha) { argument
111 setAlpha(alpha);
118 public static BlendComposite getInstance(BlendingMode mode, float alpha) { argument
119 return new BlendComposite(mode, alpha);
126 public BlendComposite derive(float alpha) { argument
127 return this.alpha == alpha ? this : new BlendComposite(getMode(), alpha);
131 return alpha;
138 setAlpha(float alpha) argument
[all...]
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
H A DBridgeWindowSession.java194 public void setUniverseTransform(IBinder window, float alpha, float offx, float offy, argument
/frameworks/native/libs/input/
H A DVelocityTracker.cpp772 float alpha = dt / (FILTER_TIME_CONSTANT + dt); local
774 state.xvel += (xvel - state.xvel) * alpha;
775 state.yvel += (yvel - state.yvel) * alpha;
784 state.xaccel += (xaccel - state.xaccel) * alpha;
785 state.yaccel += (yaccel - state.yaccel) * alpha;
787 state.xvel += (state.xaccel * dt) * alpha;
788 state.yvel += (state.yaccel * dt) * alpha;
/frameworks/native/opengl/libagl/
H A Ddxt.cpp346 uint64_t alpha = ((uint64_t)alphahi << 32) | alphalo; local
401 int a = alpha & 0xf;
402 alpha >>= 4;
470 uint64_t alpha = ((uint64_t)alphahi << 32) | alphalo; local
471 uint64_t alpha0 = alpha & 0xff;
472 alpha >>= 8;
473 uint64_t alpha1 = alpha & 0xff;
474 alpha >>= 8;
558 int acode = alpha & 0x7;
559 alpha >>
[all...]
/frameworks/native/services/surfaceflinger/RenderEngine/
H A DRenderEngine.cpp199 float red, float green, float blue, float alpha) {
218 setupFillWithColor(red, green, blue, alpha);
226 void RenderEngine::clearWithColor(float red, float green, float blue, float alpha) { argument
227 glClearColor(red, green, blue, alpha);
198 fillRegionWithColor(const Region& region, uint32_t height, float red, float green, float blue, float alpha) argument
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/
H A DExtendedBitmapDrawable.java283 public void setAlpha(int alpha) { argument
285 super.setAlpha(alpha);
286 if (mPlaceholder != null) mPlaceholder.setAlpha(alpha);
287 if (mProgress != null) mProgress.setAlpha(alpha);
288 if (alpha != old) {
467 public void setInnerAlpha(final int alpha) { argument
468 super.setInnerAlpha((int) (alpha * mPulseAlphaFraction));
505 // one exception: if alpha is already zero, there is no fade-out, so stop now
555 // one exception: if alpha is already zero, there is no fade-out, so stop now
729 * animation (placeholder will be at maximum alpha alway
[all...]
/frameworks/base/core/java/android/app/
H A DDialog.java1097 public final void setFeatureDrawableAlpha(int featureId, int alpha) { argument
1098 getWindow().setFeatureDrawableAlpha(featureId, alpha);
H A DWallpaperManager.java185 public void setAlpha(int alpha) { argument
573 * allow setting an alpha, color filter, or other attributes, etc. The
/frameworks/base/core/java/android/gesture/
H A DGestureOverlayView.java405 private void setPaintAlpha(int alpha) { argument
406 alpha += alpha >> 7;
408 final int useAlpha = baseAlpha * alpha >> 8;
/frameworks/base/core/java/android/view/
H A DSurfaceControl.java55 private static native void nativeSetAlpha(long nativeObject, float alpha); argument
109 * as "non pre-multiplied" by their alpha channel. Of course this flag is
110 * meaningless for surfaces without an alpha channel. By default
112 * already multiplied by its alpha value. In this case the blending
123 * surface can never lower the value of the alpha component of a given
138 * Combined effects are (assuming a buffer format with an alpha channel):
140 * <li>OPAQUE + alpha(1.0) == opaque composition
141 * <li>OPAQUE + alpha(0.x) == blended composition
142 * <li>!OPAQUE + alpha(1.0) == blended composition
143 * <li>!OPAQUE + alpha(
418 setAlpha(float alpha) argument
[all...]
H A DViewPropertyAnimator.java729 * This method will cause the View's <code>alpha</code> property to be animated to the
736 public ViewPropertyAnimator alpha(float value) { method in class:ViewPropertyAnimator
742 * This method will cause the View's <code>alpha</code> property to be animated by the
1153 // alpha requires slightly different treatment than the other (transform) properties.
1156 // We track what kinds of properties are set, and how alpha is handled when it is
/frameworks/base/core/java/android/widget/
H A DFastScroller.java1545 * Returns an animator for the view's alpha value.
1547 private static Animator animateAlpha(View v, float alpha) { argument
1548 return ObjectAnimator.ofFloat(v, View.ALPHA, alpha);
H A DImageView.java190 final int alpha = a.getInt(com.android.internal.R.styleable.ImageView_drawableAlpha, 255);
191 if (alpha != 255) {
192 setAlpha(alpha);
1310 * Returns the alpha that will be applied to the drawable of this ImageView.
1312 * @return the alpha that will be applied to the drawable of this ImageView
1321 * Sets the alpha value that should be applied to the image.
1323 * @param alpha the alpha value that should be applied to the image
1328 public void setImageAlpha(int alpha) { argument
1329 setAlpha(alpha);
1341 setAlpha(int alpha) argument
[all...]
/frameworks/base/core/java/com/android/internal/widget/
H A DLockPatternView.java189 public float alpha = 1.0f; field in class:LockPatternView.CellState
944 size, drawLookup[i][j], cellState.alpha);
1028 boolean partOfPattern, float alpha) {
1030 mPaint.setAlpha((int) (alpha * 255));
1027 drawCircle(Canvas canvas, float centerX, float centerY, float size, boolean partOfPattern, float alpha) argument

Completed in 310 milliseconds

12345678