summaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
authorJeongik Cha <jeongik@google.com>2020-10-21 00:42:09 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2020-10-21 00:42:09 +0000
commit135efb0b737702a0b25ad839b45193f7a4b8ab9d (patch)
tree84b0c61d8c1b3620c2d1546c915dc63c9062144c /api
parenta09d15adb3a4525862a6b328c36e6315a2edbd29 (diff)
parentd6018d5984e6c0071f600c18ae21414d87f589e0 (diff)
Merge "Expose 'ParcelableHolder' as SystemApi"
Diffstat (limited to 'api')
-rw-r--r--api/module-lib-current.txt2
-rwxr-xr-xapi/system-current.txt16
2 files changed, 16 insertions, 2 deletions
diff --git a/api/module-lib-current.txt b/api/module-lib-current.txt
index f07f2f34425b..2f0ae78f7e2d 100644
--- a/api/module-lib-current.txt
+++ b/api/module-lib-current.txt
@@ -47,8 +47,6 @@ 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
}
public class StatsFrameworkInitializer {
diff --git a/api/system-current.txt b/api/system-current.txt
index 8db99aa097a7..6475d81067cd 100755
--- a/api/system-current.txt
+++ b/api/system-current.txt
@@ -8350,6 +8350,22 @@ package android.os {
method public boolean hasSingleFileDescriptor();
}
+ public interface Parcelable {
+ field public static final int PARCELABLE_STABILITY_LOCAL = 0; // 0x0
+ field public static final int PARCELABLE_STABILITY_VINTF = 1; // 0x1
+ }
+
+ public final class ParcelableHolder implements android.os.Parcelable {
+ ctor public ParcelableHolder(int);
+ method public int describeContents();
+ method @Nullable public <T extends android.os.Parcelable> T getParcelable(@NonNull Class<T>);
+ method public int getStability();
+ method public void readFromParcel(@NonNull android.os.Parcel);
+ method public boolean setParcelable(@Nullable android.os.Parcelable);
+ method public void writeToParcel(@NonNull android.os.Parcel, int);
+ field @NonNull public static final android.os.Parcelable.Creator<android.os.ParcelableHolder> CREATOR;
+ }
+
public final class PowerManager {
method @RequiresPermission(allOf={android.Manifest.permission.READ_DREAM_STATE, android.Manifest.permission.WRITE_DREAM_STATE}) public void dream(long);
method @RequiresPermission(android.Manifest.permission.DEVICE_POWER) public boolean forceSuspend();