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 5 --hash notfrozen -t --stability vintf --min_sdk_version 31 -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/bluetooth/audio/aidl/aidl_api/android.hardware.bluetooth.audio/4 --previous_hash ac25616dda1c45dc2915d3f5ac82687a1a6f6e46 --ninja -d out/soong/.intermediates/hardware/interfaces/bluetooth/audio/aidl/android.hardware.bluetooth.audio-V5-ndk-source/gen/staging/android/hardware/bluetooth/audio/CodecParameters.cpp.d -h out/soong/.intermediates/hardware/interfaces/bluetooth/audio/aidl/android.hardware.bluetooth.audio-V5-ndk-source/gen/include/staging -o out/soong/.intermediates/hardware/interfaces/bluetooth/audio/aidl/android.hardware.bluetooth.audio-V5-ndk-source/gen/staging -Nhardware/interfaces/bluetooth/audio/aidl hardware/interfaces/bluetooth/audio/aidl/android/hardware/bluetooth/audio/CodecParameters.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/bluetooth/audio/ChannelMode.h> 20 #ifdef BINDER_STABILITY_SUPPORT 21 #include <android/binder_stability.h> 22 #endif // BINDER_STABILITY_SUPPORT 23 24 namespace aidl { 25 namespace android { 26 namespace hardware { 27 namespace bluetooth { 28 namespace audio { 29 class CodecParameters { 30 public: 31 typedef std::false_type fixed_size; 32 static const char* descriptor; 33 34 ::aidl::android::hardware::bluetooth::audio::ChannelMode channelMode = ::aidl::android::hardware::bluetooth::audio::ChannelMode(0); 35 int32_t samplingFrequencyHz = 0; 36 int32_t bitdepth = 0; 37 int32_t minBitrate = 0; 38 int32_t maxBitrate = 0; 39 bool lowLatency = false; 40 bool lossless = false; 41 std::vector<uint8_t> vendorSpecificParameters; 42 43 binder_status_t readFromParcel(const AParcel* parcel); 44 binder_status_t writeToParcel(AParcel* parcel) const; 45 46 inline bool operator==(const CodecParameters& _rhs) const { 47 return std::tie(channelMode, samplingFrequencyHz, bitdepth, minBitrate, maxBitrate, lowLatency, lossless, vendorSpecificParameters) == std::tie(_rhs.channelMode, _rhs.samplingFrequencyHz, _rhs.bitdepth, _rhs.minBitrate, _rhs.maxBitrate, _rhs.lowLatency, _rhs.lossless, _rhs.vendorSpecificParameters); 48 } 49 inline bool operator<(const CodecParameters& _rhs) const { 50 return std::tie(channelMode, samplingFrequencyHz, bitdepth, minBitrate, maxBitrate, lowLatency, lossless, vendorSpecificParameters) < std::tie(_rhs.channelMode, _rhs.samplingFrequencyHz, _rhs.bitdepth, _rhs.minBitrate, _rhs.maxBitrate, _rhs.lowLatency, _rhs.lossless, _rhs.vendorSpecificParameters); 51 } 52 inline bool operator!=(const CodecParameters& _rhs) const { 53 return !(*this == _rhs); 54 } 55 inline bool operator>(const CodecParameters& _rhs) const { 56 return _rhs < *this; 57 } 58 inline bool operator>=(const CodecParameters& _rhs) const { 59 return !(*this < _rhs); 60 } 61 inline bool operator<=(const CodecParameters& _rhs) const { 62 return !(_rhs < *this); 63 } 64 65 static const ::ndk::parcelable_stability_t _aidl_stability = ::ndk::STABILITY_VINTF; toString()66 inline std::string toString() const { 67 std::ostringstream _aidl_os; 68 _aidl_os << "CodecParameters{"; 69 _aidl_os << "channelMode: " << ::android::internal::ToString(channelMode); 70 _aidl_os << ", samplingFrequencyHz: " << ::android::internal::ToString(samplingFrequencyHz); 71 _aidl_os << ", bitdepth: " << ::android::internal::ToString(bitdepth); 72 _aidl_os << ", minBitrate: " << ::android::internal::ToString(minBitrate); 73 _aidl_os << ", maxBitrate: " << ::android::internal::ToString(maxBitrate); 74 _aidl_os << ", lowLatency: " << ::android::internal::ToString(lowLatency); 75 _aidl_os << ", lossless: " << ::android::internal::ToString(lossless); 76 _aidl_os << ", vendorSpecificParameters: " << ::android::internal::ToString(vendorSpecificParameters); 77 _aidl_os << "}"; 78 return _aidl_os.str(); 79 } 80 }; 81 } // namespace audio 82 } // namespace bluetooth 83 } // namespace hardware 84 } // namespace android 85 } // namespace aidl 86