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

Commit f66c381e authored by Ivan Chiang's avatar Ivan Chiang Committed by Android (Google) Code Review
Browse files

Merge "[PM] Make ApexManager#getApksInApex public for testing" into main

parents 28b155ba b4a23616
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -276,7 +276,8 @@ public abstract class ApexManager {
     * Returns list of {@code packageName} of apks inside the given apex.
     * @param apexPackageName Package name of the apk container of apex
     */
    abstract List<String> getApksInApex(String apexPackageName);
    @VisibleForTesting(visibility = VisibleForTesting.Visibility.PACKAGE)
    public abstract List<String> getApksInApex(String apexPackageName);

    /**
     * Returns the apex module name for the given package name, if the package is an APEX. Otherwise
@@ -751,8 +752,9 @@ public abstract class ApexManager {
            }
        }

        @VisibleForTesting(visibility = VisibleForTesting.Visibility.PACKAGE)
        @Override
        List<String> getApksInApex(String apexPackageName) {
        public List<String> getApksInApex(String apexPackageName) {
            synchronized (mLock) {
                Preconditions.checkState(mPackageNameToApexModuleName != null,
                        "APEX packages have not been scanned");