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

123

/frameworks/base/core/java/android/widget/
H A DImageButton.java87 protected boolean onSetAlpha(int alpha) { argument
H A DScrollBarDrawable.java218 public void setAlpha(int alpha) { argument
220 mVerticalTrack.setAlpha(alpha);
222 mVerticalThumb.setAlpha(alpha);
224 mHorizontalTrack.setAlpha(alpha);
226 mHorizontalThumb.setAlpha(alpha);
/frameworks/base/tests/AndroidTests/src/com/android/unit_tests/graphics/
H A DBitmapTest.java167 private static int computePrePostMul(int alpha, int comp) { argument
168 if (alpha == 0) {
171 int premul = Math.round(alpha * comp / 255.f);
172 int unpre = Math.round(255.0f * premul / alpha);
192 // now check that we did a good job returning the unpremultiplied alpha
205 int a0 = Color.alpha(c0);
206 int a1 = Color.alpha(c1);
207 assertEquals("alpha", a0, a1);
/frameworks/base/core/java/android/view/animation/
H A DTransformation.java30 * Indicates a transformation that has no effect (alpha = 1 and identity matrix.)
34 * Indicates a transformation that applies an alpha only (uses an identity matrix.)
38 * Indicates a transformation that applies a matrix only (alpha = 1.)
42 * Indicates a transformation that applies an alpha and a matrix.
51 * Creates a new transformation with alpha = 1 and the identity matrix.
124 * @param alpha 1.0 means fully opaqe and 0.0 means fully transparent
126 public void setAlpha(float alpha) { argument
127 mAlpha = alpha;
158 sb.append("{alpha="); sb.append(mAlpha);
168 pw.print("{alpha
[all...]
/frameworks/base/graphics/java/android/graphics/drawable/
H A DColorDrawable.java73 * Returns the alpha value of this drawable's color.
82 * Sets the color's alpha value.
84 * @param alpha The alpha value to set, between 0 and 255.
86 public void setAlpha(int alpha) { argument
87 alpha += alpha >> 7; // make it 0..256
89 int useAlpha = baseAlpha * alpha >> 8;
H A DPictureDrawable.java104 public void setAlpha(int alpha) {} argument
H A DAnimatedRotateDrawable.java149 public void setAlpha(int alpha) { argument
150 mState.mDrawable.setAlpha(alpha);
H A DClipDrawable.java148 public void setAlpha(int alpha) { argument
149 mClipState.mDrawable.setAlpha(alpha);
H A DInsetDrawable.java187 public void setAlpha(int alpha) { argument
188 mInsetState.mDrawable.setAlpha(alpha);
H A DNinePatchDrawable.java203 public void setAlpha(int alpha) { argument
204 getPaint().setAlpha(alpha);
H A DRotateDrawable.java105 public void setAlpha(int alpha) { argument
106 mState.mDrawable.setAlpha(alpha);
H A DScaleDrawable.java170 public void setAlpha(int alpha) { argument
171 mScaleState.mDrawable.setAlpha(alpha);
/frameworks/base/include/private/ui/
H A DLayerState.h37 alpha(0), tint(0), flags(0), mask(0),
60 float alpha; member in struct:android::layer_state_t
/frameworks/base/services/java/com/android/server/status/
H A DFixedSizeDrawable.java43 public void setAlpha(int alpha) { argument
44 mDrawable.setAlpha(alpha);
/frameworks/base/tests/CoreTests/android/graphics/drawable/
H A DStateListDrawableTest.java87 public void setAlpha(int alpha) { argument
/frameworks/base/awt/java/awt/
H A DAlphaComposite.java33 * The AlphaComposite class defines a basic alpha compositing rules for
42 * The Constant CLEAR indicates that both the color and the alpha of the
122 * AlphaComposite object with the opaque CLEAR rule and an alpha of 1.0f.
127 * AlphaComposite object with the opaque SRC rule and an alpha of 1.0f.
132 * AlphaComposite object with the opaque DST rule and an alpha of 1.0f.
137 * AlphaComposite object with the opaque SRC_OVER rule and an alpha of 1.0f.
142 * AlphaComposite object with the opaque DST_OVER rule and an alpha of 1.0f.
147 * AlphaComposite object with the opaque SRC_IN rule and an alpha of 1.0f.
152 * AlphaComposite object with the opaque DST_IN rule and an alpha of 1.0f.
157 * AlphaComposite object with the opaque SRC_OUT rule and an alpha o
189 private float alpha; field in class:AlphaComposite
201 AlphaComposite(int rule, float alpha) argument
306 getInstance(int rule, float alpha) argument
[all...]
/frameworks/base/awt/org/apache/harmony/awt/gl/render/
H A DNativeImageBlitter.java148 float alpha = ac.getAlpha();
153 compType, alpha, clipRects, srcSurf.invalidated());
159 width, height, compType, alpha,
205 int compType, float alpha, int clip[], boolean invalidated);
210 float alpha, int clip[], boolean invalidated);
202 bltBG(int srcX, int srcY, long srsSurfDataPtr, Object srcData, int dstX, int dstY, long dstSurfDataPtr, Object dstData, int width, int height, int bgcolor, int compType, float alpha, int clip[], boolean invalidated) argument
207 blt(int srcX, int srcY, long srsSurfDataPtr, Object srcData, int dstX, int dstY, long dstSurfDataPtr, Object dstData, int width, int height, int compType, float alpha, int clip[], boolean invalidated) argument
H A DJavaBlitter.java216 float alpha = 0;
225 alpha = ac.getAlpha();
281 dstCM, dstRast, _w, _h, rule, alpha, bgcolor);
296 int width, int height, int rule, float alpha, Color bgcolor){
299 int srcConstAllpha = (int)(alpha * 255 + 0.5f);
294 alphaCompose(int srcX, int srcY, ColorModel srcCM, Raster srcRast, int dstX, int dstY, ColorModel dstCM, WritableRaster dstRast, int width, int height, int rule, float alpha, Color bgcolor) argument
/frameworks/base/core/java/android/content/res/
H A DColorStateList.java154 * colors as this one but where each color has the specified alpha value
157 public ColorStateList withAlpha(int alpha) { argument
162 colors[i] = (mColors[i] & 0xFFFFFF) | (alpha << 24);
/frameworks/base/graphics/java/android/graphics/
H A DColor.java26 * Colors are represented as packed ints, made up of 4 bytes: alpha, red,
28 * stored solely in the alpha component, and not in the color components. The
29 * components are stored as follows (alpha << 24) | (red << 16) |
50 * Return the alpha component of a color int. This is the same as saying
53 public static int alpha(int color) { method in class:Color
83 * The alpha component is implicity 255 (fully opaque).
96 * Return a color-int from alpha, red, green, blue components.
100 * @param alpha Alpha component [0..255] of the color
105 public static int argb(int alpha, int red, int green, int blue) { argument
106 return (alpha << 2
358 HSVToColor(int alpha, float hsv[]) argument
366 nativeHSVToColor(int alpha, float hsv[]) argument
[all...]
/frameworks/base/graphics/java/android/graphics/utils/
H A DBoundaryPatch.java123 * Set the alpha for the patch
125 public void setAlpha(int alpha) { argument
126 mPaint.setAlpha(alpha);
/frameworks/base/libs/surfaceflinger/
H A DLayerBlur.cpp208 if (UNLIKELY(s.alpha < 0xFF)) {
209 const GGLfixed alpha = (s.alpha << 16)/255; local
210 glColor4x(0, 0, 0, alpha);
H A DLayerDim.cpp116 if (s.alpha>0 && (it != end)) {
118 const GGLfixed alpha = (s.alpha << 16)/255; local
123 glColor4x(0, 0, 0, alpha);
/frameworks/base/core/jni/android/graphics/
H A DNinePatchImpl.cpp64 static SkColor modAlpha(SkColor c, int alpha) { argument
65 int scale = alpha + (alpha >> 7);
H A DShader.cpp29 static int Color_HSVToColor(JNIEnv* env, jobject, int alpha, jfloatArray hsvArray) argument
39 return SkHSVToColor(alpha, hsv);

Completed in 519 milliseconds

123