Merge "Also reset the dropbox rate limiter in BootReceiver in addition to ActivityManagerService." am: a12efe5b68 am: 3dd9282bdf am: 7496f576da
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2210236 Change-Id: I33853fb788e94e7bd79531e5929bff7da48f6990 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -108,7 +108,7 @@ public class DropboxRateLimiter {
|
||||
}
|
||||
|
||||
/** Resets the rate limiter memory. */
|
||||
void reset() {
|
||||
public void reset() {
|
||||
synchronized (mErrorClusterRecords) {
|
||||
mErrorClusterRecords.clear();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user