Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4d81bb10 authored by Lee Shombert's avatar Lee Shombert
Browse files

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
parent 6d332e6d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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);
    }