Home
last modified time | relevance | path

Searched refs:context_type (Results 1 – 25 of 30) sorted by relevance

12

/packages/modules/Bluetooth/system/bta/le_audio/
Dcontent_control_id_keeper.cc44 void SetCcid(types::LeAudioContextType context_type, int ccid) { in SetCcid()
45 if (context_type >= LeAudioContextType::RFU) { in SetCcid()
46 log::error("Unknownd context type {}", ToString(context_type)); in SetCcid()
50 log::debug("Ccid: {}, context type {}", ccid, ToString(context_type)); in SetCcid()
51 ccids_.insert_or_assign(context_type, ccid); in SetCcid()
80 int GetCcid(types::LeAudioContextType context_type) const { in GetCcid()
81 if (context_type >= LeAudioContextType::RFU) { in GetCcid()
82 log::error("Unknownd context type {}", ToString(context_type)); in GetCcid()
86 if (ccids_.count(context_type) == 0) { in GetCcid()
87 log::debug("No CCID for context {}", ToString(context_type)); in GetCcid()
[all …]
Dstate_machine_test.cc1131 void MultipleTestDevicePrepare(int leaudio_group_id, LeAudioContextType context_type, in MultipleTestDevicePrepare() argument
1140 switch (context_type) { in MultipleTestDevicePrepare()
1184 .test(context_type)) { in MultipleTestDevicePrepare()
1186 snk_context_type.set(context_type); in MultipleTestDevicePrepare()
1193 if ((context_type == kContextTypeConversational) || (context_type == kContextTypeLive)) { in MultipleTestDevicePrepare()
1195 src_context_type.set(context_type); in MultipleTestDevicePrepare()
1206 group->UpdateAudioSetConfigurationCache(context_type); in MultipleTestDevicePrepare()
1211 int leaudio_group_id, LeAudioContextType context_type, uint16_t device_cnt = 1, in PrepareSingleTestDeviceGroup() argument
1214 MultipleTestDevicePrepare(leaudio_group_id, context_type, device_cnt, update_contexts, true, in PrepareSingleTestDeviceGroup()
1761 const auto context_type = kContextTypeRingtone; in TEST_F() local
[all …]
Ddevice_groups.cc219 bool LeAudioDeviceGroup::Activate(LeAudioContextType context_type, in Activate() argument
229 context_type, metadata_context_types, ccid_lists); in Activate()
266 LeAudioContextType context_type) const { in GetFirstDeviceWithAvailableContext()
268 std::find_if(leAudioDevices_.begin(), leAudioDevices_.end(), [&context_type](auto& iter) { in GetFirstDeviceWithAvailableContext()
272 return iter.lock()->GetAvailableContexts().test(context_type); in GetFirstDeviceWithAvailableContext()
311 LeAudioDevice* leAudioDevice, LeAudioContextType context_type) const { in GetNextDeviceWithAvailableContext()
332 iter = std::find_if(iter, leAudioDevices_.end(), [&context_type](auto& d) { in GetNextDeviceWithAvailableContext()
336 return d.lock()->GetAvailableContexts().test(context_type); in GetNextDeviceWithAvailableContext()
1024 const LeAudioContextType& context_type) const { in IsUsingPreferredAudioSetConfiguration()
1036 return GetPreferredConfiguration(context_type).get(); in IsUsingPreferredAudioSetConfiguration()
[all …]
Ddevices_test.cc267 bool IsLc3SettingSupported(LeAudioContextType context_type, Lc3SettingId id) { in IsLc3SettingSupported() argument
269 switch (context_type) { in IsLc3SettingSupported()
885 void TestSingleAseConfiguration(LeAudioContextType context_type, in TestSingleAseConfiguration() argument
913 .sink = AudioContexts(context_type), .source = AudioContexts(context_type)}; in TestSingleAseConfiguration()
915 ASSERT_EQ(success_expected, group_->Configure(context_type, group_audio_locations)); in TestSingleAseConfiguration()
930 void TestGroupAseVendorConfiguration(LeAudioContextType context_type, in TestGroupAseVendorConfiguration() argument
959 BidirectionalPair<AudioContexts> metadata = {.sink = AudioContexts(context_type), in TestGroupAseVendorConfiguration()
960 .source = AudioContexts(context_type)}; in TestGroupAseVendorConfiguration()
961 ASSERT_EQ(true, group_->Configure(context_type, metadata)); in TestGroupAseVendorConfiguration()
971 void TestGroupAseConfiguration(LeAudioContextType context_type, in TestGroupAseConfiguration() argument
[all …]
Ddevice_groups.h65 void GetCisCount(types::LeAudioContextType context_type, uint8_t& out_cis_count_bidir,
68 void GenerateCisIds(types::LeAudioContextType context_type);
157 bool Activate(types::LeAudioContextType context_type,
165 LeAudioDevice* GetFirstDeviceWithAvailableContext(types::LeAudioContextType context_type) const;
171 types::LeAudioContextType context_type) const;
192 bool Configure(types::LeAudioContextType context_type,
216 bool IsUsingPreferredAudioSetConfiguration(const types::LeAudioContextType& context_type) const;
247 bool IsConfiguredForContext(types::LeAudioContextType context_type) const;
288 inline void SetConfigurationContextType(types::LeAudioContextType context_type) { in SetConfigurationContextType() argument
289 configuration_context_type_ = context_type; in SetConfigurationContextType()
[all …]
Dcontent_control_id_keeper.h36 void SetCcid(types::LeAudioContextType context_type, int ccid);
38 int GetCcid(types::LeAudioContextType context_type) const;
Dmetrics_collector.h70 bluetooth::le_audio::types::LeAudioContextType context_type) = 0;
115 bluetooth::le_audio::types::LeAudioContextType context_type);
Dmetrics_collector.cc143 void AddStreamStartedEvent(bluetooth::le_audio::types::LeAudioContextType context_type) override { in AddStreamStartedEvent() argument
144 int32_t atom_context_type = to_atom_context_type(context_type); in AddStreamStartedEvent()
256 int32_t group_id, bluetooth::le_audio::types::LeAudioContextType context_type) { in OnStreamStarted() argument
262 it->second->AddStreamStartedEvent(context_type); in OnStreamStarted()
Dle_audio_set_configuration_provider_json.cc110 ::bluetooth::le_audio::types::LeAudioContextType context_type) { in ContextTypeToScenario()
111 switch (context_type) { in ContextTypeToScenario()
135 LeAudioContextType context_type) const { in GetConfigurationsByContextType()
136 if (context_configurations_.count(context_type)) { in GetConfigurationsByContextType()
137 return &context_configurations_.at(context_type); in GetConfigurationsByContextType()
140 log::warn(": No predefined scenario for the context {} was found.", (int)context_type); in GetConfigurationsByContextType()
Dstate_machine.h52 LeAudioDeviceGroup* group, types::LeAudioContextType context_type,
58 LeAudioDeviceGroup* group, types::LeAudioContextType context_type,
Ddevices.h184 uint8_t direction, types::LeAudioContextType context_type,
218 types::LeAudioContextType context_type,
230 types::LeAudioLtvMap GetMetadata(types::AudioContexts context_type,
Dmock_state_machine.h28 bluetooth::le_audio::types::LeAudioContextType context_type,
41 bluetooth::le_audio::types::LeAudioContextType context_type,
Dstate_machine.cc216 bool StartStream(LeAudioDeviceGroup* group, LeAudioContextType context_type, in StartStream() argument
223 if (group->IsConfiguredForContext(context_type)) { in StartStream()
224 if (group->Activate(context_type, metadata_context_types, ccid_lists)) { in StartStream()
248 if (!group->Configure(context_type, metadata_context_types, ccid_lists)) { in StartStream()
253 group->cig.GenerateCisIds(context_type); in StartStream()
270 if (!group->IsConfiguredForContext(context_type)) { in StartStream()
271 if (group->GetConfigurationContextType() == context_type) { in StartStream()
276 if (group->Configure(context_type, metadata_context_types, ccid_lists)) { in StartStream()
281 ToString(context_type), group->group_id_); in StartStream()
328 bool ConfigureStream(LeAudioDeviceGroup* group, LeAudioContextType context_type, in ConfigureStream() argument
[all …]
Dclient.cc249 void Init(int group_id, LeAudioContextType context_type, int num_of_devices) { in Init() argument
252 context_type_ = context_type; in Init()
1195 void GroupStream(const int group_id, uint16_t context_type) override { in GroupStream() argument
1196 BidirectionalPair<AudioContexts> initial_contexts = {AudioContexts(context_type), in GroupStream()
1197 AudioContexts(context_type)}; in GroupStream()
1204 GroupStream(group, LeAudioContextType(context_type), initial_contexts); in GroupStream()
1300 bool IsUsingPreferredCodecConfig(int group_id, int context_type) { in IsUsingPreferredCodecConfig() argument
1308 static_cast<LeAudioContextType>(context_type)); in IsUsingPreferredCodecConfig()
1311 void SetCcidInformation(int ccid, int context_type) override { in SetCcidInformation() argument
1312 log::debug("Ccid: {}, context type {}", ccid, context_type); in SetCcidInformation()
[all …]
Ddevices.cc304 LeAudioContextType context_type, in ConfigureAses() argument
416 ase->configured_for_context_type = context_type; in ConfigureAses()
1158 LeAudioContextType context_type, in ActivateConfiguredAses() argument
1171 ase.configured_for_context_type == context_type) { in ActivateConfiguredAses()
1211 types::LeAudioLtvMap LeAudioDevice::GetMetadata(AudioContexts context_type, in GetMetadata() argument
1214 metadata.Add(types::kLeAudioMetadataTypeStreamingAudioContext, context_type.value()); in GetMetadata()
Dclient_linux.cc39 void SetCcidInformation(int ccid, int context_type) override {} in SetCcidInformation() argument
Dle_audio_types.cc528 types::AudioContexts context_type) { in AppendMetadataLtvEntryForStreamingContext() argument
540 UINT16_TO_STREAM(streaming_context_ltv_entry_buf, context_type.value()); in AppendMetadataLtvEntryForStreamingContext()
/packages/modules/Bluetooth/system/bta/le_audio/broadcaster/
Dbroadcaster.cc407 auto context_type = AudioContexts(LeAudioContextType::MEDIA); in UpdateMetadata() local
415 context_type = LeAudioContextType::MEDIA | LeAudioContextType::CONVERSATIONAL; in UpdateMetadata()
424 UINT16_TO_STREAM(pp, context_type.value()); in UpdateMetadata()
436 STREAM_TO_UINT16(context_type.value_ref(), pp); in UpdateMetadata()
440 auto ccid_vec = ContentControlIdKeeper::GetInstance()->GetAllCcids(context_type); in UpdateMetadata()
560 auto context_type = AudioContexts(LeAudioContextType::MEDIA); in CreateAudioBroadcast() local
568 context_type = LeAudioContextType::MEDIA | LeAudioContextType::CONVERSATIONAL; in CreateAudioBroadcast()
599 UINT16_TO_STREAM(pp, context_type.value()); in CreateAudioBroadcast()
613 STREAM_TO_UINT16(context_type.value_ref(), pp); in CreateAudioBroadcast()
617 auto ccid_vec = ContentControlIdKeeper::GetInstance()->GetAllCcids(context_type); in CreateAudioBroadcast()
[all …]
/packages/modules/Bluetooth/system/bta/include/
Dbta_le_audio_api.h64 virtual bool IsUsingPreferredCodecConfig(int group_id, int context_type) = 0;
65 virtual void SetCcidInformation(int ccid, int context_type) = 0;
/packages/modules/Bluetooth/system/gd/rust/topshim/le_audio/
Dle_audio_shim.h56 void set_ccid_information(int ccid, int context_type);
Dle_audio_shim.cc390 void LeAudioClientIntf::set_ccid_information(int ccid, int context_type) { in set_ccid_information() argument
391 return intf_->SetCcidInformation(ccid, context_type); in set_ccid_information()
/packages/modules/Bluetooth/system/btif/src/
Dbtif_le_audio.cc265 void SetCcidInformation(int ccid, int context_type) { in SetCcidInformation() argument
274 ccid, context_type)); in SetCcidInformation()
/packages/modules/Bluetooth/system/gd/rust/topshim/src/profiles/
Dle_audio.rs156 fn set_ccid_information(self: Pin<&mut LeAudioClientIntf>, ccid: i32, context_type: i32); in set_ccid_information()
691 pub fn set_ccid_information(&mut self, ccid: i32, context_type: i32) { in set_ccid_information()
692 self.internal.pin_mut().set_ccid_information(ccid, context_type); in set_ccid_information()
/packages/modules/Bluetooth/system/audio_hal_interface/aidl/
Dle_audio_utils.h60 ::bluetooth::le_audio::types::LeAudioContextType context_type,
/packages/modules/Bluetooth/system/include/hardware/
Dbt_le_audio.h428 virtual void SetCcidInformation(int ccid, int context_type) = 0;

12