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

1 2 3 4 5 6 7 8 9

  /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));
76 assertColor(Color.argb(128, 255, 0, 64), bitmap.getPixel(0, 0), 2);
80 assertColor(Color.CYAN, bitmap.getPixel(0, 0));
87 assertColor(Color.CYAN, bitmap.getPixel(0, 0));
91 assertColor(Color.BLUE, bitmap.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));
  /external/pdfium/core/src/fxcodec/jbig2/
JBig2_GrrdProc.cpp 49 line1 = GRREG->getPixel(1, h - 1);
50 line1 |= GRREG->getPixel(0, h - 1) << 1;
52 line3 = GRREFERENCE->getPixel(-GRREFERENCEDX + 1, h - GRREFERENCEDY - 1);
53 line3 |= GRREFERENCE->getPixel(-GRREFERENCEDX, h - GRREFERENCEDY - 1)
55 line4 = GRREFERENCE->getPixel(-GRREFERENCEDX + 1, h - GRREFERENCEDY);
56 line4 |= GRREFERENCE->getPixel(-GRREFERENCEDX, h - GRREFERENCEDY) << 1;
57 line4 |= GRREFERENCE->getPixel(-GRREFERENCEDX - 1, h - GRREFERENCEDY)
59 line5 = GRREFERENCE->getPixel(-GRREFERENCEDX + 1, h - GRREFERENCEDY + 1);
60 line5 |= GRREFERENCE->getPixel(-GRREFERENCEDX, h - GRREFERENCEDY + 1)
62 line5 |= GRREFERENCE->getPixel(-GRREFERENCEDX - 1, h - GRREFERENCEDY + 1
    [all...]
JBig2_GrdProc.cpp 172 line1 = GBREG->getPixel(1, h - 2);
173 line1 |= GBREG->getPixel(0, h - 2) << 1;
174 line2 = GBREG->getPixel(2, h - 1);
175 line2 |= GBREG->getPixel(1, h - 1) << 1;
176 line2 |= GBREG->getPixel(0, h - 1) << 2;
179 if (USESKIP && SKIP->getPixel(w, h)) {
183 CONTEXT |= GBREG->getPixel(w + GBAT[0], h + GBAT[1]) << 4;
185 CONTEXT |= GBREG->getPixel(w + GBAT[2], h + GBAT[3]) << 10;
186 CONTEXT |= GBREG->getPixel(w + GBAT[4], h + GBAT[5]) << 11;
188 CONTEXT |= GBREG->getPixel(w + GBAT[6], h + GBAT[7]) << 15
    [all...]
  /hardware/bsp/intel/peripheral/libupm/src/lol/
lol.h 82 unsigned char getPixel(int x, int y);
  /frameworks/opt/setupwizard/library/test/src/com/android/setupwizardlib/test/
GlifPatternDrawableTest.java 40 assertEquals("Top left pixel should be #ed0000", 0xffed0000, bitmap.getPixel(0, 0));
41 assertEquals("Center pixel should be #d30000", 0xffd30000, bitmap.getPixel(683, 384));
43 bitmap.getPixel(1365, 767));
64 assertEquals("Top left pixel should be #ed0000", 0xffed0000, bitmap.getPixel(0, 0));
65 assertEquals("Center pixel should be #d30000", 0xffd30000, bitmap.getPixel(683, 384));
67 bitmap.getPixel(1365, 767));
  /hardware/bsp/intel/peripheral/libupm/examples/java/
LoL_exampleSample.java 44 short pixel = sensor.getPixel(x, 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/
ColorDrawableTest.java 123 assertEquals(Color.WHITE, DrawableTestUtils.getPixel(d, 0, 0));
126 assertEquals(Color.BLACK, DrawableTestUtils.getPixel(d, 0, 0));
129 assertEquals(Color.BLACK, DrawableTestUtils.getPixel(d, 0, 0));
134 assertEquals(Color.WHITE, DrawableTestUtils.getPixel(d, 0, 0));
138 assertEquals(Color.BLACK, DrawableTestUtils.getPixel(d, 0, 0));
147 final int pixel = b.getPixel(0, 0);
  /cts/tests/tests/graphics/src/android/graphics/drawable/shapes/cts/
PathShapeTest.java 67 assertEquals(TEST_COLOR_1, bitmap.getPixel(50, 50));
78 if (bitmap.getPixel(25, i) == TEST_COLOR_2) {
81 if (bitmap.getPixel(i, 25) == TEST_COLOR_2) {
84 if (bitmap.getPixel(i, i) == TEST_COLOR_2) {
RoundRectShapeTest.java 76 assertEquals(0, bitmap.getPixel(0, 0));
77 assertEquals(TEST_COLOR_1, bitmap.getPixel(TEST_WIDTH / 2, 0));
81 assertEquals(0, bitmap.getPixel(0, 0));
82 assertEquals(TEST_COLOR_2, bitmap.getPixel(TEST_WIDTH / 2, 0));
ArcShapeTest.java 61 assertEquals(TEST_COLOR_1, bitmap.getPixel(TEST_WIDTH / 2, TEST_HEIGHT / 2));
71 if (bitmap.getPixel(i, i) == TEST_COLOR_2) {
  /hardware/bsp/intel/peripheral/libupm/examples/c++/
lol-example.cxx 55 sensor->setPixel(x, y, !(sensor->getPixel(x, y)));
  /cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/
ImageCompare.java 67 int pixel1 = bitmap1.getPixel(x, y);
68 int pixel2 = bitmap2.getPixel(x, y);
  /cts/tests/tests/view/src/android/view/cts/
TextureViewTest.java 76 assertEquals(Color.WHITE, getPixel(center));
90 private int getPixel(Point point) {
92 int pixel = screenshot.getPixel(point.x, point.y);
100 int pixel = getPixel(point);
112 int pixel = getPixel(point);
  /packages/apps/ManagedProvisioning/tests/src/com/android/managedprovisioning/
LogoUtilsTest.java 50 assertEquals(SAMPLE_COLOR, newBitmap.getPixel(5, 5));
64 assertEquals(SAMPLE_COLOR, newBitmap.getPixel(1, 1));
76 assertEquals(SAMPLE_COLOR, newBitmap.getPixel(2, 2));
86 assertEquals(SAMPLE_COLOR, newBitmap.getPixel(2, 2));
94 assertEquals(SAMPLE_COLOR, newBitmap.getPixel(2, 2));
142 assertEquals(b1.getPixel(x, y), b2.getPixel(x, y));
  /packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
PhotoProcessorTest.java 51 assertEquals(Color.argb(255, 255, 255, 255), normalized.getPixel(0, 0));
  /external/deqp/framework/common/
tcuSurface.hpp 57 RGBA getPixel (int x, int y) const;
87 inline RGBA Surface::getPixel (int x, int y) const

Completed in 396 milliseconds

1 2 3 4 5 6 7 8 9