blob: f89954a8974663971fddb4dfdcf7b65a25f88a4a [file] [log] [blame]
#pragma once
#include <android/binder_to_string.h>
#include <binder/Parcel.h>
#include <binder/Status.h>
#include <cstdint>
#include <string>
#include <tuple>
#include <utils/String16.h>
namespace android {
namespace aidl {
namespace tests {
namespace extension {
class MyExt : public ::android::Parcelable {
public:
int32_t a = 0;
::std::string b;
inline bool operator!=(const MyExt& rhs) const {
return std::tie(a, b) != std::tie(rhs.a, rhs.b);
}
inline bool operator<(const MyExt& rhs) const {
return std::tie(a, b) < std::tie(rhs.a, rhs.b);
}
inline bool operator<=(const MyExt& rhs) const {
return std::tie(a, b) <= std::tie(rhs.a, rhs.b);
}
inline bool operator==(const MyExt& rhs) const {
return std::tie(a, b) == std::tie(rhs.a, rhs.b);
}
inline bool operator>(const MyExt& rhs) const {
return std::tie(a, b) > std::tie(rhs.a, rhs.b);
}
inline bool operator>=(const MyExt& rhs) const {
return std::tie(a, b) >= std::tie(rhs.a, rhs.b);
}
::android::status_t readFromParcel(const ::android::Parcel* _aidl_parcel) final;
::android::status_t writeToParcel(::android::Parcel* _aidl_parcel) const final;
static const ::android::String16& getParcelableDescriptor() {
static const ::android::StaticString16 DESCIPTOR (u"android.aidl.tests.extension.MyExt");
return DESCIPTOR;
}
inline std::string toString() const {
std::ostringstream os;
os << "MyExt{";
os << "a: " << ::android::internal::ToString(a);
os << ", b: " << ::android::internal::ToString(b);
os << "}";
return os.str();
}
}; // class MyExt
} // namespace extension
} // namespace tests
} // namespace aidl
} // namespace android