Home
last modified time | relevance | path

Searched refs:image (Results 1 – 11 of 11) sorted by relevance

/platform_testing/libraries/screenshot/deviceless/layoutlib/tests/src/com/android/layoutlib/bridge/intensive/util/
DImageUtils.java23 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/
DSampleRenderTest.java40 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()
DPlatformRenderTestCase.java43 import java.awt.image.BufferedImage;
44 import java.awt.image.DataBufferInt;
/platform_testing/libraries/screenshot/proto/src/main/proto/
Dscreenshot_result.proto35 // 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/
DRenderResult.java26 import java.awt.image.BufferedImage;
38 @Nullable List<ViewInfo> rootViewInfoList, @Nullable BufferedImage image) { in RenderResult() argument
42 mImage = image; in RenderResult()
DRenderTestBase.java51 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/
DUiBenchTransitionsJankTests.java64 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/
DDevicelessDevMachineExportStrategy.kt86 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/
DUiBenchJankHelper.java366 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/
DReadMe.md151 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/
Dlogcat.txt2053 …DEBUG : 11-18 14:14:23.137 954 1066 E VSC : @ 31.330: Can't find SUID for big image accel