/platform_testing/libraries/flicker/src/com/android/server/wm/flicker/ |
D | Assertions.java | 105 String reason = in apply() local 109 .map(p -> p.reason) in apply() 115 .map(p -> new Result(passed, p, this.getName(), reason)) in apply() 116 .orElseGet(() -> new Result(passed, reason)); in apply() 131 public final String reason; field in Assertions.Result 133 public Result(boolean success, long timestamp, String assertionName, String reason) { in Result() argument 137 this.reason = reason; in Result() 140 public Result(boolean success, String reason) { in Result() argument 142 this.reason = reason; in Result() 155 return new Result(!this.success, this.timestamp, negatedAssertionName, this.reason); in negate() [all …]
|
D | LayersTrace.java | 282 String reason = in coversRegion() local 289 reason += "\nvisible regions:"; in coversRegion() 295 reason += "\n" + layer.mProto.name + r.toString(); in coversRegion() 298 false /* success */, this.mTimestamp, assertionName, reason); in coversRegion() 312 String reason = "Could not find " + layerName; in hasVisibleRegion() local 316 reason = layer.getHiddenByParentReason(); in hasVisibleRegion() 320 reason = layer.getVisibilityReason(); in hasVisibleRegion() 331 reason = in hasVisibleRegion() 340 return new Result(false /* success */, this.mTimestamp, assertionName, reason); in hasVisibleRegion() 346 String reason = "Could not find " + layerName; in exists() local [all …]
|
D | WindowManagerTrace.java | 126 String reason; in isWindowVisible() local 128 reason = windowTitle + " cannot be found"; in isWindowVisible() 130 reason = windowTitle + " is invisible"; in isWindowVisible() 132 return new Result(false /* success */, reason); in isWindowVisible() 174 return new Result(result.success, getTimestamp(), "showsAboveAppWindow", result.reason); in isAboveAppWindowVisible() 186 result.success, getTimestamp(), "isBelowAppWindowVisible", result.reason); in isBelowAppWindowVisible() 197 return new Result(result.success, getTimestamp(), "isImeWindowVisible", result.reason); in isImeWindowVisible() 204 String reason = "wanted=" + windowTitle + " found=" + topAppWindow; in isVisibleAppWindowOnTop() local 205 return new Result(success, getTimestamp(), "isAppWindowOnTop", reason); in isVisibleAppWindowOnTop() 235 String reason; in isAppWindowVisible() local [all …]
|
D | AssertionsChecker.java | 176 String reason = in assertChanges() local 180 reason += in assertChanges() 187 reason += in assertChanges() 200 "Not all assertions passed." + reason); in assertChanges()
|
/platform_testing/libraries/flicker/test/src/com/android/server/wm/flicker/ |
D | AssertionsTest.java | 47 String reason = "Everything is fine!"; in resultCanBeNegated() local 48 Result result = new Result(true, 0, "TestAssert", reason); in resultCanBeNegated() 52 assertThat(negatedResult.reason).isEqualTo(reason); in resultCanBeNegated()
|
D | LayersTraceTest.java | 144 assertThat(result.reason).contains("Region to test: Rect(0, 0 - 1440, 2880)"); in canDetectUncoveredRegion() 145 assertThat(result.reason).contains("first empty point: 0, 99"); in canDetectUncoveredRegion() 146 assertThat(result.reason).contains("visible regions:"); in canDetectUncoveredRegion() 148 .that(result.reason) in canDetectUncoveredRegion() 162 assertThat(result.reason).contains("Could not find ImaginaryLayer"); in canTestLayerVisibleRegion_layerDoesNotExist() 175 assertThat(result.reason) in canTestLayerVisibleRegion_layerDoesNotHaveExpectedVisibleRegion() 194 assertThat(result.reason) in canTestLayerVisibleRegion_layerIsHiddenByParent() 210 assertThat(result.reason) in canTestLayerVisibleRegion_incorrectRegionSize() 234 assertThat(result.reason) in canTestLayerVisibleRegion_layerIsNotVisible()
|
D | WindowManagerTraceTest.java | 88 assertThat(result.reason).contains("ImaginaryWindow cannot be found"); in canFailWithReasonForVisibilityChecks_windowNotFound() 96 assertThat(result.reason).contains("AssistPreviewPanel is invisible"); in canFailWithReasonForVisibilityChecks_windowNotVisible() 111 assertThat(result.reason).contains("wanted=com.google.android.apps.nexuslauncher"); in canFailWithReasonForZOrderChecks_windowNotOnTop() 112 assertThat(result.reason) in canFailWithReasonForZOrderChecks_windowNotOnTop()
|
D | AssertionsCheckerTest.java | 178 assertThat(failures.get(0).reason).contains("!is42"); in canFailCheckChangingAssertions_ifUsingCompoundAssertion() 179 assertThat(failures.get(0).reason).doesNotContain("!is0"); in canFailCheckChangingAssertions_ifUsingCompoundAssertion()
|
/platform_testing/libraries/health/runners/longevity/platform/src/android/platform/test/longevity/listener/ |
D | ErrorTerminator.java | 34 protected void print(String reason) { in print() argument 35 Log.e(getClass().getSimpleName(), reason); in print() local
|
D | TimeoutTerminator.java | 46 protected void print(String reason) { in print() argument 47 Log.e(getClass().getSimpleName(), reason); in print() local
|
D | BatteryTerminator.java | 72 protected void print(String reason) { in print() argument 73 Log.e(getClass().getSimpleName(), reason); in print() local
|
/platform_testing/libraries/health/runners/longevity/host/src/android/host/test/longevity/listener/ |
D | RunTerminator.java | 35 protected final void kill(String reason) { in kill() argument 36 print(String.format("Test run killed because %s.", reason)); in kill()
|
/platform_testing/libraries/annotations/src/android/platform/test/annotations/ |
D | SystemUserOnly.java | 28 String reason() default ""; in reason() method
|
D | AppModeInstant.java | 33 String reason() default ""; in reason() method
|
D | AppModeFull.java | 33 String reason() default ""; in reason() method
|
/platform_testing/libraries/collectors-helper/statsd/src/com/android/helpers/ |
D | CrashHelper.java | 89 String reason = anrAtom.getReason(); in getMetrics() local 93 processName, reason, foregoundState.toString())); in getMetrics()
|