/system/bt/stack/a2dp/ |
D | a2dp_vendor.cc | 31 bool A2DP_IsVendorSourceCodecValid(const uint8_t* p_codec_info) { in A2DP_IsVendorSourceCodecValid() argument 32 uint32_t vendor_id = A2DP_VendorCodecGetVendorId(p_codec_info); in A2DP_IsVendorSourceCodecValid() 33 uint16_t codec_id = A2DP_VendorCodecGetCodecId(p_codec_info); in A2DP_IsVendorSourceCodecValid() 38 return A2DP_IsVendorSourceCodecValidAptx(p_codec_info); in A2DP_IsVendorSourceCodecValid() 44 return A2DP_IsVendorSourceCodecValidAptxHd(p_codec_info); in A2DP_IsVendorSourceCodecValid() 49 return A2DP_IsVendorSourceCodecValidLdac(p_codec_info); in A2DP_IsVendorSourceCodecValid() 57 bool A2DP_IsVendorSinkCodecValid(const uint8_t* p_codec_info) { in A2DP_IsVendorSinkCodecValid() argument 58 uint32_t vendor_id = A2DP_VendorCodecGetVendorId(p_codec_info); in A2DP_IsVendorSinkCodecValid() 59 uint16_t codec_id = A2DP_VendorCodecGetCodecId(p_codec_info); in A2DP_IsVendorSinkCodecValid() 66 return A2DP_IsVendorSinkCodecValidLdac(p_codec_info); in A2DP_IsVendorSinkCodecValid() [all …]
|
D | a2dp_codec_config.cc | 152 uint8_t p_codec_info[AVDT_CODEC_SIZE]; in getTrackBitRate() local 153 memcpy(p_codec_info, ota_codec_config_, sizeof(ota_codec_config_)); in getTrackBitRate() 154 tA2DP_CODEC_TYPE codec_type = A2DP_GetCodecType(p_codec_info); in getTrackBitRate() 162 return A2DP_GetBitRateAac(p_codec_info); in getTrackBitRate() 164 return A2DP_VendorGetBitRate(p_codec_info); in getTrackBitRate() 250 bool A2dpCodecConfig::copyOutOtaCodecConfig(uint8_t* p_codec_info) { in copyOutOtaCodecConfig() argument 258 memcpy(p_codec_info, ota_codec_config_, sizeof(ota_codec_config_)); in copyOutOtaCodecConfig() 660 const uint8_t* p_codec_info) { in findSourceCodecConfig() argument 662 btav_a2dp_codec_index_t codec_index = A2DP_SourceCodecIndex(p_codec_info); in findSourceCodecConfig() 670 A2dpCodecConfig* A2dpCodecs::findSinkCodecConfig(const uint8_t* p_codec_info) { in findSinkCodecConfig() argument [all …]
|
D | a2dp_vendor_aptx_hd.cc | 91 const tA2DP_APTX_HD_CIE* p_cap, const uint8_t* p_codec_info, 131 const uint8_t* p_codec_info, in A2DP_ParseInfoAptxHd() argument 137 if (p_ie == NULL || p_codec_info == NULL) return A2DP_INVALID_PARAMS; in A2DP_ParseInfoAptxHd() 140 losc = *p_codec_info++; in A2DP_ParseInfoAptxHd() 143 media_type = (*p_codec_info++) >> 4; in A2DP_ParseInfoAptxHd() 144 codec_type = *p_codec_info++; in A2DP_ParseInfoAptxHd() 152 p_ie->vendorId = (*p_codec_info & 0x000000FF) | in A2DP_ParseInfoAptxHd() 153 (*(p_codec_info + 1) << 8 & 0x0000FF00) | in A2DP_ParseInfoAptxHd() 154 (*(p_codec_info + 2) << 16 & 0x00FF0000) | in A2DP_ParseInfoAptxHd() 155 (*(p_codec_info + 3) << 24 & 0xFF000000); in A2DP_ParseInfoAptxHd() [all …]
|
D | a2dp_vendor_aptx.cc | 84 const tA2DP_APTX_CIE* p_cap, const uint8_t* p_codec_info, 120 const uint8_t* p_codec_info, in A2DP_ParseInfoAptx() argument 126 if (p_ie == NULL || p_codec_info == NULL) return A2DP_INVALID_PARAMS; in A2DP_ParseInfoAptx() 129 losc = *p_codec_info++; in A2DP_ParseInfoAptx() 132 media_type = (*p_codec_info++) >> 4; in A2DP_ParseInfoAptx() 133 codec_type = *p_codec_info++; in A2DP_ParseInfoAptx() 141 p_ie->vendorId = (*p_codec_info & 0x000000FF) | in A2DP_ParseInfoAptx() 142 (*(p_codec_info + 1) << 8 & 0x0000FF00) | in A2DP_ParseInfoAptx() 143 (*(p_codec_info + 2) << 16 & 0x00FF0000) | in A2DP_ParseInfoAptx() 144 (*(p_codec_info + 3) << 24 & 0xFF000000); in A2DP_ParseInfoAptx() [all …]
|
D | a2dp_aac.cc | 134 const tA2DP_AAC_CIE* p_cap, const uint8_t* p_codec_info, 184 const uint8_t* p_codec_info, in A2DP_ParseInfoAac() argument 190 if (p_ie == NULL || p_codec_info == NULL) return A2DP_INVALID_PARAMS; in A2DP_ParseInfoAac() 193 losc = *p_codec_info++; in A2DP_ParseInfoAac() 196 media_type = (*p_codec_info++) >> 4; in A2DP_ParseInfoAac() 197 codec_type = *p_codec_info++; in A2DP_ParseInfoAac() 203 p_ie->objectType = *p_codec_info++; in A2DP_ParseInfoAac() 204 p_ie->sampleRate = (*p_codec_info & A2DP_AAC_SAMPLING_FREQ_MASK0) | in A2DP_ParseInfoAac() 205 (*(p_codec_info + 1) << 8 & A2DP_AAC_SAMPLING_FREQ_MASK1); in A2DP_ParseInfoAac() 206 p_codec_info++; in A2DP_ParseInfoAac() [all …]
|
D | a2dp_sbc.cc | 115 const tA2DP_SBC_CIE* p_cap, const uint8_t* p_codec_info, 165 const uint8_t* p_codec_info, in A2DP_ParseInfoSbc() argument 171 if (p_ie == NULL || p_codec_info == NULL) return A2DP_INVALID_PARAMS; in A2DP_ParseInfoSbc() 174 losc = *p_codec_info++; in A2DP_ParseInfoSbc() 177 media_type = (*p_codec_info++) >> 4; in A2DP_ParseInfoSbc() 178 codec_type = *p_codec_info++; in A2DP_ParseInfoSbc() 184 p_ie->samp_freq = *p_codec_info & A2DP_SBC_IE_SAMP_FREQ_MSK; in A2DP_ParseInfoSbc() 185 p_ie->ch_mode = *p_codec_info & A2DP_SBC_IE_CH_MD_MSK; in A2DP_ParseInfoSbc() 186 p_codec_info++; in A2DP_ParseInfoSbc() 187 p_ie->block_len = *p_codec_info & A2DP_SBC_IE_BLOCKS_MSK; in A2DP_ParseInfoSbc() [all …]
|
D | a2dp_vendor_ldac.cc | 103 const tA2DP_LDAC_CIE* p_cap, const uint8_t* p_codec_info, 149 const uint8_t* p_codec_info, in A2DP_ParseInfoLdac() argument 155 if (p_ie == NULL || p_codec_info == NULL) return A2DP_INVALID_PARAMS; in A2DP_ParseInfoLdac() 158 losc = *p_codec_info++; in A2DP_ParseInfoLdac() 161 media_type = (*p_codec_info++) >> 4; in A2DP_ParseInfoLdac() 162 codec_type = *p_codec_info++; in A2DP_ParseInfoLdac() 170 p_ie->vendorId = (*p_codec_info & 0x000000FF) | in A2DP_ParseInfoLdac() 171 (*(p_codec_info + 1) << 8 & 0x0000FF00) | in A2DP_ParseInfoLdac() 172 (*(p_codec_info + 2) << 16 & 0x00FF0000) | in A2DP_ParseInfoLdac() 173 (*(p_codec_info + 3) << 24 & 0xFF000000); in A2DP_ParseInfoLdac() [all …]
|
D | a2dp_vendor_ldac_decoder.cc | 252 void a2dp_vendor_ldac_decoder_configure(const uint8_t* p_codec_info) { in a2dp_vendor_ldac_decoder_configure() argument 257 if (p_codec_info == NULL) { in a2dp_vendor_ldac_decoder_configure() 263 sample_rate = A2DP_VendorGetTrackSampleRateLdac(p_codec_info); in a2dp_vendor_ldac_decoder_configure() 264 bits_per_sample = A2DP_VendorGetTrackBitsPerSampleLdac(p_codec_info); in a2dp_vendor_ldac_decoder_configure() 265 channel_mode = A2DP_VendorGetChannelModeCodeLdac(p_codec_info); in a2dp_vendor_ldac_decoder_configure()
|
D | a2dp_aac_encoder.cc | 213 const uint8_t* p_codec_info = codec_info; in a2dp_aac_encoder_update() local 217 p_feeding_params->sample_rate = A2DP_GetTrackSampleRateAac(p_codec_info); in a2dp_aac_encoder_update() 220 p_feeding_params->channel_count = A2DP_GetTrackChannelCountAac(p_codec_info); in a2dp_aac_encoder_update() 228 p_encoder_params->channel_mode = A2DP_GetChannelModeCodeAac(p_codec_info); in a2dp_aac_encoder_update() 263 int object_type = A2DP_GetObjectTypeCodeAac(p_codec_info); in a2dp_aac_encoder_update() 319 aac_param_value = A2DP_GetTrackSampleRateAac(p_codec_info); in a2dp_aac_encoder_update() 332 aac_param_value = A2DP_GetBitRateAac(p_codec_info); in a2dp_aac_encoder_update() 335 A2DP_ComputeMaxBitRateAac(p_codec_info, a2dp_aac_encoder_cb.TxAaMtuSize); in a2dp_aac_encoder_update() 369 if (A2DP_GetTrackChannelCountAac(p_codec_info) == 1) { in a2dp_aac_encoder_update() 409 aac_param_value = A2DP_GetVariableBitRateSupportAac(p_codec_info); in a2dp_aac_encoder_update()
|
D | a2dp_sbc_encoder.cc | 210 const uint8_t* p_codec_info = codec_info; in a2dp_sbc_encoder_update() local 211 min_bitpool = A2DP_GetMinBitpoolSbc(p_codec_info); in a2dp_sbc_encoder_update() 212 max_bitpool = A2DP_GetMaxBitpoolSbc(p_codec_info); in a2dp_sbc_encoder_update() 216 p_feeding_params->sample_rate = A2DP_GetTrackSampleRateSbc(p_codec_info); in a2dp_sbc_encoder_update() 219 p_feeding_params->channel_count = A2DP_GetTrackChannelCountSbc(p_codec_info); in a2dp_sbc_encoder_update() 226 p_encoder_params->s16ChannelMode = A2DP_GetChannelModeCodeSbc(p_codec_info); in a2dp_sbc_encoder_update() 228 A2DP_GetNumberOfSubbandsSbc(p_codec_info); in a2dp_sbc_encoder_update() 229 p_encoder_params->s16NumOfBlocks = A2DP_GetNumberOfBlocksSbc(p_codec_info); in a2dp_sbc_encoder_update() 231 A2DP_GetAllocationMethodCodeSbc(p_codec_info); in a2dp_sbc_encoder_update() 233 A2DP_GetSamplingFrequencyCodeSbc(p_codec_info); in a2dp_sbc_encoder_update() [all …]
|
D | a2dp_vendor_aptx_hd_encoder.cc | 252 const uint8_t* p_codec_info = codec_info; in a2dp_vendor_aptx_hd_encoder_update() local 258 A2DP_VendorGetTrackSampleRateAptxHd(p_codec_info); in a2dp_vendor_aptx_hd_encoder_update() 262 A2DP_VendorGetTrackChannelCountAptxHd(p_codec_info); in a2dp_vendor_aptx_hd_encoder_update()
|
/system/bt/stack/include/ |
D | a2dp_vendor.h | 42 bool A2DP_IsVendorSourceCodecValid(const uint8_t* p_codec_info); 49 bool A2DP_IsVendorSinkCodecValid(const uint8_t* p_codec_info); 56 bool A2DP_IsVendorPeerSourceCodecValid(const uint8_t* p_codec_info); 63 bool A2DP_IsVendorPeerSinkCodecValid(const uint8_t* p_codec_info); 69 bool A2DP_IsVendorSinkCodecSupported(const uint8_t* p_codec_info); 77 bool A2DP_IsVendorPeerSourceCodecSupported(const uint8_t* p_codec_info); 82 uint32_t A2DP_VendorCodecGetVendorId(const uint8_t* p_codec_info); 87 uint16_t A2DP_VendorCodecGetCodecId(const uint8_t* p_codec_info); 95 const uint8_t* p_codec_info); 98 const char* A2DP_VendorCodecName(const uint8_t* p_codec_info); [all …]
|
D | a2dp_sbc.h | 84 bool A2DP_IsSourceCodecValidSbc(const uint8_t* p_codec_info); 90 bool A2DP_IsSinkCodecValidSbc(const uint8_t* p_codec_info); 97 bool A2DP_IsPeerSourceCodecValidSbc(const uint8_t* p_codec_info); 104 bool A2DP_IsPeerSinkCodecValidSbc(const uint8_t* p_codec_info); 109 bool A2DP_IsSinkCodecSupportedSbc(const uint8_t* p_codec_info); 117 bool A2DP_IsPeerSourceCodecSupportedSbc(const uint8_t* p_codec_info); 122 void A2DP_InitDefaultCodecSbc(uint8_t* p_codec_info); 125 const char* A2DP_CodecNameSbc(const uint8_t* p_codec_info); 144 int A2DP_GetTrackSampleRateSbc(const uint8_t* p_codec_info); 150 int A2DP_GetTrackBitsPerSampleSbc(const uint8_t* p_codec_info); [all …]
|
D | a2dp_aac.h | 85 bool A2DP_IsSourceCodecValidAac(const uint8_t* p_codec_info); 91 bool A2DP_IsSinkCodecValidAac(const uint8_t* p_codec_info); 98 bool A2DP_IsPeerSourceCodecValidAac(const uint8_t* p_codec_info); 105 bool A2DP_IsPeerSinkCodecValidAac(const uint8_t* p_codec_info); 110 bool A2DP_IsSinkCodecSupportedAac(const uint8_t* p_codec_info); 118 bool A2DP_IsPeerSourceCodecSupportedAac(const uint8_t* p_codec_info); 126 const uint8_t* p_codec_info); 129 const char* A2DP_CodecNameAac(const uint8_t* p_codec_info); 148 int A2DP_GetTrackSampleRateAac(const uint8_t* p_codec_info); 154 int A2DP_GetTrackBitsPerSampleAac(const uint8_t* p_codec_info); [all …]
|
D | a2dp_vendor_ldac.h | 85 bool A2DP_IsVendorSourceCodecValidLdac(const uint8_t* p_codec_info); 92 bool A2DP_IsVendorSinkCodecValidLdac(const uint8_t* p_codec_info); 99 bool A2DP_IsVendorPeerSinkCodecValidLdac(const uint8_t* p_codec_info); 106 bool A2DP_IsVendorPeerSourceCodecValidLdac(const uint8_t* p_codec_info); 111 bool A2DP_IsVendorSinkCodecSupportedLdac(const uint8_t* p_codec_info); 119 bool A2DP_IsPeerSourceCodecSupportedLdac(const uint8_t* p_codec_info); 127 const uint8_t* p_codec_info); 130 const char* A2DP_VendorCodecNameLdac(const uint8_t* p_codec_info); 149 int A2DP_VendorGetTrackSampleRateLdac(const uint8_t* p_codec_info); 155 int A2DP_VendorGetTrackBitsPerSampleLdac(const uint8_t* p_codec_info); [all …]
|
D | a2dp_vendor_aptx_hd.h | 55 bool A2DP_IsVendorSourceCodecValidAptxHd(const uint8_t* p_codec_info); 62 bool A2DP_IsVendorPeerSinkCodecValidAptxHd(const uint8_t* p_codec_info); 70 const uint8_t* p_codec_info); 73 const char* A2DP_VendorCodecNameAptxHd(const uint8_t* p_codec_info); 92 int A2DP_VendorGetTrackSampleRateAptxHd(const uint8_t* p_codec_info); 98 int A2DP_VendorGetTrackBitsPerSampleAptxHd(const uint8_t* p_codec_info); 104 int A2DP_VendorGetBitRateAptxHd(const uint8_t* p_codec_info); 110 int A2DP_VendorGetTrackChannelCountAptxHd(const uint8_t* p_codec_info); 117 bool A2DP_VendorGetPacketTimestampAptxHd(const uint8_t* p_codec_info, 126 bool A2DP_VendorBuildCodecHeaderAptxHd(const uint8_t* p_codec_info, [all …]
|
D | a2dp_vendor_aptx.h | 55 bool A2DP_IsVendorSourceCodecValidAptx(const uint8_t* p_codec_info); 62 bool A2DP_IsVendorPeerSinkCodecValidAptx(const uint8_t* p_codec_info); 70 const uint8_t* p_codec_info); 73 const char* A2DP_VendorCodecNameAptx(const uint8_t* p_codec_info); 92 int A2DP_VendorGetTrackSampleRateAptx(const uint8_t* p_codec_info); 98 int A2DP_VendorGetTrackBitsPerSampleAptx(const uint8_t* p_codec_info); 104 int A2DP_VendorGetBitRateAptx(const uint8_t* p_codec_info); 110 int A2DP_VendorGetTrackChannelCountAptx(const uint8_t* p_codec_info); 117 bool A2DP_VendorGetPacketTimestampAptx(const uint8_t* p_codec_info, 126 bool A2DP_VendorBuildCodecHeaderAptx(const uint8_t* p_codec_info, BT_HDR* p_buf, [all …]
|
D | a2dp_codec_api.h | 83 bool copyOutOtaCodecConfig(uint8_t* p_codec_info); 297 A2dpCodecConfig* findSourceCodecConfig(const uint8_t* p_codec_info); 302 A2dpCodecConfig* findSinkCodecConfig(const uint8_t* p_codec_info); 570 void (*decoder_configure)(const uint8_t* p_codec_info); 575 tA2DP_CODEC_TYPE A2DP_GetCodecType(const uint8_t* p_codec_info); 581 bool A2DP_IsSourceCodecValid(const uint8_t* p_codec_info); 587 bool A2DP_IsSinkCodecValid(const uint8_t* p_codec_info); 594 bool A2DP_IsPeerSourceCodecValid(const uint8_t* p_codec_info); 600 bool A2DP_IsPeerSinkCodecValid(const uint8_t* p_codec_info); 605 bool A2DP_IsSinkCodecSupported(const uint8_t* p_codec_info); [all …]
|
D | a2dp_vendor_ldac_decoder.h | 50 void a2dp_vendor_ldac_decoder_configure(const uint8_t* p_codec_info);
|
/system/bt/stack/test/a2dp/ |
D | misc_fake.cc | 24 int A2DP_VendorGetTrackSampleRateLdac(const uint8_t* p_codec_info) { return 0; } in A2DP_VendorGetTrackSampleRateLdac() argument 25 int A2DP_VendorGetTrackBitsPerSampleLdac(const uint8_t* p_codec_info) { in A2DP_VendorGetTrackBitsPerSampleLdac() argument 28 int A2DP_VendorGetChannelModeCodeLdac(const uint8_t* p_codec_info) { return 0; } in A2DP_VendorGetChannelModeCodeLdac() argument
|
/system/bt/btif/src/ |
D | btif_a2dp_audio_interface.cc | 195 CodecConfiguration* p_codec_info) { in btif_a2dp_get_codec_configuration() argument 205 p_codec_info->codecType = in btif_a2dp_get_codec_configuration() 208 p_codec_info->codecSpecific.sbcData.codecParameters = in btif_a2dp_get_codec_configuration() 212 p_codec_info->codecSpecific.sbcData.minBitpool = in btif_a2dp_get_codec_configuration() 214 p_codec_info->codecSpecific.sbcData.maxBitpool = in btif_a2dp_get_codec_configuration() 218 p_codec_info->codecType = in btif_a2dp_get_codec_configuration() 223 p_codec_info->codecType = in btif_a2dp_get_codec_configuration() 228 p_codec_info->codecType = in btif_a2dp_get_codec_configuration() 233 p_codec_info->codecType = in btif_a2dp_get_codec_configuration() 236 p_codec_info->codecSpecific.ldacData.bitrateIndex = in btif_a2dp_get_codec_configuration() [all …]
|
D | btif_a2dp_sink.cc | 387 void btif_a2dp_sink_update_decoder(const uint8_t* p_codec_info) { in btif_a2dp_sink_update_decoder() argument 394 p_codec_info[1], p_codec_info[2], p_codec_info[3], in btif_a2dp_sink_update_decoder() 395 p_codec_info[4], p_codec_info[5], p_codec_info[6]); in btif_a2dp_sink_update_decoder() 397 memcpy(p_buf->codec_info, p_codec_info, AVDT_CODEC_SIZE); in btif_a2dp_sink_update_decoder()
|
/system/bt/btif/co/ |
D | bta_av_co.cc | 251 uint8_t* p_codec_info, 279 uint8_t* p_codec_info, 300 const uint8_t* p_codec_info, uint8_t seid, 332 const uint8_t* p_codec_info, bool* p_no_rtp_header); 349 BT_HDR* GetNextSourceDataPacket(const uint8_t* p_codec_info, 909 uint8_t* p_codec_info, uint8_t* p_sep_info_idx, uint8_t seid, in ProcessSourceGetConfig() argument 913 A2DP_CodecName(p_codec_info), seid); in ProcessSourceGetConfig() 918 A2DP_CodecInfoString(p_codec_info).c_str()); in ProcessSourceGetConfig() 935 if (A2DP_IsPeerSinkCodecValid(p_codec_info)) { in ProcessSourceGetConfig() 941 p_codec_info[1], p_codec_info[2], p_codec_info[3], in ProcessSourceGetConfig() [all …]
|
/system/bt/bta/include/ |
D | bta_av_co.h | 81 uint8_t* p_codec_info, 100 const uint8_t* p_codec_info, uint8_t seid, 151 const uint8_t* p_codec_info, bool* p_no_rtp_header); 178 BT_HDR* bta_av_co_audio_source_data_path(const uint8_t* p_codec_info,
|
/system/bt/btif/include/ |
D | btif_a2dp_sink.h | 96 void btif_a2dp_sink_update_decoder(const uint8_t* p_codec_info);
|