/aosp12/hardware/interfaces/bluetooth/audio/utils/session/ |
H A D | BluetoothAudioSessionControl_2_1.h | 34 static bool IsSessionReady(const SessionType_2_1& session_type) { in IsSessionReady() argument 36 BluetoothAudioSessionInstance_2_1::GetSessionInstance(session_type); in IsSessionReady() 49 BluetoothAudioSessionInstance_2_1::GetSessionInstance(session_type); in RegisterControlResultCback() 71 const SessionType_2_1& session_type) { in GetAudioConfig() argument 76 } else if (session_type == in GetAudioConfig() 86 static bool StartStream(const SessionType_2_1& session_type) { in StartStream() argument 95 static bool SuspendStream(const SessionType_2_1& session_type) { in SuspendStream() argument 104 static void StopStream(const SessionType_2_1& session_type) { in StopStream() argument 112 static bool GetPresentationPosition(const SessionType_2_1& session_type, in GetPresentationPosition() argument 126 const SessionType_2_1& session_type, in UpdateTracksMetadata() argument [all …]
|
H A D | BluetoothAudioSessionControl.h | 29 static bool IsSessionReady(const SessionType& session_type) { in IsSessionReady() argument 31 BluetoothAudioSessionInstance::GetSessionInstance(session_type); in IsSessionReady() 44 BluetoothAudioSessionInstance::GetSessionInstance(session_type); in RegisterControlResultCback() 57 BluetoothAudioSessionInstance::GetSessionInstance(session_type); in UnregisterControlResultCback() 66 const SessionType& session_type) { in GetAudioConfig() argument 80 static bool StartStream(const SessionType& session_type) { in StartStream() argument 89 static bool SuspendStream(const SessionType& session_type) { in SuspendStream() argument 98 static void StopStream(const SessionType& session_type) { in StopStream() argument 106 static bool GetPresentationPosition(const SessionType& session_type, in GetPresentationPosition() argument 120 const SessionType& session_type, in UpdateTracksMetadata() argument [all …]
|
H A D | BluetoothAudioSupportedCodecsDB_2_1.cpp | 41 session_type) { in is_2_0_session_type() 42 if (session_type == SessionType_2_1::A2DP_SOFTWARE_ENCODING_DATAPATH || in is_2_0_session_type() 43 session_type == SessionType_2_1::A2DP_HARDWARE_OFFLOAD_DATAPATH || in is_2_0_session_type() 44 session_type == SessionType_2_1::HEARING_AID_SOFTWARE_ENCODING_DATAPATH) { in is_2_0_session_type() 73 session_type) { in GetOffloadCodecCapabilities() 74 if (is_2_0_session_type(session_type)) { in GetOffloadCodecCapabilities() 76 static_cast<SessionType_2_0>(session_type)); in GetOffloadCodecCapabilities() 114 session_type, in IsOffloadCodecConfigurationValid() 117 if (is_2_0_session_type(session_type)) { in IsOffloadCodecConfigurationValid() 119 static_cast<SessionType_2_0>(session_type), codec_config); in IsOffloadCodecConfigurationValid()
|
H A D | BluetoothAudioSession_2_1.cpp | 40 session_type) { in is_2_0_session_type() 41 if (session_type == SessionType_2_1::A2DP_SOFTWARE_ENCODING_DATAPATH || in is_2_0_session_type() 42 session_type == SessionType_2_1::A2DP_HARDWARE_OFFLOAD_DATAPATH || in is_2_0_session_type() 53 session_type) in BluetoothAudioSession_2_1() 55 static_cast<SessionType_2_0>(session_type))) { in BluetoothAudioSession_2_1() 56 if (is_2_0_session_type(session_type)) { in BluetoothAudioSession_2_1() 59 session_type_2_1_ = (session_type); in BluetoothAudioSession_2_1() 191 const SessionType_2_1& session_type) { in GetSessionInstance() argument 194 auto entry = instance_ptr->sessions_map_.find(session_type); in GetSessionInstance() 200 std::make_shared<BluetoothAudioSession_2_1>(session_type); in GetSessionInstance() [all …]
|
H A D | BluetoothAudioSessionReport.h | 29 static void OnSessionStarted(const SessionType& session_type, in OnSessionStarted() argument 34 BluetoothAudioSessionInstance::GetSessionInstance(session_type); in OnSessionStarted() 41 static void OnSessionEnded(const SessionType& session_type) { in OnSessionEnded() argument 43 BluetoothAudioSessionInstance::GetSessionInstance(session_type); in OnSessionEnded() 50 static void ReportControlStatus(const SessionType& session_type, in ReportControlStatus() argument 54 BluetoothAudioSessionInstance::GetSessionInstance(session_type); in ReportControlStatus()
|
H A D | BluetoothAudioSessionReport_2_1.h | 31 session_type, in OnSessionStarted() 37 BluetoothAudioSessionInstance_2_1::GetSessionInstance(session_type); in OnSessionStarted() 46 session_type) { in OnSessionEnded() 48 BluetoothAudioSessionInstance_2_1::GetSessionInstance(session_type); in OnSessionEnded() 57 session_type, in ReportControlStatus() 60 BluetoothAudioSessionInstance_2_1::GetSessionInstance(session_type); in ReportControlStatus()
|
H A D | BluetoothAudioSession.h | 54 inline uint16_t ObserversCookieGetInitValue(SessionType session_type) { in ObserversCookieGetInitValue() argument 55 return (static_cast<uint16_t>(session_type) << 8 & 0xff00); in ObserversCookieGetInitValue() 57 inline uint16_t ObserversCookieGetUpperBound(SessionType session_type) { in ObserversCookieGetUpperBound() argument 58 return (static_cast<uint16_t>(session_type) << 8 & 0xff00) + in ObserversCookieGetUpperBound() 109 BluetoothAudioSession(const SessionType& session_type); 179 const SessionType& session_type);
|
H A D | BluetoothAudioSupportedCodecsDB.h | 32 const SessionType& session_type); 35 bool IsOffloadCodecConfigurationValid(const SessionType& session_type,
|
H A D | BluetoothAudioSupportedCodecsDB_2_1.h | 32 session_type); 40 session_type,
|
H A D | BluetoothAudioSession.cpp | 56 BluetoothAudioSession::BluetoothAudioSession(const SessionType& session_type) in BluetoothAudioSession() argument 57 : session_type_(session_type), stack_iface_(nullptr), mDataMQ(nullptr) { in BluetoothAudioSession() 449 const SessionType& session_type) { in GetSessionInstance() argument 452 auto entry = instance_ptr->sessions_map_.find(session_type); in GetSessionInstance() 458 std::make_shared<BluetoothAudioSession>(session_type); in GetSessionInstance() 459 instance_ptr->sessions_map_[session_type] = session_ptr; in GetSessionInstance()
|
H A D | BluetoothAudioSession_2_1.h | 51 session_type); 82 session_type);
|
H A D | BluetoothAudioSupportedCodecsDB.cpp | 304 const SessionType& session_type) { in GetOffloadCodecCapabilities() argument 305 if (session_type != SessionType::A2DP_HARDWARE_OFFLOAD_DATAPATH) { in GetOffloadCodecCapabilities() 368 bool IsOffloadCodecConfigurationValid(const SessionType& session_type, in IsOffloadCodecConfigurationValid() argument 370 if (session_type != SessionType::A2DP_HARDWARE_OFFLOAD_DATAPATH) { in IsOffloadCodecConfigurationValid() 372 << ": Invalid SessionType=" << toString(session_type); in IsOffloadCodecConfigurationValid()
|
/aosp12/hardware/interfaces/bluetooth/audio/2.1/vts/functional/ |
H A D | VtsHalBluetoothAudioV2_1TargetTest.cpp | 168 if (session_type == SessionType::UNKNOWN) { in GetProviderCapabilitiesHelper() 220 session_type) { in GetProviderCapabilitiesHelper_2_1() 245 void OpenProviderHelper(const SessionType& session_type) { in OpenProviderHelper() argument 257 ASSERT_NE(session_type, SessionType::UNKNOWN); in OpenProviderHelper() 262 ASSERT_TRUE(session_type == SessionType::UNKNOWN || in OpenProviderHelper() 274 session_type) { in OpenProviderHelper_2_1() 289 session_type, in OpenProviderHelper_2_1() 295 session_type == in OpenProviderHelper_2_1() 378 for (auto session_type : session_types_) { in TEST_P() local 379 GetProviderCapabilitiesHelper(session_type); in TEST_P() [all …]
|
/aosp12/hardware/interfaces/bluetooth/audio/2.0/vts/functional/ |
H A D | VtsHalBluetoothAudioV2_0TargetTest.cpp | 154 void GetProviderCapabilitiesHelper(const SessionType& session_type) { in GetProviderCapabilitiesHelper() argument 162 providers_factory_->getProviderCapabilities(session_type, hidl_cb); in GetProviderCapabilitiesHelper() 165 if (session_type == SessionType::UNKNOWN) { in GetProviderCapabilitiesHelper() 167 } else if (session_type != SessionType::A2DP_HARDWARE_OFFLOAD_DATAPATH) { in GetProviderCapabilitiesHelper() 218 void OpenProviderHelper(const SessionType& session_type) { in OpenProviderHelper() argument 226 auto hidl_retval = providers_factory_->openProvider(session_type, hidl_cb); in OpenProviderHelper() 230 ASSERT_NE(session_type, SessionType::UNKNOWN); in OpenProviderHelper() 235 ASSERT_TRUE(session_type == SessionType::UNKNOWN || in OpenProviderHelper() 291 for (auto session_type : session_types_) { in TEST_P() local 292 GetProviderCapabilitiesHelper(session_type); in TEST_P() [all …]
|
/aosp12/system/bt/audio_hal_interface/ |
H A D | client_interface_unittest.cc | 137 TestSinkTransport(SessionType session_type) in TestSinkTransport() argument 138 : bluetooth::audio::IBluetoothSinkTransportInstance(session_type, {}){}; in TestSinkTransport() 175 TestSourceTransport(SessionType session_type) in TestSourceTransport() argument 176 : bluetooth::audio::IBluetoothSourceTransportInstance(session_type, {}){}; in TestSourceTransport()
|
H A D | client_interface.h | 200 SessionType session_type);
|
H A D | client_interface.cc | 222 BluetoothAudioClientInterface::GetAudioCapabilities(SessionType session_type) { in GetAudioCapabilities() argument 243 session_type, getProviderCapabilities_cb); in GetAudioCapabilities()
|