Home
last modified time | relevance | path

Searched refs:AudioContexts (Results 1 – 24 of 24) sorted by relevance

/packages/modules/Bluetooth/system/bta/le_audio/
Ddevice_groups.h118 metadata_context_type_({.sink = types::AudioContexts(
120 .source = types::AudioContexts(
124 types::AudioContexts(types::LeAudioContextType::UNINITIALIZED),
125 .source = types::AudioContexts(
130 {.sink = types::AudioContexts(types::kLeAudioContextAllTypes),
131 .source = types::AudioContexts(types::kLeAudioContextAllTypes)}),
161 const types::BidirectionalPair<types::AudioContexts>&
197 const types::BidirectionalPair<types::AudioContexts>&
244 const types::BidirectionalPair<types::AudioContexts>& context_types,
291 inline types::AudioContexts GetPendingAvailableContextsChange() const { in GetPendingAvailableContextsChange()
[all …]
Dle_audio_types.h411 class AudioContexts {
416 explicit constexpr AudioContexts() in AudioContexts() function
418 explicit constexpr AudioContexts(const T& v) : mValue(v) {} in AudioContexts() function
419 explicit constexpr AudioContexts(const LeAudioContextType& v) in AudioContexts() function
421 constexpr AudioContexts(const AudioContexts& other) in AudioContexts() function
432 void set_all(const AudioContexts& v) { mValue |= v.value(); } in set_all()
434 void unset_all(const AudioContexts& v) { mValue &= ~v.value(); } in unset_all()
439 bool test_all(const AudioContexts& v) const { in test_all()
442 bool test_any(const AudioContexts& v) const { in test_any()
449 AudioContexts& operator=(AudioContexts&& other) = default;
[all …]
Ddevices.h187 const types::AudioContexts& metadata_context_types,
190 inline types::AudioContexts GetSupportedContexts(
201 types::BidirectionalPair<types::AudioContexts> contexts) { in SetSupportedContexts()
205 inline types::AudioContexts GetAvailableContexts(
216 types::BidirectionalPair<types::AudioContexts> cont_val);
221 const types::BidirectionalPair<types::AudioContexts>&
225 const types::AudioContexts& metadata_context_types,
233 std::vector<uint8_t> GetMetadata(types::AudioContexts context_type,
236 const types::BidirectionalPair<types::AudioContexts>& context_types,
248 types::BidirectionalPair<types::AudioContexts> avail_contexts_;
[all …]
Dstate_machine_test.cc1004 types::AudioContexts update_contexts, in MultipleTestDevicePrepare()
1130 types::AudioContexts update_contexts = types::AudioContexts(), in PrepareSingleTestDeviceGroup()
1704 {.sink = types::AudioContexts(context_type), in TEST_F()
1705 .source = types::AudioContexts(context_type)})); in TEST_F()
1750 {.sink = types::AudioContexts(context_type), in TEST_F()
1751 .source = types::AudioContexts(context_type)})); in TEST_F()
1797 {.sink = types::AudioContexts(context_type), in TEST_F()
1798 .source = types::AudioContexts(context_type)})); in TEST_F()
1846 {.sink = types::AudioContexts(context_type), in TEST_F()
1847 .source = types::AudioContexts(context_type)})); in TEST_F()
[all …]
Dle_audio_types.cc611 std::vector<uint8_t>& metadata, types::AudioContexts context_type) { in AppendMetadataLtvEntryForStreamingContext()
738 AudioContexts operator|(std::underlying_type<LeAudioContextType>::type lhs, in operator |()
741 return AudioContexts(lhs | static_cast<T>(rhs)); in operator |()
744 AudioContexts& operator|=(AudioContexts& lhs, AudioContexts const& rhs) { in operator |=()
745 lhs = AudioContexts(lhs.value() | rhs.value()); in operator |=()
749 AudioContexts& operator&=(AudioContexts& lhs, AudioContexts const& rhs) { in operator &=()
750 lhs = AudioContexts(lhs.value() & rhs.value()); in operator &=()
759 std::string AudioContexts::to_string() const { in to_string()
771 std::ostream& operator<<(std::ostream& os, const AudioContexts& contexts) { in operator <<()
794 AudioContexts get_bidirectional(BidirectionalPair<AudioContexts> p) { in get_bidirectional()
[all …]
Ddevices_test.cc53 using ::bluetooth::le_audio::types::AudioContexts;
851 {.sink = AudioContexts(kLeAudioContextAllTypes), in AddTestDevice()
852 .source = AudioContexts(kLeAudioContextAllTypes)}); in AddTestDevice()
854 {.sink = AudioContexts(kLeAudioContextAllTypes), in AddTestDevice()
855 .source = AudioContexts(kLeAudioContextAllTypes)}); in AddTestDevice()
934 BidirectionalPair<AudioContexts> group_audio_locations = { in TestSingleAseConfiguration()
935 .sink = AudioContexts(context_type), in TestSingleAseConfiguration()
936 .source = AudioContexts(context_type)}; in TestSingleAseConfiguration()
990 BidirectionalPair<AudioContexts> metadata = { in TestGroupAseVendorConfiguration()
991 .sink = AudioContexts(context_type), in TestGroupAseVendorConfiguration()
[all …]
Dcontent_control_id_keeper_test.cc49 types::AudioContexts(types::LeAudioContextType::MEDIA)); in TEST()
55 types::AudioContexts(types::LeAudioContextType::ALERTS)); in TEST()
84 types::AudioContexts(types::LeAudioContextType::MEDIA)); in TEST()
90 types::AudioContexts(types::LeAudioContextType::ALERTS)); in TEST()
Dcontent_control_id_keeper.cc52 void SetCcid(const types::AudioContexts& contexts, int ccid) { in SetCcid()
147 void ContentControlIdKeeper::SetCcid(const types::AudioContexts& contexts, in SetCcid()
153 const types::AudioContexts& contexts) const { in GetAllCcids()
Dcontent_control_id_keeper.h37 void SetCcid(const types::AudioContexts& contexts, int ccid);
39 std::vector<uint8_t> GetAllCcids(const types::AudioContexts& contexts) const;
Dle_audio_client_test.cc88 using bluetooth::le_audio::types::AudioContexts;
655 uint16_t handle, AudioContexts sink_ctxs, in InjectContextTypes()
656 AudioContexts source_ctxs) { in InjectContextTypes()
665 uint16_t conn_id, AudioContexts sink_ctxs, in InjectSupportedContextTypes()
666 AudioContexts source_ctxs) { in InjectSupportedContextTypes()
673 uint16_t conn_id, AudioContexts sink_ctxs, in InjectAvailableContextTypes()
674 AudioContexts source_ctxs, in InjectAvailableContextTypes()
893 types::BidirectionalPair<types::AudioContexts> in SetUpMockGroups()
1050 types::BidirectionalPair<types::AudioContexts> in SetUpMockGroups()
5997 types::AudioContexts(types::LeAudioContextType::UNSPECIFIED).value(); in TEST_F()
[all …]
Dle_audio_utils.cc26 using bluetooth::le_audio::types::AudioContexts;
183 AudioContexts GetAudioContextsFromSourceMetadata( in GetAudioContextsFromSourceMetadata()
185 AudioContexts track_contexts; in GetAudioContextsFromSourceMetadata()
205 AudioContexts GetAudioContextsFromSinkMetadata( in GetAudioContextsFromSinkMetadata()
207 AudioContexts all_track_contexts; in GetAudioContextsFromSinkMetadata()
242 all_track_contexts = AudioContexts( in GetAudioContextsFromSinkMetadata()
Dle_audio_utils.h37 types::AudioContexts GetAudioContextsFromSourceMetadata(
39 types::AudioContexts GetAudioContextsFromSinkMetadata(
Dstate_machine.h57 const types::BidirectionalPair<types::AudioContexts>&
64 const types::BidirectionalPair<types::AudioContexts>&
Dmock_state_machine.h32 bluetooth::le_audio::types::AudioContexts>& metadata_context_types,
50 bluetooth::le_audio::types::AudioContexts>& metadata_context_types,
Dclient.cc99 using bluetooth::le_audio::types::AudioContexts;
243 {.sink = AudioContexts(), .source = AudioContexts()}), in LeAudioClientImpl()
332 AudioContexts(LeAudioContextType::MEDIA); in ReconfigureAfterVbcClose()
794 AudioContexts ChooseMetadataContextType(AudioContexts metadata_context_type) { in ChooseMetadataContextType()
828 return AudioContexts(ct); in ChooseMetadataContextType()
835 return AudioContexts(LeAudioContextType::UNSPECIFIED); in ChooseMetadataContextType()
840 BidirectionalPair<AudioContexts> remote_contexts) { in GroupStream()
926 BidirectionalPair<AudioContexts> initial_contexts = { in GroupStream()
927 AudioContexts(context_type), AudioContexts(context_type)}; in GroupStream()
1015 ContentControlIdKeeper::GetInstance()->SetCcid(AudioContexts(context_type), in SetCcidInformation()
[all …]
Ddevices.cc44 using bluetooth::le_audio::types::AudioContexts;
248 const AudioContexts& metadata_context_types, in ConfigureAses()
1065 BidirectionalPair<AudioContexts> contexts) { in SetAvailableContexts()
1079 struct types::ase* ase, const AudioContexts& metadata_context_types, in SetMetadataToAse()
1087 ase->metadata = GetMetadata(AudioContexts(LeAudioContextType::UNSPECIFIED), in SetMetadataToAse()
1094 const BidirectionalPair<AudioContexts>& metadata_context_types, in ActivateConfiguredAses()
1149 AudioContexts context_type, const std::vector<uint8_t>& ccid_list) { in GetMetadata()
1159 const BidirectionalPair<AudioContexts>& context_types, in IsMetadataChanged()
Ddevice_groups.cc44 using types::AudioContexts;
213 const BidirectionalPair<AudioContexts>& metadata_context_types, in Activate()
233 AudioContexts LeAudioDeviceGroup::GetSupportedContexts(int direction) const { in GetSupportedContexts()
234 AudioContexts context; in GetSupportedContexts()
918 types::BidirectionalPair<AudioContexts>
920 types::BidirectionalPair<AudioContexts> contexts; in GetLatestAvailableContexts()
1548 const types::BidirectionalPair<AudioContexts>& metadata_context_types, in ConfigureAses()
1713 const BidirectionalPair<AudioContexts>& context_types, in IsMetadataChanged()
1954 const types::BidirectionalPair<AudioContexts>& metadata_context_types, in Configure()
Dclient_parser.h245 types::BidirectionalPair<types::AudioContexts>& rsp, uint16_t len,
248 types::BidirectionalPair<types::AudioContexts>& rsp, uint16_t len,
Dclient_parser_test.cc576 types::BidirectionalPair<types::AudioContexts> avail_contexts; in TEST()
589 types::BidirectionalPair<types::AudioContexts> avail_contexts; in TEST()
605 types::BidirectionalPair<types::AudioContexts> supp_contexts; in TEST()
618 types::BidirectionalPair<types::AudioContexts> supp_contexts; in TEST()
Dclient_parser.cc647 types::BidirectionalPair<types::AudioContexts>& contexts, uint16_t len, in ParseSupportedAudioContexts()
666 types::BidirectionalPair<types::AudioContexts>& contexts, uint16_t len, in ParseAvailableAudioContexts()
Dstate_machine.cc108 using bluetooth::le_audio::types::AudioContexts;
195 const BidirectionalPair<AudioContexts>& metadata_context_types, in StartStream()
286 const BidirectionalPair<AudioContexts>& metadata_context_types, in ConfigureStream()
2716 const BidirectionalPair<AudioContexts>& context_types, in PrepareAndSendUpdateMetadata()
2764 AudioContexts(LeAudioContextType::UNSPECIFIED), in PrepareAndSendUpdateMetadata()
/packages/modules/Bluetooth/system/bta/le_audio/broadcaster/
Dbroadcast_configuration_provider.cc30 auto context = types::AudioContexts(subgroup_quality.at(0).first); in GetBroadcastConfig()
Dbroadcaster.cc63 using bluetooth::le_audio::types::AudioContexts;
256 void UpdateStreamingContextTypeOnAllSubgroups(const AudioContexts& contexts) { in UpdateStreamingContextTypeOnAllSubgroups()
355 auto context_type = AudioContexts(LeAudioContextType::MEDIA); in UpdateMetadata()
434 AudioContexts audio_contexts) { in ChooseConfigurationContextType()
499 auto context_type = AudioContexts(LeAudioContextType::MEDIA); in CreateAudioBroadcast()
Dbroadcaster_test.cc41 using bluetooth::le_audio::types::AudioContexts;
151 if (AudioContexts(context).test_any( in GetBroadcastConfig()
862 AudioContexts context_type; in TEST_F()