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

Commit dde24269 authored by Amaury Medeiros's avatar Amaury Medeiros
Browse files

Minor javadoc improvements for PackageManager.



- Removed duplicated use of the word "the".
- Changed @return and @param explanation of getApplicationEnabledSetting,
which should get the enabled state of an application and not just one component.

Change-Id: Ide07ec84ceb5b9b5caa28efa9ba838a40ee7b514
Signed-off-by: default avatarAmaury Medeiros <amaurymedeiros@gmail.com>
parent 7e547e0d
Loading
Loading
Loading
Loading
+5 −5
Original line number Original line Diff line number Diff line
@@ -494,7 +494,7 @@ public abstract class PackageManager {
     * Installation return code: this is passed to the {@link IPackageInstallObserver} by
     * Installation return code: this is passed to the {@link IPackageInstallObserver} by
     * {@link #installPackage(android.net.Uri, IPackageInstallObserver, int)} if
     * {@link #installPackage(android.net.Uri, IPackageInstallObserver, int)} if
     * the package being installed contains native code, but none that is
     * the package being installed contains native code, but none that is
     * compatible with the the device's CPU_ABI.
     * compatible with the device's CPU_ABI.
     * @hide
     * @hide
     */
     */
    public static final int INSTALL_FAILED_CPU_ABI_INCOMPATIBLE = -16;
    public static final int INSTALL_FAILED_CPU_ABI_INCOMPATIBLE = -16;
@@ -3120,7 +3120,7 @@ public abstract class PackageManager {




    /**
    /**
     * Return the the enabled setting for a package component (activity,
     * Return the enabled setting for a package component (activity,
     * receiver, service, provider).  This returns the last value set by
     * receiver, service, provider).  This returns the last value set by
     * {@link #setComponentEnabledSetting(ComponentName, int, int)}; in most
     * {@link #setComponentEnabledSetting(ComponentName, int, int)}; in most
     * cases this value will be {@link #COMPONENT_ENABLED_STATE_DEFAULT} since
     * cases this value will be {@link #COMPONENT_ENABLED_STATE_DEFAULT} since
@@ -3158,14 +3158,14 @@ public abstract class PackageManager {
            int newState, int flags);
            int newState, int flags);


    /**
    /**
     * Return the the enabled setting for an application.  This returns
     * Return the enabled setting for an application. This returns
     * the last value set by
     * the last value set by
     * {@link #setApplicationEnabledSetting(String, int, int)}; in most
     * {@link #setApplicationEnabledSetting(String, int, int)}; in most
     * cases this value will be {@link #COMPONENT_ENABLED_STATE_DEFAULT} since
     * cases this value will be {@link #COMPONENT_ENABLED_STATE_DEFAULT} since
     * the value originally specified in the manifest has not been modified.
     * the value originally specified in the manifest has not been modified.
     *
     *
     * @param packageName The component to retrieve.
     * @param packageName The package name of the application to retrieve.
     * @return Returns the current enabled state for the component.  May
     * @return Returns the current enabled state for the application.  May
     * be one of {@link #COMPONENT_ENABLED_STATE_ENABLED},
     * be one of {@link #COMPONENT_ENABLED_STATE_ENABLED},
     * {@link #COMPONENT_ENABLED_STATE_DISABLED}, or
     * {@link #COMPONENT_ENABLED_STATE_DISABLED}, or
     * {@link #COMPONENT_ENABLED_STATE_DEFAULT}.  The last one means the
     * {@link #COMPONENT_ENABLED_STATE_DEFAULT}.  The last one means the