/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/display/src/android/display/cts/ |
D | VirtualDisplayTest.java | 358 int pixel = 0; in scanImage() local 359 pixel |= (buffer.get(offset) & 0xff) << 16; // R in scanImage() 360 pixel |= (buffer.get(offset + 1) & 0xff) << 8; // G in scanImage() 361 pixel |= (buffer.get(offset + 2) & 0xff); // B in scanImage() 362 pixel |= (buffer.get(offset + 3) & 0xff) << 24; // A in scanImage() 363 if (pixel == Color.BLACK || pixel == 0) { in scanImage() 365 } else if (pixel == BLUEISH) { in scanImage() 367 } else if (pixel == GREENISH) { in scanImage() 372 Log.d(TAG, "- Found unexpected color: " + Integer.toHexString(pixel)); in scanImage()
|
/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()
|
/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/nativeopengl/standalone/jni/tests/ |
D | GLTest_test.cpp | 192 GLubyte pixel[4]; in TEST_F() local 193 glReadPixels(0, 0, 1, 1, GL_RGBA, GL_UNSIGNED_BYTE, pixel); in TEST_F() 195 ASSERT_PRED_FORMAT3(AssertPixel, pixel, expected, 2); in TEST_F()
|