1 #ifndef AIDL_ANDROID_HARDWARE_BLUETOOTH_AUDIO_SETTING_ENUMS_H 2 #define AIDL_ANDROID_HARDWARE_BLUETOOTH_AUDIO_SETTING_ENUMS_H 3 4 #include <array> 5 #include <string> 6 7 #include <xsdc/XsdcSupport.h> 8 9 namespace aidl { 10 namespace android { 11 namespace hardware { 12 namespace bluetooth { 13 namespace audio { 14 namespace setting { 15 enum class AudioLocation { 16 UNKNOWN = -1, 17 MONO, 18 STEREO, 19 }; 20 AudioLocation stringToAudioLocation(const std::string& value); 21 std::string toString(AudioLocation o); 22 23 enum class CodecType { 24 UNKNOWN = -1, 25 LC3, 26 APTX_ADAPTIVE_LE, 27 APTX_ADAPTIVE_LEX, 28 }; 29 CodecType stringToCodecType(const std::string& value); 30 std::string toString(CodecType o); 31 32 } // setting 33 } // audio 34 } // bluetooth 35 } // hardware 36 } // android 37 } // aidl 38 39 // 40 // global type declarations for package 41 // 42 43 namespace android { 44 namespace details { 45 template<> inline constexpr std::array<::aidl::android::hardware::bluetooth::audio::setting::AudioLocation, 2> xsdc_enum_values<::aidl::android::hardware::bluetooth::audio::setting::AudioLocation> = { 46 ::aidl::android::hardware::bluetooth::audio::setting::AudioLocation::MONO, 47 ::aidl::android::hardware::bluetooth::audio::setting::AudioLocation::STEREO, 48 }; 49 template<> inline constexpr std::array<::aidl::android::hardware::bluetooth::audio::setting::CodecType, 3> xsdc_enum_values<::aidl::android::hardware::bluetooth::audio::setting::CodecType> = { 50 ::aidl::android::hardware::bluetooth::audio::setting::CodecType::LC3, 51 ::aidl::android::hardware::bluetooth::audio::setting::CodecType::APTX_ADAPTIVE_LE, 52 ::aidl::android::hardware::bluetooth::audio::setting::CodecType::APTX_ADAPTIVE_LEX, 53 }; 54 } // namespace details 55 } // namespace android 56 57 #endif // AIDL_ANDROID_HARDWARE_BLUETOOTH_AUDIO_SETTING_ENUMS_H 58