Loading services/core/java/com/android/server/pm/AppsFilter.java +4 −10 Original line number Diff line number Diff line Loading @@ -500,17 +500,11 @@ public class AppsFilter implements Watchable, Snappable { forcedQueryablePackageNames[i] = forcedQueryablePackageNames[i].intern(); } } final StateProvider stateProvider = new StateProvider() { // TODO: This lock and its handling should be owned by AppsFilter private final Object mLock = new Object(); @Override public void runWithState(CurrentStateCallback command) { synchronized (mLock) { command.currentState(pms.getPackageStates(), final StateProvider stateProvider = command -> { synchronized (injector.getLock()) { command.currentState(injector.getSettings().getPackagesLocked().untrackedStorage(), injector.getUserManagerInternal().getUserInfos()); } } }; AppsFilter appsFilter = new AppsFilter(stateProvider, featureConfig, forcedQueryablePackageNames, forceSystemAppsQueryable, null, Loading Loading
services/core/java/com/android/server/pm/AppsFilter.java +4 −10 Original line number Diff line number Diff line Loading @@ -500,17 +500,11 @@ public class AppsFilter implements Watchable, Snappable { forcedQueryablePackageNames[i] = forcedQueryablePackageNames[i].intern(); } } final StateProvider stateProvider = new StateProvider() { // TODO: This lock and its handling should be owned by AppsFilter private final Object mLock = new Object(); @Override public void runWithState(CurrentStateCallback command) { synchronized (mLock) { command.currentState(pms.getPackageStates(), final StateProvider stateProvider = command -> { synchronized (injector.getLock()) { command.currentState(injector.getSettings().getPackagesLocked().untrackedStorage(), injector.getUserManagerInternal().getUserInfos()); } } }; AppsFilter appsFilter = new AppsFilter(stateProvider, featureConfig, forcedQueryablePackageNames, forceSystemAppsQueryable, null, Loading