Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 02cc423f authored by Olivier Gaillard's avatar Olivier Gaillard Committed by Android (Google) Code Review
Browse files

Merge "Make debug atom fail more often."

parents 0b2bfbe4 4f01a378
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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");
        }