aboutsummaryrefslogtreecommitdiff
path: root/tests/golden_output/aidl-test-interface-ndk-source/gen/include/aidl/android/aidl/tests/extension/MyExt2.h
blob: 7aef5995bb9b54f2bf9747c5d243814550d3caa5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#pragma once

#include <cstdint>
#include <memory>
#include <optional>
#include <string>
#include <vector>
#include <android/binder_interface_utils.h>
#include <android/binder_parcelable_utils.h>
#include <android/binder_to_string.h>
#include <aidl/android/aidl/tests/extension/MyExt.h>
#ifdef BINDER_STABILITY_SUPPORT
#include <android/binder_stability.h>
#endif  // BINDER_STABILITY_SUPPORT

namespace aidl::android::aidl::tests::extension {
class MyExt;
}  // namespace aidl::android::aidl::tests::extension
namespace aidl {
namespace android {
namespace aidl {
namespace tests {
namespace extension {
class MyExt2 {
public:
  typedef std::false_type fixed_size;
  static const char* descriptor;

  int32_t a = 0;
  ::aidl::android::aidl::tests::extension::MyExt b;
  std::string c;

  binder_status_t readFromParcel(const AParcel* parcel);
  binder_status_t writeToParcel(AParcel* parcel) const;

  inline bool operator!=(const MyExt2& rhs) const {
    return std::tie(a, b, c) != std::tie(rhs.a, rhs.b, rhs.c);
  }
  inline bool operator<(const MyExt2& rhs) const {
    return std::tie(a, b, c) < std::tie(rhs.a, rhs.b, rhs.c);
  }
  inline bool operator<=(const MyExt2& rhs) const {
    return std::tie(a, b, c) <= std::tie(rhs.a, rhs.b, rhs.c);
  }
  inline bool operator==(const MyExt2& rhs) const {
    return std::tie(a, b, c) == std::tie(rhs.a, rhs.b, rhs.c);
  }
  inline bool operator>(const MyExt2& rhs) const {
    return std::tie(a, b, c) > std::tie(rhs.a, rhs.b, rhs.c);
  }
  inline bool operator>=(const MyExt2& rhs) const {
    return std::tie(a, b, c) >= std::tie(rhs.a, rhs.b, rhs.c);
  }

  static const ::ndk::parcelable_stability_t _aidl_stability = ::ndk::STABILITY_LOCAL;
  inline std::string toString() const {
    std::ostringstream os;
    os << "MyExt2{";
    os << "a: " << ::android::internal::ToString(a);
    os << ", b: " << ::android::internal::ToString(b);
    os << ", c: " << ::android::internal::ToString(c);
    os << "}";
    return os.str();
  }
};
}  // namespace extension
}  // namespace tests
}  // namespace aidl
}  // namespace android
}  // namespace aidl