Home
last modified time | relevance | path

Searched refs:LayersTrace (Results 1 – 5 of 5) sorted by relevance

/platform_testing/libraries/flicker/test/src/com/android/server/wm/flicker/
DLayersTraceTest.java49 private static LayersTrace readLayerTraceFromFile(String relativePath) { in readLayerTraceFromFile()
51 return LayersTrace.parseFrom(readTestFile(relativePath)); in readLayerTraceFromFile()
69 LayersTrace trace = readLayerTraceFromFile("layers_trace_emptyregion.pb"); in canParseAllLayers()
74 List<LayersTrace.Layer> flattenedLayers = trace.getEntries().get(0).asFlattenedLayers(); in canParseAllLayers()
86 LayersTrace trace = readLayerTraceFromFile("layers_trace_emptyregion.pb"); in canParseVisibleLayers()
91 List<LayersTrace.Layer> flattenedLayers = trace.getEntries().get(0).asFlattenedLayers(); in canParseVisibleLayers()
92 List<LayersTrace.Layer> visibleLayers = in canParseVisibleLayers()
110 LayersTrace trace = readLayerTraceFromFile("layers_trace_emptyregion.pb"); in canParseLayerHierarchy()
115 List<LayersTrace.Layer> layers = trace.getEntries().get(0).getRootLayers(); in canParseLayerHierarchy()
138 LayersTrace trace = readLayerTraceFromFile("layers_trace_emptyregion.pb"); in canDetectUncoveredRegion()
[all …]
DLayersTraceSubjectTest.java48 private static LayersTrace readLayerTraceFromFile(String relativePath) { in readLayerTraceFromFile()
50 return LayersTrace.parseFrom(readTestFile(relativePath), Paths.get(relativePath)); in readLayerTraceFromFile()
58 LayersTrace layersTraceEntries = readLayerTraceFromFile("layers_trace_emptyregion.pb"); in testCanDetectEmptyRegionFromLayerTrace()
81 LayersTrace layersTraceEntries = in testCanDetectIncorrectVisibilityFromLayerTrace()
109 LayersTrace layersTrace = readLayerTraceFromFile(fileName); in detectRootLayer()
111 for (LayersTrace.Entry entry : layersTrace.getEntries()) { in detectRootLayer()
112 List<LayersTrace.Layer> flattened = entry.asFlattenedLayers(); in detectRootLayer()
113 List<LayersTrace.Layer> rootLayers = in detectRootLayer()
116 .filter(LayersTrace.Layer::isRootLayer) in detectRootLayer()
/platform_testing/libraries/flicker/src/com/android/server/wm/flicker/
DLayersTraceSubject.java28 import com.android.server.wm.flicker.LayersTrace.Entry;
40 public class LayersTraceSubject extends Subject<LayersTraceSubject, LayersTrace> {
44 private static final Subject.Factory<LayersTraceSubject, LayersTrace> FACTORY =
58 private LayersTraceSubject(FailureMetadata fm, @Nullable LayersTrace subject) { in LayersTraceSubject()
63 public static LayersTraceSubject assertThat(@Nullable LayersTrace entry) { in assertThat()
69 Consumer<LayersTrace.Layer> orphanLayerCallback = in assertThat()
81 Consumer<LayersTrace.Layer> orphanLayerCallback) { in assertThat()
82 LayersTrace entries = in assertThat()
83 LayersTrace.parseFrom( in assertThat()
92 public static Subject.Factory<LayersTraceSubject, LayersTrace> entries() { in entries()
DLayersTrace.java44 public class LayersTrace { class
49 private LayersTrace(List<Entry> entries, Path source, String sourceChecksum) { in LayersTrace() method in LayersTrace
63 public static LayersTrace parseFrom( in parseFrom()
76 public static LayersTrace parseFrom( in parseFrom()
92 return new LayersTrace(entries, source, sourceChecksum); in parseFrom()
102 public static LayersTrace parseFrom(byte[] data, Path source, String sourceChecksum) { in parseFrom()
113 public static LayersTrace parseFrom(byte[] data, Path source) { in parseFrom()
123 public static LayersTrace parseFrom(byte[] data) { in parseFrom()
DAssertions.java51 public interface LayersTraceAssertion extends TraceAssertion<LayersTrace.Entry> {}