Improve performance of AppsFilter#removePackage()
Basically, it updates all visibilities for packages sharing the same uid on removePackage(). However, the calculated visibility for the uid is always the same and it could take a lot of time if there are many packages for the uid. This CL calculates and updates visibility once only for a package among them in case of sharedUserId. Bug: 288223730 Test: atest PackageManagerServiceServerTests:AppsFilterImplTest Change-Id: I2650e4aa50993ce814d4e90da7a3f16982e2e32c
This commit is contained in:
committed by
Songchun Fan
parent
78de523ef2
commit
db3374bef7
@@ -1225,6 +1225,7 @@ public final class AppsFilterImpl extends AppsFilterLocked implements Watchable,
|
||||
setting.getPackageName(), siblingSetting, settings,
|
||||
users, USER_ALL, settings.size());
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user