class Parcelable
Defined at line 36 of file ../../third_party/android/platform/frameworks/native/libs/binder/include/binder/Parcelable.h
Abstract interface of all parcelables.
Public Methods
void ~Parcelable ()
Defined at line 38 of file ../../third_party/android/platform/frameworks/native/libs/binder/include/binder/Parcelable.h
void Parcelable ()
Defined at line 40 of file ../../third_party/android/platform/frameworks/native/libs/binder/include/binder/Parcelable.h
void Parcelable (const Parcelable & )
Defined at line 41 of file ../../third_party/android/platform/frameworks/native/libs/binder/include/binder/Parcelable.h
Stability getStability ()
'Stable' means this parcelable is guaranteed to be stable for multiple
years.
It must be guaranteed by setting stability field in aidl_interface.
WARNING: getStability() is only expected to be overridden by auto-generated
code. Returns true if this parcelable is stable.
Defined at line 70 of file ../../third_party/android/platform/frameworks/native/libs/binder/include/binder/Parcelable.h
status_t writeToParcel (Parcel * parcel)
Write |this| parcelable to the given |parcel|. Keep in mind that
implementations of writeToParcel must be manually kept in sync
with readFromParcel and the Java equivalent versions of these methods.
Returns android::OK on success and an appropriate error otherwise.
status_t readFromParcel (const Parcel * parcel)
Read data from the given |parcel| into |this|. After readFromParcel
completes, |this| should have equivalent state to the object that
wrote itself to the parcel.
Returns android::OK on success and an appropriate error otherwise.
Enumerations
enum Stability
| Name | Value |
|---|---|
| STABILITY_LOCAL | 0 |
| STABILITY_VINTF | 1 |
WARNING: for use by auto-generated code only (AIDL). Should not be used
manually, or there is a risk of breaking CTS, GTS, VTS, or CTS-on-GSI
tests.
Defined at line 60 of file ../../third_party/android/platform/frameworks/native/libs/binder/include/binder/Parcelable.h