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

Commit c8f51a5d authored by Sumedh Sen's avatar Sumedh Sen
Browse files

Rename APIs per API Council review

Renamed getInstallInfo to readInstallInfo
Renamed getIsPreApprovalRequested to isPreApprovalRequested

Bug: 265793251
Test: atest CtsPackageInstallTestCases:InstallInfoTest

Change-Id: I0ac9314fa8d174e4e04e56574eebea965e9b2e74
parent 8f1c1395
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -12187,7 +12187,6 @@ package android.content.pm {
    method @Nullable public String getInstallerAttributionTag();
    method @Nullable public String getInstallerPackageName();
    method public int getInstallerUid();
    method @NonNull public boolean getIsPreApprovalRequested();
    method public int getMode();
    method public int getOriginatingUid();
    method @Nullable public android.net.Uri getOriginatingUri();
@@ -12207,6 +12206,7 @@ package android.content.pm {
    method public boolean isApplicationEnabledSettingPersistent();
    method public boolean isCommitted();
    method public boolean isMultiPackage();
    method public boolean isPreApprovalRequested();
    method public boolean isRequestUpdateOwnership();
    method public boolean isSealed();
    method public boolean isStaged();
+1 −1
Original line number Diff line number Diff line
@@ -3590,7 +3590,7 @@ package android.content.pm {
  }
  public class PackageInstaller {
    method @NonNull public android.content.pm.PackageInstaller.InstallInfo getInstallInfo(@NonNull java.io.File, int) throws android.content.pm.PackageInstaller.PackageParsingException;
    method @NonNull public android.content.pm.PackageInstaller.InstallInfo readInstallInfo(@NonNull java.io.File, int) throws android.content.pm.PackageInstaller.PackageParsingException;
    method @RequiresPermission(android.Manifest.permission.INSTALL_PACKAGES) public void setPermissionsResult(int, boolean);
    field public static final String ACTION_CONFIRM_INSTALL = "android.content.pm.action.CONFIRM_INSTALL";
    field public static final String ACTION_CONFIRM_PRE_APPROVAL = "android.content.pm.action.CONFIRM_PRE_APPROVAL";
+2 −2
Original line number Diff line number Diff line
@@ -2042,7 +2042,7 @@ public class PackageInstaller {
     */
    @SystemApi
    @NonNull
    public InstallInfo getInstallInfo(@NonNull File file, int flags)
    public InstallInfo readInstallInfo(@NonNull File file, int flags)
            throws PackageParsingException {
        final ParseTypeImpl input = ParseTypeImpl.forDefaultParsing();
        final ParseResult<PackageLite> result = ApkLiteParseUtils.parsePackageLite(
@@ -3740,7 +3740,7 @@ public class PackageInstaller {
        /**
         * Returns whether this session has requested user pre-approval.
         */
        public @NonNull boolean getIsPreApprovalRequested() {
        public boolean isPreApprovalRequested() {
            return isPreapprovalRequested;
        }