Allow module libs to use VINTF AIDL (part II)

Allow parcelables to be compiled which report VINTF stability.

Bug: 161501127
Test: atest aidl_integration_test
Change-Id: Idc2acb28ac0475ee69385487c7ef619951f93516
Merged-In: Idc2acb28ac0475ee69385487c7ef619951f93516
This commit is contained in:
Steven Moreland
2020-07-28 01:23:33 +00:00
parent 9e9ce9f9ef
commit 291348786a
3 changed files with 13 additions and 0 deletions

View File

@@ -55,5 +55,10 @@ package android.os {
method public final void markVintfStability();
}
public interface Parcelable {
field public static final int PARCELABLE_STABILITY_LOCAL = 0; // 0x0
field public static final int PARCELABLE_STABILITY_VINTF = 1; // 0x1
}
}

View File

@@ -17,6 +17,7 @@
package android.os;
import android.annotation.IntDef;
import android.annotation.SystemApi;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
@@ -119,6 +120,7 @@ public interface Parcelable {
* @see ParcelableHolder
* @hide
*/
@SystemApi(client = SystemApi.Client.MODULE_LIBRARIES)
public static final int PARCELABLE_STABILITY_LOCAL = 0x0000;
/**
* Something that is meant to be used between system and vendor.
@@ -126,6 +128,7 @@ public interface Parcelable {
* @see ParcelableHolder
* @hide
*/
@SystemApi(client = SystemApi.Client.MODULE_LIBRARIES)
public static final int PARCELABLE_STABILITY_VINTF = 0x0001;
/**

View File

@@ -15,5 +15,10 @@ package android.os {
method public final void markVintfStability();
}
public interface Parcelable {
field public static final int PARCELABLE_STABILITY_LOCAL = 0; // 0x0
field public static final int PARCELABLE_STABILITY_VINTF = 1; // 0x1
}
}