/frameworks/native/services/surfaceflinger/RenderEngine/ |
H A D | GLES10RenderEngine.cpp | 32 bool premultipliedAlpha, bool opaque, float alpha) { 34 bool premultipliedAlpha, bool opaque, int alpha) { 38 // alpha values. The alpha channel will be copied into the framebuffer or 43 if (CC_UNLIKELY(alpha < 1.0f)) { 45 glColor4f(alpha, alpha, alpha, alpha); 47 glColor4f(1.0f, 1.0f, 1.0f, alpha); 30 setupLayerBlending( bool premultipliedAlpha, bool opaque, float alpha) argument [all...] |
H A D | GLES10RenderEngine.h | 35 float alpha) override; 37 virtual void setupLayerBlending(bool premultipliedAlpha, bool opaque, int alpha);
|
H A D | GLES11RenderEngine.h | 58 float alpha) override; 59 virtual void setupDimLayerBlending(float alpha) override; 62 int alpha); 63 virtual void setupDimLayerBlending(int alpha);
|
H A D | GLES11RenderEngine.cpp | 112 bool opaque, float alpha) { 115 bool premultipliedAlpha, bool opaque, int alpha) { 123 if (CC_UNLIKELY(alpha < 1.0f)) { 125 if (CC_UNLIKELY(alpha < 0xFF)) { 127 // Cv = premultiplied ? Cs*alpha : Cs 128 // Av = !opaque ? As*alpha : As 133 envColor[0] = alpha; 135 envColor[0] = alpha * (1.0f / 255.0f); 169 if (alpha < 1.0f || !opaque) { 171 if (alpha < 111 setupLayerBlending(bool premultipliedAlpha, bool opaque, float alpha) argument 182 setupDimLayerBlending(float alpha) argument [all...] |
H A D | RenderEngine.h | 73 void clearWithColor(float red, float green, float blue, float alpha); 75 float red, float green, float blue, float alpha); 99 virtual void setupLayerBlending(bool premultipliedAlpha, bool opaque, float alpha) = 0; 100 virtual void setupDimLayerBlending(float alpha) = 0; 102 virtual void setupLayerBlending(bool premultipliedAlpha, bool opaque, int alpha) = 0; 103 virtual void setupDimLayerBlending(int alpha) = 0;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/ |
H A D | ViewState.java | 28 public float alpha; field in class:ViewState 35 alpha = viewState.alpha; 43 alpha = view.getAlpha();
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
H A D | CrossFadeHelper.java | 33 .alpha(0f) 75 float alpha = Interpolators.ALPHA_OUT.getInterpolation(1.0f - fadeOutAmount); 76 view.setAlpha(alpha); 77 updateLayerType(view, alpha); 87 private static void updateLayerType(View view, float alpha) { argument 88 if (view.hasOverlappingRendering() && alpha > 0.0f && alpha < 1.0f) { 102 .alpha(1f) 134 float alpha = Interpolators.ALPHA_IN.getInterpolation(fadeInAmount); 135 view.setAlpha(alpha); [all...] |
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | BlendComposite.java | 35 * To compensate for the effect, we recompute the alpha value of the src image before applying 58 private float alpha; field in class:BlendComposite 65 private BlendComposite(BlendingMode mode, float alpha) { argument 67 setAlpha(alpha); 74 public static BlendComposite getInstance(BlendingMode mode, float alpha) { argument 75 if (alpha > 0.9999f) { 78 return new BlendComposite(mode, alpha); 82 return alpha; 89 private void setAlpha(float alpha) { argument 90 if (alpha < 0. [all...] |
H A D | PorterDuffXfermode_Delegate.java | 57 public Composite getComposite(int alpha) { argument 58 return PorterDuffUtility.getComposite(mMode, alpha);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | ScrimController.java | 225 public void setDozeInFrontAlpha(float alpha) { argument 226 mDozeInFrontAlpha = alpha; 230 public void setDozeBehindAlpha(float alpha) { argument 231 mDozeBehindAlpha = alpha; 314 private void setScrimBehindColor(float alpha) { argument 315 setScrimColor(mScrimBehind, alpha); 318 private void setScrimInFrontColor(float alpha) { argument 319 setScrimColor(mScrimInFront, alpha); 320 if (alpha == 0f) { 329 private void setScrimColor(View scrim, float alpha) { argument 343 setCurrentScrimAlpha(View scrim, float alpha) argument 481 updateScrim(boolean animate, View scrim, float alpha, float currentAlpha) argument [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/tv/animations/ |
H A D | DismissAnimationsHolder.java | 66 .alpha(1.0f) 77 .alpha(1.0f); 83 .alpha(0.5f); 89 .alpha(0.5f); 96 .alpha(mDismissIconNotInDismissStateAlpha) 107 .alpha(0.0f); 113 .alpha(1.0f); 119 .alpha(1.0f); 126 .alpha(0.0f) 137 .alpha(0. [all...] |
/frameworks/base/packages/DocumentsUI/ |
H A D | wrap_alpha.py | 6 # assume everything needs alpha suffixes 27 alpha = src.endswith("_alpha") variable 28 if alpha:
|
/frameworks/rs/cpu_ref/ |
H A D | rsCpuBLASDispatch.h | 23 const float alpha, const float *A, const int lda, 28 const int KL, const int KU, const float alpha, 56 const double alpha, const double *A, const int lda, 61 const int KL, const int KU, const double alpha, 89 const void *alpha, const void *A, const int lda, 94 const int KL, const int KU, const void *alpha, 122 const void *alpha, const void *A, const int lda, 127 const int KL, const int KU, const void *alpha, 158 const int N, const float alpha, const float *A, 162 const int N, const int K, const float alpha, cons [all...] |
/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | DimLayer.java | 155 private void setAlpha(float alpha) { argument 156 if (mAlpha == alpha) { 159 mAlpha = alpha; 160 adjustAlpha(alpha); 163 private void adjustAlpha(float alpha) { argument 164 if (DEBUG_DIM_LAYER) Slog.v(TAG, "setAlpha alpha=" + alpha); 167 mDimSurface.setAlpha(alpha); 169 if (alpha == 0 && mShowing) { 175 } else if (alpha > 265 show(int layer, float alpha, long duration) argument [all...] |
/frameworks/base/libs/hwui/utils/ |
H A D | MathUtils.h | 42 * Clamps alpha value, and snaps when very near 0 or 1 44 inline static float clampAlpha(float alpha) { argument 45 if (alpha <= ALPHA_EPSILON) { 47 } else if (alpha >= (1 - ALPHA_EPSILON)) { 50 return alpha;
|
/frameworks/base/core/java/android/view/ |
H A D | RoundScrollbarRenderer.java | 57 public void drawRoundScrollbars(Canvas canvas, float alpha, Rect bounds) { argument 58 if (alpha == 0) { 73 setThumbColor(applyAlpha(DEFAULT_THUMB_COLOR, alpha)); 74 setTrackColor(applyAlpha(DEFAULT_TRACK_COLOR, alpha)); 107 private static int applyAlpha(int color, float alpha) { argument 108 int alphaByte = (int) (Color.alpha(color) * alpha);
|
/frameworks/base/libs/hwui/ |
H A D | Vertex.h | 100 * Simple structure to describe a vertex with a position and an alpha value. 104 float alpha; member in struct:android::uirenderer::AlphaVertex 106 static inline void set(AlphaVertex* vertex, float x, float y, float alpha) { argument 107 *vertex = { x, y, alpha }; 112 AlphaVertex::set(vertex, src.x + x, src.y + y, src.alpha); 115 static inline void setColor(AlphaVertex* vertex, float alpha) { argument 116 vertex[0].alpha = alpha;
|
H A D | BakedOpState.h | 135 const float alpha; member in class:android::uirenderer::BakedOpState 145 , alpha(snapshot.alpha) 152 , alpha(snapshot.alpha) 158 , alpha(snapshot.alpha) 164 , alpha(1.0f)
|
/frameworks/support/compat/tests/java/android/support/v4/view/ |
H A D | ViewPropertyAnimatorCompatTest.java | 58 ViewCompat.animate(mView).alpha(0).setDuration(100).withEndAction(new Runnable() { 74 ViewCompat.animate(mView).alpha(0).setDuration(50).withEndAction(new Runnable() { 78 ViewCompat.animate(mView).alpha(1); 94 ViewCompat.animate(mView).alpha(0).setDuration(100).withStartAction(new Runnable() { 110 ViewCompat.animate(mView).alpha(0).setDuration(50).withStartAction(new Runnable() { 114 ViewCompat.animate(mView).alpha(1);
|
/frameworks/base/packages/Keyguard/src/com/android/keyguard/ |
H A D | EmergencyCarrierArea.java | 51 mCarrierText.animate().alpha(0); 54 mCarrierText.animate().alpha(1);
|
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/ |
H A D | CircularBitmapDrawable.java | 106 float alpha = placeholder.getPaint().getAlpha() / 255f; 108 onDrawCircularBitmap(bitmap, canvas, mRect, bounds, alpha); 129 * BitmapShader. The alpha parameter is the value from 0f to 1f to attenuate the alpha by. 132 final Rect src, final Rect dst, final float alpha) { 151 mBitmapPaint.setAlpha((int) (oldAlpha * alpha)); 162 public void setAlpha(int alpha) { argument 163 super.setAlpha(alpha); 166 mBitmapPaint.setAlpha(alpha); 167 if (alpha ! 131 onDrawCircularBitmap(final Bitmap bitmap, final Canvas canvas, final Rect src, final Rect dst, final float alpha) argument [all...] |
H A D | TileDrawable.java | 97 final int alpha = mPaint.getAlpha(); 99 mPaint.setAlpha(alpha); 105 public void setAlpha(int alpha) { argument 107 mPaint.setAlpha(alpha); 108 setInnerAlpha(alpha); 109 if (alpha != old) { 163 * Changes the alpha on just the inner wrapped drawable. 165 public void setInnerAlpha(int alpha) { argument 166 if (mInner != null) mInner.setAlpha(alpha);
|
/frameworks/rs/java/tests/ImageProcessing/src/com/android/rs/image/ |
H A D | fisheye.rsh | 21 static float alpha, radius2, factor; 29 alpha = k * 2.0f + 0.75f; 41 const float max_radian = M_PI_2 - atan(alpha / bound * sqrt(radius2 - bound2)); 52 const float radian = M_PI_2 - atan((alpha * sqrt(radius2 - dist2)) * inv_dist);
|
H A D | fisheye_approx.rsh | 21 static float alpha, radius2, factor; 29 alpha = k * 2.0f + 0.75f; 41 const float max_radian = M_PI_2 - atan(alpha / bound * sqrt(radius2 - bound2)); 52 const float radian = M_PI_2 - atan((alpha * half_sqrt(radius2 - dist2)) * inv_dist);
|
/frameworks/rs/java/tests/ImageProcessing2/src/com/android/rs/image/ |
H A D | fisheye.rsh | 21 static float alpha, radius2, factor; 29 alpha = k * 2.0f + 0.75f; 41 const float max_radian = M_PI_2 - atan(alpha / bound * sqrt(radius2 - bound2)); 52 const float radian = M_PI_2 - atan((alpha * sqrt(radius2 - dist2)) * inv_dist);
|