Merge "Parcelable getStability SystemApi MODULE_LIBRARIES" am: e3b0b6d007 am: 1e16995094

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1392003

Change-Id: Ibd396e7b4d12e1765f71413d730d51997c5b4306
This commit is contained in:
Treehugger Robot
2020-08-10 20:47:00 +00:00
committed by Automerger Merge Worker
3 changed files with 3 additions and 0 deletions

View File

@@ -46,6 +46,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
}

View File

@@ -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;
}

View File

@@ -6,6 +6,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
}