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

Commit ea32f16d 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 am: d98bc160

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



Change-Id: Ifcb12163ca8c749eacf56c3012293d77c68f70d2
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents d9f47f36 d98bc160
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
@@ -377,6 +377,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;
@@ -17834,10 +17835,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();
        }