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

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

Merge "[PM] Make ModuleInfo#getApkInApexPackageNames as @hide" into main

parents f9ff748a e99a86a2
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -12369,7 +12369,6 @@ package android.content.pm {
  public final class ModuleInfo implements android.os.Parcelable {
    method public int describeContents();
    method @FlaggedApi("android.content.pm.provide_info_of_apk_in_apex") @NonNull public java.util.Collection<java.lang.String> getApkInApexPackageNames();
    method @Nullable public CharSequence getName();
    method @Nullable public String getPackageName();
    method public boolean isHidden();
+2 −6
Original line number Diff line number Diff line
@@ -16,7 +16,6 @@

package android.content.pm;

import android.annotation.FlaggedApi;
import android.annotation.NonNull;
import android.annotation.Nullable;
import android.os.Parcel;
@@ -122,18 +121,15 @@ public final class ModuleInfo implements Parcelable {
        return mApexModuleName;
    }

    /** @hide Sets the list of the package name of APK-in-APEX apps in this module. */
    /** @hide Set the list of the package names of all APK-in-APEX apps in this module. */
    public ModuleInfo setApkInApexPackageNames(@NonNull Collection<String> apkInApexPackageNames) {
        Objects.requireNonNull(apkInApexPackageNames);
        mApkInApexPackageNames = List.copyOf(apkInApexPackageNames);
        return this;
    }

    /**
     * Gets the list of the package name of all APK-in-APEX apps in the module.
     */
    /** @hide Get the list of the package names of all APK-in-APEX apps in the module. */
    @NonNull
    @FlaggedApi(android.content.pm.Flags.FLAG_PROVIDE_INFO_OF_APK_IN_APEX)
    public Collection<String> getApkInApexPackageNames() {
        if (mApkInApexPackageNames == null) {
            return Collections.emptyList();