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

Commit c720d3d1 authored by Alex Buynytskyy's avatar Alex Buynytskyy
Browse files

Additional documentation on transfer statuses.

Test: atest PackageManagerShellCommandTest
Bug: b/136132412

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