/frameworks/base/core/java/com/android/internal/util/ |
H A D | ImageUtils.java | 107 int alpha = 0xFF & (color >> 24); 108 if (alpha < ALPHA_TOLERANCE) {
|
/frameworks/native/services/surfaceflinger/RenderEngine/ |
H A D | GLES20RenderEngine.h | 70 virtual void setupLayerBlending(bool premultipliedAlpha, bool opaque, int alpha); 71 virtual void setupDimLayerBlending(int alpha);
|
H A D | GLES20RenderEngine.cpp | 127 bool premultipliedAlpha, bool opaque, int alpha) { 131 mState.setPlaneAlpha(alpha / 255.0f); 133 if (alpha < 0xFF || !opaque) { 141 void GLES20RenderEngine::setupDimLayerBlending(int alpha) { argument 145 mState.setColor(0, 0, 0, alpha/255.0f); 148 if (alpha == 0xFF) { 126 setupLayerBlending( bool premultipliedAlpha, bool opaque, int alpha) argument
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | Color.java | 27 * Colors are represented as packed ints, made up of 4 bytes: alpha, red, 29 * stored solely in the alpha component, and not in the color components. The 30 * components are stored as follows (alpha << 24) | (red << 16) | 52 * Return the alpha component of a color int. This is the same as saying 55 public static int alpha(int color) { method in class:Color 85 * The alpha component is implicity 255 (fully opaque). 98 * Return a color-int from alpha, red, green, blue components. 102 * @param alpha Alpha component [0..255] of the color 107 public static int argb(int alpha, int red, int green, int blue) { argument 108 return (alpha << 2 362 HSVToColor(int alpha, float hsv[]) argument 370 nativeHSVToColor(int alpha, float hsv[]) argument [all...] |
H A D | Outline.java | 93 * Sets the alpha represented by the Outline - the degree to which the 96 * An alpha value of <code>0.0f</code> either represents completely 100 * Content producing a fully opaque (alpha = <code>1.0f</code>) outline is 104 public void setAlpha(float alpha) { argument 105 mAlpha = alpha; 109 * Returns the alpha represented by the Outline.
|
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/ |
H A D | BitmapTest.java | 169 private static int computePrePostMul(int alpha, int comp) { argument 170 if (alpha == 0) { 173 int premul = Math.round(alpha * comp / 255.f); 174 int unpre = Math.round(255.0f * premul / alpha); 194 // now check that we did a good job returning the unpremultiplied alpha 207 int a0 = Color.alpha(c0); 208 int a1 = Color.alpha(c1); 209 assertEquals("alpha", a0, a1);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | TrustDrawable.java | 113 public void setAlpha(int alpha) { argument 114 mAlpha = alpha; 216 private Animator makeEnterAnimator(float radius, int alpha) { argument 218 alpha, ALPHA_VISIBLE_MAX, ENTER_DURATION, mLinearOutSlowInInterpolator, 222 private Animator makeExitAnimator(float radius, int alpha) { argument 224 alpha, 0, EXIT_DURATION, mFastOutSlowInInterpolator,
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
H A D | KeyButtonView.java | 143 public void setQuiescentAlpha(float alpha, boolean animate) { argument 145 alpha = Math.min(Math.max(alpha, 0), 1); 146 if (alpha == mQuiescentAlpha && alpha == mDrawingAlpha) return; 147 mQuiescentAlpha = alpha; 148 if (DEBUG) Log.d(TAG, "New quiescent alpha = " + mQuiescentAlpha);
|
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/ |
H A D | qgain795.cpp | 403 alpha -- Word16 -- gain adaptor factor (>0), Q15 483 Word16 alpha, /* i : gain adaptor factor (>0), Q15 */ 521 underlined = constant; alp = FLP value of alpha, alpha = FIP 558 /* 0 < alpha <= 0.5 => 0.5 <= 1-alpha < 1, i.e one_alpha is normalized */ 559 one_alpha = add(sub(32767, alpha, pOverflow), 1, pOverflow); /* 32768 - alpha */ 562 /* alpha <= 0.5 -> mult. by 2 to keep precision; compensate in exponent */ 563 L_t1 = L_mult(alpha, frac_e 475 MR795_gain_code_quant_mod( Word16 gain_pit, Word16 exp_gcode0, Word16 gcode0, Word16 frac_en[], Word16 exp_en[], Word16 alpha, Word16 gain_cod_unq, Word16 *gain_cod, Word16 *qua_ener_MR122, Word16 *qua_ener, Flag *pOverflow ) argument 837 Word16 ltpg, alpha, gcode0; local [all...] |
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/arm11/vc/m4p10/src/ |
H A D | omxVCM4P10_FilterDeblockingLuma_HorEdge_I_s.s | 43 alpha RN 6 label 194 USUB8 a, ap0q0, alpha 255 M_LDRD alpha, beta, pAlphaBeta0 271 M_LDRD alpha, beta, pAlphaBeta0 304 M_LDRD alpha, beta, pAlphaBeta0 316 M_LDRD alpha, beta, pAlphaBeta1 319 M_STRD alpha, beta, pAlphaBeta0
|
H A D | omxVCM4P10_FilterDeblockingChroma_HorEdge_I_s.s | 38 alpha RN 6 label 168 USUB8 a, ap0q0, alpha 229 M_LDRD alpha, beta, pAlphaBeta0 242 ;// Since beta <= 18 and alpha <= 255 we know 308 M_LDRD alpha, beta, pAlphaBeta0 321 M_LDRD alpha, beta, pAlphaBeta1 324 M_STRD alpha, beta, pAlphaBeta0
|
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/ |
H A D | TintManager.java | 156 int alpha = -1; 171 alpha = Math.round(0.16f * 255); 192 if (alpha != -1) { 193 drawable.setAlpha(alpha); 331 int getThemeAttrColor(int attr, float alpha) { argument 333 final int originalAlpha = Color.alpha(color); 335 // Return the color, multiplying the original alpha by the disabled value 336 return (color & 0x00ffffff) | (Math.round(originalAlpha * alpha) << 24);
|
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/ |
H A D | h264bsd_deblocking.c | 76 /* array of alpha values, from the standard */ 128 u32 alpha; member in struct:__anon592 210 u8 (*alpha)[2], 218 u8 (*alpha)[2], 678 if ( ((unsigned)ABS(p0-q0) < thresholds->alpha) && 716 if ( ((unsigned)ABS(p0-q0) < thresholds->alpha) && 721 ((unsigned)ABS(p0-q0) < ((thresholds->alpha >> 2) +2)) ? 786 if ( ((unsigned)ABS(p0-q0) < thresholds->alpha) && 858 if ( ((unsigned)ABS(p0-q0) < thresholds->alpha) && 897 if ( ((unsigned)ABS(p0-q0) < thresholds->alpha) 1781 u8 alpha[2][2]; local 2174 GetLumaEdgeThresholds( mbStorage_t *mb, u8 (*alpha)[2], u8 (*beta)[2], u8 (*threshold)[16], u8 (*bs)[16], u32 filteringFlags ) argument 2304 GetChromaEdgeThresholds( mbStorage_t *mb, u8 (*alpha)[2], u8 (*beta)[2], u8 (*threshold)[8], u8 (*bs)[16], u32 filteringFlags, i32 chromaQpIndexOffset) argument [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
H A D | KeyguardAffordanceView.java | 40 * 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/core/java/android/widget/ |
H A D | ScrollBarDrawable.java | 221 public void setAlpha(int alpha) { argument 223 mVerticalTrack.setAlpha(alpha); 226 mVerticalThumb.setAlpha(alpha); 229 mHorizontalTrack.setAlpha(alpha); 232 mHorizontalThumb.setAlpha(alpha); 238 // All elements should have same alpha, just return one of them
|
/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/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/ |
H A D | StackScrollState.java | 69 viewState.alpha = 1; 97 float alpha = child.getAlpha(); 103 float newAlpha = state.alpha; 109 if (alpha != newAlpha && xTranslation == 0) { 121 // apply alpha 240 float alpha; field in class:StackScrollState.ViewState
|
/frameworks/base/libs/hwui/ |
H A D | OpenGLRenderer.h | 213 // If this value is set to < 1.0, it overrides alpha set on layer (see drawBitmap, drawLayer) 214 void setOverrideLayerAlpha(float alpha) { mDrawModifiers.mOverrideLayerAlpha = alpha; } argument 248 * Scales the alpha on the current snapshot. This alpha value will be modulated 249 * with other alpha values when drawing primitives. 251 void scaleAlpha(float alpha) { argument 252 mSnapshot->alpha *= alpha; 278 * Gets the alpha an 287 getAlphaAndModeDirect(const SkPaint* paint, int* alpha, SkXfermode::Mode* mode) argument [all...] |
H A D | RenderProperties.h | 55 // 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; 128 // Whether or not that Layer's content is opaque, doesn't include alpha 211 bool setAlpha(float alpha) { argument 212 alpha = MathUtils::clampAlpha(alpha); [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/ |
H A D | AnimateableViewBounds.java | 66 /** Sets the view outline alpha. */ 67 void setAlpha(float alpha) { argument 68 if (Float.compare(alpha, mAlpha) != 0) { 69 mAlpha = 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/v4/donut/android/support/v4/graphics/drawable/ |
H A D | RoundedBitmapDrawable.java | 246 public void setAlpha(int alpha) { argument 248 if (alpha != oldAlpha) { 249 mPaint.setAlpha(alpha);
|
/frameworks/base/core/java/android/view/animation/ |
H A D | Transformation.java | 31 * Indicates a transformation that has no effect (alpha = 1 and identity matrix.) 35 * Indicates a transformation that applies an alpha only (uses an identity matrix.) 39 * Indicates a transformation that applies a matrix only (alpha = 1.) 43 * Indicates a transformation that applies an alpha and a matrix. 55 * Creates a new transformation with alpha = 1 and the identity matrix. 152 * @param alpha 1.0 means fully opaqe and 0.0 means fully transparent 154 public void setAlpha(float alpha) { argument 155 mAlpha = alpha; 219 sb.append("{alpha="); sb.append(mAlpha); 229 pw.print("{alpha [all...] |
/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | ShapeDrawable.java | 209 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/packages/Keyguard/src/com/android/keyguard/ |
H A D | KeyguardWidgetFrame.java | 85 // 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...] |