1 /* 2 * This file is auto-generated. DO NOT MODIFY. 3 * Using: out/host/linux-x86/bin/aidl --lang=ndk -Weverything -Wno-missing-permission-annotation --structured --version 3 --hash notfrozen -t --stability vintf --min_sdk_version current -pout/soong/.intermediates/system/hardware/interfaces/media/android.media.audio.common.types_interface/4/preprocessed.aidl -pout/soong/.intermediates/hardware/interfaces/audio/aidl/android.hardware.audio.effect_interface/3/preprocessed.aidl -pout/soong/.intermediates/hardware/interfaces/audio/aidl/android.hardware.audio.core.sounddose_interface/3/preprocessed.aidl -pout/soong/.intermediates/hardware/interfaces/audio/aidl/android.hardware.audio.common_interface/4/preprocessed.aidl -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 --previous_api_dir=hardware/interfaces/audio/aidl/aidl_api/android.hardware.audio.core/2 --previous_hash 003735b3fd3c94c53b02a6eb5e099731f7062610 --ninja -d out/soong/.intermediates/hardware/interfaces/audio/aidl/android.hardware.audio.core-V3-ndk-source/gen/staging/android/hardware/audio/core/SurroundSoundConfig.cpp.d -h out/soong/.intermediates/hardware/interfaces/audio/aidl/android.hardware.audio.core-V3-ndk-source/gen/include/staging -o out/soong/.intermediates/hardware/interfaces/audio/aidl/android.hardware.audio.core-V3-ndk-source/gen/staging -Nhardware/interfaces/audio/aidl hardware/interfaces/audio/aidl/android/hardware/audio/core/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 <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/audio/core/SurroundSoundConfig.h> 20 #include <aidl/android/media/audio/common/AudioFormatDescription.h> 21 #ifdef BINDER_STABILITY_SUPPORT 22 #include <android/binder_stability.h> 23 #endif // BINDER_STABILITY_SUPPORT 24 25 namespace aidl::android::media::audio::common { 26 class AudioFormatDescription; 27 } // namespace aidl::android::media::audio::common 28 namespace aidl { 29 namespace android { 30 namespace hardware { 31 namespace audio { 32 namespace core { 33 class SurroundSoundConfig { 34 public: 35 typedef std::false_type fixed_size; 36 static const char* descriptor; 37 38 class SurroundFormatFamily { 39 public: 40 typedef std::false_type fixed_size; 41 static const char* descriptor; 42 43 ::aidl::android::media::audio::common::AudioFormatDescription primaryFormat; 44 std::vector<::aidl::android::media::audio::common::AudioFormatDescription> subFormats; 45 46 binder_status_t readFromParcel(const AParcel* parcel); 47 binder_status_t writeToParcel(AParcel* parcel) const; 48 49 inline bool operator==(const SurroundFormatFamily& _rhs) const { 50 return std::tie(primaryFormat, subFormats) == std::tie(_rhs.primaryFormat, _rhs.subFormats); 51 } 52 inline bool operator<(const SurroundFormatFamily& _rhs) const { 53 return std::tie(primaryFormat, subFormats) < std::tie(_rhs.primaryFormat, _rhs.subFormats); 54 } 55 inline bool operator!=(const SurroundFormatFamily& _rhs) const { 56 return !(*this == _rhs); 57 } 58 inline bool operator>(const SurroundFormatFamily& _rhs) const { 59 return _rhs < *this; 60 } 61 inline bool operator>=(const SurroundFormatFamily& _rhs) const { 62 return !(*this < _rhs); 63 } 64 inline bool operator<=(const SurroundFormatFamily& _rhs) const { 65 return !(_rhs < *this); 66 } 67 68 static const ::ndk::parcelable_stability_t _aidl_stability = ::ndk::STABILITY_VINTF; toString()69 inline std::string toString() const { 70 std::ostringstream _aidl_os; 71 _aidl_os << "SurroundFormatFamily{"; 72 _aidl_os << "primaryFormat: " << ::android::internal::ToString(primaryFormat); 73 _aidl_os << ", subFormats: " << ::android::internal::ToString(subFormats); 74 _aidl_os << "}"; 75 return _aidl_os.str(); 76 } 77 }; 78 std::vector<::aidl::android::hardware::audio::core::SurroundSoundConfig::SurroundFormatFamily> formatFamilies; 79 80 binder_status_t readFromParcel(const AParcel* parcel); 81 binder_status_t writeToParcel(AParcel* parcel) const; 82 83 inline bool operator==(const SurroundSoundConfig& _rhs) const { 84 return std::tie(formatFamilies) == std::tie(_rhs.formatFamilies); 85 } 86 inline bool operator<(const SurroundSoundConfig& _rhs) const { 87 return std::tie(formatFamilies) < std::tie(_rhs.formatFamilies); 88 } 89 inline bool operator!=(const SurroundSoundConfig& _rhs) const { 90 return !(*this == _rhs); 91 } 92 inline bool operator>(const SurroundSoundConfig& _rhs) const { 93 return _rhs < *this; 94 } 95 inline bool operator>=(const SurroundSoundConfig& _rhs) const { 96 return !(*this < _rhs); 97 } 98 inline bool operator<=(const SurroundSoundConfig& _rhs) const { 99 return !(_rhs < *this); 100 } 101 102 static const ::ndk::parcelable_stability_t _aidl_stability = ::ndk::STABILITY_VINTF; toString()103 inline std::string toString() const { 104 std::ostringstream _aidl_os; 105 _aidl_os << "SurroundSoundConfig{"; 106 _aidl_os << "formatFamilies: " << ::android::internal::ToString(formatFamilies); 107 _aidl_os << "}"; 108 return _aidl_os.str(); 109 } 110 }; 111 } // namespace core 112 } // namespace audio 113 } // namespace hardware 114 } // namespace android 115 } // namespace aidl 116