Merge "Parcelable getStability SystemApi MODULE_LIBRARIES"
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user