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

Commit d98bc160 authored by Siim Sammul's avatar Siim Sammul Committed by Automerger Merge Worker
Browse files

Merge "Also reset the dropbox rate limiter in BootReceiver in addition to...

Merge "Also reset the dropbox rate limiter in BootReceiver in addition to ActivityManagerService." am: a12efe5b am: 3dd9282b am: 7496f576

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2210236



Change-Id: I33853fb788e94e7bd79531e5929bff7da48f6990
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 48a36fc5 7496f576
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -313,6 +313,14 @@ public class BootReceiver extends BroadcastReceiver {

    private static final DropboxRateLimiter sDropboxRateLimiter = new DropboxRateLimiter();

    /**
     * Reset the dropbox rate limiter.
     */
    @VisibleForTesting
    public static void resetDropboxRateLimiter() {
        sDropboxRateLimiter.reset();
    }

    /**
     * Add a tombstone to the DropBox.
     *
+3 −1
Original line number Diff line number Diff line
@@ -376,6 +376,7 @@ import com.android.internal.util.function.QuintFunction;
import com.android.internal.util.function.TriFunction;
import com.android.internal.util.function.UndecFunction;
import com.android.server.AlarmManagerInternal;
import com.android.server.BootReceiver;
import com.android.server.DeviceIdleInternal;
import com.android.server.DisplayThread;
import com.android.server.IntentResolver;
@@ -17794,10 +17795,11 @@ public class ActivityManagerService extends IActivityManager.Stub
    }
    /**
     * Reset the dropbox rate limiter
     * Reset the dropbox rate limiter here and in BootReceiver
     */
    void resetDropboxRateLimiter() {
        mDropboxRateLimiter.reset();
        BootReceiver.resetDropboxRateLimiter();
    }
    /**
+1 −1
Original line number Diff line number Diff line
@@ -108,7 +108,7 @@ public class DropboxRateLimiter {
    }

    /** Resets the rate limiter memory. */
    void reset() {
    public void reset() {
        synchronized (mErrorClusterRecords) {
            mErrorClusterRecords.clear();
        }