/platform_testing/libraries/flicker/src/com/android/server/wm/flicker/ |
D | WindowManagerTrace.java | 21 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 …]
|
D | Assertions.java | 38 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 …]
|
D | AssertionsChecker.java | 21 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 …]
|
D | LayersTrace.java | 29 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 …]
|
D | WmTraceSubject.java | 24 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/ |
D | AssertionsCheckerTest.java | 23 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 …]
|
D | AssertionsTest.java | 22 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()
|
D | WindowManagerTraceTest.java | 25 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()
|
D | LayersTraceTest.java | 141 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/ |
D | BinderListenerTest.java | 31 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()
|
D | ScheduledRunMetricListenerTest.java | 26 import org.junit.runner.Result; 64 mListener.testRunFinished(new Result()); in testPeriodicRun() 67 mListener.instrumentationRunFinished(System.out, resultBundle, new Result()); in testPeriodicRun()
|
D | StubTestMetricListener.java | 19 import org.junit.runner.Result; 33 public void onTestRunEnd(DataRecord runData, Result result) { in onTestRunEnd()
|
D | JankListenerTest.java | 32 import org.junit.runner.Result; 69 collector.testRunFinished(new Result()); in testCollect_specificProcess() 83 collector.testRunFinished(new Result()); in testCollect_allProcesses()
|
D | IncidentReportListenerTest.java | 36 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()
|
D | SfStatsListenerTest.java | 27 import org.junit.runner.Result; 56 collector.testRunFinished(new Result()); in testCollect_allProcesses()
|
D | LogcatOnFailureCollectorTest.java | 33 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 …]
|
D | ScreenshotOnFailureCollectorTest.java | 41 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()
|
D | BatteryStatsListenerTest.java | 27 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()
|
D | ScheduledRunCollectionListenerTest.java | 52 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()
|
D | ScreenRecordCollectorTest.java | 43 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/ |
D | ScheduledRunMetricListener.java | 23 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()
|
D | IncidentReportListener.java | 30 import org.junit.runner.Result; 71 public void onTestRunEnd(DataRecord runData, Result result) { in onTestRunEnd()
|
D | BaseCollectionListener.java | 27 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/ |
D | MicrobenchmarkTest.java | 29 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/ |
D | JUnitXmlRunner.java | 22 import org.junit.runner.Result; 98 Result result = core.run(as); in main()
|