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.eraser.types_interface/1/preprocessed.aidl -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.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.effect/2 --previous_hash 54d5a2e1d59066b57e35eb7bcb5ebc72a1259c1c --ninja -d out/soong/.intermediates/hardware/interfaces/audio/aidl/android.hardware.audio.effect-V3-ndk-source/gen/staging/android/hardware/audio/effect/Descriptor.cpp.d -h out/soong/.intermediates/hardware/interfaces/audio/aidl/android.hardware.audio.effect-V3-ndk-source/gen/include/staging -o out/soong/.intermediates/hardware/interfaces/audio/aidl/android.hardware.audio.effect-V3-ndk-source/gen/staging -Nhardware/interfaces/audio/aidl hardware/interfaces/audio/aidl/android/hardware/audio/effect/Descriptor.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/effect/Capability.h> 20 #include <aidl/android/hardware/audio/effect/Descriptor.h> 21 #include <aidl/android/hardware/audio/effect/Flags.h> 22 #include <aidl/android/media/audio/common/AudioUuid.h> 23 #ifdef BINDER_STABILITY_SUPPORT 24 #include <android/binder_stability.h> 25 #endif // BINDER_STABILITY_SUPPORT 26 27 namespace aidl::android::hardware::audio::effect { 28 class Capability; 29 class Flags; 30 } // namespace aidl::android::hardware::audio::effect 31 namespace aidl::android::media::audio::common { 32 class AudioUuid; 33 } // namespace aidl::android::media::audio::common 34 namespace aidl { 35 namespace android { 36 namespace hardware { 37 namespace audio { 38 namespace effect { 39 class Descriptor { 40 public: 41 typedef std::false_type fixed_size; 42 static const char* descriptor; 43 44 class Identity { 45 public: 46 typedef std::false_type fixed_size; 47 static const char* descriptor; 48 49 ::aidl::android::media::audio::common::AudioUuid type; 50 ::aidl::android::media::audio::common::AudioUuid uuid; 51 std::optional<::aidl::android::media::audio::common::AudioUuid> proxy; 52 53 binder_status_t readFromParcel(const AParcel* parcel); 54 binder_status_t writeToParcel(AParcel* parcel) const; 55 56 inline bool operator==(const Identity& _rhs) const { 57 return std::tie(type, uuid, proxy) == std::tie(_rhs.type, _rhs.uuid, _rhs.proxy); 58 } 59 inline bool operator<(const Identity& _rhs) const { 60 return std::tie(type, uuid, proxy) < std::tie(_rhs.type, _rhs.uuid, _rhs.proxy); 61 } 62 inline bool operator!=(const Identity& _rhs) const { 63 return !(*this == _rhs); 64 } 65 inline bool operator>(const Identity& _rhs) const { 66 return _rhs < *this; 67 } 68 inline bool operator>=(const Identity& _rhs) const { 69 return !(*this < _rhs); 70 } 71 inline bool operator<=(const Identity& _rhs) const { 72 return !(_rhs < *this); 73 } 74 75 static const ::ndk::parcelable_stability_t _aidl_stability = ::ndk::STABILITY_VINTF; toString()76 inline std::string toString() const { 77 std::ostringstream _aidl_os; 78 _aidl_os << "Identity{"; 79 _aidl_os << "type: " << ::android::internal::ToString(type); 80 _aidl_os << ", uuid: " << ::android::internal::ToString(uuid); 81 _aidl_os << ", proxy: " << ::android::internal::ToString(proxy); 82 _aidl_os << "}"; 83 return _aidl_os.str(); 84 } 85 }; 86 class Common { 87 public: 88 typedef std::false_type fixed_size; 89 static const char* descriptor; 90 91 ::aidl::android::hardware::audio::effect::Descriptor::Identity id; 92 ::aidl::android::hardware::audio::effect::Flags flags; 93 int32_t cpuLoad = 0; 94 int32_t memoryUsage = 0; 95 std::string name; 96 std::string implementor; 97 98 binder_status_t readFromParcel(const AParcel* parcel); 99 binder_status_t writeToParcel(AParcel* parcel) const; 100 101 inline bool operator==(const Common& _rhs) const { 102 return std::tie(id, flags, cpuLoad, memoryUsage, name, implementor) == std::tie(_rhs.id, _rhs.flags, _rhs.cpuLoad, _rhs.memoryUsage, _rhs.name, _rhs.implementor); 103 } 104 inline bool operator<(const Common& _rhs) const { 105 return std::tie(id, flags, cpuLoad, memoryUsage, name, implementor) < std::tie(_rhs.id, _rhs.flags, _rhs.cpuLoad, _rhs.memoryUsage, _rhs.name, _rhs.implementor); 106 } 107 inline bool operator!=(const Common& _rhs) const { 108 return !(*this == _rhs); 109 } 110 inline bool operator>(const Common& _rhs) const { 111 return _rhs < *this; 112 } 113 inline bool operator>=(const Common& _rhs) const { 114 return !(*this < _rhs); 115 } 116 inline bool operator<=(const Common& _rhs) const { 117 return !(_rhs < *this); 118 } 119 120 static const ::ndk::parcelable_stability_t _aidl_stability = ::ndk::STABILITY_VINTF; toString()121 inline std::string toString() const { 122 std::ostringstream _aidl_os; 123 _aidl_os << "Common{"; 124 _aidl_os << "id: " << ::android::internal::ToString(id); 125 _aidl_os << ", flags: " << ::android::internal::ToString(flags); 126 _aidl_os << ", cpuLoad: " << ::android::internal::ToString(cpuLoad); 127 _aidl_os << ", memoryUsage: " << ::android::internal::ToString(memoryUsage); 128 _aidl_os << ", name: " << ::android::internal::ToString(name); 129 _aidl_os << ", implementor: " << ::android::internal::ToString(implementor); 130 _aidl_os << "}"; 131 return _aidl_os.str(); 132 } 133 }; 134 ::aidl::android::hardware::audio::effect::Descriptor::Common common; 135 ::aidl::android::hardware::audio::effect::Capability capability; 136 137 binder_status_t readFromParcel(const AParcel* parcel); 138 binder_status_t writeToParcel(AParcel* parcel) const; 139 140 inline bool operator==(const Descriptor& _rhs) const { 141 return std::tie(common, capability) == std::tie(_rhs.common, _rhs.capability); 142 } 143 inline bool operator<(const Descriptor& _rhs) const { 144 return std::tie(common, capability) < std::tie(_rhs.common, _rhs.capability); 145 } 146 inline bool operator!=(const Descriptor& _rhs) const { 147 return !(*this == _rhs); 148 } 149 inline bool operator>(const Descriptor& _rhs) const { 150 return _rhs < *this; 151 } 152 inline bool operator>=(const Descriptor& _rhs) const { 153 return !(*this < _rhs); 154 } 155 inline bool operator<=(const Descriptor& _rhs) const { 156 return !(_rhs < *this); 157 } 158 159 static const ::ndk::parcelable_stability_t _aidl_stability = ::ndk::STABILITY_VINTF; 160 static const char* EFFECT_TYPE_UUID_AEC; 161 static const char* EFFECT_TYPE_UUID_AGC1; 162 static const char* EFFECT_TYPE_UUID_AGC2; 163 static const char* EFFECT_TYPE_UUID_BASS_BOOST; 164 static const char* EFFECT_TYPE_UUID_DOWNMIX; 165 static const char* EFFECT_TYPE_UUID_DYNAMICS_PROCESSING; 166 static const char* EFFECT_TYPE_UUID_ENV_REVERB; 167 static const char* EFFECT_TYPE_UUID_EQUALIZER; 168 static const char* EFFECT_TYPE_UUID_ERASER; 169 static const char* EFFECT_TYPE_UUID_HAPTIC_GENERATOR; 170 static const char* EFFECT_TYPE_UUID_LOUDNESS_ENHANCER; 171 static const char* EFFECT_TYPE_UUID_NS; 172 static const char* EFFECT_TYPE_UUID_PRESET_REVERB; 173 static const char* EFFECT_TYPE_UUID_SPATIALIZER; 174 static const char* EFFECT_TYPE_UUID_VIRTUALIZER; 175 static const char* EFFECT_TYPE_UUID_VISUALIZER; 176 static const char* EFFECT_TYPE_UUID_VOLUME; toString()177 inline std::string toString() const { 178 std::ostringstream _aidl_os; 179 _aidl_os << "Descriptor{"; 180 _aidl_os << "common: " << ::android::internal::ToString(common); 181 _aidl_os << ", capability: " << ::android::internal::ToString(capability); 182 _aidl_os << "}"; 183 return _aidl_os.str(); 184 } 185 }; 186 } // namespace effect 187 } // namespace audio 188 } // namespace hardware 189 } // namespace android 190 } // namespace aidl 191