/frameworks/base/core/tests/coretests/src/android/graphics/drawable/ |
D | AdaptiveIconDrawableTest.java | 200 assertEquals(255, Color.alpha(bitmap.getPixel(50, 50))); in testSetAlpha() 205 assertEquals(200, Color.alpha(bitmap.getPixel(50, 50))); in testSetAlpha() 210 assertEquals(100, Color.alpha(bitmap.getPixel(50, 50))); in testSetAlpha() 232 int ra = (a.getPixel(i, j) >> 16) & 0xff; in equalBitmaps() 233 int ga = (a.getPixel(i, j) >> 8) & 0xff; in equalBitmaps() 234 int ba = a.getPixel(i, j) & 0xff; in equalBitmaps() 235 int rb = (b.getPixel(i, j) >> 16) & 0xff; in equalBitmaps() 236 int gb = (b.getPixel(i, j) >> 8) & 0xff; in equalBitmaps() 237 int bb = b.getPixel(i, j) & 0xff; in equalBitmaps() 238 if (region.contains(i, j) && a.getPixel(i, j) != b.getPixel(i, j) ) { in equalBitmaps()
|
D | IconTest.java | 361 if (region.contains(i, j) && a.getPixel(i, j) != b.getPixel(i, j)) { in equalBitmaps()
|
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/ |
D | GlifPatternDrawableTest.java | 57 assertSameColor("Top left pixel should be #e61a1a", 0xffe61a1a, bitmap.getPixel(0, 0)); in testDraw() 58 assertSameColor("Center pixel should be #d90d0d", 0xffd90d0d, bitmap.getPixel(683, 384)); in testDraw() 59 assertSameColor("Bottom right pixel should be #d40808", 0xffd40808, bitmap.getPixel(1365, 767)); in testDraw() 80 assertSameColor("Top left pixel should be #e61a1a", 0xffe61a1a, bitmap.getPixel(0, 0)); in testDrawTwice() 81 assertSameColor("Center pixel should be #d90d0d", 0xffd90d0d, bitmap.getPixel(683, 384)); in testDrawTwice() 82 assertSameColor("Bottom right pixel should be #d40808", 0xffd40808, bitmap.getPixel(1365, 767)); in testDrawTwice()
|
/frameworks/base/apct-tests/perftests/core/src/android/graphics/perftests/ |
D | VectorDrawablePerfTest.java | 78 int backgroundColor = bmp.getPixel(w / 4, h / 2); in testBitmapDrawPerf() 79 int objColor = bmp.getPixel(w / 8, h / 2 + 1); in testBitmapDrawPerf() 80 int emptyColor = bmp.getPixel(w * 3 / 4, h * 3 / 4); in testBitmapDrawPerf()
|
/frameworks/base/core/tests/coretests/src/android/graphics/ |
D | BitmapTest.java | 98 int p = bm.getPixel(i % 10, i / 10); in testGetPixelsWithAlpha() 103 int p = bm.getPixel(i % 10, i / 10); in testGetPixelsWithAlpha() 123 int p = bm.getPixel(i % 10, i / 10); in testGetPixelsWithoutAlpha() 145 bm1.getPixel(i % 10, i / 10), bm2.getPixel(i % 10, i / 10)); in testSetPixelsWithAlpha() 150 bm1.getPixel(i % 10, i / 10), colors[i]); in testSetPixelsWithAlpha() 170 assertEquals("setPixel", bm1.getPixel(i % 10, i / 10), in testSetPixelsWithoutAlpha() 171 bm2.getPixel(i % 10, i / 10)); in testSetPixelsWithoutAlpha() 204 int c1 = bm1.getPixel(i % 16, i / 16); in testSetPixelsWithNonOpaqueAlpha() 205 int c2 = bm2.getPixel(i % 16, i / 16); in testSetPixelsWithNonOpaqueAlpha()
|
/frameworks/base/core/tests/coretests/src/android/content/ |
D | ContentResolverTest.java | 97 assertEquals(Color.BLUE, bitmap.getPixel(halfX - 10, halfY - 10)); in assertImageAspectAndContents() 98 assertEquals(Color.RED, bitmap.getPixel(halfX + 10, halfY - 10)); in assertImageAspectAndContents() 99 assertEquals(Color.RED, bitmap.getPixel(halfX - 10, halfY + 10)); in assertImageAspectAndContents() 100 assertEquals(Color.RED, bitmap.getPixel(halfX + 10, halfY + 10)); in assertImageAspectAndContents()
|
/frameworks/native/services/surfaceflinger/tests/hwc2/ |
D | Hwc2TestPixelComparator.cpp | 24 uint32_t ComparatorResult::getPixel(int32_t x, int32_t y, uint32_t stride, in getPixel() function in ComparatorResult 57 uint32_t result = getPixel(x, y, resultBuffer->getStride(), in CompareBuffers() 59 uint32_t expected = getPixel(x, y, expectedBuffer->getStride(), in CompareBuffers()
|
D | Hwc2TestPixelComparator.h | 48 uint32_t getPixel(int32_t x, int32_t y, uint32_t stride, uint8_t* img) const;
|
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/ |
D | ImageCompare.java | 67 int pixel1 = bitmap1.getPixel(x, y); in psnr() 68 int pixel2 = bitmap2.getPixel(x, y); in psnr()
|
D | RGBZ.java | 177 return getDepthTransform().reconstruct(Color.blue(depthBitmap.getPixel(x, y))); in getDepth()
|
/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/ |
D | ErrorCalculator.java | 155 int idealColor = ideal.getPixel(x, y); in calcError() 156 int givenColor = given.getPixel(x, y); in calcError() 178 int regionColor = ideal.getPixel(x, y); in inspectRegion() 181 if (ideal.getPixel(x + i, y + j) != regionColor) in inspectRegion()
|
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/util/ |
D | DrawingTestHelper.java | 89 public int getPixel(int x, int y) { in getPixel() method in DrawingTestHelper 90 return mBitmap.getPixel(x, y); in getPixel()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/clock/ |
D | ViewPreviewerTest.kt | 54 assertThat(bitmap.getPixel(0, 0)).isEqualTo(Color.RED) in testCreatePreview()
|
/frameworks/opt/setupwizard/library/recyclerview/test/instrumentation/src/com/android/setupwizardlib/test/ |
D | DividerItemDecorationTest.java | 188 expected.getPixel(x, y), in assertBitmapEquals() 189 actual.getPixel(x, y)); in assertBitmapEquals()
|
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/drawable/ |
D | UserIconDrawableTest.java | 69 assertThat(bitmap.getPixel(0, 0)).isEqualTo(Color.BLUE); in setTintList_shouldBeApplied()
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/ |
D | CodecTest.java | 565 if (goldenBitmap.getPixel(x, j) != outThumbnail.getPixel(x, j)) { in getThumbnail() 566 Log.v(TAG, "pixel = " + goldenBitmap.getPixel(x, j)); in getThumbnail()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/glwallpaper/ |
D | ImageProcessHelper.java | 144 int pixel = grayscale.getPixel(col, row); in getHistogram()
|
/frameworks/base/core/tests/coretests/src/android/view/textclassifier/ |
D | TextClassificationTest.java | 181 assertEquals(iconColor, resultIcon.getPixel(0, 0)); in testParcelLegacy()
|
/frameworks/base/packages/EasterEgg/src/com/android/egg/paint/ |
D | Painting.kt | 285 return bitmap?.getPixel(localX, localY) ?: Color.BLACK in sampleAt()
|
/frameworks/base/core/tests/coretests/src/android/transition/ |
D | FadeTransitionTest.java | 152 assertEquals(0xFFFF0000, copy.getPixel(1, 1)); in testSnapshotView()
|
/frameworks/base/graphics/java/android/graphics/ |
D | Bitmap.java | 1859 public int getPixel(int x, int y) { in getPixel() method in Bitmap
|
/frameworks/base/config/ |
D | boot-image-profile.txt | 5482 HSPLandroid/graphics/Bitmap;->getPixel(II)I
|
/frameworks/opt/setupwizard/tools/docs/ |
D | android-22.txt | 10449 method public int getPixel(int, int);
|
/frameworks/base/api/ |
D | current.txt | 13603 method @ColorInt public int getPixel(int, int);
|