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

Commit 75424755 authored by Steven Moreland's avatar Steven Moreland
Browse files

Parcelable getStability SystemApi MODULE_LIBRARIES

This method is intentionally overridden by subclasses. The
infrastructure doesn't detect that this is happening, but we should
still annotate this as part of the API.

As requested by API review council.

Bug: 162811168
Test: build only
Change-Id: I27714a93b71108cc0cc62fc858c260e2a6920ba9
parent 29134878
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -56,6 +56,7 @@ package android.os {
  }

  public interface Parcelable {
    method public default int getStability();
    field public static final int PARCELABLE_STABILITY_LOCAL = 0; // 0x0
    field public static final int PARCELABLE_STABILITY_VINTF = 1; // 0x1
  }
+1 −0
Original line number Diff line number Diff line
@@ -161,6 +161,7 @@ public interface Parcelable {
     * @return true if this parcelable is stable.
     * @hide
     */
    @SystemApi(client = SystemApi.Client.MODULE_LIBRARIES)
    default @Stability int getStability() {
        return PARCELABLE_STABILITY_LOCAL;
    }
+1 −0
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@ package android.os {
  }

  public interface Parcelable {
    method public default int getStability();
    field public static final int PARCELABLE_STABILITY_LOCAL = 0; // 0x0
    field public static final int PARCELABLE_STABILITY_VINTF = 1; // 0x1
  }