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/RingBuffer.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/RingBuffer.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/SharedRegion.h> 12 #include <android/binder_to_string.h> 13 #include <binder/Parcel.h> 14 #include <binder/Status.h> 15 #include <cstdint> 16 #include <tuple> 17 #include <utils/String16.h> 18 19 namespace aaudio { 20 class SharedRegion; 21 } // namespace aaudio 22 namespace aaudio { 23 class LIBBINDER_EXPORTED RingBuffer : public ::android::Parcelable { 24 public: 25 ::aaudio::SharedRegion readCounterParcelable; 26 ::aaudio::SharedRegion writeCounterParcelable; 27 ::aaudio::SharedRegion dataParcelable; 28 int32_t bytesPerFrame = 0; 29 int32_t framesPerBurst = 0; 30 int32_t capacityInFrames = 0; 31 int32_t flags = 0; 32 inline bool operator==(const RingBuffer& _rhs) const { 33 return std::tie(readCounterParcelable, writeCounterParcelable, dataParcelable, bytesPerFrame, framesPerBurst, capacityInFrames, flags) == std::tie(_rhs.readCounterParcelable, _rhs.writeCounterParcelable, _rhs.dataParcelable, _rhs.bytesPerFrame, _rhs.framesPerBurst, _rhs.capacityInFrames, _rhs.flags); 34 } 35 inline bool operator<(const RingBuffer& _rhs) const { 36 return std::tie(readCounterParcelable, writeCounterParcelable, dataParcelable, bytesPerFrame, framesPerBurst, capacityInFrames, flags) < std::tie(_rhs.readCounterParcelable, _rhs.writeCounterParcelable, _rhs.dataParcelable, _rhs.bytesPerFrame, _rhs.framesPerBurst, _rhs.capacityInFrames, _rhs.flags); 37 } 38 inline bool operator!=(const RingBuffer& _rhs) const { 39 return !(*this == _rhs); 40 } 41 inline bool operator>(const RingBuffer& _rhs) const { 42 return _rhs < *this; 43 } 44 inline bool operator>=(const RingBuffer& _rhs) const { 45 return !(*this < _rhs); 46 } 47 inline bool operator<=(const RingBuffer& _rhs) const { 48 return !(_rhs < *this); 49 } 50 51 ::android::status_t readFromParcel(const ::android::Parcel* _aidl_parcel) final; 52 ::android::status_t writeToParcel(::android::Parcel* _aidl_parcel) const final; getParcelableDescriptor()53 static const ::android::String16& getParcelableDescriptor() { 54 static const ::android::StaticString16 DESCRIPTOR (u"aaudio.RingBuffer"); 55 return DESCRIPTOR; 56 } toString()57 inline std::string toString() const { 58 std::ostringstream _aidl_os; 59 _aidl_os << "RingBuffer{"; 60 _aidl_os << "readCounterParcelable: " << ::android::internal::ToString(readCounterParcelable); 61 _aidl_os << ", writeCounterParcelable: " << ::android::internal::ToString(writeCounterParcelable); 62 _aidl_os << ", dataParcelable: " << ::android::internal::ToString(dataParcelable); 63 _aidl_os << ", bytesPerFrame: " << ::android::internal::ToString(bytesPerFrame); 64 _aidl_os << ", framesPerBurst: " << ::android::internal::ToString(framesPerBurst); 65 _aidl_os << ", capacityInFrames: " << ::android::internal::ToString(capacityInFrames); 66 _aidl_os << ", flags: " << ::android::internal::ToString(flags); 67 _aidl_os << "}"; 68 return _aidl_os.str(); 69 } 70 }; // class RingBuffer 71 } // namespace aaudio 72