Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2a2fb261 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Add isStable in Parcelable interface" am: ed760b06 am: f4b4f48a am:...

Merge "Add isStable in Parcelable interface" am: ed760b06 am: f4b4f48a am: e965571d am: 85d65caf am: a8654a1c

Change-Id: Ib4f8c3b07d3739bce16bbf7763c03a4d69030743
parents ee19b758 a8654a1c
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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__)