/cts/tests/tests/view/src/android/view/cts/surfacevalidator/ |
D | PixelCounter.rs | 22 static void countBlackishPixelsAccum(int *accum, uchar4 pixel){ 23 if (pixel.r < THRESHOLD 24 && pixel.g < THRESHOLD 25 && pixel.b < THRESHOLD) {
|
/cts/tests/tests/view/src/android/view/cts/ |
D | TextureViewTest.java | 98 int pixel = screenshot.getPixel(point.x, point.y); in getPixel() local 100 return pixel; in getPixel() 106 int pixel = getPixel(point); in waitForColor() local 107 if (pixel == color) { in waitForColor() 118 int pixel = getPixel(point); in waitForChange() local 119 if (pixel != color) { in waitForChange() 120 return pixel; in waitForChange()
|
D | PixelCopyTest.java | 517 int pixel = bitmap.getPixel(x, y); in assertBitmapColor() local 518 if (!pixelsAreSame(color, pixel, 10)) { in assertBitmapColor() 520 + Integer.toHexString(pixel)); in assertBitmapColor() 525 int pixel = bitmap.getPixel(x, y); in assertBitmapNotColor() local 526 if (pixelsAreSame(color, pixel, 10)) { in assertBitmapNotColor() 527 fail(debug + "; actual=" + Integer.toHexString(pixel) in assertBitmapNotColor()
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/ |
D | ImageCompare.java | 30 private static double luma(int pixel) { in luma() argument 31 final int R = Color.red(pixel); in luma() 32 final int G = Color.green(pixel); in luma() 33 final int B = Color.blue(pixel); in luma()
|
D | pixel_format_f32.rsh | 4 // FocusPixel is the pixel format in the input image, which serves the 11 // whether or not a pixel is on the current target layer. For pixels that are 12 // active or not active but "close enough" to an active pixel, a matte value is 33 // active = 1: the pixel is on the target layer;
|
D | layered_filter_f32_helper.rsh | 12 // @param x x-coordinate of a pixel in a padded image. 13 // @param y y-coordinate of a pixel in a padded image. 16 // active pixel to (x,y). Sets the closest distance to sharp->matte and sets the 17 // depth of the closest pixel to sharp->dilated_depth. 29 // Initializes the minimum distance from this pixel to the active pixels on 44 // Whether or not this is an active pixel with a smaller distance. 79 // Locates the top left corner of the window surrounding this pixel. 127 // Locates the top left corner of the window surrounding this pixel. 164 // Locates the top left corner of the window surrounding this pixel.
|
D | layered_filter_d1new_helper.rsh | 29 // @param x x-coordinate of a pixel in a padded image. 30 // @param y y-coordinate of a pixel in a padded image. 33 // active pixel to (x,y). Sets the closest distance to sharp->matte and sets the 34 // depth of the closest pixel to sharp->dilated_depth. 48 // Initializes the minimum distance from this pixel to the active pixels on 64 // Whether or not this is an active pixel with a smaller distance. 89 // Initializes the minimum distance from this pixel to the active pixels on 105 // Whether or not this is an active pixel with a smaller distance. 139 // Locates the top left corner of the window surrounding this pixel. 190 // Locates the top left corner index of the window surrounding this pixel. [all …]
|
D | luts_for_speedup_f32.rsh | 4 // Defines several LUTs for speed up for uint8 pixel type. 11 // depth y is visible in the presence of a pixel with depth x.
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/offscreen/ |
D | ProjectionOffscreenActivity.java | 253 int pixel = 0; in scanImage() local 254 pixel |= (buffer.get(offset) & 0xff) << 16; // R in scanImage() 255 pixel |= (buffer.get(offset + 1) & 0xff) << 8; // G in scanImage() 256 pixel |= (buffer.get(offset + 2) & 0xff); // B in scanImage() 257 pixel |= (buffer.get(offset + 3) & 0xff) << 24; // A in scanImage() 258 if (pixel == Color.BLACK || pixel == 0) { in scanImage() 260 } else if (pixel == Color.BLUE) { in scanImage() 265 Log.d(TAG, "- Found unexpected color: " + Integer.toHexString(pixel)); in scanImage()
|
/cts/tests/tests/display/src/android/display/cts/ |
D | VirtualDisplayTest.java | 399 int pixel = 0; in scanImage() local 400 pixel |= (buffer.get(offset) & 0xff) << 16; // R in scanImage() 401 pixel |= (buffer.get(offset + 1) & 0xff) << 8; // G in scanImage() 402 pixel |= (buffer.get(offset + 2) & 0xff); // B in scanImage() 403 pixel |= (buffer.get(offset + 3) & 0xff) << 24; // A in scanImage() 404 if (pixel == Color.BLACK || pixel == 0) { in scanImage() 406 } else if (pixel == BLUEISH) { in scanImage() 408 } else if (pixel == GREENISH) { in scanImage() 413 Log.d(TAG, "- Found unexpected color: " + Integer.toHexString(pixel)); in scanImage()
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | DiscretePathEffectTest.java | 88 int pixel = bitmap.getPixel(x, y); in testDiscretePathEffect() local 89 if (Color.green(pixel) > 0) { in testDiscretePathEffect() 93 assertEquals(0xFF, Color.blue(pixel)); in testDiscretePathEffect() 94 if (Color.red(pixel) > 0) { in testDiscretePathEffect()
|
D | EmbossMaskFilterTest.java | 94 int pixel = b.getPixel(x, y); in brightness() local 95 color += Color.red(pixel) + Color.green(pixel) + Color.blue(pixel); in brightness()
|
D | SweepGradientTest.java | 133 int pixel = mBitmap.getPixel(x, y); in verifyColors() local 136 assertEquals(Color.alpha(color), Color.alpha(pixel), tolerance); in verifyColors() 137 assertEquals(Color.red(color), Color.red(pixel), tolerance); in verifyColors() 138 assertEquals(Color.green(color), Color.green(pixel), tolerance); in verifyColors() 139 assertEquals(Color.blue(color), Color.blue(pixel), tolerance); in verifyColors() 142 + "pixel=" + Integer.toHexString(pixel) + ", color=" in verifyColors()
|
D | ComposeShaderTest.java | 65 int pixel = bitmap.getPixel(x, y); in testPorterDuff() local 67 assertEquals(0xFF, Color.alpha(pixel), TOLERANCE); in testPorterDuff() 68 assertEquals(y, Color.red(pixel), TOLERANCE); in testPorterDuff() 69 assertEquals(green, Color.green(pixel), TOLERANCE); in testPorterDuff() 70 assertEquals(x, Color.blue(pixel), TOLERANCE); in testPorterDuff()
|
D | CornerPathEffectTest.java | 89 int pixel = bitmap.getPixel(x, y); in testCornerPathEffect() local 90 if (Color.green(pixel) > 0) { in testCornerPathEffect() 93 assertEquals(Color.YELLOW, pixel); in testCornerPathEffect()
|
D | PaintFlagsDrawFilterTest.java | 97 int pixel = bitmap.getPixel(x, y); in verifyUnderline() local 98 if (pixel == Color.RED) { in verifyUnderline()
|
D | BitmapColorSpaceTest.java | 333 int pixel = pixels[i]; in verifyGetPixels() local 334 almostEqual(expected, pixel, 3, i); in verifyGetPixels() 729 @ColorInt int pixel, int threshold, int index) { in almostEqual() argument 730 int diffA = Math.abs(expected >>> 24 - pixel >>> 24); in almostEqual() 731 int diffR = Math.abs((expected >> 16) & 0xff - (pixel >> 16) & 0xff); in almostEqual() 732 int diffG = Math.abs((expected >> 8) & 0xff - (pixel >> 8) & 0xff); in almostEqual() 733 int diffB = Math.abs((expected ) & 0xff - (pixel ) & 0xff); in almostEqual() 738 " but was 0x" + Integer.toHexString(pixel) + " with index " + index); in almostEqual()
|
/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/uirendering/src/android/uirendering/cts/bitmapcomparers/ |
D | MSSIMComparer.java | 152 private double getIntensity(int pixel) { in getIntensity() argument 155 l += (0.21f * Math.pow(Color.red(pixel) / 255f, gamma)); in getIntensity() 156 l += (0.72f * Math.pow(Color.green(pixel) / 255f, gamma)); in getIntensity() 157 l += (0.07f * Math.pow(Color.blue(pixel) / 255f, gamma)); in getIntensity()
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | ColorDrawableTest.java | 167 final int pixel = b.getPixel(0, 0); in testDraw() local 169 assertEquals(Color.WHITE, pixel); in testDraw()
|
D | DrawableTestUtils.java | 208 final int pixel = b.getPixel(x, y); in getPixel() local 210 return pixel; in getPixel()
|
/cts/tests/tests/assist/service/src/android/voiceinteraction/service/ |
D | MainInteractionSession.java | 182 for (int pixel : pixels) { in compareScreenshot() 183 if (pixel == color) { in compareScreenshot()
|