Loading bluetooth/audio/2.1/default/A2dpOffloadAudioProvider.cpp +5 −5 Original line number Diff line number Diff line Loading @@ -22,8 +22,8 @@ #include <fmq/MessageQueue.h> #include <hidl/MQDescriptor.h> #include "BluetoothAudioSessionReport.h" #include "BluetoothAudioSupportedCodecsDB.h" #include "BluetoothAudioSessionReport_2_1.h" #include "BluetoothAudioSupportedCodecsDB_2_1.h" namespace android { namespace hardware { Loading @@ -32,7 +32,7 @@ namespace audio { namespace V2_1 { namespace implementation { using ::android::bluetooth::audio::BluetoothAudioSessionReport; using ::android::bluetooth::audio::BluetoothAudioSessionReport_2_1; using ::android::hardware::kSynchronizedReadWrite; using ::android::hardware::MessageQueue; using ::android::hardware::Void; Loading Loading @@ -81,7 +81,7 @@ Return<void> A2dpOffloadAudioProvider::startSession( Return<void> A2dpOffloadAudioProvider::onSessionReady( startSession_cb _hidl_cb) { BluetoothAudioSessionReport::OnSessionStarted(session_type_, stack_iface_, BluetoothAudioSessionReport_2_1::OnSessionStarted(session_type_, stack_iface_, nullptr, audio_config_); _hidl_cb(BluetoothAudioStatus::SUCCESS, DataMQ::Descriptor()); return Void(); Loading bluetooth/audio/2.1/default/A2dpSoftwareAudioProvider.cpp +4 −4 Original line number Diff line number Diff line Loading @@ -20,8 +20,8 @@ #include <android-base/logging.h> #include "BluetoothAudioSessionReport.h" #include "BluetoothAudioSupportedCodecsDB.h" #include "BluetoothAudioSessionReport_2_1.h" #include "BluetoothAudioSupportedCodecsDB_2_1.h" namespace android { namespace hardware { Loading @@ -30,7 +30,7 @@ namespace audio { namespace V2_1 { namespace implementation { using ::android::bluetooth::audio::BluetoothAudioSessionReport; using ::android::bluetooth::audio::BluetoothAudioSessionReport_2_1; using ::android::hardware::Void; using ::android::hardware::bluetooth::audio::V2_0::AudioConfiguration; Loading Loading @@ -96,7 +96,7 @@ Return<void> A2dpSoftwareAudioProvider::startSession( Return<void> A2dpSoftwareAudioProvider::onSessionReady( startSession_cb _hidl_cb) { if (mDataMQ && mDataMQ->isValid()) { BluetoothAudioSessionReport::OnSessionStarted( BluetoothAudioSessionReport_2_1::OnSessionStarted( session_type_, stack_iface_, mDataMQ->getDesc(), audio_config_); _hidl_cb(BluetoothAudioStatus::SUCCESS, *mDataMQ->getDesc()); } else { Loading bluetooth/audio/2.1/default/Android.bp +1 −23 Original line number Diff line number Diff line Loading @@ -16,29 +16,7 @@ cc_library_shared { "android.hardware.bluetooth.audio@2.0", "android.hardware.bluetooth.audio@2.1", "libbase", "libbluetooth_audio_session_2_1", "libcutils", "libfmq", "libhidlbase", "liblog", "libutils", ], } cc_library_shared { name: "libbluetooth_audio_session_2_1", defaults: ["hidl_defaults"], vendor: true, srcs: [ "session/BluetoothAudioSession.cpp", "session/BluetoothAudioSupportedCodecsDB.cpp", ], export_include_dirs: ["session/"], header_libs: ["libhardware_headers"], shared_libs: [ "android.hardware.bluetooth.audio@2.0", "android.hardware.bluetooth.audio@2.1", "libbase", "libbluetooth_audio_session", "libcutils", "libfmq", "libhidlbase", Loading bluetooth/audio/2.1/default/BluetoothAudioProvider.cpp +8 −8 Original line number Diff line number Diff line Loading @@ -20,8 +20,8 @@ #include <android-base/logging.h> #include "BluetoothAudioSessionReport.h" #include "BluetoothAudioSupportedCodecsDB.h" #include "BluetoothAudioSessionReport_2_1.h" #include "BluetoothAudioSupportedCodecsDB_2_1.h" namespace android { namespace hardware { Loading @@ -30,7 +30,7 @@ namespace audio { namespace V2_1 { namespace implementation { using ::android::bluetooth::audio::BluetoothAudioSessionReport; using ::android::bluetooth::audio::BluetoothAudioSessionReport_2_1; using ::android::hardware::kSynchronizedReadWrite; using ::android::hardware::MessageQueue; using ::android::hardware::Void; Loading Loading @@ -105,7 +105,7 @@ Return<void> BluetoothAudioProvider::streamStarted( * HAL server should start the streaming on data path. */ if (stack_iface_) { BluetoothAudioSessionReport::ReportControlStatus(session_type_, true, BluetoothAudioSessionReport_2_1::ReportControlStatus(session_type_, true, status); } else { LOG(WARNING) << __func__ << " - SessionType=" << toString(session_type_) Loading @@ -125,7 +125,7 @@ Return<void> BluetoothAudioProvider::streamSuspended( * HAL server should suspend the streaming on data path. */ if (stack_iface_) { BluetoothAudioSessionReport::ReportControlStatus(session_type_, false, BluetoothAudioSessionReport_2_1::ReportControlStatus(session_type_, false, status); } else { LOG(WARNING) << __func__ << " - SessionType=" << toString(session_type_) Loading @@ -139,7 +139,7 @@ Return<void> BluetoothAudioProvider::endSession() { LOG(INFO) << __func__ << " - SessionType=" << toString(session_type_); if (stack_iface_) { BluetoothAudioSessionReport::OnSessionEnded(session_type_); BluetoothAudioSessionReport_2_1::OnSessionEnded(session_type_); stack_iface_->unlinkToDeath(death_recipient_); } else { LOG(INFO) << __func__ << " - SessionType=" << toString(session_type_) Loading bluetooth/audio/2.1/default/BluetoothAudioProvidersFactory.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -20,7 +20,7 @@ #include <android-base/logging.h> #include "BluetoothAudioSupportedCodecsDB.h" #include "BluetoothAudioSupportedCodecsDB_2_1.h" namespace android { namespace hardware { Loading Loading
bluetooth/audio/2.1/default/A2dpOffloadAudioProvider.cpp +5 −5 Original line number Diff line number Diff line Loading @@ -22,8 +22,8 @@ #include <fmq/MessageQueue.h> #include <hidl/MQDescriptor.h> #include "BluetoothAudioSessionReport.h" #include "BluetoothAudioSupportedCodecsDB.h" #include "BluetoothAudioSessionReport_2_1.h" #include "BluetoothAudioSupportedCodecsDB_2_1.h" namespace android { namespace hardware { Loading @@ -32,7 +32,7 @@ namespace audio { namespace V2_1 { namespace implementation { using ::android::bluetooth::audio::BluetoothAudioSessionReport; using ::android::bluetooth::audio::BluetoothAudioSessionReport_2_1; using ::android::hardware::kSynchronizedReadWrite; using ::android::hardware::MessageQueue; using ::android::hardware::Void; Loading Loading @@ -81,7 +81,7 @@ Return<void> A2dpOffloadAudioProvider::startSession( Return<void> A2dpOffloadAudioProvider::onSessionReady( startSession_cb _hidl_cb) { BluetoothAudioSessionReport::OnSessionStarted(session_type_, stack_iface_, BluetoothAudioSessionReport_2_1::OnSessionStarted(session_type_, stack_iface_, nullptr, audio_config_); _hidl_cb(BluetoothAudioStatus::SUCCESS, DataMQ::Descriptor()); return Void(); Loading
bluetooth/audio/2.1/default/A2dpSoftwareAudioProvider.cpp +4 −4 Original line number Diff line number Diff line Loading @@ -20,8 +20,8 @@ #include <android-base/logging.h> #include "BluetoothAudioSessionReport.h" #include "BluetoothAudioSupportedCodecsDB.h" #include "BluetoothAudioSessionReport_2_1.h" #include "BluetoothAudioSupportedCodecsDB_2_1.h" namespace android { namespace hardware { Loading @@ -30,7 +30,7 @@ namespace audio { namespace V2_1 { namespace implementation { using ::android::bluetooth::audio::BluetoothAudioSessionReport; using ::android::bluetooth::audio::BluetoothAudioSessionReport_2_1; using ::android::hardware::Void; using ::android::hardware::bluetooth::audio::V2_0::AudioConfiguration; Loading Loading @@ -96,7 +96,7 @@ Return<void> A2dpSoftwareAudioProvider::startSession( Return<void> A2dpSoftwareAudioProvider::onSessionReady( startSession_cb _hidl_cb) { if (mDataMQ && mDataMQ->isValid()) { BluetoothAudioSessionReport::OnSessionStarted( BluetoothAudioSessionReport_2_1::OnSessionStarted( session_type_, stack_iface_, mDataMQ->getDesc(), audio_config_); _hidl_cb(BluetoothAudioStatus::SUCCESS, *mDataMQ->getDesc()); } else { Loading
bluetooth/audio/2.1/default/Android.bp +1 −23 Original line number Diff line number Diff line Loading @@ -16,29 +16,7 @@ cc_library_shared { "android.hardware.bluetooth.audio@2.0", "android.hardware.bluetooth.audio@2.1", "libbase", "libbluetooth_audio_session_2_1", "libcutils", "libfmq", "libhidlbase", "liblog", "libutils", ], } cc_library_shared { name: "libbluetooth_audio_session_2_1", defaults: ["hidl_defaults"], vendor: true, srcs: [ "session/BluetoothAudioSession.cpp", "session/BluetoothAudioSupportedCodecsDB.cpp", ], export_include_dirs: ["session/"], header_libs: ["libhardware_headers"], shared_libs: [ "android.hardware.bluetooth.audio@2.0", "android.hardware.bluetooth.audio@2.1", "libbase", "libbluetooth_audio_session", "libcutils", "libfmq", "libhidlbase", Loading
bluetooth/audio/2.1/default/BluetoothAudioProvider.cpp +8 −8 Original line number Diff line number Diff line Loading @@ -20,8 +20,8 @@ #include <android-base/logging.h> #include "BluetoothAudioSessionReport.h" #include "BluetoothAudioSupportedCodecsDB.h" #include "BluetoothAudioSessionReport_2_1.h" #include "BluetoothAudioSupportedCodecsDB_2_1.h" namespace android { namespace hardware { Loading @@ -30,7 +30,7 @@ namespace audio { namespace V2_1 { namespace implementation { using ::android::bluetooth::audio::BluetoothAudioSessionReport; using ::android::bluetooth::audio::BluetoothAudioSessionReport_2_1; using ::android::hardware::kSynchronizedReadWrite; using ::android::hardware::MessageQueue; using ::android::hardware::Void; Loading Loading @@ -105,7 +105,7 @@ Return<void> BluetoothAudioProvider::streamStarted( * HAL server should start the streaming on data path. */ if (stack_iface_) { BluetoothAudioSessionReport::ReportControlStatus(session_type_, true, BluetoothAudioSessionReport_2_1::ReportControlStatus(session_type_, true, status); } else { LOG(WARNING) << __func__ << " - SessionType=" << toString(session_type_) Loading @@ -125,7 +125,7 @@ Return<void> BluetoothAudioProvider::streamSuspended( * HAL server should suspend the streaming on data path. */ if (stack_iface_) { BluetoothAudioSessionReport::ReportControlStatus(session_type_, false, BluetoothAudioSessionReport_2_1::ReportControlStatus(session_type_, false, status); } else { LOG(WARNING) << __func__ << " - SessionType=" << toString(session_type_) Loading @@ -139,7 +139,7 @@ Return<void> BluetoothAudioProvider::endSession() { LOG(INFO) << __func__ << " - SessionType=" << toString(session_type_); if (stack_iface_) { BluetoothAudioSessionReport::OnSessionEnded(session_type_); BluetoothAudioSessionReport_2_1::OnSessionEnded(session_type_); stack_iface_->unlinkToDeath(death_recipient_); } else { LOG(INFO) << __func__ << " - SessionType=" << toString(session_type_) Loading
bluetooth/audio/2.1/default/BluetoothAudioProvidersFactory.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -20,7 +20,7 @@ #include <android-base/logging.h> #include "BluetoothAudioSupportedCodecsDB.h" #include "BluetoothAudioSupportedCodecsDB_2_1.h" namespace android { namespace hardware { Loading