Merge "For ANRs, reduce EXPIRED_REPORT_TIME_MS to 10s" into udc-dev

This commit is contained in:
Olivier Gaillard
2023-02-27 09:37:53 +00:00
committed by Android (Google) Code Review

View File

@@ -49,7 +49,7 @@ class AnrHelper {
* this time, the information might be outdated. So we only the dump the unresponsive process
* instead of including other processes to avoid making the system more busy.
*/
private static final long EXPIRED_REPORT_TIME_MS = TimeUnit.MINUTES.toMillis(1);
private static final long EXPIRED_REPORT_TIME_MS = TimeUnit.SECONDS.toMillis(10);
/**
* If the last ANR occurred within this given time, consider it's anomaly.