1 /*
2  * This file is auto-generated.  DO NOT MODIFY.
3  * Using: out/host/linux-x86/bin/aidl --lang=ndk --structured --version 2 --hash c12818c51418fbfc76f1b81eba6678d75cf526c1 -t --stability vintf --min_sdk_version 29 -pout/soong/.intermediates/hardware/interfaces/common/aidl/android.hardware.common_interface/2/preprocessed.aidl -pout/soong/.intermediates/hardware/interfaces/common/fmq/aidl/android.hardware.common.fmq_interface/1/preprocessed.aidl --ninja -d out/soong/.intermediates/hardware/interfaces/media/bufferpool/aidl/android.hardware.media.bufferpool2-V2-ndk-source/gen/staging/android/hardware/media/bufferpool2/BufferStatusMessage.cpp.d -h out/soong/.intermediates/hardware/interfaces/media/bufferpool/aidl/android.hardware.media.bufferpool2-V2-ndk-source/gen/include/staging -o out/soong/.intermediates/hardware/interfaces/media/bufferpool/aidl/android.hardware.media.bufferpool2-V2-ndk-source/gen/staging -Iframeworks/base/core/java -Nhardware/interfaces/media/bufferpool/aidl/aidl_api/android.hardware.media.bufferpool2/2 hardware/interfaces/media/bufferpool/aidl/aidl_api/android.hardware.media.bufferpool2/2/android/hardware/media/bufferpool2/BufferStatusMessage.aidl
4  *
5  * DO NOT CHECK THIS FILE INTO A CODE TREE (e.g. git, etc..).
6  * ALWAYS GENERATE THIS FILE FROM UPDATED AIDL COMPILER
7  * AS A BUILD INTERMEDIATE ONLY. THIS IS NOT SOURCE CODE.
8  */
9 #pragma once
10 
11 #include <cstdint>
12 #include <memory>
13 #include <optional>
14 #include <string>
15 #include <vector>
16 #include <android/binder_interface_utils.h>
17 #include <android/binder_parcelable_utils.h>
18 #include <android/binder_to_string.h>
19 #include <aidl/android/hardware/media/bufferpool2/BufferStatus.h>
20 #ifdef BINDER_STABILITY_SUPPORT
21 #include <android/binder_stability.h>
22 #endif  // BINDER_STABILITY_SUPPORT
23 
24 namespace aidl {
25 namespace android {
26 namespace hardware {
27 namespace media {
28 namespace bufferpool2 {
29 class BufferStatusMessage {
30 public:
31   typedef std::true_type fixed_size;
32   static const char* descriptor;
33 
34   int64_t transactionId __attribute__((aligned (8))) = 0L;
35   int32_t bufferId __attribute__((aligned (4))) = 0;
36   ::aidl::android::hardware::media::bufferpool2::BufferStatus status __attribute__((aligned (4))) = ::aidl::android::hardware::media::bufferpool2::BufferStatus(0);
37   int64_t connectionId __attribute__((aligned (8))) = 0L;
38   int64_t targetConnectionId __attribute__((aligned (8))) = 0L;
39   int64_t timestampUs __attribute__((aligned (8))) = 0L;
40 
41   binder_status_t readFromParcel(const AParcel* parcel);
42   binder_status_t writeToParcel(AParcel* parcel) const;
43 
44   inline bool operator==(const BufferStatusMessage& _rhs) const {
45     return std::tie(transactionId, bufferId, status, connectionId, targetConnectionId, timestampUs) == std::tie(_rhs.transactionId, _rhs.bufferId, _rhs.status, _rhs.connectionId, _rhs.targetConnectionId, _rhs.timestampUs);
46   }
47   inline bool operator<(const BufferStatusMessage& _rhs) const {
48     return std::tie(transactionId, bufferId, status, connectionId, targetConnectionId, timestampUs) < std::tie(_rhs.transactionId, _rhs.bufferId, _rhs.status, _rhs.connectionId, _rhs.targetConnectionId, _rhs.timestampUs);
49   }
50   inline bool operator!=(const BufferStatusMessage& _rhs) const {
51     return !(*this == _rhs);
52   }
53   inline bool operator>(const BufferStatusMessage& _rhs) const {
54     return _rhs < *this;
55   }
56   inline bool operator>=(const BufferStatusMessage& _rhs) const {
57     return !(*this < _rhs);
58   }
59   inline bool operator<=(const BufferStatusMessage& _rhs) const {
60     return !(_rhs < *this);
61   }
62 
63   static const ::ndk::parcelable_stability_t _aidl_stability = ::ndk::STABILITY_VINTF;
toString()64   inline std::string toString() const {
65     std::ostringstream _aidl_os;
66     _aidl_os << "BufferStatusMessage{";
67     _aidl_os << "transactionId: " << ::android::internal::ToString(transactionId);
68     _aidl_os << ", bufferId: " << ::android::internal::ToString(bufferId);
69     _aidl_os << ", status: " << ::android::internal::ToString(status);
70     _aidl_os << ", connectionId: " << ::android::internal::ToString(connectionId);
71     _aidl_os << ", targetConnectionId: " << ::android::internal::ToString(targetConnectionId);
72     _aidl_os << ", timestampUs: " << ::android::internal::ToString(timestampUs);
73     _aidl_os << "}";
74     return _aidl_os.str();
75   }
76 };
77 static_assert(offsetof(BufferStatusMessage, transactionId) == 0);
78 static_assert(sizeof(int64_t) == 8);
79 static_assert(offsetof(BufferStatusMessage, bufferId) == 8);
80 static_assert(sizeof(int32_t) == 4);
81 static_assert(offsetof(BufferStatusMessage, status) == 12);
82 static_assert(sizeof(::aidl::android::hardware::media::bufferpool2::BufferStatus) == 4);
83 static_assert(offsetof(BufferStatusMessage, connectionId) == 16);
84 static_assert(sizeof(int64_t) == 8);
85 static_assert(offsetof(BufferStatusMessage, targetConnectionId) == 24);
86 static_assert(sizeof(int64_t) == 8);
87 static_assert(offsetof(BufferStatusMessage, timestampUs) == 32);
88 static_assert(sizeof(int64_t) == 8);
89 static_assert(alignof(BufferStatusMessage) == 8);
90 static_assert(sizeof(BufferStatusMessage) == 40);
91 }  // namespace bufferpool2
92 }  // namespace media
93 }  // namespace hardware
94 }  // namespace android
95 }  // namespace aidl
96