Home
last modified time | relevance | path

Searched refs:bitmap2 (Results 1 – 4 of 4) sorted by relevance

/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/
DImageCompare.java48 public static double psnr(Bitmap bitmap1, Bitmap bitmap2) { in psnr() argument
49 if (bitmap1.getWidth() != bitmap2.getWidth() || in psnr()
50 bitmap1.getHeight() != bitmap2.getHeight()) { in psnr()
54 if (bitmap1.sameAs(bitmap2)) { in psnr()
68 int pixel2 = bitmap2.getPixel(x, y); in psnr()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testinfrastructure/
DActivityTestBase.java160 protected void assertBitmapsAreSimilar(Bitmap bitmap1, Bitmap bitmap2, in assertBitmapsAreSimilar() argument
167 Allocation givenAllocation = Allocation.createFromBitmap(mRenderScript, bitmap2, in assertBitmapsAreSimilar()
173 bitmap2.getPixels(mHardwareArray, 0, TEST_WIDTH, 0, 0, TEST_WIDTH, TEST_HEIGHT); in assertBitmapsAreSimilar()
179 BitmapDumper.dumpBitmaps(bitmap1, bitmap2, getName(), this.getClass().getSimpleName(), in assertBitmapsAreSimilar()
/cts/tests/tests/media/src/android/media/cts/
DDecodeAccuracyTestBase.java1437 public static Difference computeDifference(Bitmap bitmap1, Bitmap bitmap2) { in computeDifference() argument
1438 if ((bitmap1 == null || bitmap2 == null) && bitmap1 != bitmap2) { in computeDifference()
1441 if (bitmap1 == bitmap2 || bitmap1.sameAs(bitmap2)) { in computeDifference()
1444 … if (bitmap1.getHeight() != bitmap2.getHeight() || bitmap1.getWidth() != bitmap2.getWidth()) { in computeDifference()
1450 final double[][] pixels2 = convertRgbToCieLab(bitmap2); in computeDifference()
1673 Bitmap bitmap1, Bitmap bitmap2, Pair<Double, Double>[] borderCrops) { in computeMinimumDifference() argument
1676 Difference minDiff = computeDifference(bitmap1, bitmap2); in computeMinimumDifference()
1681 Bitmap bitmap2s = shrinkAndScaleBilinear(bitmap2, borderCrop.first, borderCrop.second); in computeMinimumDifference()
1697 Bitmap bitmap1, Bitmap bitmap2, int trueWidth, int trueHeight) { in computeMinimumDifference() argument
1705 bitmap2, in computeMinimumDifference()
/cts/tests/tests/view/src/android/view/cts/
DViewTest.java1311 Bitmap bitmap2 = view.getDrawingCache(); in testGetDrawingCache() local
1312 assertNotSame(bitmap1, bitmap2); in testGetDrawingCache()