/hardware/interfaces/bluetooth/audio/utils/aidl_session/ |
D | BluetoothAudioSessionControl.h | 33 static bool IsSessionReady(const SessionType& session_type) { in IsSessionReady() argument 35 BluetoothAudioSessionInstance::GetSessionInstance(session_type); in IsSessionReady() 49 const SessionType& session_type, const PortStatusCallbacks& cbacks) { in RegisterControlResultCback() argument 51 BluetoothAudioSessionInstance::GetSessionInstance(session_type); in RegisterControlResultCback() 63 static void UnregisterControlResultCback(const SessionType& session_type, in UnregisterControlResultCback() argument 66 BluetoothAudioSessionInstance::GetSessionInstance(session_type); in UnregisterControlResultCback() 77 const SessionType& session_type) { in GetAudioConfig() argument 79 BluetoothAudioSessionInstance::GetSessionInstance(session_type); in GetAudioConfig() 83 switch (session_type) { in GetAudioConfig() 104 static bool StartStream(const SessionType& session_type, [all …]
|
D | HidlToAidlMiddleware_2_0.h | 38 static bool IsSessionReady(const SessionType_2_0& session_type); 41 const SessionType_2_0& session_type, 44 static void UnregisterControlResultCback(const SessionType_2_0& session_type, 48 const SessionType_2_0& session_type); 50 static bool StartStream(const SessionType_2_0& session_type); 52 static void StopStream(const SessionType_2_0& session_type); 54 static bool SuspendStream(const SessionType_2_0& session_type); 56 static bool GetPresentationPosition(const SessionType_2_0& session_type, 62 const SessionType_2_0& session_type, 65 static size_t OutWritePcmData(const SessionType_2_0& session_type, [all …]
|
D | BluetoothAudioSessionReport.h | 34 const SessionType& session_type, in OnSessionStarted() argument 39 BluetoothAudioSessionInstance::GetSessionInstance(session_type); in OnSessionStarted() 50 static void OnSessionEnded(const SessionType& session_type) { in OnSessionEnded() argument 52 BluetoothAudioSessionInstance::GetSessionInstance(session_type); in OnSessionEnded() 62 static void ReportControlStatus(const SessionType& session_type, in ReportControlStatus() argument 66 BluetoothAudioSessionInstance::GetSessionInstance(session_type); in ReportControlStatus() 75 static void ReportAudioConfigChanged(const SessionType& session_type, in ReportAudioConfigChanged() argument 78 BluetoothAudioSessionInstance::GetSessionInstance(session_type); in ReportAudioConfigChanged() 88 const SessionType& session_type, bool allowed) { in ReportLowLatencyModeAllowedChanged() argument 90 BluetoothAudioSessionInstance::GetSessionInstance(session_type); in ReportLowLatencyModeAllowedChanged()
|
D | BluetoothAudioCodecs.cpp | 277 const SessionType& session_type) { in GetA2dpOffloadCodecCapabilities() argument 278 if (session_type != SessionType::A2DP_HARDWARE_OFFLOAD_ENCODING_DATAPATH && in GetA2dpOffloadCodecCapabilities() 279 session_type != SessionType::A2DP_HARDWARE_OFFLOAD_DECODING_DATAPATH) { in GetA2dpOffloadCodecCapabilities() 347 const SessionType& session_type, const CodecConfiguration& codec_config) { in IsOffloadCodecConfigurationValid() argument 348 if (session_type != SessionType::A2DP_HARDWARE_OFFLOAD_ENCODING_DATAPATH && in IsOffloadCodecConfigurationValid() 349 session_type != SessionType::A2DP_HARDWARE_OFFLOAD_DECODING_DATAPATH) { in IsOffloadCodecConfigurationValid() 351 << ": Invalid SessionType=" << toString(session_type); in IsOffloadCodecConfigurationValid() 399 const SessionType& session_type) { in GetLeAudioOffloadCodecCapabilities() argument 400 if (session_type != in GetLeAudioOffloadCodecCapabilities() 402 session_type != in GetLeAudioOffloadCodecCapabilities() [all …]
|
D | HidlToAidlMiddleware.cpp | 493 const SessionType_2_0& session_type) { in IsSessionReady() argument 495 from_session_type_2_0(session_type)); in IsSessionReady() 499 const SessionType_2_0& session_type, in RegisterControlResultCback() argument 501 LOG(INFO) << __func__ << ": " << toString(session_type); in RegisterControlResultCback() 502 auto aidl_session_type = from_session_type_2_0(session_type); in RegisterControlResultCback() 543 const SessionType_2_0& session_type, uint16_t cookie) { in UnregisterControlResultCback() argument 544 LOG(INFO) << __func__ << ": " << toString(session_type); in UnregisterControlResultCback() 545 auto aidl_session_type = from_session_type_2_0(session_type); in UnregisterControlResultCback() 556 const SessionType_2_0& session_type) { in GetAudioConfig() argument 558 from_session_type_2_0(session_type))); in GetAudioConfig() [all …]
|
D | BluetoothAudioCodecs.h | 45 const SessionType& session_type); 50 const SessionType& session_type, const CodecConfiguration& codec_config); 53 GetLeAudioOffloadCodecCapabilities(const SessionType& session_type); 55 const SessionType& session_type);
|
D | BluetoothAudioSession.h | 61 inline uint16_t ObserversCookieGetInitValue(SessionType session_type) { in ObserversCookieGetInitValue() argument 62 return (static_cast<uint16_t>(session_type) << 8 & 0xff00); in ObserversCookieGetInitValue() 64 inline uint16_t ObserversCookieGetUpperBound(SessionType session_type) { in ObserversCookieGetUpperBound() argument 65 return (static_cast<uint16_t>(session_type) << 8 & 0xff00) + in ObserversCookieGetUpperBound() 112 BluetoothAudioSession(const SessionType& session_type); 237 const SessionType& session_type);
|
D | HidlToAidlMiddleware_2_1.h | 35 const SessionType_2_1& session_type);
|
/hardware/interfaces/bluetooth/audio/utils/session/ |
D | BluetoothAudioSessionControl.h | 29 static bool IsSessionReady(const SessionType& session_type) { in IsSessionReady() argument 31 BluetoothAudioSessionInstance::GetSessionInstance(session_type); in IsSessionReady() 42 const SessionType& session_type, const PortStatusCallbacks& cbacks) { in RegisterControlResultCback() argument 44 BluetoothAudioSessionInstance::GetSessionInstance(session_type); in RegisterControlResultCback() 54 static void UnregisterControlResultCback(const SessionType& session_type, in UnregisterControlResultCback() argument 57 BluetoothAudioSessionInstance::GetSessionInstance(session_type); in UnregisterControlResultCback() 66 const SessionType& session_type) { in GetAudioConfig() argument 68 BluetoothAudioSessionInstance::GetSessionInstance(session_type); in GetAudioConfig() 71 } else if (session_type == SessionType::A2DP_HARDWARE_OFFLOAD_DATAPATH) { in GetAudioConfig() 80 static bool StartStream(const SessionType& session_type) { in StartStream() argument [all …]
|
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() 47 const SessionType_2_1& session_type, const PortStatusCallbacks& cbacks) { in RegisterControlResultCback() argument 49 BluetoothAudioSessionInstance_2_1::GetSessionInstance(session_type); in RegisterControlResultCback() 59 static void UnregisterControlResultCback(const SessionType_2_1& session_type, in UnregisterControlResultCback() argument 62 BluetoothAudioSessionInstance_2_1::GetSessionInstance(session_type); in UnregisterControlResultCback() 71 const SessionType_2_1& session_type) { in GetAudioConfig() argument 73 BluetoothAudioSessionInstance_2_1::GetSessionInstance(session_type); in GetAudioConfig() 76 } else if (session_type == in GetAudioConfig() 86 static bool StartStream(const SessionType_2_1& session_type) { in StartStream() argument [all …]
|
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() [all …]
|
D | BluetoothAudioSession_2_1.cpp | 45 session_type) { in is_2_0_session_type() 46 if (session_type == SessionType_2_1::A2DP_SOFTWARE_ENCODING_DATAPATH || in is_2_0_session_type() 47 session_type == SessionType_2_1::A2DP_HARDWARE_OFFLOAD_DATAPATH || in is_2_0_session_type() 48 session_type == SessionType_2_1::HEARING_AID_SOFTWARE_ENCODING_DATAPATH) { in is_2_0_session_type() 57 session_type) { in is_unsupported_2_1_session_type() 58 if (session_type == in is_unsupported_2_1_session_type() 60 session_type == in is_unsupported_2_1_session_type() 71 session_type) in BluetoothAudioSession_2_1() 73 static_cast<SessionType_2_0>(session_type))) { in BluetoothAudioSession_2_1() 74 if (is_2_0_session_type(session_type) || in BluetoothAudioSession_2_1() [all …]
|
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()
|
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()
|
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() 110 BluetoothAudioSession(const SessionType& session_type); 180 const SessionType& session_type);
|
D | BluetoothAudioSupportedCodecsDB_2_1.h | 32 session_type); 40 session_type, 46 session_type,
|
D | BluetoothAudioSupportedCodecsDB.h | 32 const SessionType& session_type); 35 bool IsOffloadCodecConfigurationValid(const SessionType& session_type,
|
D | BluetoothAudioSession_2_1.h | 52 session_type); 83 session_type);
|
D | BluetoothAudioSession.cpp | 59 BluetoothAudioSession::BluetoothAudioSession(const SessionType& session_type) in BluetoothAudioSession() argument 60 : session_type_(session_type), stack_iface_(nullptr), mDataMQ(nullptr) { in BluetoothAudioSession() 482 const SessionType& session_type) { in GetSessionInstance() argument 485 auto entry = instance_ptr->sessions_map_.find(session_type); in GetSessionInstance() 491 std::make_shared<BluetoothAudioSession>(session_type); in GetSessionInstance() 492 instance_ptr->sessions_map_[session_type] = session_ptr; in GetSessionInstance()
|
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()
|
/hardware/interfaces/bluetooth/audio/aidl/default/ |
D | BluetoothAudioProviderFactory.cpp | 48 const SessionType session_type, in openProvider() argument 50 LOG(INFO) << __func__ << " - SessionType=" << toString(session_type); in openProvider() 53 switch (session_type) { in openProvider() 105 if (provider == nullptr || !provider->isValid(session_type)) { in openProvider() 107 LOG(ERROR) << __func__ << " - SessionType=" << toString(session_type); in openProvider() 116 const SessionType session_type, in getProviderCapabilities() argument 118 if (session_type == SessionType::A2DP_HARDWARE_OFFLOAD_ENCODING_DATAPATH || in getProviderCapabilities() 119 session_type == SessionType::A2DP_HARDWARE_OFFLOAD_DECODING_DATAPATH) { in getProviderCapabilities() 121 BluetoothAudioCodecs::GetA2dpOffloadCodecCapabilities(session_type); in getProviderCapabilities() 127 } else if (session_type == in getProviderCapabilities() [all …]
|
D | BluetoothAudioProviderFactory.h | 36 const SessionType session_type, 40 const SessionType session_type,
|
D | HfpOffloadAudioProvider.cpp | 35 bool HfpOffloadAudioProvider::isValid(const SessionType& session_type) { in isValid() argument 36 return (session_type == session_type_); in isValid()
|
/hardware/interfaces/bluetooth/audio/2.1/vts/functional/ |
D | VtsHalBluetoothAudioV2_1TargetTest.cpp | 157 void GetProviderCapabilitiesHelper(const SessionType& session_type) { in GetProviderCapabilitiesHelper() argument 165 providers_factory_->getProviderCapabilities(session_type, hidl_cb); in GetProviderCapabilitiesHelper() 168 if (session_type == SessionType::UNKNOWN) { in GetProviderCapabilitiesHelper() 170 } else if (session_type != SessionType::A2DP_HARDWARE_OFFLOAD_DATAPATH) { in GetProviderCapabilitiesHelper() 220 session_type) { in GetProviderCapabilitiesHelper_2_1() 231 providers_factory_->getProviderCapabilities_2_1(session_type, hidl_cb); in GetProviderCapabilitiesHelper_2_1() 245 void OpenProviderHelper(const SessionType& session_type) { in OpenProviderHelper() argument 253 auto hidl_retval = providers_factory_->openProvider(session_type, hidl_cb); in OpenProviderHelper() 257 ASSERT_NE(session_type, SessionType::UNKNOWN); in OpenProviderHelper() 262 ASSERT_TRUE(session_type == SessionType::UNKNOWN || in OpenProviderHelper() [all …]
|
/hardware/interfaces/bluetooth/audio/2.0/vts/functional/ |
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() 236 session_type == SessionType::A2DP_HARDWARE_OFFLOAD_DATAPATH); in OpenProviderHelper() 291 for (auto session_type : session_types_) { in TEST_P() local [all …]
|