Home
last modified time | relevance | path

Searched refs:getPixel (Results 1 – 24 of 24) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/graphics/drawable/
DAdaptiveIconDrawableTest.java200 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()
DIconTest.java361 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/
DGlifPatternDrawableTest.java57 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/
DVectorDrawablePerfTest.java78 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/
DBitmapTest.java98 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/
DContentResolverTest.java97 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/
DHwc2TestPixelComparator.cpp24 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()
DHwc2TestPixelComparator.h48 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/
DImageCompare.java67 int pixel1 = bitmap1.getPixel(x, y); in psnr()
68 int pixel2 = bitmap2.getPixel(x, y); in psnr()
DRGBZ.java177 return getDepthTransform().reconstruct(Color.blue(depthBitmap.getPixel(x, y))); in getDepth()
/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/
DErrorCalculator.java155 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/
DDrawingTestHelper.java89 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/
DViewPreviewerTest.kt54 assertThat(bitmap.getPixel(0, 0)).isEqualTo(Color.RED) in testCreatePreview()
/frameworks/opt/setupwizard/library/recyclerview/test/instrumentation/src/com/android/setupwizardlib/test/
DDividerItemDecorationTest.java188 expected.getPixel(x, y), in assertBitmapEquals()
189 actual.getPixel(x, y)); in assertBitmapEquals()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/drawable/
DUserIconDrawableTest.java69 assertThat(bitmap.getPixel(0, 0)).isEqualTo(Color.BLUE); in setTintList_shouldBeApplied()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/
DCodecTest.java565 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/
DImageProcessHelper.java144 int pixel = grayscale.getPixel(col, row); in getHistogram()
/frameworks/base/core/tests/coretests/src/android/view/textclassifier/
DTextClassificationTest.java181 assertEquals(iconColor, resultIcon.getPixel(0, 0)); in testParcelLegacy()
/frameworks/base/packages/EasterEgg/src/com/android/egg/paint/
DPainting.kt285 return bitmap?.getPixel(localX, localY) ?: Color.BLACK in sampleAt()
/frameworks/base/core/tests/coretests/src/android/transition/
DFadeTransitionTest.java152 assertEquals(0xFFFF0000, copy.getPixel(1, 1)); in testSnapshotView()
/frameworks/base/graphics/java/android/graphics/
DBitmap.java1859 public int getPixel(int x, int y) { in getPixel() method in Bitmap
/frameworks/base/config/
Dboot-image-profile.txt5482 HSPLandroid/graphics/Bitmap;->getPixel(II)I
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt10449 method public int getPixel(int, int);
/frameworks/base/api/
Dcurrent.txt13603 method @ColorInt public int getPixel(int, int);