/platform_testing/libraries/screenshot/deviceless/layoutlib/tests/src/com/android/layoutlib/bridge/intensive/util/ |
D | ImageUtils.java | 23 import java.awt.image.BufferedImage; 30 import static java.awt.image.BufferedImage.TYPE_INT_ARGB; 56 public static void requireSimilar(@NonNull String relativePath, @NonNull BufferedImage image) in requireSimilar() argument 61 message = saveImageAndAppendMessage(image, message, relativePath); in requireSimilar() 71 assertImageSimilar(relativePath, goldenImage, image, MAX_PERCENT_DIFFERENCE); in requireSimilar() 79 BufferedImage image, double maxPercentDifferent) throws IOException { in assertImageSimilar() argument 88 int imageWidth = Math.min(goldenImage.getWidth(), image.getWidth()); in assertImageSimilar() 89 int imageHeight = Math.min(goldenImage.getHeight(), image.getHeight()); in assertImageSimilar() 108 int rgb = image.getRGB(x, y); in assertImageSimilar() 147 } else if (Math.abs(goldenImage.getWidth() - image.getWidth()) >= 2) { in assertImageSimilar() [all …]
|
/platform_testing/libraries/screenshot/deviceless/layoutlib/tests/src/com/android/layoutlib/bridge/android/ |
D | SampleRenderTest.java | 40 import java.awt.image.BufferedImage; 41 import java.awt.image.DataBufferInt; 55 BufferedImage image = new BufferedImage(bitmap.getWidth(), bitmap.getHeight(), in testLoadImage() local 57 int[] imageData = ((DataBufferInt) image.getRaster().getDataBuffer()).getData(); in testLoadImage() 58 bitmap.getPixels(imageData, 0, image.getWidth(), 0, 0, image.getWidth(), in testLoadImage() 59 image.getHeight()); in testLoadImage() 60 RenderTestBase.verify("bitmap_decoder.png", image); in testLoadImage()
|
D | PlatformRenderTestCase.java | 43 import java.awt.image.BufferedImage; 44 import java.awt.image.DataBufferInt;
|
/platform_testing/libraries/screenshot/proto/src/main/proto/ |
D | screenshot_result.proto | 35 // Only compare pixels that have a nonzero alpha value in the reference image. 41 // PNG encoded image. 46 // Use this when comparing a generated image against a golden image. 50 // PNG encoded image. Use when comparing two generated images against each 79 // alpha in the reference image. Otherwise zero. 97 // MD5 hash of the difference image.
|
/platform_testing/libraries/screenshot/deviceless/layoutlib/tests/src/com/android/layoutlib/bridge/intensive/ |
D | RenderResult.java | 26 import java.awt.image.BufferedImage; 38 @Nullable List<ViewInfo> rootViewInfoList, @Nullable BufferedImage image) { in RenderResult() argument 42 mImage = image; in RenderResult()
|
D | RenderTestBase.java | 51 import java.awt.image.BufferedImage; 468 protected static void verify(@NonNull String goldenImageName, @NonNull BufferedImage image) { in verify() argument 471 ImageUtils.requireSimilar(goldenImagePath, image); in verify()
|
/platform_testing/tests/jank/uibench/src/com/android/uibench/janktests/ |
D | UiBenchTransitionsJankTests.java | 64 UiObject2 image = mDevice.wait(Until.findObject( in clickImage() local 66 Assert.assertNotNull(imageName + "Image not found", image); in clickImage() 67 image.clickAndWait(Until.newWindow(), mHelper.TIMEOUT); in clickImage()
|
/platform_testing/libraries/screenshot/src/main/java/platform/test/screenshot/report/ |
D | DevicelessDevMachineExportStrategy.kt | 86 fun html(bitmap: Bitmap?, image: Path, name: String, alt: String): String { in <lambda>() 92 <h2><a href="file://$image">$name</a></h2> in <lambda>() 93 <img src="$image" alt="$alt"/> in <lambda>()
|
/platform_testing/tests/microbenchmarks/uibench/src/com/android/uibench/microbenchmark/ |
D | UiBenchJankHelper.java | 366 UiObject2 image = in clickImage() local 369 Assert.assertNotNull(imageName + "Image not found", image); in clickImage() 370 image.clickAndWait(Until.newWindow(), FIND_OBJECT_TIMEOUT); in clickImage()
|
/platform_testing/tests/bettertogether/betocq/ |
D | ReadMe.md | 151 The target device must run a userdebug image of the latest Android version, 157 running a userdebug image of the latest Android version. We recommend a
|
/platform_testing/libraries/sts-common-util/host-side/tests/res/ |
D | logcat.txt | 2053 …DEBUG : 11-18 14:14:23.137 954 1066 E VSC : @ 31.330: Can't find SUID for big image accel
|