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

Commit a12efe5b authored by Siim Sammul's avatar Siim Sammul Committed by Gerrit Code Review
Browse files

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

parents dddba456 5d943031
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();
        }