/packages/services/Telephony/ecc/input/ |
D | eccdata.txt | 6 types: POLICE 10 types: AMBULANCE 14 types: FIRE 22 types: POLICE 26 types: AMBULANCE 30 types: FIRE 38 types: POLICE 39 types: FIRE 43 types: AMBULANCE 51 types: POLICE [all …]
|
/packages/modules/Bluetooth/system/bta/le_audio/ |
D | devices.h | 96 types::BidirectionalPair<std::optional<types::hdl_pair_wrapper<types::AudioLocations>>> 99 types::PublishedAudioCapabilities snk_pacs_; 100 types::PublishedAudioCapabilities src_pacs_; 102 struct types::hdl_pair audio_avail_hdls_; 103 struct types::hdl_pair audio_supp_cont_hdls_; 104 std::vector<struct types::ase> ases_; 105 struct types::hdl_pair ctp_hdls_; 140 types::DataPathState::IDLE, in address_() 149 void RegisterPACs(std::vector<struct types::acs_ac_record>* apr_db, 150 std::vector<struct types::acs_ac_record>* apr); [all …]
|
D | device_groups.h | 57 CigConfiguration(LeAudioDeviceGroup* group) : group_(group), state_(types::CigState::NONE) {} in CigConfiguration() 59 types::CigState GetState(void) const { return state_; } in GetState() 60 void SetState(bluetooth::le_audio::types::CigState state) { in SetState() 65 void GetCisCount(types::LeAudioContextType context_type, uint8_t& out_cis_count_bidir, 68 void GenerateCisIds(types::LeAudioContextType context_type); 73 std::vector<struct types::cis> cises; 76 uint8_t GetFirstFreeCisId(types::CisType cis_type) const; 79 types::CigState state_; 82 bool IsGroupConfiguredTo(const types::AudioSetConfiguration& cfg) { in IsGroupConfiguredTo() 90 mutable std::optional<types::LeAudioConfigurationStrategy> strategy_ = std::nullopt; [all …]
|
D | codec_manager_test.cc | 45 using bluetooth::le_audio::types::AudioSetConfiguration; 46 using bluetooth::le_audio::types::CodecLocation; 47 using bluetooth::le_audio::types::kLeAudioDirectionSink; 48 using bluetooth::le_audio::types::kLeAudioDirectionSource; 165 ((const std::vector<std::pair<types::LeAudioContextType, uint8_t>>&), 166 (const std::optional<std::vector<::bluetooth::le_audio::types::acs_ac_record>>&)), 169 MOCK_METHOD((std::optional<::bluetooth::le_audio::types::AudioSetConfiguration>), 171 (types::LeAudioContextType, 172 std::optional<const ::bluetooth::le_audio::types::PublishedAudioCapabilities*>, 173 std::optional<const ::bluetooth::le_audio::types::PublishedAudioCapabilities*>), [all …]
|
D | le_audio_utils.h | 35 types::LeAudioContextType AudioContentToLeAudioContext(audio_content_type_t content_type, 37 types::AudioContexts GetAudioContextsFromSourceMetadata( 39 types::AudioContexts GetAudioContextsFromSinkMetadata( 41 inline uint8_t GetTargetLatencyForAudioContext(types::LeAudioContextType ctx) { in GetTargetLatencyForAudioContext() 43 case types::LeAudioContextType::MEDIA: in GetTargetLatencyForAudioContext() 44 return types::kTargetLatencyHigherReliability; in GetTargetLatencyForAudioContext() 46 case types::LeAudioContextType::LIVE: in GetTargetLatencyForAudioContext() 48 case types::LeAudioContextType::GAME: in GetTargetLatencyForAudioContext() 49 return types::kTargetLatencyLower; in GetTargetLatencyForAudioContext() 51 case types::LeAudioContextType::RINGTONE: in GetTargetLatencyForAudioContext() [all …]
|
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 | le_audio_set_configuration_provider_json.cc | 43 using bluetooth::le_audio::types::AseConfiguration; 44 using bluetooth::le_audio::types::AudioSetConfiguration; 45 using bluetooth::le_audio::types::AudioSetConfigurations; 46 using bluetooth::le_audio::types::CodecConfigSetting; 47 using bluetooth::le_audio::types::LeAudioContextType; 48 using bluetooth::le_audio::types::QosConfigSetting; 81 AudioSetConfigurationProviderJson(types::CodecLocation location) { in AudioSetConfigurationProviderJson() 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() [all …]
|
D | device_groups.cc | 63 using bluetooth::le_audio::types::ase; 64 using types::AseState; 65 using types::AudioContexts; 66 using types::AudioLocations; 67 using types::BidirectionalPair; 68 using types::CisState; 69 using types::CisType; 70 using types::DataPathState; 71 using types::LeAudioContextType; 123 bool check_ase_count = direction < types::kLeAudioDirectionBoth; in NumOfAvailableForDirection() [all …]
|
D | state_machine_test.cc | 48 using ::bluetooth::le_audio::types::LeAudioContextType; 220 uint8_t ase_id_last_assigned = types::ase::kAseIdInvalid; 590 void ConfigCodecManagerMock(types::CodecLocation location) { in ConfigCodecManagerMock() 601 .WillByDefault(Invoke([](const types::AudioSetConfiguration& config) -> bool { in ConfigCodecManagerMock() 673 types::ase ase(0, 0, 0x01); in PrepareConnectedDevice() 683 types::ase ase(0, 0, 0x02); in PrepareConnectedDevice() 741 if (ase.id == bluetooth::le_audio::types::ase::kAseIdInvalid) { in InjectReleasingAndIdleState() 816 if (ase.direction == ::bluetooth::le_audio::types::kLeAudioDirectionSource) { in InjectQoSConfigurationForActiveAses() 836 void InjectAseStateNotification(types::ase* ase, LeAudioDevice* device, LeAudioDeviceGroup* group, in InjectAseStateNotification() 847 UINT8_TO_STREAM(p, ase->id == types::ase::kAseIdInvalid ? ++ase_id_last_assigned : ase->id); in InjectAseStateNotification() [all …]
|
D | codec_manager.cc | 60 using bluetooth::le_audio::types::CodecLocation; 65 using bluetooth::le_audio::types::AseConfiguration; 66 using bluetooth::le_audio::types::AudioSetConfiguration; 67 using bluetooth::le_audio::types::AudioSetConfigurations; 79 offloader_stream_maps_t& types::BidirectionalPair<offloader_stream_maps_t>::get(uint8_t direction) { in get() 80 log::assert_that(direction < types::kLeAudioDirectionBoth, in get() 83 return (direction == types::kLeAudioDirectionSink) ? sink : source; in get() 193 const types::BidirectionalPair<stream_parameters>& stream_params, in UpdateActiveAudioConfig() 196 if (GetCodecLocation() != bluetooth::le_audio::types::CodecLocation::ADSP) { in UpdateActiveAudioConfig() 200 for (auto direction : {bluetooth::le_audio::types::kLeAudioDirectionSink, in UpdateActiveAudioConfig() [all …]
|
D | codec_manager.h | 66 ::bluetooth::le_audio::types::LeAudioContextType audio_context_type; 67 std::optional<std::vector<types::acs_ac_record>> sink_pacs; 68 std::optional<std::vector<types::acs_ac_record>> source_pacs; 71 uint8_t target_latency = types::kTargetLatencyUndefined; 72 uint8_t target_Phy = types::kTargetPhyUndefined; 73 types::LeAudioLtvMap params; 88 typedef std::function<std::unique_ptr<types::AudioSetConfiguration>( 90 const types::AudioSetConfigurations* confs)> 94 std::vector<std::pair<bluetooth::le_audio::types::LeAudioContextType, uint8_t>> 96 std::optional<std::vector<types::acs_ac_record>> sink_pacs; [all …]
|
D | le_audio_utils.cc | 34 using bluetooth::le_audio::types::AudioContexts; 35 using bluetooth::le_audio::types::LeAudioContextType; 258 case types::kLeAudioCodingFormatLC3: in translateBluetoothCodecFormatToCodecType() 321 const std::vector<struct types::AseConfiguration>& confs, in fillStreamParamsToBtLeAudioCodecConfig() 346 static bool is_known_codec(const types::LeAudioCodecId& codec_id) { in is_known_codec() 348 case types::kLeAudioCodingFormatLC3: in is_known_codec() 355 const struct types::acs_ac_record& record, in fillRemotePacsCapabilitiesToBtLeAudioCodecConfig() 366 const struct types::LeAudioCoreCodecCapabilities capa = in fillRemotePacsCapabilitiesToBtLeAudioCodecConfig() 383 types::LeAudioCoreCodecConfig::GetSamplingFrequencyHz(freq_bit)), in fillRemotePacsCapabilitiesToBtLeAudioCodecConfig() 387 types::LeAudioCoreCodecConfig::GetFrameDurationUs(fd_bit)), in fillRemotePacsCapabilitiesToBtLeAudioCodecConfig() [all …]
|
D | le_audio_client_test.cc | 94 using bluetooth::le_audio::types::AudioContexts; 95 using bluetooth::le_audio::types::BidirectionalPair; 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>>&), 305 (const std::optional<std::vector<::bluetooth::le_audio::types::acs_ac_record>>&)), 307 MOCK_METHOD((std::optional<::bluetooth::le_audio::types::AudioSetConfiguration>), 851 .WillByDefault([this](LeAudioDeviceGroup* group, types::LeAudioContextType context_type, in SetUpMockGroups() 852 types::BidirectionalPair<types::AudioContexts> in SetUpMockGroups() [all …]
|
D | devices.cc | 65 using bluetooth::le_audio::types::ase; 66 using bluetooth::le_audio::types::AseState; 67 using bluetooth::le_audio::types::AudioContexts; 68 using bluetooth::le_audio::types::AudioLocations; 69 using bluetooth::le_audio::types::BidirectionalPair; 70 using bluetooth::le_audio::types::CisState; 71 using bluetooth::le_audio::types::DataPathState; 72 using bluetooth::le_audio::types::LeAudioContextType; 206 types::LeAudioConfigurationStrategy strategy, uint8_t direction, in PickAudioLocation() 207 const types::BidirectionalPair< in PickAudioLocation() [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() 54 void SetCcid(const types::AudioContexts& contexts, int ccid) { in SetCcid() 60 for (auto ctx : types::kLeAudioContextAllTypesArray) { in SetCcid() 80 int GetCcid(types::LeAudioContextType context_type) const { in GetCcid() 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() 150 void ContentControlIdKeeper::SetCcid(const types::AudioContexts& contexts, int ccid) { in SetCcid() 157 const types::AudioContexts& contexts) const { in GetAllCcids() [all …]
|
D | le_audio_types_test.cc | 28 namespace types { namespace 370 auto default_context = (uint16_t)bluetooth::le_audio::types::LeAudioContextType::VOICEASSISTANTS; in TEST() 372 bluetooth::le_audio::types::kLeAudioMetadataStreamingAudioContextLen + 1, in TEST() 373 bluetooth::le_audio::types::kLeAudioMetadataTypeStreamingAudioContext, in TEST() 390 auto default_context = (uint16_t)bluetooth::le_audio::types::LeAudioContextType::VOICEASSISTANTS; in TEST() 392 bluetooth::le_audio::types::kLeAudioMetadataStreamingAudioContextLen + 1, in TEST() 393 bluetooth::le_audio::types::kLeAudioMetadataTypeStreamingAudioContext, in TEST() 410 ::bluetooth::le_audio::types::LeAudioLtvMap metadata_ltvs; in PrepareMetadataLtv() 413 .Add(::bluetooth::le_audio::types::kLeAudioMetadataTypePreferredAudioContext, in PrepareMetadataLtv() 415 .Add(::bluetooth::le_audio::types::kLeAudioMetadataTypeStreamingAudioContext, (uint16_t)8) in PrepareMetadataLtv() [all …]
|
D | state_machine.h | 50 types::BidirectionalPair<std::vector<uint8_t>> ccids) = 0; 52 LeAudioDeviceGroup* group, types::LeAudioContextType context_type, 53 const types::BidirectionalPair<types::AudioContexts>& metadata_context_types, 54 types::BidirectionalPair<std::vector<uint8_t>> ccid_lists = {.sink = {}, 58 LeAudioDeviceGroup* group, types::LeAudioContextType context_type, 59 const types::BidirectionalPair<types::AudioContexts>& metadata_context_types, 60 types::BidirectionalPair<std::vector<uint8_t>> ccid_lists = {.sink = {}, .source = {}}, 65 virtual void ProcessGattNotifEvent(uint8_t* value, uint16_t len, struct types::ase* ase,
|
D | mock_state_machine.h | 28 bluetooth::le_audio::types::LeAudioContextType context_type, 29 const bluetooth::le_audio::types::BidirectionalPair< 30 bluetooth::le_audio::types::AudioContexts>& metadata_context_types, 31 bluetooth::le_audio::types::BidirectionalPair<std::vector<uint8_t>> ccid_list), 36 bluetooth::le_audio::types::BidirectionalPair<std::vector<uint8_t>> ccids), 41 bluetooth::le_audio::types::LeAudioContextType context_type, 42 const bluetooth::le_audio::types::BidirectionalPair< 43 bluetooth::le_audio::types::AudioContexts>& metadata_context_types, 44 bluetooth::le_audio::types::BidirectionalPair<std::vector<uint8_t>> ccid_lists, 49 (uint8_t* value, uint16_t len, bluetooth::le_audio::types::ase* ase,
|
/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() 36 auto context = types::AudioContexts(subgroup_quality.at(0).first); in GetBroadcastConfig() 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 | broadcast_configuration_provider.h | 24 constexpr types::LeAudioCodecId kLeAudioCodecIdLc3 = { 25 .coding_format = types::kLeAudioCodingFormatLC3, 26 .vendor_company_id = types::kLeAudioVendorCompanyIdUndefined, 27 .vendor_codec_id = types::kLeAudioVendorCodecIdUndefined}; 38 types::LeAudioLtvMap({ 55 types::LeAudioLtvMap({ 72 types::LeAudioLtvMap({ 89 types::LeAudioLtvMap({ 106 types::LeAudioLtvMap({ 123 types::LeAudioLtvMap({ [all …]
|
/packages/modules/Bluetooth/system/audio_hal_interface/aidl/ |
D | le_audio_utils.h | 33 const ::bluetooth::le_audio::types::LeAudioCodecId& codec_id); 35 ::bluetooth::le_audio::types::LeAudioCodecId GetStackCodecIdFromAidlFormat( 39 GetAidlMetadataFromStackFormat(const ::bluetooth::le_audio::types::LeAudioLtvMap& ltvs); 41 bluetooth::le_audio::types::LeAudioLtvMap GetStackMetadataFromAidlFormat( 49 const std::optional<std::vector<::bluetooth::le_audio::types::acs_ac_record>>& pacs); 54 const std::vector<std::pair<::bluetooth::le_audio::types::LeAudioContextType, 60 ::bluetooth::le_audio::types::LeAudioContextType context_type, 71 const ::bluetooth::le_audio::types::CodecConfigSetting& codec_config, 73 const ::bluetooth::le_audio::types::LeAudioLtvMap& metadata); 75 ::bluetooth::le_audio::types::LeAudioLtvMap GetStackLeAudioLtvMapFromAidlFormat( [all …]
|
D | le_audio_utils_unittest.cc | 47 static const ::bluetooth::le_audio::types::LeAudioCodecId kStackCodecLc3 = { 48 .coding_format = ::bluetooth::le_audio::types::kLeAudioCodingFormatLC3, 49 .vendor_company_id = ::bluetooth::le_audio::types::kLeAudioVendorCompanyIdUndefined, 50 .vendor_codec_id = ::bluetooth::le_audio::types::kLeAudioVendorCodecIdUndefined}; 55 static const ::bluetooth::le_audio::types::LeAudioCodecId kStackCodecVendor1 = { 56 .coding_format = ::bluetooth::le_audio::types::kLeAudioCodingFormatVendorSpecific, 62 static const ::bluetooth::le_audio::types::LeAudioCodecId kStackCodecTransparent = { 64 .vendor_company_id = ::bluetooth::le_audio::types::kLeAudioVendorCompanyIdUndefined, 65 .vendor_codec_id = ::bluetooth::le_audio::types::kLeAudioVendorCodecIdUndefined}; 70 ::bluetooth::le_audio::types::LeAudioLtvMap metadata_ltvs; in PrepareStackMetadataLtv() [all …]
|
D | le_audio_utils.cc | 39 const ::bluetooth::le_audio::types::LeAudioCodecId& codec_id) { in GetAidlCodecIdFromStackFormat() 59 ::bluetooth::le_audio::types::LeAudioCodecId GetStackCodecIdFromAidlFormat( in GetStackCodecIdFromAidlFormat() 61 ::bluetooth::le_audio::types::LeAudioCodecId codec; in GetStackCodecIdFromAidlFormat() 91 GetAidlCodecCapabilitiesFromStack(const ::bluetooth::le_audio::types::LeAudioLtvMap& in) { in GetAidlCodecCapabilitiesFromStack() 146 const ::bluetooth::le_audio::types::LeAudioLtvMap& stack_ltvs) { in GetAidlCodecSpecificConfigurationFromStack() 186 GetAidlMetadataFromStackFormat(const ::bluetooth::le_audio::types::LeAudioLtvMap& ltvs) { in GetAidlMetadataFromStackFormat() 231 bluetooth::le_audio::types::LeAudioLtvMap GetStackMetadataFromAidlFormat( in GetStackMetadataFromAidlFormat() 234 bluetooth::le_audio::types::LeAudioLtvMap cfg; in GetStackMetadataFromAidlFormat() 245 cfg.Add(bluetooth::le_audio::types::kLeAudioMetadataTypePreferredAudioContext, in GetStackMetadataFromAidlFormat() 252 cfg.Add(bluetooth::le_audio::types::kLeAudioMetadataTypeStreamingAudioContext, in GetStackMetadataFromAidlFormat() [all …]
|
/packages/modules/NeuralNetworks/tools/api/ |
D | generate_api.sh | 28 SPECFILE=$(dirname $0)/types.spec 31 CANONICALDIR=${ANDROID_BUILD_TOP}/packages/modules/NeuralNetworks/common/types/include/nnapi 60 doit hal_1.0 ${HALDIR}/1.0/types.t ${HALDIR}/1.0/types.hal 61 doit hal_1.1 ${HALDIR}/1.1/types.t ${HALDIR}/1.1/types.hal 62 doit hal_1.2 ${HALDIR}/1.2/types.t ${HALDIR}/1.2/types.hal 63 doit hal_1.3 ${HALDIR}/1.3/types.t ${HALDIR}/1.3/types.hal
|
/packages/apps/Contacts/tests/src/com/android/contacts/tests/ |
D | FakeDeviceAccountTypeFactory.java | 46 public FakeDeviceAccountTypeFactory withSimTypes(String... types) { in withSimTypes() argument 47 for (String type : types) { in withSimTypes() 53 public FakeDeviceAccountTypeFactory withSimTypes(AccountType... types) { in withSimTypes() argument 54 for (AccountType type : types) { in withSimTypes() 60 public FakeDeviceAccountTypeFactory withDeviceTypes(String... types) { in withDeviceTypes() argument 61 for (String type : types) { in withDeviceTypes() 67 public FakeDeviceAccountTypeFactory withDeviceTypes(AccountType... types) { in withDeviceTypes() argument 68 for (AccountType type : types) { in withDeviceTypes()
|