Searched refs:relativePath (Results 1 – 3 of 3) sorted by relevance
/platform_testing/libraries/screenshot/deviceless/layoutlib/tests/src/com/android/layoutlib/bridge/intensive/util/ |
D | ImageUtils.java | 56 public static void requireSimilar(@NonNull String relativePath, @NonNull BufferedImage image) in requireSimilar() argument 58 InputStream is = ImageUtils.class.getClassLoader().getResourceAsStream(relativePath); in requireSimilar() 60 String message = "Unable to load golden image: " + relativePath + "\n"; in requireSimilar() 61 message = saveImageAndAppendMessage(image, message, relativePath); in requireSimilar() 71 assertImageSimilar(relativePath, goldenImage, image, MAX_PERCENT_DIFFERENCE); in requireSimilar() 78 public static void assertImageSimilar(String relativePath, BufferedImage goldenImage, in assertImageSimilar() argument 144 String imageName = getName(relativePath); in assertImageSimilar() 177 error = saveImageAndAppendMessage(image, error, relativePath); in assertImageSimilar() 209 @NonNull String initialMessage, @NonNull String relativePath) throws IOException { in saveImageAndAppendMessage() argument 210 File output = new File(getFailureDir(), getName(relativePath)); in saveImageAndAppendMessage() [all …]
|
/platform_testing/libraries/flicker/utils/test/src/android/tools/utils/ |
D | Utils.kt | 129 relativePath: String, in equalsIgnoreOrder() 136 artifact = TestArtifact(relativePath), in equalsIgnoreOrder() 140 readAsset(relativePath), in equalsIgnoreOrder() 149 fun getWmDumpReaderFromAsset(relativePath: String): Reader { in getWmDumpReaderFromAsset() 151 artifact = TestArtifact(relativePath), in getWmDumpReaderFromAsset() 152 wmTrace = WindowManagerDumpParser().parse(readAsset(relativePath), clearCache = false) in getWmDumpReaderFromAsset() 157 relativePath: String, in getLayerTraceReaderFromAsset() 163 TraceProcessorSession.loadPerfettoTrace(readAsset(relativePath)) { session -> in getLayerTraceReaderFromAsset() 172 return ParsedTracesReader(artifact = TestArtifact(relativePath), layersTrace = layersTrace) in getLayerTraceReaderFromAsset() 176 fun readAsset(relativePath: String): ByteArray { in readAsset() [all …]
|
/platform_testing/libraries/screenshot/src/main/java/platform/test/screenshot/ |
D | GoldenPathManager.kt | 77 val relativePath = pathConfig.resolveRelativePath(appContext) in goldenImageIdentifierResolver() constant
|