Merge "Add isStable in Parcelable interface" am: ed760b0671 am: f4b4f48ae2

Change-Id: I6aa8eb9fb3f1df527e2bc211febd098c4d9cc7c2
This commit is contained in:
Treehugger Robot 2020-05-18 22:19:24 +00:00 committed by Automerger Merge Worker
commit e965571db4

View file

@ -52,6 +52,12 @@ public:
//
// Returns android::OK on success and an appropriate error otherwise.
virtual status_t readFromParcel(const Parcel* parcel) = 0;
// 'Stable' means this parcelable is guaranteed to be stable for multiple years.
// It must be guaranteed by setting stability field in aidl_interface.
// WARNING: isStable() is only expected to be overridden by auto-generated code.
// Returns true if this parcelable is stable.
virtual bool isStable() const { return false; }
}; // class Parcelable
#if defined(__clang__)