am 08e1bf39: am 4c5983af: don\'t retry immediately, wait a bit.
* commit '08e1bf39bb5d7f938988cc05c857f9b7f7090e76':
don't retry immediately, wait a bit.
diff --git a/apps/CtsVerifier/src/com/android/cts/verifier/nls/NotificationListenerVerifierActivity.java b/apps/CtsVerifier/src/com/android/cts/verifier/nls/NotificationListenerVerifierActivity.java
index 0f6eaad..842c024 100644
--- a/apps/CtsVerifier/src/com/android/cts/verifier/nls/NotificationListenerVerifierActivity.java
+++ b/apps/CtsVerifier/src/com/android/cts/verifier/nls/NotificationListenerVerifierActivity.java
@@ -515,17 +515,18 @@
public void accept(List<String> result) {
if (result.size() > 0 && result.contains(mTag1)) {
mStatus[i] = PASS;
+ next();
} else {
if (mStatus[i] == RETRY) {
logWithStack("failed testDismissOne");
mStatus[i] = FAIL;
+ next();
} else {
logWithStack("failed testDismissOne, once: retrying");
mStatus[i] = RETRY;
+ delay();
}
}
-
- next();
}});
}
}
@@ -547,16 +548,18 @@
public void accept(List<String> result) {
if (result.size() == 2 && result.contains(mTag2) && result.contains(mTag3)) {
mStatus[i] = PASS;
+ next();
} else {
if (mStatus[i] == RETRY) {
logWithStack("failed testDismissAll");
mStatus[i] = FAIL;
+ next();
} else {
logWithStack("failed testDismissAll, once: retrying");
mStatus[i] = RETRY;
+ delay();
}
}
- next();
}
});
}