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 29 -pout/soong/.intermediates/system/hardware/interfaces/media/android.media.audio.common.types_interface/4/preprocessed.aidl -pout/soong/.intermediates/frameworks/native/libs/permission/framework-permission-aidl_interface/preprocessed.aidl --ninja -d out/soong/.intermediates/frameworks/av/media/libaudioclient/audioclient-types-aidl-cpp-source/gen/staging/android/media/AudioIoDescriptor.cpp.d -h out/soong/.intermediates/frameworks/av/media/libaudioclient/audioclient-types-aidl-cpp-source/gen/include/staging -o out/soong/.intermediates/frameworks/av/media/libaudioclient/audioclient-types-aidl-cpp-source/gen/staging -Nframeworks/av/media/libaudioclient/aidl frameworks/av/media/libaudioclient/aidl/android/media/AudioIoDescriptor.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 <android/binder_to_string.h> 12 #include <android/media/AudioPatchFw.h> 13 #include <android/media/audio/common/AudioChannelLayout.h> 14 #include <android/media/audio/common/AudioFormatDescription.h> 15 #include <binder/Parcel.h> 16 #include <binder/Status.h> 17 #include <cstdint> 18 #include <tuple> 19 #include <utils/String16.h> 20 21 namespace android::media { 22 class AudioPatchFw; 23 } // namespace android::media 24 namespace android::media::audio::common { 25 class AudioFormatDescription; 26 } // namespace android::media::audio::common 27 namespace android { 28 namespace media { 29 class LIBBINDER_EXPORTED AudioIoDescriptor : public ::android::Parcelable { 30 public: 31 int32_t ioHandle = 0; 32 ::android::media::AudioPatchFw patch; 33 bool isInput = false; 34 int32_t samplingRate = 0; 35 ::android::media::audio::common::AudioFormatDescription format; 36 ::android::media::audio::common::AudioChannelLayout channelMask; 37 int64_t frameCount = 0L; 38 int64_t frameCountHAL = 0L; 39 int32_t latency = 0; 40 int32_t portId = 0; 41 inline bool operator==(const AudioIoDescriptor& _rhs) const { 42 return std::tie(ioHandle, patch, isInput, samplingRate, format, channelMask, frameCount, frameCountHAL, latency, portId) == std::tie(_rhs.ioHandle, _rhs.patch, _rhs.isInput, _rhs.samplingRate, _rhs.format, _rhs.channelMask, _rhs.frameCount, _rhs.frameCountHAL, _rhs.latency, _rhs.portId); 43 } 44 inline bool operator<(const AudioIoDescriptor& _rhs) const { 45 return std::tie(ioHandle, patch, isInput, samplingRate, format, channelMask, frameCount, frameCountHAL, latency, portId) < std::tie(_rhs.ioHandle, _rhs.patch, _rhs.isInput, _rhs.samplingRate, _rhs.format, _rhs.channelMask, _rhs.frameCount, _rhs.frameCountHAL, _rhs.latency, _rhs.portId); 46 } 47 inline bool operator!=(const AudioIoDescriptor& _rhs) const { 48 return !(*this == _rhs); 49 } 50 inline bool operator>(const AudioIoDescriptor& _rhs) const { 51 return _rhs < *this; 52 } 53 inline bool operator>=(const AudioIoDescriptor& _rhs) const { 54 return !(*this < _rhs); 55 } 56 inline bool operator<=(const AudioIoDescriptor& _rhs) const { 57 return !(_rhs < *this); 58 } 59 60 ::android::status_t readFromParcel(const ::android::Parcel* _aidl_parcel) final; 61 ::android::status_t writeToParcel(::android::Parcel* _aidl_parcel) const final; getParcelableDescriptor()62 static const ::android::String16& getParcelableDescriptor() { 63 static const ::android::StaticString16 DESCRIPTOR (u"android.media.AudioIoDescriptor"); 64 return DESCRIPTOR; 65 } toString()66 inline std::string toString() const { 67 std::ostringstream _aidl_os; 68 _aidl_os << "AudioIoDescriptor{"; 69 _aidl_os << "ioHandle: " << ::android::internal::ToString(ioHandle); 70 _aidl_os << ", patch: " << ::android::internal::ToString(patch); 71 _aidl_os << ", isInput: " << ::android::internal::ToString(isInput); 72 _aidl_os << ", samplingRate: " << ::android::internal::ToString(samplingRate); 73 _aidl_os << ", format: " << ::android::internal::ToString(format); 74 _aidl_os << ", channelMask: " << ::android::internal::ToString(channelMask); 75 _aidl_os << ", frameCount: " << ::android::internal::ToString(frameCount); 76 _aidl_os << ", frameCountHAL: " << ::android::internal::ToString(frameCountHAL); 77 _aidl_os << ", latency: " << ::android::internal::ToString(latency); 78 _aidl_os << ", portId: " << ::android::internal::ToString(portId); 79 _aidl_os << "}"; 80 return _aidl_os.str(); 81 } 82 }; // class AudioIoDescriptor 83 } // namespace media 84 } // namespace android 85