Loading api/system-current.txt +5 −5 Original line number Diff line number Diff line Loading @@ -1457,14 +1457,14 @@ package android.content.om { public final class OverlayInfo implements android.os.Parcelable { method public int describeContents(); method @Nullable public String getCategory(); method @NonNull public String getPackageName(); method @Nullable public String getTargetOverlayableName(); method @Nullable public String getTargetPackageName(); method public int getUserId(); method public boolean isEnabled(); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator<android.content.om.OverlayInfo> CREATOR; field public final String category; field public final String packageName; field public final String targetOverlayableName; field public final String targetPackageName; field public final int userId; } public class OverlayManager { Loading core/java/android/content/om/OverlayInfo.java +51 −5 Original line number Diff line number Diff line Loading @@ -20,6 +20,7 @@ import android.annotation.IntDef; import android.annotation.NonNull; import android.annotation.Nullable; import android.annotation.SystemApi; import android.annotation.UserIdInt; import android.os.Parcel; import android.os.Parcelable; Loading Loading @@ -135,7 +136,6 @@ public final class OverlayInfo implements Parcelable { * * @hide */ @SystemApi public final String packageName; /** Loading @@ -143,7 +143,6 @@ public final class OverlayInfo implements Parcelable { * * @hide */ @SystemApi public final String targetPackageName; /** Loading @@ -151,7 +150,6 @@ public final class OverlayInfo implements Parcelable { * * @hide */ @SystemApi public final String targetOverlayableName; /** Loading @@ -159,7 +157,6 @@ public final class OverlayInfo implements Parcelable { * * @hide */ @SystemApi public final String category; /** Loading @@ -178,7 +175,6 @@ public final class OverlayInfo implements Parcelable { * User handle for which this overlay applies * @hide */ @SystemApi public final int userId; /** Loading Loading @@ -243,6 +239,56 @@ public final class OverlayInfo implements Parcelable { ensureValidState(); } /** * Returns package name of the current overlay. * @hide */ @SystemApi @NonNull public String getPackageName() { return packageName; } /** * Returns the target package name of the current overlay. * @hide */ @SystemApi @Nullable public String getTargetPackageName() { return targetPackageName; } /** * Returns the category of the current overlay. * @hide\ */ @SystemApi @Nullable public String getCategory() { return category; } /** * Returns user handle for which this overlay applies to. * @hide */ @SystemApi @UserIdInt public int getUserId() { return userId; } /** * Returns name of the target overlayable declaration. * @hide */ @SystemApi @Nullable public String getTargetOverlayableName() { return targetOverlayableName; } private void ensureValidState() { if (packageName == null) { throw new IllegalArgumentException("packageName must not be null"); Loading Loading
api/system-current.txt +5 −5 Original line number Diff line number Diff line Loading @@ -1457,14 +1457,14 @@ package android.content.om { public final class OverlayInfo implements android.os.Parcelable { method public int describeContents(); method @Nullable public String getCategory(); method @NonNull public String getPackageName(); method @Nullable public String getTargetOverlayableName(); method @Nullable public String getTargetPackageName(); method public int getUserId(); method public boolean isEnabled(); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator<android.content.om.OverlayInfo> CREATOR; field public final String category; field public final String packageName; field public final String targetOverlayableName; field public final String targetPackageName; field public final int userId; } public class OverlayManager { Loading
core/java/android/content/om/OverlayInfo.java +51 −5 Original line number Diff line number Diff line Loading @@ -20,6 +20,7 @@ import android.annotation.IntDef; import android.annotation.NonNull; import android.annotation.Nullable; import android.annotation.SystemApi; import android.annotation.UserIdInt; import android.os.Parcel; import android.os.Parcelable; Loading Loading @@ -135,7 +136,6 @@ public final class OverlayInfo implements Parcelable { * * @hide */ @SystemApi public final String packageName; /** Loading @@ -143,7 +143,6 @@ public final class OverlayInfo implements Parcelable { * * @hide */ @SystemApi public final String targetPackageName; /** Loading @@ -151,7 +150,6 @@ public final class OverlayInfo implements Parcelable { * * @hide */ @SystemApi public final String targetOverlayableName; /** Loading @@ -159,7 +157,6 @@ public final class OverlayInfo implements Parcelable { * * @hide */ @SystemApi public final String category; /** Loading @@ -178,7 +175,6 @@ public final class OverlayInfo implements Parcelable { * User handle for which this overlay applies * @hide */ @SystemApi public final int userId; /** Loading Loading @@ -243,6 +239,56 @@ public final class OverlayInfo implements Parcelable { ensureValidState(); } /** * Returns package name of the current overlay. * @hide */ @SystemApi @NonNull public String getPackageName() { return packageName; } /** * Returns the target package name of the current overlay. * @hide */ @SystemApi @Nullable public String getTargetPackageName() { return targetPackageName; } /** * Returns the category of the current overlay. * @hide\ */ @SystemApi @Nullable public String getCategory() { return category; } /** * Returns user handle for which this overlay applies to. * @hide */ @SystemApi @UserIdInt public int getUserId() { return userId; } /** * Returns name of the target overlayable declaration. * @hide */ @SystemApi @Nullable public String getTargetOverlayableName() { return targetOverlayableName; } private void ensureValidState() { if (packageName == null) { throw new IllegalArgumentException("packageName must not be null"); Loading