diff --git a/core/java/android/content/om/OverlayManager.java b/core/java/android/content/om/OverlayManager.java index 899e356989050..7803cb8829178 100644 --- a/core/java/android/content/om/OverlayManager.java +++ b/core/java/android/content/om/OverlayManager.java @@ -20,6 +20,7 @@ import android.annotation.NonNull; import android.annotation.NonUiContext; import android.annotation.Nullable; import android.annotation.RequiresPermission; +import android.annotation.SuppressLint; import android.annotation.SystemApi; import android.annotation.SystemService; import android.compat.Compatibility; @@ -28,7 +29,6 @@ import android.compat.annotation.EnabledSince; import android.content.Context; import android.content.pm.PackageManager; import android.os.Build; -import android.os.Process; import android.os.RemoteException; import android.os.ServiceManager; import android.os.UserHandle; @@ -39,40 +39,21 @@ import java.io.IOException; import java.util.List; /** - * Updates OverlayManager state; gets information about installed overlay packages. + * OverlayManager gives apps the ability to create an {@link OverlayManagerTransaction} to + * maintain the overlays and list the registered fabricated runtime resources overlays(FRROs). * - *
Users of this API must be actors of any overlays they desire to change the state of.
+ *OverlayManager returns the list of overlays to the app calling {@link + * #getOverlayInfosForTarget(String)}. The app starts an {@link OverlayManagerTransaction} to manage + * the overlays. The app can achieve the following by using {@link OverlayManagerTransaction}. * - *
An actor is a package responsible for managing the state of overlays targeting overlayables - * that specify the actor. For example, an actor may enable or disable an overlay or otherwise - * change its state.
- * - *Actors are specified as part of the overlayable definition. - * - *
{@code
- *
- * }
- *
- * Actors are defined through SystemConfig. Only system packages can be used. - * The namespace "android" is reserved for use by AOSP and any "android" definitions must - * have an implementation on device that fulfill their intended functionality.
- * - *{@code
- *
- * }
- *
- * An actor can manipulate a particular overlay if any of the following is true: *
Users of this API must be actors of any overlays they desire to change the state of. + * + *
An actor is a package responsible for managing the state of overlays targeting + * overlayables that specify the actor. For example, an actor may enable or disable an overlay + * or otherwise change its state. + * + *
Actors are specified as part of the overlayable definition. + * + *
{@code
+ *
+ * }
+ *
+ * Actors are defined through {@code com.android.server.SystemConfig}. Only system packages + * can be used. The namespace "android" is reserved for use by AOSP and any "android" + * definitions must have an implementation on device that fulfill their intended functionality. + * + *
{@code
+ *
+ * }
+ *
+ * An actor can manipulate a particular overlay if any of the following is true: + *