HomeSort by relevance Sort by last modified time
    Searched refs:getPixel (Results 1 - 25 of 72) sorted by null

1 2 3

  /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.CYAN, 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));
PictureTest.java 92 assertEquals(Color.BLUE, bitmap.getPixel(0, 0));
94 assertEquals(Color.RED, bitmap.getPixel(x, 0));
99 assertEquals(Color.GREEN, 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);
PathDashPathEffectTest.java 65 if (expected.getPixel(x, y) != b.getPixel(x, y)) {
  /sdk/chimpchat/src/com/android/chimpchat/adb/image/
SixteenBitColorModel.java 45 private int getPixel(Object inData) {
60 int pixel = getPixel(inData);
66 int pixel = getPixel(inData);
72 int pixel = getPixel(inData);
ThirtyTwoBitColorModel.java 70 private int getPixel(Object inData) {
82 int pixel = getPixel(inData);
91 int pixel = getPixel(inData);
97 int pixel = getPixel(inData);
103 int pixel = getPixel(inData);
  /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) {
  /sdk/chimpchat/src/com/android/chimpchat/core/
IChimpImage.java 34 int getPixel(int x, int y);
  /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...]
  /cts/tests/tests/graphics/src/android/graphics/drawable/cts/
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));
  /sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/layout/gle2/
SwtUtilsTest.java 72 RGB actual = outPalette.getRGB(outData.getPixel(x, y));
126 RGB actual = outPalette.getRGB(outData.getPixel(x, y));
156 RGB actual = outPalette.getRGB(outData.getPixel(x, y));
193 RGB actual = outPalette.getRGB(outData.getPixel(x, y));
259 RGB actual = outPalette.getRGB(outData.getPixel(x, y));
298 RGB actual = outPalette.getRGB(outData.getPixel(x, y));
310 RGB actual = outPalette.getRGB(outData.getPixel(x, y));

Completed in 6159 milliseconds

1 2 3