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

Commit 9e808665 authored by Jeongik Cha's avatar Jeongik Cha
Browse files

Add isStable in Parcelable interface

Bug: 156242606
Test: m
Change-Id: I0edc64c8c7f8c9c08384f9d48832549eb026b9d0
parent dd44f746
Loading
Loading
Loading
Loading
+6 −0
Original line number Original line Diff line number Diff line
@@ -52,6 +52,12 @@ public:
    //
    //
    // Returns android::OK on success and an appropriate error otherwise.
    // Returns android::OK on success and an appropriate error otherwise.
    virtual status_t readFromParcel(const Parcel* parcel) = 0;
    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
};  // class Parcelable


#if defined(__clang__)
#if defined(__clang__)