Searched refs:pixel (Results 1 – 8 of 8) sorted by relevance
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | ComposeShaderTest.java | 59 int pixel = bitmap.getPixel(x, y); in testPorterDuff() local 61 assertEquals(0xFF, Color.alpha(pixel), TOLERANCE); in testPorterDuff() 62 assertEquals(y, Color.red(pixel), TOLERANCE); in testPorterDuff() 63 assertEquals(green, Color.green(pixel), TOLERANCE); in testPorterDuff() 64 assertEquals(x, Color.blue(pixel), TOLERANCE); in testPorterDuff()
|
D | SweepGradientTest.java | 121 int pixel = mBitmap.getPixel(x, y); in checkColors() local 124 assertEquals(Color.alpha(color), Color.alpha(pixel), tolerance); in checkColors() 125 assertEquals(Color.red(color), Color.red(pixel), tolerance); in checkColors() 126 assertEquals(Color.green(color), Color.green(pixel), tolerance); in checkColors() 127 assertEquals(Color.blue(color), Color.blue(pixel), tolerance); in checkColors() 133 System.out.println(Integer.toHexString(pixel)); in checkColors()
|
D | DiscretePathEffectTest.java | 80 int pixel = bitmap.getPixel(x, y); in testDiscretePathEffect() local 81 if (Color.green(pixel) > 0) { in testDiscretePathEffect() 85 assertEquals(0xFF, Color.blue(pixel)); in testDiscretePathEffect() 86 if (Color.red(pixel) > 0) { in testDiscretePathEffect()
|
D | EmbossMaskFilterTest.java | 86 int pixel = b.getPixel(x, y); in brightness() local 87 color += Color.red(pixel) + Color.green(pixel) + Color.blue(pixel); in brightness()
|
D | CornerPathEffectTest.java | 81 int pixel = bitmap.getPixel(x, y); in testCornerPathEffect() local 82 if (Color.green(pixel) > 0) { in testCornerPathEffect() 85 assertEquals(Color.YELLOW, pixel); in testCornerPathEffect()
|
D | PaintFlagsDrawFilterTest.java | 94 int pixel = bitmap.getPixel(x, y); in assertUnderline() local 95 if (pixel == Color.RED) { in assertUnderline()
|
/cts/tests/tests/opengl/src/android/opengl/cts/ |
D | RendererOneColorBufferTest.java | 214 int pixel = pin[0]; in doOnDrawFrame() local 215 float a = (pixel >> 24) & 0xFF; in doOnDrawFrame() 216 float b = (pixel >> 16) & 0xFF; in doOnDrawFrame() 217 float g = (pixel >> 8) & 0xFF; in doOnDrawFrame() 218 float r = pixel & 0xFF; in doOnDrawFrame()
|
/cts/tests/tests/openglperf/src/android/openglperf/cts/ |
D | TextureTestRenderer.java | 121 IntBuffer pixel = ByteBuffer.allocateDirect(4).asIntBuffer(); in onDrawFrame() local 123 GL10.GL_UNSIGNED_BYTE, pixel); in onDrawFrame() 124 pixel.position(0); in onDrawFrame() 125 Log.i(TAG, "pixel read " + Integer.toHexString(pixel.get(0))); in onDrawFrame() 127 Assert.assertEquals(0x0000ffff, pixel.get(0)); // BLUE in RGBA in onDrawFrame()
|