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

Commit 6f5822e5 authored by Alex Buynytskyy's avatar Alex Buynytskyy Committed by Android (Google) Code Review
Browse files

Merge "Additional documentation on transfer statuses."

parents e7a0c16b c720d3d1
Loading
Loading
Loading
Loading
+10 −4
Original line number Diff line number Diff line
@@ -185,7 +185,8 @@ public class PackageInstaller {
     * {@link #STATUS_FAILURE}, {@link #STATUS_FAILURE_ABORTED},
     * {@link #STATUS_FAILURE_BLOCKED}, {@link #STATUS_FAILURE_CONFLICT},
     * {@link #STATUS_FAILURE_INCOMPATIBLE}, {@link #STATUS_FAILURE_INVALID},
     * {@link #STATUS_FAILURE_STORAGE}.
     * {@link #STATUS_FAILURE_STORAGE}, {@link #STATUS_FAILURE_NAME_NOT_FOUND},
     * {@link #STATUS_FAILURE_ILLEGAL_STATE} or {@link #STATUS_FAILURE_SECURITY}.
     * <p>
     * More information about a status may be available through additional
     * extras; see the individual status documentation for details.
@@ -1130,9 +1131,14 @@ public class PackageInstaller {
         *
         * @param packageName The package of the new owner. Needs to hold the INSTALL_PACKAGES
         *                    permission.
         * @param statusReceiver Called when the state of the session changes. Intents sent to this
         *                       receiver contain {@link #EXTRA_STATUS}. Refer to the individual
         *                       transfer status codes on how to handle them.
         * @param statusReceiver Called when the state of the session changes. Intents sent to
         *                       this receiver contain {@link #EXTRA_STATUS}. Possible statuses:
         *                       {@link #STATUS_FAILURE_NAME_NOT_FOUND},
         *                       {@link #STATUS_FAILURE_ILLEGAL_STATE},
         *                       {@link #STATUS_FAILURE_SECURITY},
         *                       {@link #STATUS_FAILURE}.
         *                       Refer to the individual transfer status codes on how to handle
         *                       them.
         *
         * @throws PackageManager.NameNotFoundException if the new owner could not be found.
         * @throws SecurityException if called after the session has been committed or abandoned.