Searched defs:alpha (Results 1 - 25 of 184) sorted by relevance

12345678

/frameworks/base/packages/DocumentsUI/
H A Dwrap_alpha.py6 # assume everything needs alpha suffixes
27 alpha = src.endswith("_alpha") variable
28 if alpha:
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DPixelXorXfermode_Delegate.java46 public Composite getComposite(int alpha) { argument
H A DAvoidXfermode_Delegate.java46 public Composite getComposite(int alpha) { argument
H A DPorterDuffXfermode_Delegate.java57 public Composite getComposite(int alpha) { argument
58 return PorterDuffUtility.getComposite(mMode, alpha);
H A DXfermode_Delegate.java55 public abstract Composite getComposite(int alpha); argument
/frameworks/native/services/surfaceflinger/RenderEngine/
H A DGLES10RenderEngine.cpp31 bool premultipliedAlpha, bool opaque, int alpha) {
34 // alpha values. The alpha channel will be copied into the framebuffer or
38 if (CC_UNLIKELY(alpha < 0xFF)) {
39 GLfloat floatAlpha = alpha * (1.0f / 255.0f);
50 if (alpha < 0xFF || !opaque) {
30 setupLayerBlending( bool premultipliedAlpha, bool opaque, int alpha) argument
H A DDescription.cpp72 void Description::setColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) { argument
76 mColor[3] = alpha;
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/
H A Dg_adapt.cpp354 alpha -- Pointer to Word16 -- gain adaptation factor, Q15
369 Purpose: calculate pitch/codebook gain adaptation factor alpha
413 Word16 *alpha, /* o : gain adaptation factor, Q15 */
418 Word16 result; /* alpha factor, Q13 */
509 *alpha = result;
409 gain_adapt( GainAdaptState *st, Word16 ltpg, Word16 gain_cod, Word16 *alpha, Flag *pOverflow ) argument
/frameworks/base/core/java/android/widget/
H A DImageButton.java91 protected boolean onSetAlpha(int alpha) { argument
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/
H A DBitmapTest.java169 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/support/v7/appcompat/src/android/support/v7/internal/widget/
H A DActionBarBackgroundDrawable.java32 public void setAlpha(int alpha) { argument
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/reference/vc/m4p10/src/
H A DarmVCM4P10_DeBlockPixel.c52 * [in] alpha alpha threshold value
64 int alpha, /* alpha */
87 if (armAbs(p0-q0)>=alpha || armAbs(p1-p0)>=beta || armAbs(q1-q0)>=beta)
89 DEBUG_PRINTF_10("DeBlockPixel: %02x %02x %02x %02x | %02x %02x %02x %02x alpha=%d beta=%d\n",
90 p3, p2, p1, p0, q0, q1, q2, q3, alpha, beta);
139 if (ChromaFlag==0 && ap<beta && armAbs(p0-q0)<((alpha>>2)+2))
150 if (ChromaFlag==0 && aq<beta && armAbs(p0-q0)<((alpha>>2)+2))
60 armVCM4P10_DeBlockPixel( OMX_U8 *pQ0, int Step, int tC0, int alpha, int beta, int bS, int ChromaFlag ) argument
/frameworks/av/cmds/screenrecord/
H A DTextRenderer.cpp94 // The pixel data is stored as combined color+alpha, 8 bits per pixel.
110 uint8_t alpha, color; local
112 // black pixel with varying alpha
114 alpha = FontBitmap::pixels[i] & ~1;
118 alpha = 0xff;
123 *pix++ = alpha;
/frameworks/base/graphics/java/android/graphics/drawable/
H A DPictureDrawable.java100 public void setAlpha(int alpha) {} argument
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/drawable/
H A DStateListDrawableTest.java87 public void setAlpha(int alpha) { argument
/frameworks/base/libs/hwui/
H A DRenderer.h152 int alpha, int flags) {
154 paint.setAlpha(alpha);
151 saveLayerAlpha(float left, float top, float right, float bottom, int alpha, int flags) argument
H A DVertex.h95 * Simple structure to describe a vertex with a position and an alpha value.
98 float alpha; member in struct:android::uirenderer::AlphaVertex
100 static inline void set(AlphaVertex* vertex, float x, float y, float alpha) { argument
102 vertex[0].alpha = alpha;
108 vertex[0].alpha = src.alpha;
111 static inline void setColor(AlphaVertex* vertex, float alpha) { argument
112 vertex[0].alpha = alpha;
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
H A DAnimateableViewBounds.java53 /** Sets the view outline alpha. */
54 void setAlpha(float alpha) { argument
55 if (Float.compare(alpha, mAlpha) != 0) {
56 mAlpha = alpha;
H A DTaskViewTransform.java33 public float alpha = 1f; field in class:TaskViewTransform
47 alpha = o.alpha;
59 alpha = 1f;
67 return (Float.compare(alpha, v) != 0);
100 // Use layers if we animate alpha
101 anim.alpha(alpha);
129 v.setAlpha(alpha);
147 " scale: " + scale + " alpha
[all...]
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DViewPropertyAlphaActivity.java136 protected boolean onSetAlpha(int alpha) { argument
138 mMyAlpha = alpha;
141 return super.onSetAlpha(alpha);
/frameworks/native/services/sensorservice/
H A DSensorFusion.cpp70 const float alpha = 1 / (1 + dT); // 1s time-constant local
71 mEstimatedGyroRate = freq + (mEstimatedGyroRate - freq)*alpha;
/frameworks/support/v7/palette/src/android/support/v7/graphics/
H A DColorUtils.java32 final float alpha1 = Color.alpha(fg) / 255f;
33 final float alpha2 = Color.alpha(bg) / 255f;
67 if (Color.alpha(background) != 255) {
70 if (Color.alpha(foreground) < 255) {
83 * Finds the minimum alpha value which can be applied to {@code foreground} so that is has a
86 * @return the alpha value in the range 0-255.
89 if (Color.alpha(background) != 255) {
225 * Set the alpha component of {@code color} to be {@code alpha}.
227 static int modifyAlpha(int color, int alpha) { argument
[all...]
/frameworks/base/core/java/android/content/res/
H A DColorStateList.java158 * colors as this one but where each color has the specified alpha value
161 public ColorStateList withAlpha(int alpha) { argument
165 colors[i] = (mColors[i] & 0xFFFFFF) | (alpha << 24);
197 float alpha = 1.0f;
209 if (stateResId == com.android.internal.R.attr.alpha) {
212 alpha = attrs.getAttributeFloatValue(i, 1.0f);
236 alpha = r.getFloat(alphaRes);
239 // Apply alpha modulation.
240 final int alphaMod = MathUtils.constrain((int) (Color.alpha(color) * alpha),
[all...]
/frameworks/base/core/java/android/view/animation/
H A DTransformation.java31 * 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/
H A DOutline.java93 * 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.

Completed in 642 milliseconds

12345678