Merge "Make debug atom fail more often."

This commit is contained in:
Olivier Gaillard
2019-02-05 09:53:19 +00:00
committed by Android (Google) Code Review

View File

@@ -1780,8 +1780,8 @@ public class StatsCompanionService extends IStatsCompanionService.Stub {
long elapsedNanos, final long wallClockNanos, List<StatsLogEventWrapper> pulledData) {
StatsLogEventWrapper e = new StatsLogEventWrapper(tagId, elapsedNanos, wallClockNanos);
final long elapsedMillis = SystemClock.elapsedRealtime();
// Fails every 10 buckets.
if (mDebugFailingElapsedClockPullCount++ % 10 == 0) {
// Fails every 5 buckets.
if (mDebugFailingElapsedClockPullCount++ % 5 == 0) {
mDebugFailingElapsedClockPreviousValue = elapsedMillis;
throw new RuntimeException("Failing debug elapsed clock");
}