Add two more methods to the computer
Bug: 180109780 Direct two methods to the snapshot computer: * queryIntentActivitiesInternal() * queryIntentServicesInternal() This effectively makes these two methods lock-free: * queryIntentActivities() * queryIntentServices() Test: atest * FrameworksServicesTests:AppsFilterTest * FrameworksServicesTests:PackageInstallerSessionTest * FrameworksServicesTests:PackageManagerServiceTest * FrameworksServicesTests:PackageManagerSettingsTests * FrameworksServicesTests:ScanTests * FrameworksServicesTests:UserSystemPackageInstallerTest * PackageManagerServiceBootTest * UserLifecycleTests#startUser * UserLifecycleTests#stopUser * UserLifecycleTests#switchUser * android.appsecurity.cts.EphemeralTest * android.appsecurity.cts.InstantAppUserTest Change-Id: I3fb320ba5fb1944c256a08f6017e7a78a0034d90
This commit is contained in:
@@ -9841,7 +9841,7 @@ public class PackageManagerService extends IPackageManager.Stub
|
||||
|
||||
private @NonNull List<ResolveInfo> queryIntentActivitiesInternal(Intent intent,
|
||||
String resolvedType, int flags, int userId) {
|
||||
return liveComputer().queryIntentActivitiesInternal(intent,
|
||||
return snapshotComputer().queryIntentActivitiesInternal(intent,
|
||||
resolvedType, flags, userId);
|
||||
}
|
||||
|
||||
@@ -10328,7 +10328,7 @@ public class PackageManagerService extends IPackageManager.Stub
|
||||
private @NonNull List<ResolveInfo> queryIntentServicesInternal(Intent intent,
|
||||
String resolvedType, int flags, int userId, int callingUid,
|
||||
boolean includeInstantApps) {
|
||||
return liveComputer().queryIntentServicesInternal(intent,
|
||||
return snapshotComputer().queryIntentServicesInternal(intent,
|
||||
resolvedType, flags, userId, callingUid,
|
||||
includeInstantApps);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user