Merge "Fix AppOps estimation call time out." into rvc-dev am: d26ded47a5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11675077 Change-Id: Icf054f1c686aaf28bc1d8c181da645e733b4135e
This commit is contained in:
@@ -3319,8 +3319,8 @@ public class StatsPullAtomService extends SystemService {
|
||||
public void run() {
|
||||
try {
|
||||
estimateAppOpsSamplingRate();
|
||||
} catch (Exception e) {
|
||||
Slog.e(TAG, "AppOps sampling ratio estimation failed");
|
||||
} catch (Throwable e) {
|
||||
Slog.e(TAG, "AppOps sampling ratio estimation failed: ", e);
|
||||
synchronized (mAppOpsSamplingRateLock) {
|
||||
mAppOpsSamplingRate = min(mAppOpsSamplingRate, 10);
|
||||
}
|
||||
@@ -3361,7 +3361,7 @@ public class StatsPullAtomService extends SystemService {
|
||||
Instant.now().minus(1, ChronoUnit.DAYS).toEpochMilli(),
|
||||
Long.MAX_VALUE).setFlags(
|
||||
OP_FLAGS_PULLED).build();
|
||||
appOps.getHistoricalOps(histOpsRequest, mContext.getMainExecutor(), ops::complete);
|
||||
appOps.getHistoricalOps(histOpsRequest, AsyncTask.THREAD_POOL_EXECUTOR, ops::complete);
|
||||
HistoricalOps histOps = ops.get(EXTERNAL_STATS_SYNC_TIMEOUT_MILLIS,
|
||||
TimeUnit.MILLISECONDS);
|
||||
List<AppOpEntry> opsList =
|
||||
|
||||
Reference in New Issue
Block a user