/cts/tests/tests/graphics/src/android/graphics/cts/ |
LinearGradientTest.java | 41 assertEquals(b.getPixel(10, 10), b.getPixel(20, 10)); 43 assertTrue(Color.blue(b.getPixel(10, 0)) > Color.blue(b.getPixel(10, 5))); 44 assertTrue(Color.blue(b.getPixel(10, 5)) > Color.blue(b.getPixel(10, 10))); 45 assertTrue(Color.green(b.getPixel(10, 0)) < Color.green(b.getPixel(10, 5))); 46 assertTrue(Color.green(b.getPixel(10, 5)) < Color.green(b.getPixel(10, 10))) [all...] |
PorterDuffColorFilterTest.java | 49 assertEquals(Color.RED, target.getPixel(width / 4, height / 4)); 50 int lowerLeft = target.getPixel(width / 4, height * 3 / 4); 53 int lowerRight = target.getPixel(width * 3 / 4, height * 3 / 4); 62 assertEquals(Color.RED, target.getPixel(width / 4, height / 4)); 63 assertEquals(Color.BLUE, target.getPixel(width / 4, height * 3 / 4)); 64 assertEquals(Color.BLUE, target.getPixel(width * 3 / 4, height * 3 / 4)); 72 assertEquals(Color.RED, target.getPixel(width / 4, height / 4)); 73 assertEquals(Color.CYAN, target.getPixel(width / 4, height * 3 / 4)); 74 assertEquals(Color.CYAN, target.getPixel(width * 3 / 4, height * 3 / 4));
|
PorterDuffXfermodeTest.java | 47 assertEquals(Color.RED, target.getPixel(WIDTH / 4, HEIGHT / 4)); 48 assertEquals(Color.BLUE, target.getPixel(WIDTH / 4, HEIGHT * 3 / 4)); 49 assertEquals(Color.BLUE, target.getPixel(WIDTH * 3 / 4, HEIGHT * 3 / 4)); 56 assertEquals(Color.RED, target.getPixel(WIDTH / 4, HEIGHT / 4)); 57 assertEquals(Color.RED, target.getPixel(WIDTH / 4, HEIGHT * 3 / 4)); 58 assertEquals(Color.TRANSPARENT, target.getPixel(WIDTH * 3 / 4, HEIGHT * 3 / 4)); 65 assertEquals(Color.RED, target.getPixel(WIDTH / 4, HEIGHT / 4)); 66 assertEquals(Color.MAGENTA, target.getPixel(WIDTH / 4, HEIGHT * 3 / 4)); 67 assertEquals(Color.BLUE, target.getPixel(WIDTH * 3 / 4, HEIGHT * 3 / 4));
|
LightingColorFilterTest.java | 42 assertColor(Color.MAGENTA, bitmap.getPixel(0, 0)); 47 assertColor(Color.BLUE, bitmap.getPixel(0, 0)); 52 assertColor(Color.CYAN, bitmap.getPixel(0, 0)); 59 assertColor(Color.GREEN, bitmap.getPixel(0, 0)); 65 assertColor(Color.MAGENTA, bitmap.getPixel(0, 0)); 72 assertColor(Color.argb(255, 30, 30, 30), bitmap.getPixel(0, 0)); 80 assertColor(Color.argb(0x80, 30, 30, 30), bitmap.getPixel(0, 0));
|
ColorMatrixColorFilterTest.java | 50 assertColor(Color.CYAN, bitmap.getPixel(0, 0)); 53 assertColor(Color.GREEN, bitmap.getPixel(0, 0)); 56 assertColor(Color.RED, bitmap.getPixel(0, 0)); 60 assertColor(Color.WHITE, bitmap.getPixel(0, 0)); 73 assertColor(Color.argb(128, 255, 0, 64), bitmap.getPixel(0, 0)); 77 assertColor(Color.CYAN, bitmap.getPixel(0, 0)); 84 assertColor(Color.CYAN, bitmap.getPixel(0, 0)); 88 assertColor(Color.BLUE, bitmap.getPixel(0, 0));
|
AvoidXfermodeTest.java | 63 assertEquals(Color.GREEN, b.getPixel(BASE_SIZE / 2, BASE_SIZE / 2)); 64 assertEquals(Color.RED, b.getPixel(BASE_SIZE + BASE_SIZE / 2, BASE_SIZE / 2)); 65 assertEquals(Color.BLUE, b.getPixel(BASE_SIZE / 2, BASE_SIZE + BASE_SIZE / 2)); 66 assertEquals(Color.BLACK, b.getPixel(BASE_SIZE + BASE_SIZE / 2, BASE_SIZE + BASE_SIZE / 2));
|
PixelXorXfermodeTest.java | 44 assertEquals(Color.WHITE, target.getPixel(width / 4, height / 4)); 46 assertEquals(Color.YELLOW, target.getPixel(width / 4, height * 3 / 4)); 48 assertEquals(Color.BLUE, target.getPixel(width * 3 / 4, height * 3 / 4)); 56 assertEquals(255, Color.alpha(target.getPixel(0, 0)));
|
BlurMaskFilterTest.java | 66 checkColor(color, bitmap.getPixel(x, y), alphaTolerance); 67 checkColor(color, bitmap.getPixel(right - x, y), alphaTolerance); 68 checkColor(color, bitmap.getPixel(x, bottom - y), alphaTolerance); 69 checkColor(color, bitmap.getPixel(right - x, bottom - y), alphaTolerance);
|
DashPathEffectTest.java | 67 assertEquals(FOREGROUND, bitmap.getPixel(x, y)); 69 assertEquals(BACKGROUND, bitmap.getPixel(x, y)); 72 assertEquals(BACKGROUND, bitmap.getPixel(x, y));
|
ComposePathEffectTest.java | 67 assertEquals(expected.getPixel(x, y), actual.getPixel(x, y));
|
SumPathEffectTest.java | 68 assertEquals(expected.getPixel(i, j), bitmap.getPixel(i, j));
|
PaintFlagsDrawFilterTest.java | 77 pixelWithoutFilter = bitmapWithoutFilter.getPixel(i, j); 78 pixelWithFilter = bitmapWithFilter.getPixel(i, j); 94 int pixel = bitmap.getPixel(x, y); 167 int color = bitmap.getPixel(i, j); 183 int color = bitmap.getPixel(i, j);
|
PathDashPathEffectTest.java | 65 if (expected.getPixel(x, y) != b.getPixel(x, y)) {
|
/external/pdfium/core/src/fxcodec/jbig2/ |
JBig2_GeneralDecoder.cpp | 66 line1 = GBREG->getPixel(2, h - 2);
67 line1 |= GBREG->getPixel(1, h - 2) << 1;
68 line1 |= GBREG->getPixel(0, h - 2) << 2;
69 line2 = GBREG->getPixel(3, h - 1);
70 line2 |= GBREG->getPixel(2, h - 1) << 1;
71 line2 |= GBREG->getPixel(1, h - 1) << 2;
72 line2 |= GBREG->getPixel(0, h - 1) << 3;
75 if(USESKIP && SKIP->getPixel(w, h)) {
86 line1 = ((line1 << 1) | GBREG->getPixel(w + 3, h - 2)) & 0x1f;
87 line2 = ((line2 << 1) | GBREG->getPixel(w + 4, h - 1)) & 0x7f; [all...] |
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
DrawableTestingUtils.java | 25 public static int getPixel(Drawable d, int x, int y) { 33 final int pixel = b.getPixel(x, y);
|
ColorDrawableTest.java | 123 assertEquals(Color.WHITE, DrawableTestingUtils.getPixel(d, 0, 0)); 126 assertEquals(Color.BLACK, DrawableTestingUtils.getPixel(d, 0, 0)); 132 assertEquals(Color.WHITE, DrawableTestingUtils.getPixel(d, 0, 0)); 136 assertEquals(Color.BLACK, DrawableTestingUtils.getPixel(d, 0, 0));
|
PictureDrawableTest.java | 54 assertEquals(0xff0f0b0c, destBitmap.getPixel(10, 10)); 57 assertEquals(0xff0a0c0b, destBitmap.getPixel(10, 10));
|
TransitionDrawableTest.java | 139 int colorFrom = mBitmap.getPixel(0, 0); 147 colorFrom = mBitmap.getPixel(0, 0); 199 assertEquals(color, bmp.getPixel(i, j)); 207 assertTrue(color != bmp.getPixel(i, j));
|
/cts/tests/tests/graphics/src/android/graphics/drawable/shapes/cts/ |
RoundRectShapeTest.java | 74 assertEquals(0, bitmap.getPixel(0, 0)); 75 assertEquals(TEST_COLOR_1, bitmap.getPixel(TEST_WIDTH / 2, 0)); 79 assertEquals(0, bitmap.getPixel(0, 0)); 80 assertEquals(TEST_COLOR_2, bitmap.getPixel(TEST_WIDTH / 2, 0));
|
PathShapeTest.java | 64 assertEquals(TEST_COLOR_1, bitmap.getPixel(50, 50)); 75 if (bitmap.getPixel(25, i) == TEST_COLOR_2) { 78 if (bitmap.getPixel(i, 25) == TEST_COLOR_2) { 81 if (bitmap.getPixel(i, i) == TEST_COLOR_2) {
|
ArcShapeTest.java | 58 assertEquals(TEST_COLOR_1, bitmap.getPixel(TEST_WIDTH / 2, TEST_HEIGHT / 2)); 68 if (bitmap.getPixel(i, i) == TEST_COLOR_2) {
|
OvalShapeTest.java | 53 assertEquals(TEST_COLOR_1, bitmap.getPixel(TEST_WIDTH / 2, TEST_HEIGHT / 2)); 62 if (bitmap.getPixel(i, i) == TEST_COLOR_2) {
|
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/ |
BitmapTest.java | 92 int p = bm.getPixel(i % 10, i / 10); 97 int p = bm.getPixel(i % 10, i / 10); 98 assertEquals("getPixel", p, colors[i]); 117 int p = bm.getPixel(i % 10, i / 10); 139 bm1.getPixel(i % 10, i / 10), bm2.getPixel(i % 10, i / 10)); 144 bm1.getPixel(i % 10, i / 10), colors[i]); 164 assertEquals("setPixel", bm1.getPixel(i % 10, i / 10), 165 bm2.getPixel(i % 10, i / 10)); 198 int c1 = bm1.getPixel(i % 16, i / 16) [all...] |
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
PhotoProcessorTest.java | 51 assertEquals(Color.argb(255, 255, 255, 255), normalized.getPixel(0, 0));
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/draw9patch/graphics/ |
GraphicsUtilitiesTest.java | 52 assertEquals(0x0, result.getPixel(x, 0) & MASK_ALPHA); 55 assertEquals(0x0, result.getPixel(x, result.height - 1) & MASK_ALPHA); 62 assertEquals(0x0, result.getPixel(0, y) & MASK_ALPHA); 65 assertEquals(0x0, result.getPixel(result.width - 1, y) & MASK_ALPHA); 86 assertEquals(0x000000, baseData.getPixel(x, y)); 218 assertEquals(baseData.getPixel(0, y), temp[y]); 309 assertEquals(baseData.getPixel(x, 0), temp[x]);
|