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/SurroundSoundConfig.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/SurroundSoundConfig.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/SurroundSoundConfig.h> 13 #include <android/media/audio/common/AudioFormatDescription.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 android::media::audio::common { 21 class AudioFormatDescription; 22 } // namespace android::media::audio::common 23 namespace android { 24 namespace media { 25 class LIBBINDER_EXPORTED SurroundSoundConfig : public ::android::Parcelable { 26 public: 27 class LIBBINDER_EXPORTED SurroundFormatFamily : public ::android::Parcelable { 28 public: 29 ::android::media::audio::common::AudioFormatDescription primaryFormat; 30 ::std::vector<::android::media::audio::common::AudioFormatDescription> subFormats; 31 inline bool operator==(const SurroundFormatFamily& _rhs) const { 32 return std::tie(primaryFormat, subFormats) == std::tie(_rhs.primaryFormat, _rhs.subFormats); 33 } 34 inline bool operator<(const SurroundFormatFamily& _rhs) const { 35 return std::tie(primaryFormat, subFormats) < std::tie(_rhs.primaryFormat, _rhs.subFormats); 36 } 37 inline bool operator!=(const SurroundFormatFamily& _rhs) const { 38 return !(*this == _rhs); 39 } 40 inline bool operator>(const SurroundFormatFamily& _rhs) const { 41 return _rhs < *this; 42 } 43 inline bool operator>=(const SurroundFormatFamily& _rhs) const { 44 return !(*this < _rhs); 45 } 46 inline bool operator<=(const SurroundFormatFamily& _rhs) const { 47 return !(_rhs < *this); 48 } 49 50 ::android::status_t readFromParcel(const ::android::Parcel* _aidl_parcel) final; 51 ::android::status_t writeToParcel(::android::Parcel* _aidl_parcel) const final; getParcelableDescriptor()52 static const ::android::String16& getParcelableDescriptor() { 53 static const ::android::StaticString16 DESCRIPTOR (u"android.media.SurroundSoundConfig.SurroundFormatFamily"); 54 return DESCRIPTOR; 55 } toString()56 inline std::string toString() const { 57 std::ostringstream _aidl_os; 58 _aidl_os << "SurroundFormatFamily{"; 59 _aidl_os << "primaryFormat: " << ::android::internal::ToString(primaryFormat); 60 _aidl_os << ", subFormats: " << ::android::internal::ToString(subFormats); 61 _aidl_os << "}"; 62 return _aidl_os.str(); 63 } 64 }; // class SurroundFormatFamily 65 ::std::vector<::android::media::SurroundSoundConfig::SurroundFormatFamily> formatFamilies; 66 inline bool operator==(const SurroundSoundConfig& _rhs) const { 67 return std::tie(formatFamilies) == std::tie(_rhs.formatFamilies); 68 } 69 inline bool operator<(const SurroundSoundConfig& _rhs) const { 70 return std::tie(formatFamilies) < std::tie(_rhs.formatFamilies); 71 } 72 inline bool operator!=(const SurroundSoundConfig& _rhs) const { 73 return !(*this == _rhs); 74 } 75 inline bool operator>(const SurroundSoundConfig& _rhs) const { 76 return _rhs < *this; 77 } 78 inline bool operator>=(const SurroundSoundConfig& _rhs) const { 79 return !(*this < _rhs); 80 } 81 inline bool operator<=(const SurroundSoundConfig& _rhs) const { 82 return !(_rhs < *this); 83 } 84 85 ::android::status_t readFromParcel(const ::android::Parcel* _aidl_parcel) final; 86 ::android::status_t writeToParcel(::android::Parcel* _aidl_parcel) const final; getParcelableDescriptor()87 static const ::android::String16& getParcelableDescriptor() { 88 static const ::android::StaticString16 DESCRIPTOR (u"android.media.SurroundSoundConfig"); 89 return DESCRIPTOR; 90 } toString()91 inline std::string toString() const { 92 std::ostringstream _aidl_os; 93 _aidl_os << "SurroundSoundConfig{"; 94 _aidl_os << "formatFamilies: " << ::android::internal::ToString(formatFamilies); 95 _aidl_os << "}"; 96 return _aidl_os.str(); 97 } 98 }; // class SurroundSoundConfig 99 } // namespace media 100 } // namespace android 101