/frameworks/base/services/surfaceflinger/ |
LayerBase.cpp | 97 mCurrentState.alpha = 0xFF; 150 bool LayerBase::setAlpha(uint8_t alpha) { 151 if (mCurrentState.alpha == alpha) 154 mCurrentState.alpha = alpha; 320 GLclampf alpha) const 324 glColor4f(red,green,blue,alpha); 368 if (UNLIKELY(s.alpha < 0xFF)) { 369 const GLfloat alpha = s.alpha * (1.0f/255.0f) local [all...] |
/external/skia/include/core/ |
SkColorShader.h | 35 specified color. Note: like all shaders, at draw time the paint's alpha 46 virtual void shadeSpanAlpha(int x, int y, uint8_t alpha[], int count);
|
/external/skia/src/core/ |
SkSpriteBlitter.h | 38 virtual void blitV(int x, int y, int height, SkAlpha alpha);
|
/external/webkit/WebCore/css/ |
RGBColor.cpp | 55 PassRefPtr<CSSPrimitiveValue> RGBColor::alpha() function in class:WebCore::RGBColor
|
/external/webkit/WebCore/platform/image-decoders/bmp/ |
BMPImageReader.h | 231 // For images without alpha, return alpha of 0xff. 252 unsigned alpha) 255 alpha); 267 unsigned alpha) 270 setRGBA(red, green, blue, alpha); 349 // Variables that track whether we've seen pixels with alpha values != 0
|
/frameworks/base/core/java/android/widget/ |
ImageButton.java | 90 protected boolean onSetAlpha(int alpha) {
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
TransitionDrawable.java | 187 final int alpha = mAlpha; local 194 d.setAlpha(255 - alpha); 201 if (alpha > 0) { 203 d.setAlpha(alpha); 216 * fade enabled, the first drawable is drawn with the opposite alpha of
|
ShapeDrawable.java | 187 private static int modulateAlpha(int paintAlpha, int alpha) { 188 int scale = alpha + (alpha >>> 7); // convert to 0..256 230 * Set the alpha level for this drawable [0..255]. Note that this drawable 231 * also has a color in its paint, which has an alpha as well. These two 233 * alpha is 75% (i.e. 192) and the drawable's alpha is 50% (i.e. 128), then 234 * the combined alpha that will be used during drawing will be 37.5% 237 @Override public void setAlpha(int alpha) { 238 mShapeState.mAlpha = alpha; 251 final int alpha = p.getAlpha(); local [all...] |
/packages/apps/Gallery3D/src/com/cooliris/media/ |
CanvasTexture.java | 168 public void drawWithEffect(RenderView view, GL11 gl, float x, float y, float anchorX, float anchorY, float alpha, float scale) { 183 // Set alpha if needed. 184 if (alpha != 1f) { // CR: 1.0f 185 view.setAlpha(alpha); 188 if (alpha != 1f) {
|
LoadingLayer.java | 210 float alpha = mOpacity.getValue(view.getFrameTime()); local 211 if (alpha > 0.004f) { 212 float gray = GRAY_VALUE * alpha; 214 gl.glColor4f(gray, gray, gray, alpha);
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
PercentageBar.java | 48 public void setAlpha(int alpha) {
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/editors/layout/gscripts/ |
IGraphics.java | 58 * Sets the receiver's alpha value which must be 65 * @return False if the GC doesn't support alpha. 67 boolean setAlpha(int alpha); 98 * color and alpha. 103 * color and alpha. 109 * foreground color and alpha. 114 * foreground color and alpha. 119 * foreground color and alpha. 125 * background color and alpha. 130 * background color and alpha [all...] |
/cts/tests/tests/graphics/src/android/graphics/cts/ |
NinePatchTest.java | 136 final int alpha = 128; local 138 p.setAlpha(alpha); 140 checkBitmapWithAlpha(expected, bitmap, alpha); 148 checkBitmapWithAlpha(expected, bitmap, alpha); 151 private void checkBitmapWithAlpha(Bitmap expected, Bitmap bitmap, int alpha) { 161 int expectedAlpha = Color.alpha(expectedPixel); 162 int actualAlpha = Color.alpha(actualPixel); 166 assertEquals(expectedAlpha * alpha / ALPHA_OPAQUE, actualAlpha, 1);
|
RadialGradientTest.java | 99 int alpha = (int) ((1d - delta) * Color.alpha(colors[i1]) + local 100 delta * Color.alpha(colors[i2])); 107 color = Color.argb(alpha, red, green, blue); 111 assertEquals(Color.alpha(color), Color.alpha(pixel), tolerance);
|
SweepGradientTest.java | 129 int alpha = (int) ((1d - delta) * Color.alpha(colors[i1]) + local 130 delta * Color.alpha(colors[i2])); 137 color = Color.argb(alpha, red, green, blue); 143 assertEquals(Color.alpha(color), Color.alpha(pixel), tolerance);
|
/external/libpng/contrib/pngminus/ |
pnm2png.c | 52 BOOL pnm2png (FILE *pnm_file, FILE *png_file, FILE *alpha_file, BOOL interlace, BOOL alpha); 67 BOOL alpha = FALSE; local 80 alpha = TRUE; 85 fprintf (stderr, "Error: alpha-channel file %s does not exist\n", 143 if (pnm2png (fp_rd, fp_wr, fp_al, interlace, alpha) == FALSE) 154 /* close alpha file */ 155 if (alpha) 178 fprintf (stderr, " -a[lpha] <file>.pgm read PNG alpha channel as pgm-file\n"); 186 BOOL pnm2png (FILE *pnm_file, FILE *png_file, FILE *alpha_file, BOOL interlace, BOOL alpha) 272 /* read header of PGM file with alpha channel * [all...] |
/external/skia/src/animator/ |
SkDrawColor.cpp | 105 SK_PROPERTY(alpha), 117 SK_MEMBER_PROPERTY(alpha, Float), 161 SkDebugf("alpha=\"%d\" red=\"%d\" green=\"%d\" blue=\"%d\" />\n", 188 case SK_PROPERTY(alpha): 235 case SK_PROPERTY(alpha): 236 uint8_t alpha; 238 alpha = scalar == SK_Scalar1 ? 255 : SkToU8((U8CPU) (scalar * 256)); 240 alpha = SkToU8((scalar - (scalar >= SK_ScalarHalf)) >> 8); 242 color = SkColorSetARGB(alpha, SkColorGetR(color),
|
/frameworks/base/media/libstagefright/codecs/amrnb/enc/src/ |
g_adapt.cpp | 354 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;
|
/external/webkit/WebCore/html/canvas/ |
CanvasRenderingContext2D.h | 113 void setStrokeColor(const String& color, float alpha); 114 void setStrokeColor(float grayLevel, float alpha); 120 void setFillColor(const String& color, float alpha); 121 void setFillColor(float grayLevel, float alpha); 150 void setShadow(float width, float height, float blur, const String& color, float alpha); 151 void setShadow(float width, float height, float blur, float grayLevel, float alpha);
|
/external/webkit/WebKitTools/DumpRenderTree/mac/ |
TextInputController.m | 74 || aSelector == @selector(addColorAttribute:red:green:blue:alpha:) 75 || aSelector == @selector(addColorAttribute:red:green:blue:alpha:from:length:) 94 if (aSelector == @selector(addColorAttribute:red:green:blue:alpha:)) 96 if (aSelector == @selector(addColorAttribute:red:green:blue:alpha:from:length:)) 132 - (void)addColorAttribute:(NSString *)attrName red:(float)red green:(float)green blue:(float)blue alpha:(float)alpha 134 [self addAttribute:attrName value:[NSColor colorWithDeviceRed:red green:green blue:blue alpha:alpha] range:NSMakeRange(0, [self length])]; 137 - (void)addColorAttribute:(NSString *)attrName red:(float)red green:(float)green blue:(float)blue alpha:(float)alpha from:(int)from length:(int)lengt [all...] |
/frameworks/base/graphics/java/android/graphics/ |
Color.java | 26 * 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) | 51 * Return the alpha component of a color int. This is the same as saying 54 public static int alpha(int color) { method in class:Color 84 * The alpha component is implicity 255 (fully opaque). 97 * Return a color-int from alpha, red, green, blue components. 101 * @param alpha Alpha component [0..255] of the color 106 public static int argb(int alpha, int red, int green, int blue) [all...] |
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/ |
BitmapTest.java | 167 private static int computePrePostMul(int alpha, int comp) { 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);
|
/packages/apps/Camera/src/com/android/camera/ui/ |
PopupWindow.java | 200 Animation alpha = new AlphaAnimation(0.5f, 1.0f); local 203 set.addAnimation(alpha); 205 alpha.setDuration(100); 212 Animation alpha = new AlphaAnimation(0.7f, 0.0f); local 213 alpha.setDuration(100); 214 startAnimation(alpha);
|
/external/stlport/test/unit/ |
ctype_facets_test.cpp | 36 CPPUNIT_ASSERT( ct.is(ctype_base::alpha, 'A') ); 54 CPPUNIT_ASSERT( (res[1] & ctype_base::alpha) != 0 ); 59 CPPUNIT_ASSERT( (res[2] & ctype_base::alpha) != 0 ); 80 res = ct.scan_is((ctype_base::mask)(ctype_base::alpha | ctype_base::lower), rbeg, rend); 100 res = ct.scan_not((ctype_base::mask)(ctype_base::alpha | ctype_base::lower), rbeg, rend); 104 res = ct.scan_not(ctype_base::alpha, rbeg, rend); 180 CPPUNIT_CHECK( wct.is(ctype_base::alpha, L'A') ); 198 CPPUNIT_CHECK( (res[1] & ctype_base::alpha) != 0 ); 203 CPPUNIT_CHECK( (res[2] & ctype_base::alpha) != 0 ); 224 res = wct.scan_is((ctype_base::mask)(ctype_base::alpha | ctype_base::lower), rbeg, rend) [all...] |
/ndk/tests/device/test-gnustl-full/unit/ |
ctype_facets_test.cpp | 36 CPPUNIT_ASSERT( ct.is(ctype_base::alpha, 'A') ); 54 CPPUNIT_ASSERT( (res[1] & ctype_base::alpha) != 0 ); 59 CPPUNIT_ASSERT( (res[2] & ctype_base::alpha) != 0 ); 80 res = ct.scan_is((ctype_base::mask)(ctype_base::alpha | ctype_base::lower), rbeg, rend); 100 res = ct.scan_not((ctype_base::mask)(ctype_base::alpha | ctype_base::lower), rbeg, rend); 104 res = ct.scan_not(ctype_base::alpha, rbeg, rend); 180 CPPUNIT_CHECK( wct.is(ctype_base::alpha, L'A') ); 198 CPPUNIT_CHECK( (res[1] & ctype_base::alpha) != 0 ); 203 CPPUNIT_CHECK( (res[2] & ctype_base::alpha) != 0 ); 224 res = wct.scan_is((ctype_base::mask)(ctype_base::alpha | ctype_base::lower), rbeg, rend) [all...] |