Home
last modified time | relevance | path

Searched refs:SessionType (Results 1 – 25 of 48) sorted by relevance

12

/aosp12/hardware/interfaces/bluetooth/audio/2.1/default/
H A DBluetoothAudioProvidersFactory.cpp53 case V2_0::SessionType::A2DP_SOFTWARE_ENCODING_DATAPATH: in openProvider()
56 case V2_0::SessionType::A2DP_HARDWARE_OFFLOAD_DATAPATH: in openProvider()
59 case V2_0::SessionType::HEARING_AID_SOFTWARE_ENCODING_DATAPATH: in openProvider()
76 const SessionType sessionType, openProvider_2_1_cb _hidl_cb) { in openProvider_2_1()
81 case SessionType::A2DP_SOFTWARE_ENCODING_DATAPATH: in openProvider_2_1()
84 case SessionType::A2DP_HARDWARE_OFFLOAD_DATAPATH: in openProvider_2_1()
87 case SessionType::HEARING_AID_SOFTWARE_ENCODING_DATAPATH: in openProvider_2_1()
90 case SessionType::LE_AUDIO_SOFTWARE_ENCODING_DATAPATH: in openProvider_2_1()
93 case SessionType::LE_AUDIO_SOFTWARE_DECODED_DATAPATH: in openProvider_2_1()
122 } else if (sessionType != V2_0::SessionType::UNKNOWN) { in getProviderCapabilities()
[all …]
H A DBluetoothAudioProvidersFactory.h38 Return<void> openProvider(const V2_0::SessionType sessionType,
42 const V2_0::SessionType sessionType,
45 Return<void> openProvider_2_1(const SessionType sessionType,
49 const SessionType sessionType,
H A DLeAudioAudioProvider.cpp45 session_type_ = SessionType::LE_AUDIO_SOFTWARE_ENCODING_DATAPATH; in LeAudioOutputAudioProvider()
50 session_type_ = SessionType::LE_AUDIO_SOFTWARE_DECODED_DATAPATH; in LeAudioInputAudioProvider()
56 bool LeAudioAudioProvider::isValid(const V2_0::SessionType& sessionType) { in isValid()
63 bool LeAudioAudioProvider::isValid(const SessionType& sessionType) { in isValid()
153 if (session_type_ == SessionType::LE_AUDIO_SOFTWARE_ENCODING_DATAPATH) in startSession_2_1()
155 else if (session_type_ == SessionType::LE_AUDIO_SOFTWARE_DECODED_DATAPATH) in startSession_2_1()
H A DA2dpOffloadAudioProvider.cpp45 session_type_ = SessionType::A2DP_HARDWARE_OFFLOAD_DATAPATH; in A2dpOffloadAudioProvider()
48 bool A2dpOffloadAudioProvider::isValid(const V2_0::SessionType& sessionType) { in isValid()
49 return isValid(static_cast<SessionType>(sessionType)); in isValid()
52 bool A2dpOffloadAudioProvider::isValid(const SessionType& sessionType) { in isValid()
H A DA2dpSoftwareAudioProvider.cpp57 session_type_ = SessionType::A2DP_SOFTWARE_ENCODING_DATAPATH; in A2dpSoftwareAudioProvider()
64 bool A2dpSoftwareAudioProvider::isValid(const V2_0::SessionType& sessionType) { in isValid()
65 return isValid(static_cast<SessionType>(sessionType)); in isValid()
68 bool A2dpSoftwareAudioProvider::isValid(const SessionType& sessionType) { in isValid()
H A DHearingAidAudioProvider.cpp53 session_type_ = SessionType::HEARING_AID_SOFTWARE_ENCODING_DATAPATH; in HearingAidAudioProvider()
60 bool HearingAidAudioProvider::isValid(const V2_0::SessionType& sessionType) { in isValid()
61 return isValid(static_cast<SessionType>(sessionType)); in isValid()
64 bool HearingAidAudioProvider::isValid(const SessionType& sessionType) { in isValid()
H A DBluetoothAudioProvider.h41 virtual bool isValid(const SessionType& sessionType) = 0;
42 virtual bool isValid(const V2_0::SessionType& sessionType) = 0;
57 SessionType session_type_;
H A DA2dpOffloadAudioProvider.h32 bool isValid(const SessionType& sessionType) override;
33 bool isValid(const V2_0::SessionType& sessionType) override;
/aosp12/hardware/interfaces/bluetooth/audio/utils/session/
H A DBluetoothAudioSessionControl.h29 static bool IsSessionReady(const SessionType& session_type) { in IsSessionReady()
42 const SessionType& session_type, const PortStatusCallbacks& cbacks) { in RegisterControlResultCback()
54 static void UnregisterControlResultCback(const SessionType& session_type, in UnregisterControlResultCback()
66 const SessionType& 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()
89 static bool SuspendStream(const SessionType& session_type) { in SuspendStream()
98 static void StopStream(const SessionType& session_type) { in StopStream()
106 static bool GetPresentationPosition(const SessionType& session_type, in GetPresentationPosition()
120 const SessionType& session_type, in UpdateTracksMetadata()
[all …]
H A DBluetoothAudioSession.h41 using ::android::hardware::bluetooth::audio::V2_0::SessionType;
50 (static_cast<uint16_t>(SessionType::UNKNOWN) << 8 & 0xff00);
51 inline SessionType ObserversCookieGetSessionType(uint16_t cookie) { in ObserversCookieGetSessionType()
52 return static_cast<SessionType>(cookie >> 8 & 0x00ff); in ObserversCookieGetSessionType()
54 inline uint16_t ObserversCookieGetInitValue(SessionType session_type) { in ObserversCookieGetInitValue()
57 inline uint16_t ObserversCookieGetUpperBound(SessionType session_type) { in ObserversCookieGetUpperBound()
87 SessionType session_type_;
109 BluetoothAudioSession(const SessionType& session_type);
179 const SessionType& session_type);
184 std::unordered_map<SessionType, std::shared_ptr<BluetoothAudioSession>>
H A DBluetoothAudioSession.cpp56 BluetoothAudioSession::BluetoothAudioSession(const SessionType& session_type) in BluetoothAudioSession()
80 (session_type_ == SessionType::A2DP_HARDWARE_OFFLOAD_DATAPATH in OnSessionStarted()
98 audio_config_ = (session_type_ == SessionType::A2DP_HARDWARE_OFFLOAD_DATAPATH in OnSessionEnded()
154 (session_type_ == SessionType::A2DP_HARDWARE_OFFLOAD_DATAPATH || in IsSessionReady()
178 (session_type_ == SessionType::A2DP_SOFTWARE_ENCODING_DATAPATH || in UpdateAudioConfig()
179 session_type_ == SessionType::HEARING_AID_SOFTWARE_ENCODING_DATAPATH); in UpdateAudioConfig()
181 (session_type_ == SessionType::A2DP_HARDWARE_OFFLOAD_DATAPATH); in UpdateAudioConfig()
244 } else if (session_type_ == SessionType::A2DP_HARDWARE_OFFLOAD_DATAPATH) { in GetAudioConfig()
343 if (session_type_ == SessionType::A2DP_SOFTWARE_ENCODING_DATAPATH || in UpdateTracksMetadata()
344 session_type_ == SessionType::A2DP_HARDWARE_OFFLOAD_DATAPATH) { in UpdateTracksMetadata()
[all …]
H A DBluetoothAudioSupportedCodecsDB_2_1.cpp34 ::android::hardware::bluetooth::audio::V2_1::SessionType;
36 ::android::hardware::bluetooth::audio::V2_0::SessionType;
40 const ::android::hardware::bluetooth::audio::V2_1::SessionType& in is_2_0_session_type()
72 const ::android::hardware::bluetooth::audio::V2_1::SessionType& in GetOffloadCodecCapabilities()
113 const ::android::hardware::bluetooth::audio::V2_1::SessionType& in IsOffloadCodecConfigurationValid()
H A DBluetoothAudioSession_2_1.h33 ::android::hardware::bluetooth::audio::V2_1::SessionType session_type_2_1_;
50 const ::android::hardware::bluetooth::audio::V2_1::SessionType&
81 const ::android::hardware::bluetooth::audio::V2_1::SessionType&
87 std::unordered_map<::android::hardware::bluetooth::audio::V2_1::SessionType,
H A DBluetoothAudioSupportedCodecsDB.h28 using ::android::hardware::bluetooth::audio::V2_0::SessionType;
32 const SessionType& session_type);
35 bool IsOffloadCodecConfigurationValid(const SessionType& session_type,
H A DBluetoothAudioSessionReport.h29 static void OnSessionStarted(const SessionType& session_type, in OnSessionStarted()
41 static void OnSessionEnded(const SessionType& session_type) { in OnSessionEnded()
50 static void ReportControlStatus(const SessionType& session_type, in ReportControlStatus()
H A DBluetoothAudioSessionReport_2_1.h30 const ::android::hardware::bluetooth::audio::V2_1::SessionType& in OnSessionStarted()
45 const ::android::hardware::bluetooth::audio::V2_1::SessionType& in OnSessionEnded()
56 const ::android::hardware::bluetooth::audio::V2_1::SessionType& in ReportControlStatus()
H A DBluetoothAudioSession_2_1.cpp28 ::android::hardware::bluetooth::audio::V2_1::SessionType;
30 ::android::hardware::bluetooth::audio::V2_0::SessionType;
39 const ::android::hardware::bluetooth::audio::V2_1::SessionType& in is_2_0_session_type()
52 const ::android::hardware::bluetooth::audio::V2_1::SessionType& in BluetoothAudioSession_2_1()
H A DBluetoothAudioSupportedCodecsDB_2_1.h31 const ::android::hardware::bluetooth::audio::V2_1::SessionType&
39 const ::android::hardware::bluetooth::audio::V2_1::SessionType&
/aosp12/hardware/interfaces/bluetooth/audio/2.0/default/
H A DBluetoothAudioProvidersFactory.cpp42 const SessionType sessionType, openProvider_cb _hidl_cb) { in openProvider()
47 case SessionType::A2DP_SOFTWARE_ENCODING_DATAPATH: in openProvider()
50 case SessionType::A2DP_HARDWARE_OFFLOAD_DATAPATH: in openProvider()
53 case SessionType::HEARING_AID_SOFTWARE_ENCODING_DATAPATH: in openProvider()
70 const SessionType sessionType, getProviderCapabilities_cb _hidl_cb) { in getProviderCapabilities()
73 if (sessionType == SessionType::A2DP_HARDWARE_OFFLOAD_DATAPATH) { in getProviderCapabilities()
82 } else if (sessionType != SessionType::UNKNOWN) { in getProviderCapabilities()
H A DBluetoothAudioProvider.h30 using ::android::hardware::bluetooth::audio::V2_0::SessionType;
42 virtual bool isValid(const SessionType& sessionType) = 0;
54 SessionType session_type_;
H A DBluetoothAudioProvidersFactory.h37 Return<void> openProvider(const SessionType sessionType,
41 const SessionType sessionType,
/aosp12/system/bt/audio_hal_interface/
H A Dclient_interface.h56 using SessionType = ::android::hardware::bluetooth::audio::V2_0::SessionType; variable
58 ::android::hardware::bluetooth::audio::V2_1::SessionType;
97 IBluetoothTransportInstance(SessionType sessionType, in IBluetoothTransportInstance()
105 : session_type_(SessionType::UNKNOWN), in IBluetoothTransportInstance()
111 SessionType GetSessionType() const { return session_type_; } in GetSessionType()
143 const SessionType session_type_;
157 IBluetoothSinkTransportInstance(SessionType sessionType, in IBluetoothSinkTransportInstance()
168 IBluetoothSourceTransportInstance(SessionType sessionType, in IBluetoothSourceTransportInstance()
200 SessionType session_type);
H A Dclient_interface_unittest.cc53 using ::bluetooth::audio::SessionType;
137 TestSinkTransport(SessionType session_type) in TestSinkTransport()
175 TestSourceTransport(SessionType session_type) in TestSourceTransport()
371 new TestSinkTransport(SessionType::A2DP_SOFTWARE_ENCODING_DATAPATH); in TEST_F()
471 new TestSinkTransport(SessionType::A2DP_HARDWARE_OFFLOAD_DATAPATH); in TEST_F()
491 new TestSinkTransport(SessionType::A2DP_HARDWARE_OFFLOAD_DATAPATH); in TEST_F()
545 new TestSinkTransport(SessionType::A2DP_HARDWARE_OFFLOAD_DATAPATH); in TEST_F()
565 new TestSinkTransport(SessionType::A2DP_HARDWARE_OFFLOAD_DATAPATH); in TEST_F()
616 new TestSinkTransport(SessionType::A2DP_HARDWARE_OFFLOAD_DATAPATH); in TEST_F()
636 new TestSinkTransport(SessionType::A2DP_HARDWARE_OFFLOAD_DATAPATH); in TEST_F()
[all …]
/aosp12/hardware/interfaces/bluetooth/audio/2.1/vts/functional/
H A DVtsHalBluetoothAudioV2_1TargetTest.cpp60 using ::android::hardware::bluetooth::audio::V2_0::SessionType;
168 if (session_type == SessionType::UNKNOWN) { in GetProviderCapabilitiesHelper()
245 void OpenProviderHelper(const SessionType& session_type) { in OpenProviderHelper()
257 ASSERT_NE(session_type, SessionType::UNKNOWN); in OpenProviderHelper()
262 ASSERT_TRUE(session_type == SessionType::UNKNOWN || in OpenProviderHelper()
361 static constexpr SessionType session_types_[4] = {
362 SessionType::UNKNOWN, SessionType::A2DP_SOFTWARE_ENCODING_DATAPATH,
363 SessionType::A2DP_HARDWARE_OFFLOAD_DATAPATH,
364 SessionType::HEARING_AID_SOFTWARE_ENCODING_DATAPATH};
910 SessionType::HEARING_AID_SOFTWARE_ENCODING_DATAPATH); in SetUp()
[all …]
/aosp12/hardware/interfaces/bluetooth/audio/2.0/vts/functional/
H A DVtsHalBluetoothAudioV2_0TargetTest.cpp64 using ::android::hardware::bluetooth::audio::V2_0::SessionType;
165 if (session_type == SessionType::UNKNOWN) { in GetProviderCapabilitiesHelper()
218 void OpenProviderHelper(const SessionType& session_type) { in OpenProviderHelper()
230 ASSERT_NE(session_type, SessionType::UNKNOWN); in OpenProviderHelper()
235 ASSERT_TRUE(session_type == SessionType::UNKNOWN || in OpenProviderHelper()
274 static constexpr SessionType session_types_[4] = {
275 SessionType::UNKNOWN, SessionType::A2DP_SOFTWARE_ENCODING_DATAPATH,
276 SessionType::A2DP_HARDWARE_OFFLOAD_DATAPATH,
277 SessionType::HEARING_AID_SOFTWARE_ENCODING_DATAPATH};
379 OpenProviderHelper(SessionType::A2DP_HARDWARE_OFFLOAD_DATAPATH); in SetUp()
[all …]

12