Merge "Make historical op getters async for real"
This commit is contained in:
committed by
Android (Google) Code Review
commit
859249aed7
@@ -1759,8 +1759,9 @@ public class AppOpsService extends IAppOpsService.Stub {
|
||||
? opNames.toArray(new String[opNames.size()]) : null;
|
||||
|
||||
// Must not hold the appops lock
|
||||
mHistoricalRegistry.getHistoricalOps(uid, packageName, featureId, opNamesArray, filter,
|
||||
beginTimeMillis, endTimeMillis, flags, callback);
|
||||
mHandler.post(PooledLambda.obtainRunnable(HistoricalRegistry::getHistoricalOps,
|
||||
mHistoricalRegistry, uid, packageName, featureId, opNamesArray, filter,
|
||||
beginTimeMillis, endTimeMillis, flags, callback).recycleOnUse());
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -1778,8 +1779,9 @@ public class AppOpsService extends IAppOpsService.Stub {
|
||||
? opNames.toArray(new String[opNames.size()]) : null;
|
||||
|
||||
// Must not hold the appops lock
|
||||
mHistoricalRegistry.getHistoricalOpsFromDiskRaw(uid, packageName, featureId, opNamesArray,
|
||||
filter, beginTimeMillis, endTimeMillis, flags, callback);
|
||||
mHandler.post(PooledLambda.obtainRunnable(HistoricalRegistry::getHistoricalOpsFromDiskRaw,
|
||||
mHistoricalRegistry, uid, packageName, featureId, opNamesArray,
|
||||
filter, beginTimeMillis, endTimeMillis, flags, callback).recycleOnUse());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user