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

Commit 739663d4 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Replace redundant error code with a specific one"

parents 9b936999 4292708d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -11901,8 +11901,8 @@ package android.content.pm {
    field public static final android.os.Parcelable.Creator<android.content.pm.PackageInstaller.SessionInfo> CREATOR;
    field public static final int INVALID_ID = -1; // 0xffffffff
    field public static final int STAGED_SESSION_ACTIVATION_FAILED = 2; // 0x2
    field public static final int STAGED_SESSION_CONFLICT = 4; // 0x4
    field public static final int STAGED_SESSION_NO_ERROR = 0; // 0x0
    field public static final int STAGED_SESSION_OTHER_ERROR = 4; // 0x4
    field public static final int STAGED_SESSION_UNKNOWN = 3; // 0x3
    field public static final int STAGED_SESSION_VERIFICATION_FAILED = 1; // 0x1
  }
+4 −4
Original line number Diff line number Diff line
@@ -2076,7 +2076,7 @@ public class PackageInstaller {
                STAGED_SESSION_VERIFICATION_FAILED,
                STAGED_SESSION_ACTIVATION_FAILED,
                STAGED_SESSION_UNKNOWN,
                STAGED_SESSION_OTHER_ERROR})
                STAGED_SESSION_CONFLICT})
        @Retention(RetentionPolicy.SOURCE)
        public @interface StagedSessionErrorCode{}
        /**
@@ -2103,10 +2103,10 @@ public class PackageInstaller {
        public static final int STAGED_SESSION_UNKNOWN = 3;

        /**
         * Constant indicating that a known error occurred while processing this staged session, but
         * the error could not be matched to other categories.
         * Constant indicating that the session was in conflict with another staged session and had
         * to be sacrificed for resolution.
         */
        public static final int STAGED_SESSION_OTHER_ERROR = 4;
        public static final int STAGED_SESSION_CONFLICT = 4;

        /** {@hide} */
        @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.P, trackingBug = 115609023)
+1 −1
Original line number Diff line number Diff line
@@ -11901,8 +11901,8 @@ package android.content.pm {
    field public static final android.os.Parcelable.Creator<android.content.pm.PackageInstaller.SessionInfo> CREATOR;
    field public static final int INVALID_ID = -1; // 0xffffffff
    field public static final int STAGED_SESSION_ACTIVATION_FAILED = 2; // 0x2
    field public static final int STAGED_SESSION_CONFLICT = 4; // 0x4
    field public static final int STAGED_SESSION_NO_ERROR = 0; // 0x0
    field public static final int STAGED_SESSION_OTHER_ERROR = 4; // 0x4
    field public static final int STAGED_SESSION_UNKNOWN = 3; // 0x3
    field public static final int STAGED_SESSION_VERIFICATION_FAILED = 1; // 0x1
  }
+1 −1
Original line number Diff line number Diff line
@@ -1005,7 +1005,7 @@ public class StagingManager {
                            // will be deleted.
                        }
                        root.setStagedSessionFailed(
                                SessionInfo.STAGED_SESSION_OTHER_ERROR,
                                SessionInfo.STAGED_SESSION_CONFLICT,
                                "Session was blocking rollback session: " + session.sessionId);
                        Slog.i(TAG, "Session " + root.sessionId + " is marked failed due to "
                                + "blocking rollback session: " + session.sessionId);