/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/ |
H A D | ViewState.java | 115 public float alpha; field in class:ViewState 125 alpha = viewState.alpha; 136 alpha = view.getAlpha(); 196 boolean becomesInvisible = this.alpha == 0.0f 201 } else if (view.getAlpha() != this.alpha) { 203 boolean becomesFullyVisible = this.alpha == 1.0f; 214 // apply alpha 215 view.setAlpha(this.alpha); 265 final float alpha [all...] |
/frameworks/base/libs/input/ |
H A D | SpriteController.h | 120 /* Sets the sprite alpha blend ratio between 0.0 and 1.0. */ 121 virtual void setAlpha(float alpha) = 0; 180 positionX(0), positionY(0), layer(0), alpha(1.0f), 191 float alpha; member in struct:android::SpriteController::SpriteState 201 return visible && alpha > 0.0f && icon.isValid(); 223 virtual void setAlpha(float alpha);
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/ |
H A D | BackgroundManager.java | 174 throw new IllegalStateException("Can't draw with translucent alpha and color filter"); 185 public void setAlpha(int alpha) { argument 187 if (mState.mPaint.getAlpha() != alpha) { 188 mState.mPaint.setAlpha(alpha); 263 public void setAlpha(int alpha) { argument 264 if (mAlpha != alpha) { 265 mAlpha = alpha; 274 void setWrapperAlpha(int wrapperIndex, int alpha) { argument 276 mWrapper[wrapperIndex].mAlpha = alpha; 345 // Prevent invalidate when temporarily change child drawable's alpha i [all...] |
/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | RippleBackground.java | 71 final int alpha = (int) (origAlpha * mOpacity + 0.5f); 72 if (alpha > 0) { 73 p.setAlpha(alpha);
|
H A D | ShapeDrawable.java | 215 private static int modulateAlpha(int paintAlpha, int alpha) { argument 216 int scale = alpha + (alpha >>> 7); // convert to 0..256 274 * Set the alpha level for this drawable [0..255]. Note that this drawable 275 * also has a color in its paint, which has an alpha as well. These two 277 * alpha is 75% (i.e. 192) and the drawable's alpha is 50% (i.e. 128), then 278 * the combined alpha that will be used during drawing will be 37.5% (i.e. 282 public void setAlpha(int alpha) { argument 283 mShapeState.mAlpha = alpha; [all...] |
H A D | ColorDrawable.java | 144 * Returns the alpha value of this drawable's color. 154 * Sets the color's alpha value. 156 * @param alpha The alpha value to set, between 0 and 255. 159 public void setAlpha(int alpha) { argument 160 alpha += alpha >> 7; // make it 0..256 162 final int useAlpha = baseAlpha * alpha >> 8;
|
H A D | PictureDrawable.java | 94 public void setAlpha(int alpha) {} argument
|
/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | RemoteSurfaceTrace.java | 55 public void setAlpha(float alpha) { argument 56 writeFloatEvent("Alpha", alpha); 57 super.setAlpha(alpha);
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | ViewPropertyAlphaActivity.java | 136 protected boolean onSetAlpha(int alpha) { argument 138 mMyAlpha = alpha; 141 return super.onSetAlpha(alpha);
|
/frameworks/support/transition/api14/android/support/transition/ |
H A D | ViewUtilsApi14.java | 41 public void setTransitionAlpha(@NonNull View view, float alpha) { argument 44 view.setAlpha(savedAlpha * alpha); 46 view.setAlpha(alpha);
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/graphics/ |
H A D | FitWidthBitmapDrawable.java | 168 public void setAlpha(int alpha) { argument 170 if (alpha != oldAlpha) { 171 mBitmapState.mPaint.setAlpha(alpha);
|
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/arm11/vc/m4p10/src/ |
H A D | omxVCM4P10_FilterDeblockingChroma_HorEdge_I_s.s | 52 alpha RN 6 label 182 USUB8 a, ap0q0, alpha 243 M_LDRD alpha, beta, pAlphaBeta0 256 ;// Since beta <= 18 and alpha <= 255 we know 322 M_LDRD alpha, beta, pAlphaBeta0 335 M_LDRD alpha, beta, pAlphaBeta1 338 M_STRD alpha, beta, pAlphaBeta0
|
/frameworks/base/core/tests/coretests/src/android/graphics/ |
H A D | BitmapTest.java | 170 private static int computePrePostMul(int alpha, int comp) { argument 171 if (alpha == 0) { 174 int premul = Math.round(alpha * comp / 255.f); 175 int unpre = Math.round(255.0f * premul / alpha); 195 // now check that we did a good job returning the unpremultiplied alpha 208 int a0 = Color.alpha(c0); 209 int a1 = Color.alpha(c1); 210 assertEquals("alpha", a0, a1);
|
/frameworks/base/cmds/input/src/com/android/commands/input/ |
H A D | Input.java | 225 float alpha = (float) elapsedTime / duration; 226 injectMotionEvent(inputSource, MotionEvent.ACTION_MOVE, now, lerp(x1, x2, alpha), 227 lerp(y1, y2, alpha), 1.0f); 250 float alpha = (float) elapsedTime / dragDuration; 251 injectMotionEvent(inputSource, MotionEvent.ACTION_MOVE, now, lerp(x1, x2, alpha), 252 lerp(y1, y2, alpha), 1.0f); 313 private static final float lerp(float a, float b, float alpha) { argument 314 return (b - a) * alpha + a;
|
/frameworks/base/core/java/android/content/res/ |
H A D | ColorStateList.java | 104 * Starting with API 23, items may optionally define an {@link android.R.attr#alpha android:alpha} 107 * calculated by multiplying by the base color's alpha channel by the {@code alpha} value. For 112 * android:alpha="0.5" /> 281 * one but where each color has the specified alpha value (0-255). 283 * @param alpha The new alpha channel value (0-255). 287 public ColorStateList withAlpha(int alpha) { argument 291 colors[i] = (mColors[i] & 0xFFFFFF) | (alpha << 2 [all...] |
/frameworks/base/core/java/com/android/internal/util/ |
H A D | ImageUtils.java | 110 int alpha = 0xFF & (color >> 24); 111 if (alpha < ALPHA_TOLERANCE) {
|
/frameworks/base/libs/hwui/ |
H A D | RenderProperties.h | 59 // record time), this information is used when applying alpha. 88 bool setAlpha(uint8_t alpha) { argument 89 return RP_SET(mAlpha, alpha); 92 uint8_t alpha() const { function in class:android::uirenderer::LayerProperties 110 // Sets alpha, xfermode, and colorfilter from an SkPaint 115 return !opaque() || alpha() < 255; 133 // Whether or not that Layer's content is opaque, doesn't include alpha 242 bool setAlpha(float alpha) { argument 243 alpha = MathUtils::clampAlpha(alpha); [all...] |
H A D | BakedOpDispatcher.cpp | 78 .setFillTexturePaint(*texture, textureFillFlags, firstState.op->paint, firstState.alpha) 182 .setFillTexturePaint(*texture, textureFillFlags, firstOp.paint, firstState.alpha) 219 .setFillShadowTexturePaint(*texture, textShadow.color, *op.paint, textOpState.alpha) 295 int alpha = PaintUtils::getAlphaDirect(op.paint) * state.alpha; local 298 x, y, pureTranslate, alpha, mode, op.paint); 352 .setFillPaint(paint, state.alpha, shadowInterp) 377 .setFillPathTexturePaint(texture, paint, state.alpha) 431 .setFillTexturePaint(*texture, textureFillFlags, op.paint, state.alpha) 497 .setFillTexturePaint(*texture, textureFillFlags, op.paint, state.alpha) 747 int alpha = PaintUtils::getAlphaDirect(op.paint) * state.alpha; local 771 float alpha = (layer->getAlpha() / 255.0f) * state.alpha; local [all...] |
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/ |
H A D | GLCanvas.java | 45 // Sets and gets the current alpha, alpha must be in [0, 1]. 46 public abstract void setAlpha(float alpha); argument 50 // (current alpha) = (current alpha) * alpha 51 public abstract void multiplyAlpha(float alpha); argument 64 // Pushes the configuration state (matrix, and alpha) onto 76 // alpha, and clip). This call balances a previous call to save(), and is
|
/frameworks/native/include/private/gui/ |
H A D | LayerState.h | 68 alpha(0), flags(0), mask(0), 94 float alpha; member in struct:android::layer_state_t
|
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/ |
H A D | ExtendedBitmapDrawable.java | 301 public void setAlpha(int alpha) { argument 303 super.setAlpha(alpha); 304 if (mPlaceholder != null) mPlaceholder.setAlpha(alpha); 305 if (mProgress != null) mProgress.setAlpha(alpha); 306 if (alpha != old) { 485 public void setInnerAlpha(final int alpha) { argument 486 super.setInnerAlpha((int) (alpha * mPulseAlphaFraction)); 523 // one exception: if alpha is already zero, there is no fade-out, so stop now 573 // one exception: if alpha is already zero, there is no fade-out, so stop now 754 * animation (placeholder will be at maximum alpha alway [all...] |
/frameworks/base/core/java/com/android/internal/graphics/ |
H A D | ColorUtils.java | 49 int bgAlpha = Color.alpha(background); 50 int fgAlpha = Color.alpha(foreground); 92 if (Color.alpha(background) != 255) { 96 if (Color.alpha(foreground) < 255) { 109 * Calculates the minimum alpha value which can be applied to {@code foreground} so that would 116 * @return the alpha value in the range 0-255, or -1 if no value could be calculated 120 if (Color.alpha(background) != 255) { 218 * @param color the ARGB color to convert. The alpha component is ignored 293 * Set the alpha component of {@code color} to be {@code alpha} 296 setAlphaComponent(@olorInt int color, @IntRange(from = 0x0, to = 0xFF) int alpha) argument [all...] |
/frameworks/support/core-utils/java/android/support/v4/graphics/ |
H A D | ColorUtils.java | 48 int bgAlpha = Color.alpha(background); 49 int fgAlpha = Color.alpha(foreground); 91 if (Color.alpha(background) != 255) { 95 if (Color.alpha(foreground) < 255) { 108 * Calculates the minimum alpha value which can be applied to {@code foreground} so that would 115 * @return the alpha value in the range 0-255, or -1 if no value could be calculated 119 if (Color.alpha(background) != 255) { 217 * @param color the ARGB color to convert. The alpha component is ignored 292 * Set the alpha component of {@code color} to be {@code alpha} 295 setAlphaComponent(@olorInt int color, @IntRange(from = 0x0, to = 0xFF) int alpha) argument [all...] |
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/ |
H A D | rate_control.h | 35 Int alpha; /* weight for I frame */ member in struct:__anon586
|
/frameworks/base/core/java/android/widget/ |
H A D | ImageButton.java | 91 protected boolean onSetAlpha(int alpha) { argument
|