commit | 91f160a6c49cf7b9e00a14dce80a5dc0d4d8b865 | [log] [tgz] |
---|---|---|
author | Paul Thomson <paulthomson@google.com> | Tue Jul 07 17:01:33 2020 +0100 |
committer | Paul Thomson <paulthomson@google.com> | Tue Jul 07 17:01:33 2020 +0100 |
tree | 05ee2e60ea452bd9a917fe2aafc6d8d147badb7b | |
parent | 391895d332802994b50dc7f3816ca2d985829f14 [diff] |
Fix "isAlmostIdenticalInRect" The function "isAlmostIdenticalInRect" was not performing a fuzzy image comparison due to an extra if statement. Removed the if statement. Bug: b/160688645 Change-Id: Ie62c03d913a17e7fc2cf12479d324a7383dbddba
diff --git a/tests/tests/graphics/src/android/graphics/drawable/cts/AnimatedVectorDrawableParameterizedTest.java b/tests/tests/graphics/src/android/graphics/drawable/cts/AnimatedVectorDrawableParameterizedTest.java index bfc3be2..e83745c 100644 --- a/tests/tests/graphics/src/android/graphics/drawable/cts/AnimatedVectorDrawableParameterizedTest.java +++ b/tests/tests/graphics/src/android/graphics/drawable/cts/AnimatedVectorDrawableParameterizedTest.java
@@ -265,9 +265,6 @@ for (int x = rangeRect.left; x < rangeRect.right; x++) { for (int y = rangeRect.top; y < rangeRect.bottom; y++) { - if (image1.getPixel(x, y) != image2.getPixel(x, y)) { - return false; - } int color1 = image1.getPixel(x, y); int color2 = image2.getPixel(x, y); int rDiff = Math.abs(Color.red(color1) - Color.red(color2));