/packages/modules/Bluetooth/system/bta/le_audio/ |
D | content_control_id_keeper_test.cc | 42 ccid_keeper->SetCcid(types::LeAudioContextType::MEDIA | types::LeAudioContextType::ALERTS, in TEST() 44 ASSERT_EQ(ccid_one, ccid_keeper->GetCcid(types::LeAudioContextType::MEDIA)); in TEST() 45 ASSERT_EQ(ccid_one, ccid_keeper->GetCcid(types::LeAudioContextType::ALERTS)); in TEST() 48 ccid_keeper->GetAllCcids(types::AudioContexts(types::LeAudioContextType::MEDIA)); in TEST() 53 ccid_keeper->GetAllCcids(types::AudioContexts(types::LeAudioContextType::ALERTS)); in TEST() 57 auto all_ccids = ccid_keeper->GetAllCcids(types::LeAudioContextType::MEDIA | in TEST() 58 types::LeAudioContextType::ALERTS); in TEST() 73 ccid_keeper->SetCcid(types::LeAudioContextType::MEDIA, ccid_two); in TEST() 74 ASSERT_EQ(ccid_two, ccid_keeper->GetCcid(types::LeAudioContextType::MEDIA)); in TEST() 75 ccid_keeper->SetCcid(types::LeAudioContextType::ALERTS, ccid_three); in TEST() [all …]
|
D | device_groups.h | 65 void GetCisCount(types::LeAudioContextType context_type, uint8_t& out_cis_count_bidir, 68 void GenerateCisIds(types::LeAudioContextType context_type); 120 configuration_context_type_(types::LeAudioContextType::UNINITIALIZED), 122 {.sink = types::AudioContexts(types::LeAudioContextType::UNINITIALIZED), 123 .source = types::AudioContexts(types::LeAudioContextType::UNINITIALIZED)}), 125 {.sink = types::AudioContexts(types::LeAudioContextType::UNINITIALIZED), 126 .source = types::AudioContexts(types::LeAudioContextType::UNINITIALIZED)}), 157 bool Activate(types::LeAudioContextType context_type, 165 LeAudioDevice* GetFirstDeviceWithAvailableContext(types::LeAudioContextType context_type) const; 171 types::LeAudioContextType context_type) const; [all …]
|
D | metrics_collector.cc | 36 using bluetooth::le_audio::types::LeAudioContextType; 50 const static std::unordered_map<LeAudioContextType, LeAudioMetricsContextType> kContextTypeTable = { 51 {LeAudioContextType::UNINITIALIZED, LeAudioMetricsContextType::INVALID}, 52 {LeAudioContextType::UNSPECIFIED, LeAudioMetricsContextType::UNSPECIFIED}, 53 {LeAudioContextType::CONVERSATIONAL, LeAudioMetricsContextType::COMMUNICATION}, 54 {LeAudioContextType::MEDIA, LeAudioMetricsContextType::MEDIA}, 55 {LeAudioContextType::GAME, LeAudioMetricsContextType::GAME}, 56 {LeAudioContextType::INSTRUCTIONAL, LeAudioMetricsContextType::INSTRUCTIONAL}, 57 {LeAudioContextType::VOICEASSISTANTS, LeAudioMetricsContextType::MAN_MACHINE}, 58 {LeAudioContextType::LIVE, LeAudioMetricsContextType::LIVE}, [all …]
|
D | le_audio_set_configuration_provider_json.cc | 47 using bluetooth::le_audio::types::LeAudioContextType; 92 static const std::multimap<std::string, ::bluetooth::le_audio::types::LeAudioContextType> in ScenarioToContextTypes() 94 {"Media", types::LeAudioContextType::ALERTS}, in ScenarioToContextTypes() 95 {"Media", types::LeAudioContextType::INSTRUCTIONAL}, in ScenarioToContextTypes() 96 {"Media", types::LeAudioContextType::NOTIFICATIONS}, in ScenarioToContextTypes() 97 {"Media", types::LeAudioContextType::EMERGENCYALARM}, in ScenarioToContextTypes() 98 {"Media", types::LeAudioContextType::UNSPECIFIED}, in ScenarioToContextTypes() 99 {"Media", types::LeAudioContextType::MEDIA}, in ScenarioToContextTypes() 100 {"Conversational", types::LeAudioContextType::RINGTONE}, in ScenarioToContextTypes() 101 {"Conversational", types::LeAudioContextType::CONVERSATIONAL}, in ScenarioToContextTypes() [all …]
|
D | devices_test.cc | 56 using ::bluetooth::le_audio::types::LeAudioContextType; 267 bool IsLc3SettingSupported(LeAudioContextType context_type, Lc3SettingId id) { in IsLc3SettingSupported() 270 case LeAudioContextType::RINGTONE: in IsLc3SettingSupported() 271 case LeAudioContextType::CONVERSATIONAL: in IsLc3SettingSupported() 283 case LeAudioContextType::MEDIA: in IsLc3SettingSupported() 284 case LeAudioContextType::ALERTS: in IsLc3SettingSupported() 285 case LeAudioContextType::INSTRUCTIONAL: in IsLc3SettingSupported() 286 case LeAudioContextType::NOTIFICATIONS: in IsLc3SettingSupported() 287 case LeAudioContextType::EMERGENCYALARM: in IsLc3SettingSupported() 288 case LeAudioContextType::UNSPECIFIED: in IsLc3SettingSupported() [all …]
|
D | le_audio_types.h | 423 enum class LeAudioContextType : uint16_t { enum 441 using T = std::underlying_type<LeAudioContextType>::type; 445 explicit constexpr AudioContexts() : mValue(static_cast<T>(LeAudioContextType::UNINITIALIZED)) {} in AudioContexts() 447 explicit constexpr AudioContexts(const LeAudioContextType& v) : mValue(static_cast<T>(v)) {} in AudioContexts() 452 bool none() const { return mValue == static_cast<T>(LeAudioContextType::UNINITIALIZED); } in none() 455 void set(const LeAudioContextType& v) { mValue |= static_cast<T>(v); } in set() 457 void unset(const LeAudioContextType& v) { mValue &= ~static_cast<T>(v); } in unset() 460 bool test(const LeAudioContextType& v) const { return (mValue & static_cast<T>(v)) != 0; } in test() 463 void clear() { mValue = static_cast<T>(LeAudioContextType::UNINITIALIZED); } in clear() 474 AudioContexts operator|(std::underlying_type<LeAudioContextType>::type lhs, [all …]
|
D | content_control_id_keeper.cc | 33 using bluetooth::le_audio::types::LeAudioContextType; 44 void SetCcid(types::LeAudioContextType context_type, int ccid) { in SetCcid() 45 if (context_type >= LeAudioContextType::RFU) { in SetCcid() 80 int GetCcid(types::LeAudioContextType context_type) const { in GetCcid() 81 if (context_type >= LeAudioContextType::RFU) { in GetCcid() 96 std::map<LeAudioContextType /* context */, int /*ccid */> ccids_; 132 int ContentControlIdKeeper::GetCcid(types::LeAudioContextType context_type) const { in GetCcid() 140 void ContentControlIdKeeper::SetCcid(types::LeAudioContextType context_type, int ccid) { in SetCcid() 142 if (context_type == types::LeAudioContextType::UNINITIALIZED) { in SetCcid() 159 for (LeAudioContextType context : types::kLeAudioContextAllTypesArray) { in GetAllCcids()
|
D | le_audio_utils.cc | 35 using bluetooth::le_audio::types::LeAudioContextType; 56 LeAudioContextType AudioContentToLeAudioContext(audio_content_type_t content_type, in AudioContentToLeAudioContext() 61 return LeAudioContextType::MEDIA; in AudioContentToLeAudioContext() 63 return LeAudioContextType::VOICEASSISTANTS; in AudioContentToLeAudioContext() 66 return LeAudioContextType::CONVERSATIONAL; in AudioContentToLeAudioContext() 69 return LeAudioContextType::CONVERSATIONAL; in AudioContentToLeAudioContext() 73 return LeAudioContextType::RINGTONE; in AudioContentToLeAudioContext() 76 return LeAudioContextType::SOUNDEFFECTS; in AudioContentToLeAudioContext() 78 return LeAudioContextType::GAME; in AudioContentToLeAudioContext() 80 return LeAudioContextType::NOTIFICATIONS; in AudioContentToLeAudioContext() [all …]
|
D | le_audio_utils.h | 35 types::LeAudioContextType AudioContentToLeAudioContext(audio_content_type_t content_type, 41 inline uint8_t GetTargetLatencyForAudioContext(types::LeAudioContextType ctx) { in GetTargetLatencyForAudioContext() 43 case types::LeAudioContextType::MEDIA: in GetTargetLatencyForAudioContext() 46 case types::LeAudioContextType::LIVE: in GetTargetLatencyForAudioContext() 48 case types::LeAudioContextType::GAME: in GetTargetLatencyForAudioContext() 51 case types::LeAudioContextType::RINGTONE: in GetTargetLatencyForAudioContext() 53 case types::LeAudioContextType::CONVERSATIONAL: in GetTargetLatencyForAudioContext()
|
D | le_audio_types.cc | 53 using types::LeAudioContextType; 609 std::string contextTypeToStr(const LeAudioContextType& context) { in contextTypeToStr() 611 case LeAudioContextType::UNINITIALIZED: in contextTypeToStr() 613 case LeAudioContextType::UNSPECIFIED: in contextTypeToStr() 615 case LeAudioContextType::CONVERSATIONAL: in contextTypeToStr() 617 case LeAudioContextType::MEDIA: in contextTypeToStr() 619 case LeAudioContextType::GAME: in contextTypeToStr() 621 case LeAudioContextType::INSTRUCTIONAL: in contextTypeToStr() 623 case LeAudioContextType::VOICEASSISTANTS: in contextTypeToStr() 625 case LeAudioContextType::LIVE: in contextTypeToStr() [all …]
|
D | le_audio_client_test.cc | 96 using bluetooth::le_audio::types::LeAudioContextType; 101 constexpr bluetooth::le_audio::types::LeAudioContextType kLeAudioDefaultConfigurationContext = 102 bluetooth::le_audio::types::LeAudioContextType::UNSPECIFIED; 304 ((const std::vector<std::pair<types::LeAudioContextType, uint8_t>>&), 851 .WillByDefault([this](LeAudioDeviceGroup* group, types::LeAudioContextType context_type, in SetUpMockGroups() 1050 .WillByDefault([this](LeAudioDeviceGroup* group, types::LeAudioContextType context_type, in SetUpMockGroups() 2848 static_cast<int>(LeAudioContextType::MEDIA)); in TestSetupRemoteDevices() 2850 static_cast<int>(LeAudioContextType::CONVERSATIONAL)); in TestSetupRemoteDevices() 2857 LeAudioContextType context_type, int group_id, bool set_before_streaming, in TestSetCodecPreference() 2879 if (context_type != LeAudioContextType::MEDIA && in TestSetCodecPreference() [all …]
|
D | client.cc | 151 using bluetooth::le_audio::types::LeAudioContextType; 242 context_type_(LeAudioContextType::UNSPECIFIED), in StreamSpeedTracker() 249 void Init(int group_id, LeAudioContextType context_type, int num_of_devices) { in Init() 270 context_type_ = LeAudioContextType::UNSPECIFIED; in Reset() 348 LeAudioContextType context_type_; 402 configuration_context_type_(LeAudioContextType::UNINITIALIZED), in LeAudioClientImpl() 489 if ((configuration_context_type_ != LeAudioContextType::MEDIA) && in ReconfigureAfterVbcClose() 490 (configuration_context_type_ != LeAudioContextType::GAME)) { in ReconfigureAfterVbcClose() 500 UpdateSourceLocalMetadataContextTypes(AudioContexts(LeAudioContextType::MEDIA)); in ReconfigureAfterVbcClose() 1096 LeAudioContextType context_priority_list[] = { in ChooseMetadataContextType() [all …]
|
D | le_audio_types_test.cc | 370 auto default_context = (uint16_t)bluetooth::le_audio::types::LeAudioContextType::VOICEASSISTANTS; in TEST() 390 auto default_context = (uint16_t)bluetooth::le_audio::types::LeAudioContextType::VOICEASSISTANTS; in TEST() 845 ASSERT_EQ(utils::GetTargetLatencyForAudioContext(LeAudioContextType::MEDIA), in TEST() 849 ASSERT_EQ(utils::GetTargetLatencyForAudioContext(LeAudioContextType::LIVE), in TEST() 853 ASSERT_EQ(utils::GetTargetLatencyForAudioContext(LeAudioContextType::RINGTONE), in TEST() 855 ASSERT_EQ(utils::GetTargetLatencyForAudioContext(LeAudioContextType::CONVERSATIONAL), in TEST() 859 ASSERT_EQ(utils::GetTargetLatencyForAudioContext(LeAudioContextType::GAME), in TEST() 863 ASSERT_EQ(utils::GetTargetLatencyForAudioContext(LeAudioContextType::UNINITIALIZED), in TEST() 865 ASSERT_EQ(utils::GetTargetLatencyForAudioContext(LeAudioContextType::UNSPECIFIED), in TEST() 867 ASSERT_EQ(utils::GetTargetLatencyForAudioContext(LeAudioContextType::INSTRUCTIONAL), in TEST() [all …]
|
D | device_groups.cc | 71 using types::LeAudioContextType; 219 bool LeAudioDeviceGroup::Activate(LeAudioContextType context_type, in Activate() 266 LeAudioContextType context_type) const { in GetFirstDeviceWithAvailableContext() 311 LeAudioDevice* leAudioDevice, LeAudioContextType context_type) const { in GetNextDeviceWithAvailableContext() 828 LeAudioDeviceGroup::GetAudioSetConfigurationRequirements(types::LeAudioContextType ctx_type) const { in GetAudioSetConfigurationRequirements() 854 (ctx_type != types::LeAudioContextType::RINGTONE)) || in GetAudioSetConfigurationRequirements() 855 ctx_type == types::LeAudioContextType::UNSPECIFIED)) { in GetAudioSetConfigurationRequirements() 865 if (ctx_type == types::LeAudioContextType::VOICEASSISTANTS || in GetAudioSetConfigurationRequirements() 866 ctx_type == types::LeAudioContextType::GAME) { in GetAudioSetConfigurationRequirements() 951 if ((ctx_type == ::bluetooth::le_audio::types::LeAudioContextType::GAME) && in GetAudioSetConfigurationRequirements() [all …]
|
D | content_control_id_keeper.h | 36 void SetCcid(types::LeAudioContextType context_type, int ccid); 38 int GetCcid(types::LeAudioContextType context_type) const;
|
D | metrics_collector.h | 70 bluetooth::le_audio::types::LeAudioContextType context_type) = 0; 115 bluetooth::le_audio::types::LeAudioContextType context_type);
|
D | state_machine.h | 52 LeAudioDeviceGroup* group, types::LeAudioContextType context_type, 58 LeAudioDeviceGroup* group, types::LeAudioContextType context_type,
|
D | mock_state_machine.h | 28 bluetooth::le_audio::types::LeAudioContextType context_type, 41 bluetooth::le_audio::types::LeAudioContextType context_type,
|
D | codec_manager.h | 66 ::bluetooth::le_audio::types::LeAudioContextType audio_context_type; 94 std::vector<std::pair<bluetooth::le_audio::types::LeAudioContextType, uint8_t>>
|
/packages/modules/Bluetooth/system/bta/le_audio/broadcaster/ |
D | broadcast_configuration_provider.cc | 32 const std::vector<std::pair<types::LeAudioContextType, uint8_t>>& subgroup_quality) { in GetBroadcastConfig() argument 56 if (context.test_any(types::LeAudioContextType::GAME | types::LeAudioContextType::LIVE)) { in GetBroadcastConfig() 61 if (context.test(types::LeAudioContextType::INSTRUCTIONAL)) { in GetBroadcastConfig() 66 if (context.test_any(types::LeAudioContextType::SOUNDEFFECTS | in GetBroadcastConfig() 67 types::LeAudioContextType::UNSPECIFIED)) { in GetBroadcastConfig() 71 if (context.test_any(types::LeAudioContextType::ALERTS | in GetBroadcastConfig() 72 types::LeAudioContextType::NOTIFICATIONS | in GetBroadcastConfig() 73 types::LeAudioContextType::EMERGENCYALARM)) { in GetBroadcastConfig() 78 if (context.test(types::LeAudioContextType::MEDIA)) { in GetBroadcastConfig()
|
D | state_machine_test.cc | 330 bluetooth::le_audio::types::LeAudioContextType context = in InstantiateStateMachine() 331 bluetooth::le_audio::types::LeAudioContextType::UNSPECIFIED) { in InstantiateStateMachine() 339 const std::vector<std::pair<types::LeAudioContextType, uint8_t>>& subgroup_quality = { in InstantiateStateMachine() 568 auto sound_context = bluetooth::le_audio::types::LeAudioContextType::MEDIA; in TEST_F() 617 InstantiateStateMachine(bluetooth::le_audio::types::LeAudioContextType::MEDIA); in TEST_F() 637 InstantiateStateMachine(bluetooth::le_audio::types::LeAudioContextType::MEDIA); in TEST_F() 652 InstantiateStateMachine(bluetooth::le_audio::types::LeAudioContextType::MEDIA); in TEST_F() 680 InstantiateStateMachine(bluetooth::le_audio::types::LeAudioContextType::MEDIA); in TEST_F() 708 InstantiateStateMachine(bluetooth::le_audio::types::LeAudioContextType::MEDIA); in TEST_F() 735 InstantiateStateMachine(bluetooth::le_audio::types::LeAudioContextType::MEDIA); in TEST_F() [all …]
|
D | broadcaster.cc | 89 using bluetooth::le_audio::types::LeAudioContextType; 407 auto context_type = AudioContexts(LeAudioContextType::MEDIA); in UpdateMetadata() 415 context_type = LeAudioContextType::MEDIA | LeAudioContextType::CONVERSATIONAL; in UpdateMetadata() 484 LeAudioContextType ChooseConfigurationContextType(AudioContexts audio_contexts) { in ChooseConfigurationContextType() 489 LeAudioContextType context_priority_list[] = { in ChooseConfigurationContextType() 490 LeAudioContextType::LIVE, LeAudioContextType::GAME, in ChooseConfigurationContextType() 491 LeAudioContextType::MEDIA, LeAudioContextType::EMERGENCYALARM, in ChooseConfigurationContextType() 492 LeAudioContextType::ALERTS, LeAudioContextType::INSTRUCTIONAL, in ChooseConfigurationContextType() 493 LeAudioContextType::NOTIFICATIONS, LeAudioContextType::SOUNDEFFECTS, in ChooseConfigurationContextType() 503 auto fallback_config = LeAudioContextType::MEDIA; in ChooseConfigurationContextType() [all …]
|
D | broadcaster_test.cc | 49 using bluetooth::le_audio::types::LeAudioContextType; 133 const std::vector<std::pair<types::LeAudioContextType, uint8_t>>& subgroup_quality) { in GetBroadcastConfig() argument 146 if (AudioContexts(context).test_any(types::LeAudioContextType::GAME | in GetBroadcastConfig() 147 types::LeAudioContextType::LIVE | in GetBroadcastConfig() 148 types::LeAudioContextType::INSTRUCTIONAL | in GetBroadcastConfig() 149 types::LeAudioContextType::SOUNDEFFECTS)) { in GetBroadcastConfig() 183 static_cast<std::underlying_type<LeAudioContextType>::type>(LeAudioContextType::ALERTS); 202 static_cast<std::underlying_type<LeAudioContextType>::type>(LeAudioContextType::MEDIA); 238 ((const std::vector<std::pair<types::LeAudioContextType, uint8_t>>&), 312 ContentControlIdKeeper::GetInstance()->SetCcid(LeAudioContextType::MEDIA, media_ccid); in SetUp() [all …]
|
/packages/modules/Bluetooth/system/audio_hal_interface/aidl/ |
D | le_audio_utils.h | 54 const std::vector<std::pair<::bluetooth::le_audio::types::LeAudioContextType, 60 ::bluetooth::le_audio::types::LeAudioContextType context_type, 101 ::bluetooth::le_audio::types::LeAudioContextType ctx_type,
|
D | le_audio_utils_unittest.cc | 110 (uint16_t)((bluetooth::le_audio::types::LeAudioContextType::GAME | in PrepareReferenceMetadata() 111 bluetooth::le_audio::types::LeAudioContextType::CONVERSATIONAL) in PrepareReferenceMetadata() 119 (uint16_t)(bluetooth::le_audio::types::LeAudioContextType::GAME)); in PrepareReferenceMetadata() 479 ::bluetooth::le_audio::types::LeAudioContextType ctx_type, in PrepareReferenceAseConfigurationSetting() 577 ::bluetooth::le_audio::types::LeAudioContextType ctx_type, in PrepareReferenceAseConfigurationSettingVendor1() 808 const std::vector<std::pair<::bluetooth::le_audio::types::LeAudioContextType, uint8_t>>> 812 std::vector<std::pair<::bluetooth::le_audio::types::LeAudioContextType, uint8_t>> in PrepareReferenceBroadcastRequirements() 815 std::pair<::bluetooth::le_audio::types::LeAudioContextType, uint8_t> stack_req = in PrepareReferenceBroadcastRequirements() 816 std::make_pair(le_audio::types::LeAudioContextType::MEDIA, le_audio::QUALITY_HIGH); in PrepareReferenceBroadcastRequirements() 819 .audioContext.bitmask = (int)le_audio::types::LeAudioContextType::MEDIA, in PrepareReferenceBroadcastRequirements() [all …]
|