Home
last modified time | relevance | path

Searched refs:mDataMQ (Results 1 – 10 of 10) sorted by relevance

/hardware/interfaces/bluetooth/audio/2.0/default/
DA2dpSoftwareAudioProvider.cpp44 : BluetoothAudioProvider(), mDataMQ(nullptr) { in A2dpSoftwareAudioProvider()
50 mDataMQ = std::move(tempDataMQ); in A2dpSoftwareAudioProvider()
59 return (sessionType == session_type_ && mDataMQ && mDataMQ->isValid()); in isValid()
92 if (mDataMQ && mDataMQ->isValid()) { in onSessionReady()
94 session_type_, stack_iface_, mDataMQ->getDesc(), audio_config_); in onSessionReady()
95 _hidl_cb(BluetoothAudioStatus::SUCCESS, *mDataMQ->getDesc()); in onSessionReady()
DHearingAidAudioProvider.cpp44 : BluetoothAudioProvider(), mDataMQ(nullptr) { in HearingAidAudioProvider()
50 mDataMQ = std::move(tempDataMQ); in HearingAidAudioProvider()
59 return (sessionType == session_type_ && mDataMQ && mDataMQ->isValid()); in isValid()
91 if (mDataMQ && mDataMQ->isValid()) { in onSessionReady()
93 session_type_, stack_iface_, mDataMQ->getDesc(), audio_config_); in onSessionReady()
94 _hidl_cb(BluetoothAudioStatus::SUCCESS, *mDataMQ->getDesc()); in onSessionReady()
DHearingAidAudioProvider.h48 std::unique_ptr<DataMQ> mDataMQ;
DA2dpSoftwareAudioProvider.h48 std::unique_ptr<DataMQ> mDataMQ;
/hardware/interfaces/bluetooth/audio/2.0/default/session/
DBluetoothAudioSession.cpp54 : session_type_(session_type), stack_iface_(nullptr), mDataMQ(nullptr) { in BluetoothAudioSession()
150 (mDataMQ != nullptr && mDataMQ->isValid())); in IsSessionReady()
157 mDataMQ = nullptr; in UpdateDataPath()
163 mDataMQ = nullptr; in UpdateDataPath()
166 mDataMQ = std::move(tempDataMQ); in UpdateDataPath()
378 size_t availableToWrite = mDataMQ->availableToWrite(); in OutWritePcmData()
384 if (!mDataMQ->write(static_cast<const uint8_t*>(buffer) + totalWritten, in OutWritePcmData()
DBluetoothAudioSession.h90 std::unique_ptr<DataMQ> mDataMQ; variable
/hardware/interfaces/audio/core/all-versions/default/
DStreamIn.cpp50 mDataMQ(dataMQ), in ReadThread()
55 mBuffer.reset(new (std::nothrow) uint8_t[mDataMQ->getQuantumCount()]); in init()
64 StreamIn::DataMQ* mDataMQ; member in android::hardware::audio::CPP_VERSION::implementation::__anon33680f670111::ReadThread
78 size_t availableToWrite = mDataMQ->availableToWrite(); in doRead()
91 if (!mDataMQ->write(&mBuffer[0], readResult)) { in doRead()
349 if (mDataMQ) { in prepareForReading()
406 mDataMQ = std::move(tempDataMQ); in prepareForReading()
412 _hidl_cb(Result::OK, *mCommandMQ->getDesc(), *mDataMQ->getDesc(), *mStatusMQ->getDesc(), in prepareForReading()
DStreamOut.cpp49 mDataMQ(dataMQ), in WriteThread()
54 mBuffer.reset(new (std::nothrow) uint8_t[mDataMQ->getQuantumCount()]); in init()
63 StreamOut::DataMQ* mDataMQ; member in android::hardware::audio::CPP_VERSION::implementation::__anon8370f1880111::WriteThread
77 const size_t availToRead = mDataMQ->availableToRead(); in doWrite()
80 if (mDataMQ->read(&mBuffer[0], availToRead)) { in doWrite()
333 if (mDataMQ) { in prepareForWriting()
389 mDataMQ = std::move(tempDataMQ); in prepareForWriting()
395 _hidl_cb(Result::OK, *mCommandMQ->getDesc(), *mDataMQ->getDesc(), *mStatusMQ->getDesc(), in prepareForWriting()
/hardware/interfaces/audio/core/all-versions/default/include/core/default/
DStreamIn.h129 std::unique_ptr<DataMQ> mDataMQ; member
DStreamOut.h136 std::unique_ptr<DataMQ> mDataMQ; member