Home
last modified time | relevance | path

Searched refs:Result (Results 1 – 25 of 37) sorted by relevance

12

/platform_testing/libraries/flicker/src/com/android/server/wm/flicker/
DWindowManagerTrace.java21 import com.android.server.wm.flicker.Assertions.Result;
110 private static Result isWindowVisible( in isWindowVisible()
118 return new Result( in isWindowVisible()
132 return new Result(false /* success */, reason); in isWindowVisible()
167 public Result isAboveAppWindowVisible(String windowTitle) { in isAboveAppWindowVisible()
173 Result result = isWindowVisible(windowTitle, windowTokenProtos); in isAboveAppWindowVisible()
174 return new Result(result.success, getTimestamp(), "showsAboveAppWindow", result.reason); in isAboveAppWindowVisible()
178 public Result isBelowAppWindowVisible(String windowTitle) { in isBelowAppWindowVisible()
184 Result result = isWindowVisible(windowTitle, windowTokenProtos); in isBelowAppWindowVisible()
185 return new Result( in isBelowAppWindowVisible()
[all …]
DAssertions.java38 public interface TraceAssertion<T> extends Function<T, Result> {
71 public Result apply(T t) { in apply()
100 public Result apply(T t) { in apply()
101 List<Result> assertionResults = in apply()
104 boolean passed = assertionResults.stream().allMatch(Result::passed); in apply()
115 .map(p -> new Result(passed, p, this.getName(), reason)) in apply()
116 .orElseGet(() -> new Result(passed, reason)); in apply()
126 public static class Result { class in Assertions
133 public Result(boolean success, long timestamp, String assertionName, String reason) { in Result() method in Assertions.Result
140 public Result(boolean success, String reason) { in Result() method in Assertions.Result
[all …]
DAssertionsChecker.java21 import com.android.server.wm.flicker.Assertions.Result;
94 public List<Result> test(List<T> entries) { in test()
132 private List<Result> assertChanges(List<T> entries) { in assertChanges()
133 List<Result> failures = new ArrayList<>(); in assertChanges()
144 Result result = currentAssertion.apply(entries.get(entryIndex)); in assertChanges()
171 failures.add(new Result(false /* success */, mAssertions.get(0).getName())); in assertChanges()
195 Result result = in assertChanges()
196 new Result( in assertChanges()
207 private List<Result> assertEntry(T entry) { in assertEntry()
208 List<Result> failures = new ArrayList<>(); in assertEntry()
[all …]
DLayersTrace.java29 import com.android.server.wm.flicker.Assertions.Result;
262 public Result coversRegion(Rect testRect) { in coversRegion()
297 return new Result( in coversRegion()
303 return new Result(true /* success */, this.mTimestamp, assertionName, info); in coversRegion()
310 public Result hasVisibleRegion(String layerName, Rect expectedVisibleRegion) { in hasVisibleRegion()
325 return new Result( in hasVisibleRegion()
340 return new Result(false /* success */, this.mTimestamp, assertionName, reason); in hasVisibleRegion()
344 public Result exists(String layerName) { in exists()
349 return new Result( in exists()
356 return new Result(false /* success */, this.mTimestamp, assertionName, reason); in exists()
[all …]
DWmTraceSubject.java24 import com.android.server.wm.flicker.Assertions.Result;
127 List<Result> failures = mChecker.test(actual().getEntries()); in test()
131 failures.stream().map(Result::toString).collect(Collectors.joining("\n")); in test()
190 Result result = entry.isAppWindowVisible(partialWindowTitle); in showsAppWindowOnTop()
203 Result result = entry.isAppWindowVisible(partialWindowTitle).negate(); in hidesAppWindowOnTop()
/platform_testing/libraries/flicker/test/src/com/android/server/wm/flicker/
DAssertionsCheckerTest.java23 import com.android.server.wm.flicker.Assertions.Result;
58 List<Result> failures = checker.test(getTestEntries(1, 1, 1, 1, 1)); in canCheckAllEntries()
69 List<Result> failures = checker.test(getTestEntries(1, 1, 1, 1, 1)); in canCheckFirstEntry()
81 List<Result> failures = checker.test(getTestEntries(1, 1, 1, 1, 1)); in canCheckLastEntry()
93 List<Result> failures = checker.test(getTestEntries(1, 42, 42, 1, 1)); in canCheckRangeOfEntries()
104 List<Result> failures = checker.test(getTestEntries(1, 1, 1, 1, 1)); in emptyRangePasses()
116 List<Result> failures = checker.test(getTestEntries(42, 0, 0, 0, 0)); in canCheckChangingAssertions()
126 List<Result> failures = checker.test(getTestEntries(42, 0, 0, 0, 0)); in canCheckChangingAssertions_withNoAssertions()
137 List<Result> failures = checker.test(getTestEntries(42, 42, 42, 42, 42)); in canCheckChangingAssertions_withSingleAssertion()
149 List<Result> failures = checker.test(getTestEntries(0, 0, 0, 0, 0)); in canFailCheckChangingAssertions_ifStartingAssertionFails()
[all …]
DAssertionsTest.java22 import com.android.server.wm.flicker.Assertions.Result;
48 Result result = new Result(true, 0, "TestAssert", reason); in resultCanBeNegated()
49 Result negatedResult = result.negate(); in resultCanBeNegated()
59 return new Result(true, "Num equals 42"); in getIntegerTraceEntryAssertion()
61 return new Result(false, "Num doesn't equal 42, actual:" + num); in getIntegerTraceEntryAssertion()
DWindowManagerTraceTest.java25 import com.android.server.wm.flicker.Assertions.Result;
65 Result result = entry.isAboveAppWindowVisible("NavigationBar"); in canDetectAboveAppWindowVisibility()
72 Result result = entry.isBelowAppWindowVisible("wallpaper"); in canDetectBelowAppWindowVisibility()
79 Result result = entry.isAppWindowVisible("com.google.android.apps.nexuslauncher"); in canDetectAppWindowVisibility()
86 Result result = entry.isAboveAppWindowVisible("ImaginaryWindow"); in canFailWithReasonForVisibilityChecks_windowNotFound()
94 Result result = entry.isAboveAppWindowVisible("AssistPreviewPanel"); in canFailWithReasonForVisibilityChecks_windowNotVisible()
102 Result result = entry.isVisibleAppWindowOnTop("com.google.android.apps.chrome"); in canDetectAppZOrder()
109 Result result = entry.isVisibleAppWindowOnTop("com.google.android.apps.nexuslauncher"); in canFailWithReasonForZOrderChecks_windowNotOnTop()
DLayersTraceTest.java141 Assertions.Result result = entry.coversRegion(getDisplayBounds()); in canDetectUncoveredRegion()
159 Assertions.Result result = entry.hasVisibleRegion("ImaginaryLayer", expectedVisibleRegion); in canTestLayerVisibleRegion_layerDoesNotExist()
171 Assertions.Result result = in canTestLayerVisibleRegion_layerDoesNotHaveExpectedVisibleRegion()
188 Assertions.Result result = in canTestLayerVisibleRegion_layerIsHiddenByParent()
207 Assertions.Result result = entry.hasVisibleRegion("StatusBar", expectedVisibleRegion); in canTestLayerVisibleRegion_incorrectRegionSize()
222 Assertions.Result result = entry.hasVisibleRegion("StatusBar", expectedVisibleRegion); in canTestLayerVisibleRegion()
232 Assertions.Result result = entry.isVisible("com.android.server.wm.flicker.testapp"); in canTestLayerVisibleRegion_layerIsNotVisible()
/platform_testing/libraries/device-collectors/src/test/java/android/device/collectors/
DBinderListenerTest.java31 import org.junit.runner.Result;
69 collector.testRunFinished(new Result()); in testCollect_singleSpecificProcess()
87 collector.testRunFinished(new Result()); in testCollect_multiSpecificProcess()
101 collector.testRunFinished(new Result()); in testCollect_noSpecificProcess()
DScheduledRunMetricListenerTest.java26 import org.junit.runner.Result;
64 mListener.testRunFinished(new Result()); in testPeriodicRun()
67 mListener.instrumentationRunFinished(System.out, resultBundle, new Result()); in testPeriodicRun()
DStubTestMetricListener.java19 import org.junit.runner.Result;
33 public void onTestRunEnd(DataRecord runData, Result result) { in onTestRunEnd()
DJankListenerTest.java32 import org.junit.runner.Result;
69 collector.testRunFinished(new Result()); in testCollect_specificProcess()
83 collector.testRunFinished(new Result()); in testCollect_allProcesses()
DIncidentReportListenerTest.java36 import org.junit.runner.Result;
101 mListener.testRunFinished(new Result()); in testCollectFullReportAtEnd()
125 mListener.onTestRunEnd(mListener.createDataRecord(), new Result()); in testFailCollectIfNoDestinationDirectory()
143 mListener.onTestRunEnd(mListener.createDataRecord(), new Result()); in testCollectEmptyReportFails()
160 mListener.onTestRunEnd(record, new Result()); in testReportMetricsAsData()
DSfStatsListenerTest.java27 import org.junit.runner.Result;
56 collector.testRunFinished(new Result()); in testCollect_allProcesses()
DLogcatOnFailureCollectorTest.java33 import org.junit.runner.Result;
105 listener.testRunFinished(new Result()); in testLogcatOnFailure_nofailure()
108 listener.instrumentationRunFinished(System.out, resultBundle, new Result()); in testLogcatOnFailure_nofailure()
129 listener.testRunFinished(new Result()); in testLogcatOnFailure()
132 listener.instrumentationRunFinished(System.out, resultBundle, new Result()); in testLogcatOnFailure()
177 listener.testRunFinished(new Result()); in testRetrievingLogcat()
180 listener.instrumentationRunFinished(System.out, resultBundle, new Result()); in testRetrievingLogcat()
248 listener.testRunFinished(new Result()); in testLogcatTimespan()
252 listener.instrumentationRunFinished(System.out, resultBundle, new Result()); in testLogcatTimespan()
335 listener.testRunFinished(new Result()); in testMultipleIterations()
[all …]
DScreenshotOnFailureCollectorTest.java41 import org.junit.runner.Result;
127 mListener.testRunFinished(new Result()); in testSavePngAsFile()
130 mListener.instrumentationRunFinished(System.out, resultBundle, new Result()); in testSavePngAsFile()
164 mListener.testRunFinished(new Result()); in testSaveUixAsFile()
167 mListener.instrumentationRunFinished(System.out, resultBundle, new Result()); in testSaveUixAsFile()
200 mListener.testRunFinished(new Result()); in testNoUixWithoutOption()
204 mListener.instrumentationRunFinished(System.out, resultBundle, new Result()); in testNoUixWithoutOption()
236 mListener.testRunFinished(new Result()); in testSavesIterations()
DBatteryStatsListenerTest.java27 import org.junit.runner.Result;
113 mListener.testRunFinished(new Result()); in testTestRunCollector()
118 mListener.instrumentationRunFinished(System.out, resultBundle, new Result()); in testTestRunCollector()
163 mListener.testRunFinished(new Result()); in testTestRunToBytesCollector()
168 mListener.instrumentationRunFinished(System.out, resultBundle, new Result()); in testTestRunToBytesCollector()
209 mListener.testRunFinished(new Result()); in testTestCaseCollector()
214 mListener.instrumentationRunFinished(System.out, resultBundle, new Result()); in testTestCaseCollector()
DScheduledRunCollectionListenerTest.java52 import org.junit.runner.Result;
140 mListener.testRunFinished(new Result()); in testInstrumentationResult()
143 mListener.instrumentationRunFinished(System.out, result, new Result()); in testInstrumentationResult()
177 mListener.testRunFinished(new Result()); in testRun()
221 mListener.testRunFinished(new Result()); in testRun()
DScreenRecordCollectorTest.java43 import org.junit.runner.Result;
140 mListener.testRunFinished(new Result()); in testScreenRecord()
143 mListener.instrumentationRunFinished(System.out, resultBundle, new Result()); in testScreenRecord()
176 mListener.testRunFinished(new Result()); in testScreenRecord_multipleTests()
/platform_testing/libraries/device-collectors/src/main/java/android/device/collectors/
DScheduledRunMetricListener.java23 import org.junit.runner.Result;
72 public final void onTestRunEnd(DataRecord runData, Result result) { in onTestRunEnd()
97 void onEnd(DataRecord runData, Result result) { in onEnd()
DIncidentReportListener.java30 import org.junit.runner.Result;
71 public void onTestRunEnd(DataRecord runData, Result result) { in onTestRunEnd()
DBaseCollectionListener.java27 import org.junit.runner.Result;
112 public void onTestRunEnd(DataRecord runData, Result result) { in onTestRunEnd()
/platform_testing/libraries/health/runners/microbenchmark/tests/src/android/platform/test/microbenchmark/
DMicrobenchmarkTest.java29 import org.junit.runner.Result;
68 Result result = new JUnitCore().run(loggingRunner); in testFeatureExecutionOrder()
96 Result result = new JUnitCore().run(loggingRunner); in testMultipleIterationsWithRename()
133 Result result = new JUnitCore().run(loggingRunner); in testMultipleIterationsWithDifferentSuffix()
168 Result result = new JUnitCore().run(loggingRunner); in testMultipleIterationsWithoutRename()
198 Result result = new JUnitCore().run(loggingRunner); in testMultipleMethodIterations()
/platform_testing/libraries/junitxml/src/com/android/junitxml/
DJUnitXmlRunner.java22 import org.junit.runner.Result;
98 Result result = core.run(as); in main()

12