1 /*
2  * This file is auto-generated.  DO NOT MODIFY.
3  * Using: out/host/linux-x86/bin/aidl --lang=cpp -Weverything -Wno-missing-permission-annotation -t --min_sdk_version current -pout/soong/.intermediates/system/hardware/interfaces/media/android.media.audio.common.types_interface/4/preprocessed.aidl -pout/soong/.intermediates/frameworks/av/media/libaudioclient/audioclient-types-aidl_interface/preprocessed.aidl -pout/soong/.intermediates/frameworks/native/libs/permission/framework-permission-aidl_interface/preprocessed.aidl -pout/soong/.intermediates/frameworks/av/media/libshmem/shared-file-region-aidl_interface/preprocessed.aidl --ninja -d out/soong/.intermediates/frameworks/av/media/libaaudio/src/aaudio-aidl-cpp-source/gen/staging/aaudio/Endpoint.cpp.d -h out/soong/.intermediates/frameworks/av/media/libaaudio/src/aaudio-aidl-cpp-source/gen/include/staging -o out/soong/.intermediates/frameworks/av/media/libaaudio/src/aaudio-aidl-cpp-source/gen/staging -Nframeworks/av/media/libaaudio/src/binding/aidl frameworks/av/media/libaaudio/src/binding/aidl/aaudio/Endpoint.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 <aaudio/RingBuffer.h>
12 #include <android/binder_to_string.h>
13 #include <android/media/SharedFileRegion.h>
14 #include <binder/Parcel.h>
15 #include <binder/Status.h>
16 #include <tuple>
17 #include <utils/String16.h>
18 #include <vector>
19 
20 namespace aaudio {
21 class RingBuffer;
22 }  // namespace aaudio
23 namespace android::media {
24 class SharedFileRegion;
25 }  // namespace android::media
26 namespace aaudio {
27 class LIBBINDER_EXPORTED Endpoint : public ::android::Parcelable {
28 public:
29   ::aaudio::RingBuffer upMessageQueueParcelable;
30   ::aaudio::RingBuffer downMessageQueueParcelable;
31   ::aaudio::RingBuffer upDataQueueParcelable;
32   ::aaudio::RingBuffer downDataQueueParcelable;
33   ::std::vector<::android::media::SharedFileRegion> sharedMemories;
34   inline bool operator==(const Endpoint& _rhs) const {
35     return std::tie(upMessageQueueParcelable, downMessageQueueParcelable, upDataQueueParcelable, downDataQueueParcelable, sharedMemories) == std::tie(_rhs.upMessageQueueParcelable, _rhs.downMessageQueueParcelable, _rhs.upDataQueueParcelable, _rhs.downDataQueueParcelable, _rhs.sharedMemories);
36   }
37   inline bool operator<(const Endpoint& _rhs) const {
38     return std::tie(upMessageQueueParcelable, downMessageQueueParcelable, upDataQueueParcelable, downDataQueueParcelable, sharedMemories) < std::tie(_rhs.upMessageQueueParcelable, _rhs.downMessageQueueParcelable, _rhs.upDataQueueParcelable, _rhs.downDataQueueParcelable, _rhs.sharedMemories);
39   }
40   inline bool operator!=(const Endpoint& _rhs) const {
41     return !(*this == _rhs);
42   }
43   inline bool operator>(const Endpoint& _rhs) const {
44     return _rhs < *this;
45   }
46   inline bool operator>=(const Endpoint& _rhs) const {
47     return !(*this < _rhs);
48   }
49   inline bool operator<=(const Endpoint& _rhs) const {
50     return !(_rhs < *this);
51   }
52 
53   ::android::status_t readFromParcel(const ::android::Parcel* _aidl_parcel) final;
54   ::android::status_t writeToParcel(::android::Parcel* _aidl_parcel) const final;
getParcelableDescriptor()55   static const ::android::String16& getParcelableDescriptor() {
56     static const ::android::StaticString16 DESCRIPTOR (u"aaudio.Endpoint");
57     return DESCRIPTOR;
58   }
toString()59   inline std::string toString() const {
60     std::ostringstream _aidl_os;
61     _aidl_os << "Endpoint{";
62     _aidl_os << "upMessageQueueParcelable: " << ::android::internal::ToString(upMessageQueueParcelable);
63     _aidl_os << ", downMessageQueueParcelable: " << ::android::internal::ToString(downMessageQueueParcelable);
64     _aidl_os << ", upDataQueueParcelable: " << ::android::internal::ToString(upDataQueueParcelable);
65     _aidl_os << ", downDataQueueParcelable: " << ::android::internal::ToString(downDataQueueParcelable);
66     _aidl_os << ", sharedMemories: " << ::android::internal::ToString(sharedMemories);
67     _aidl_os << "}";
68     return _aidl_os.str();
69   }
70 };  // class Endpoint
71 }  // namespace aaudio
72