Home
last modified time | relevance | path

Searched refs:CodecInterface (Results 1 – 12 of 12) sorted by relevance

/packages/modules/Bluetooth/system/bta/le_audio/
Dmock_codec_interface.cc25 struct CodecInterface::Impl : public MockCodecInterface {
34 CodecInterface::CodecInterface(const types::LeAudioCodecId& codec_id) { in CodecInterface() function in bluetooth::le_audio::CodecInterface
40 CodecInterface::~CodecInterface() { in ~CodecInterface()
46 bool CodecInterface::IsReady() { return impl->IsReady(); } in IsReady()
47 CodecInterface::Status CodecInterface::InitEncoder(const LeAudioCodecConfiguration& pcm_config, in InitEncoder()
51 CodecInterface::Status CodecInterface::InitDecoder(const LeAudioCodecConfiguration& codec_config, in InitDecoder()
55 std::vector<int16_t>& CodecInterface::GetDecodedSamples() { return impl->GetDecodedSamples(); } in GetDecodedSamples()
56 CodecInterface::Status CodecInterface::Decode(uint8_t* data, uint16_t size) { in Decode()
59 CodecInterface::Status CodecInterface::Encode(const uint8_t* data, int stride, uint16_t out_size, in Encode()
64 void CodecInterface::Cleanup() { return impl->Cleanup(); } in Cleanup()
[all …]
Dcodec_interface.cc36 struct CodecInterface::Impl {
42 CodecInterface::Status InitEncoder(const LeAudioCodecConfiguration& pcm_config, in InitEncoder()
73 CodecInterface::Status InitDecoder(const LeAudioCodecConfiguration& codec_config, in InitDecoder()
94 return CodecInterface::Status::STATUS_ERR_CODEC_NOT_READY; in InitDecoder()
116 CodecInterface::Status Decode(uint8_t* data, uint16_t size) { in Decode()
140 CodecInterface::Status Encode(const uint8_t* data, int stride, uint16_t out_size, in Encode()
268 CodecInterface::CodecInterface(const types::LeAudioCodecId& codec_id) { in CodecInterface() function in bluetooth::le_audio::CodecInterface
277 CodecInterface::~CodecInterface() { delete impl; } in ~CodecInterface()
279 bool CodecInterface::IsReady() { return impl->IsReady(); } in IsReady()
280 CodecInterface::Status CodecInterface::InitEncoder(const LeAudioCodecConfiguration& pcm_config, in InitEncoder()
[all …]
Dcodec_interface.h41 class CodecInterface {
50 CodecInterface(const types::LeAudioCodecId& codec_id);
51 virtual ~CodecInterface();
52 static std::unique_ptr<CodecInterface> CreateInstance(const types::LeAudioCodecId& codec_id) { in CreateInstance()
53 return std::make_unique<CodecInterface>(codec_id); in CreateInstance()
55 virtual CodecInterface::Status InitEncoder(const LeAudioCodecConfiguration& pcm_config,
57 virtual CodecInterface::Status InitDecoder(const LeAudioCodecConfiguration& codec_config,
59 virtual CodecInterface::Status Encode(const uint8_t* data, int stride, uint16_t out_size,
62 virtual CodecInterface::Status Decode(uint8_t* data, uint16_t size);
78 struct formatter<bluetooth::le_audio::CodecInterface::Status>
[all …]
Dmock_codec_interface.h36 MOCK_METHOD((bluetooth::le_audio::CodecInterface::Status), InitEncoder,
39 MOCK_METHOD(bluetooth::le_audio::CodecInterface::Status, InitDecoder,
42 MOCK_METHOD(bluetooth::le_audio::CodecInterface::Status, Encode,
45 MOCK_METHOD(bluetooth::le_audio::CodecInterface::Status, Decode, (uint8_t* data, uint16_t size));
Dclient.cc4122 sw_enc_left = bluetooth::le_audio::CodecInterface::CreateInstance(stream_conf->codec_id); in StartSendingAudio()
4125 if (codec_status != bluetooth::le_audio::CodecInterface::Status::STATUS_OK) { in StartSendingAudio()
4131 sw_enc_right = bluetooth::le_audio::CodecInterface::CreateInstance(stream_conf->codec_id); in StartSendingAudio()
4134 if (codec_status != bluetooth::le_audio::CodecInterface::Status::STATUS_OK) { in StartSendingAudio()
4202 sw_dec_left = bluetooth::le_audio::CodecInterface::CreateInstance(stream_conf->codec_id); in StartReceivingAudio()
4205 if (codec_status != bluetooth::le_audio::CodecInterface::Status::STATUS_OK) { in StartReceivingAudio()
4211 sw_dec_right = bluetooth::le_audio::CodecInterface::CreateInstance(stream_conf->codec_id); in StartReceivingAudio()
4214 if (codec_status != bluetooth::le_audio::CodecInterface::Status::STATUS_OK) { in StartReceivingAudio()
6464 std::unique_ptr<bluetooth::le_audio::CodecInterface> sw_enc_left;
6465 std::unique_ptr<bluetooth::le_audio::CodecInterface> sw_enc_right;
[all …]
Dle_audio_client_test.cc13125 .WillByDefault(Return(CodecInterface::Status::STATUS_OK)); in TEST_F()
/packages/modules/Bluetooth/system/btif/include/
Dcore_callbacks.h78 struct CodecInterface { struct
85 explicit CodecInterface() = default;
86 CodecInterface(const CodecInterface&) = delete;
87 CodecInterface& operator=(const CodecInterface&) = delete; argument
88 virtual ~CodecInterface() = default;
125 CodecInterface* msbcCodec;
126 CodecInterface* lc3Codec;
137 CodecInterface* msbcCodec, CodecInterface* lc3Codec, in CoreInterface()
Dmock_core_callbacks.h81 struct MockCodecInterface : public CodecInterface {
/packages/modules/Bluetooth/system/test/common/
Dcore_interface.cc56 struct MockMsbcCodecInterface : public bluetooth::core::CodecInterface {
67 struct MockLc3CodecInterface : public bluetooth::core::CodecInterface {
/packages/modules/Bluetooth/system/stack/test/btm/
Dsco_hci_test.cc67 struct MsbcCodecInterface : bluetooth::core::CodecInterface {
68 MsbcCodecInterface() : bluetooth::core::CodecInterface() {} in MsbcCodecInterface()
89 struct Lc3CodecInterface : bluetooth::core::CodecInterface {
90 Lc3CodecInterface() : bluetooth::core::CodecInterface() {} in Lc3CodecInterface()
/packages/modules/Bluetooth/system/btif/src/
Dbluetooth.cc198 struct MSBCCodec : bluetooth::core::CodecInterface {
199 MSBCCodec() : bluetooth::core::CodecInterface() {} in MSBCCodec()
220 struct LC3Codec : bluetooth::core::CodecInterface {
221 LC3Codec() : bluetooth::core::CodecInterface() {} in LC3Codec()
/packages/modules/Bluetooth/system/bta/le_audio/broadcaster/
Dbroadcaster.cc1270 auto codec = bluetooth::le_audio::CodecInterface::CreateInstance(codec_id); in CheckAndReconfigureEncoders()
1273 if (codec_status != bluetooth::le_audio::CodecInterface::Status::STATUS_OK) { in CheckAndReconfigureEncoders()
1287 std::vector<std::unique_ptr<bluetooth::le_audio::CodecInterface>>& encoders) { in sendBroadcastData()
1451 std::vector<std::unique_ptr<bluetooth::le_audio::CodecInterface>> sw_enc_;