/system/bt/stack/test/fuzzers/a2dp/codec/ |
D | a2dpCodecInfoFuzzFunctions.h | 41 uint8_t* codec_info = new uint8_t[AVDT_CODEC_SIZE]; 42 a2dp_codec_info_vect.push_back(codec_info); 44 A2DP_InitDefaultCodec(codec_info); 62 [](FuzzedDataProvider* fdp, uint8_t* codec_info) -> void { 63 A2DP_GetCodecType(codec_info); 67 [](FuzzedDataProvider* fdp, uint8_t* codec_info) -> void { 68 A2DP_IsSourceCodecValid(codec_info); 72 [](FuzzedDataProvider* fdp, uint8_t* codec_info) -> void { 73 A2DP_IsSinkCodecValid(codec_info); 77 [](FuzzedDataProvider* fdp, uint8_t* codec_info) -> void { [all …]
|
D | a2dpCodecInfoFuzzHelpers.h | 42 uint8_t* codec_info = in callArbitraryCodecInfoFunction() local 46 if (codec_info || function_id == 0 || function_id == 25 || in callArbitraryCodecInfoFunction() 49 ops_vector[function_id](fdp, codec_info); in callArbitraryCodecInfoFunction()
|
D | a2dpCodecConfigFuzzFunctions.h | 127 uint8_t* codec_info = 129 codec_config->copyOutOtaCodecConfig(codec_info);
|
D | a2dpCodecHelperFunctions.h | 164 memcpy(&retval.codec_info[0], codec_info_bytes.data(), in generateArbitrarytA2dpOffload()
|
/system/bt/btif/src/ |
D | btif_a2dp_sink.cc | 74 uint8_t codec_info[AVDT_CODEC_SIZE]; member 397 memcpy(p_buf->codec_info, p_codec_info, AVDT_CODEC_SIZE); in btif_a2dp_sink_update_decoder() 593 p_buf->codec_info[1], p_buf->codec_info[2], in btif_a2dp_sink_decoder_update_event() 594 p_buf->codec_info[3], p_buf->codec_info[4], in btif_a2dp_sink_decoder_update_event() 595 p_buf->codec_info[5], p_buf->codec_info[6]); in btif_a2dp_sink_decoder_update_event() 597 int sample_rate = A2DP_GetTrackSampleRate(p_buf->codec_info); in btif_a2dp_sink_decoder_update_event() 602 int bits_per_sample = A2DP_GetTrackBitsPerSample(p_buf->codec_info); in btif_a2dp_sink_decoder_update_event() 607 int channel_count = A2DP_GetTrackChannelCount(p_buf->codec_info); in btif_a2dp_sink_decoder_update_event() 612 int channel_type = A2DP_GetSinkTrackChannelType(p_buf->codec_info); in btif_a2dp_sink_decoder_update_event() 637 btif_a2dp_sink_cb.decoder_interface->decoder_configure(p_buf->codec_info); in btif_a2dp_sink_decoder_update_event()
|
D | btif_a2dp_audio_interface.cc | 205 a2dp_offload.codec_info[0]; in btif_a2dp_get_codec_configuration() 207 a2dp_offload.codec_info[0]); in btif_a2dp_get_codec_configuration() 209 a2dp_offload.codec_info[1]; in btif_a2dp_get_codec_configuration() 211 a2dp_offload.codec_info[2]; in btif_a2dp_get_codec_configuration() 233 a2dp_offload.codec_info[6]; in btif_a2dp_get_codec_configuration() 301 CodecConfiguration codec_info; in btif_a2dp_audio_interface_start_session() local 302 btif_a2dp_get_codec_configuration(&codec_info); in btif_a2dp_audio_interface_start_session() 304 btAudio->startSession(host_if, codec_info); in btif_a2dp_audio_interface_start_session()
|
/system/bt/audio_hal_interface/ |
D | codec_status.cc | 233 uint8_t channel_mode = a2dp_offload.codec_info[3] & A2DP_SBC_IE_CH_MD_MSK; in A2dpSbcToHalConfig() 252 uint8_t block_length = a2dp_offload.codec_info[0] & A2DP_SBC_IE_BLOCKS_MSK; in A2dpSbcToHalConfig() 270 uint8_t sub_bands = a2dp_offload.codec_info[0] & A2DP_SBC_IE_SUBBAND_MSK; in A2dpSbcToHalConfig() 282 uint8_t alloc_method = a2dp_offload.codec_info[0] & A2DP_SBC_IE_ALLOC_MD_MSK; in A2dpSbcToHalConfig() 294 sbc_config.minBitpool = a2dp_offload.codec_info[1]; in A2dpSbcToHalConfig() 295 sbc_config.maxBitpool = a2dp_offload.codec_info[2]; in A2dpSbcToHalConfig() 319 uint8_t object_type = a2dp_offload.codec_info[0]; in A2dpAacToHalConfig() 350 a2dp_offload.codec_info[1] & A2DP_AAC_VARIABLE_BIT_RATE_MASK; in A2dpAacToHalConfig() 429 switch (a2dp_offload.codec_info[7]) { in A2dpLdacToHalConfig() 441 << a2dp_offload.codec_info[7]; in A2dpLdacToHalConfig() [all …]
|
/system/bt/stack/a2dp/ |
D | a2dp_codec_config.cc | 189 memset(p_a2dp_offload->codec_info, 0, sizeof(p_a2dp_offload->codec_info)); in getCodecSpecificConfig() 199 p_a2dp_offload->codec_info[0] = in getCodecSpecificConfig() 201 p_a2dp_offload->codec_info[1] = codec_config[5]; // Min bit pool in getCodecSpecificConfig() 202 p_a2dp_offload->codec_info[2] = codec_config[6]; // Max bit pool in getCodecSpecificConfig() 203 p_a2dp_offload->codec_info[3] = in getCodecSpecificConfig() 208 p_a2dp_offload->codec_info[0] = codec_config[3]; // object type in getCodecSpecificConfig() 209 p_a2dp_offload->codec_info[1] = codec_config[6]; // VBR | BR in getCodecSpecificConfig() 214 p_a2dp_offload->codec_info[0] = (vendor_id & 0x000000FF); in getCodecSpecificConfig() 215 p_a2dp_offload->codec_info[1] = (vendor_id & 0x0000FF00) >> 8; in getCodecSpecificConfig() 216 p_a2dp_offload->codec_info[2] = (vendor_id & 0x00FF0000) >> 16; in getCodecSpecificConfig() [all …]
|
D | a2dp_sbc_encoder.cc | 190 uint8_t codec_info[AVDT_CODEC_SIZE]; in a2dp_sbc_encoder_update() local 202 if (!a2dp_codec_config->copyOutOtaCodecConfig(codec_info)) { in a2dp_sbc_encoder_update() 209 const uint8_t* p_codec_info = codec_info; in a2dp_sbc_encoder_update() 906 uint8_t codec_info[AVDT_CODEC_SIZE]; in debug_codec_dump() local 907 if (copyOutOtaCodecConfig(codec_info)) { in debug_codec_dump() 910 A2DP_GetNumberOfBlocksSbc(codec_info)); in debug_codec_dump() 913 A2DP_GetNumberOfSubbandsSbc(codec_info)); in debug_codec_dump() 916 A2DP_GetAllocationMethodCodeSbc(codec_info)); in debug_codec_dump() 920 A2DP_GetMinBitpoolSbc(codec_info), A2DP_GetMaxBitpoolSbc(codec_info)); in debug_codec_dump()
|
D | a2dp_vendor_aptx_hd_encoder.cc | 240 uint8_t codec_info[AVDT_CODEC_SIZE]; in a2dp_vendor_aptx_hd_encoder_update() local 245 if (!a2dp_codec_config->copyOutOtaCodecConfig(codec_info)) { in a2dp_vendor_aptx_hd_encoder_update() 252 const uint8_t* p_codec_info = codec_info; in a2dp_vendor_aptx_hd_encoder_update()
|
D | a2dp_vendor_aptx_encoder.cc | 240 uint8_t codec_info[AVDT_CODEC_SIZE]; in a2dp_vendor_aptx_encoder_update() local 245 if (!a2dp_codec_config->copyOutOtaCodecConfig(codec_info)) { in a2dp_vendor_aptx_encoder_update() 252 const uint8_t* p_codec_info = codec_info; in a2dp_vendor_aptx_encoder_update()
|
D | a2dp_aac_encoder.cc | 186 uint8_t codec_info[AVDT_CODEC_SIZE]; in a2dp_aac_encoder_update() local 205 if (!a2dp_codec_config->copyOutOtaCodecConfig(codec_info)) { in a2dp_aac_encoder_update() 212 const uint8_t* p_codec_info = codec_info; in a2dp_aac_encoder_update()
|
D | a2dp_vendor_ldac_encoder.cc | 349 uint8_t codec_info[AVDT_CODEC_SIZE]; in a2dp_vendor_ldac_encoder_update() local 365 if (!a2dp_codec_config->copyOutOtaCodecConfig(codec_info)) { in a2dp_vendor_ldac_encoder_update() 372 const uint8_t* p_codec_info = codec_info; in a2dp_vendor_ldac_encoder_update()
|
D | a2dp_vendor_ldac.cc | 617 p_cfg->codec_info) != A2DP_SUCCESS) { in A2DP_VendorInitCodecConfigLdac() 634 p_cfg->codec_info) == A2DP_SUCCESS; in A2DP_VendorInitCodecConfigLdacSink()
|
/system/bt/bta/av/ |
D | bta_av_aact.cc | 175 A2DP_CodecTypeEquals(p_scb->seps[i].codec_info, in bta_av_get_scb_handle() 176 p_scb->cfg.codec_info)) { in bta_av_get_scb_handle() 557 A2DP_CodecName(p_scb->cfg.codec_info)); in bta_av_adjust_seps_idx() 561 A2DP_CodecName(p_scb->seps[i].codec_info)); in bta_av_adjust_seps_idx() 563 A2DP_CodecTypeEquals(p_scb->seps[i].codec_info, in bta_av_adjust_seps_idx() 564 p_scb->cfg.codec_info)) { in bta_av_adjust_seps_idx() 931 A2DP_CodecInfoString(p_evt_cfg->codec_info).c_str()); in bta_av_config_ind() 933 memcpy(p_scb->cfg.codec_info, p_evt_cfg->codec_info, AVDT_CODEC_SIZE); in bta_av_config_ind() 976 p_evt_cfg->codec_info, p_info->seid, in bta_av_config_ind() 981 p_evt_cfg->codec_info, p_info->seid, in bta_av_config_ind() [all …]
|
D | bta_av_int.h | 329 uint8_t codec_info[AVDT_CODEC_SIZE]; /* codec configuration */ member 405 uint8_t codec_info[AVDT_CODEC_SIZE]; /* Codec info */ member 659 uint8_t codec_info[32]; /* Codec specific information */ variable
|
D | bta_av_main.cc | 578 memcpy(p_scb->seps[codec_index].codec_info, in bta_av_api_register() 579 avdtp_stream_config.cfg.codec_info, AVDT_CODEC_SIZE); in bta_av_api_register() 1440 dprintf(fd, " Codec: %s\n", A2DP_CodecName(sep.codec_info)); in bta_debug_av_dump()
|
D | bta_av_api.cc | 323 memcpy(p_buf->codec_info, p_codec_info, AVDT_CODEC_SIZE); in BTA_AvReconfig()
|
/system/bt/stack/avdt/ |
D | avdt_scb_act.cc | 70 return ((uint32_t)(p_scb->stream_config.cfg.codec_info[1] | in avdt_scb_gen_ssrc() 71 p_scb->stream_config.cfg.codec_info[2])); in avdt_scb_gen_ssrc() 500 memcpy(p_scb->curr_cfg.codec_info, p_scb->req_cfg.codec_info, in avdt_scb_hdl_reconfig_rsp() 577 A2DP_CodecInfoString(p_scb->stream_config.cfg.codec_info).c_str()); in avdt_scb_hdl_setconfig_cmd() 580 A2DP_CodecInfoString(p_data->msg.config_cmd.p_cfg->codec_info).c_str()); in avdt_scb_hdl_setconfig_cmd() 582 if (A2DP_GetCodecType(p_scb->stream_config.cfg.codec_info) == in avdt_scb_hdl_setconfig_cmd() 583 A2DP_GetCodecType(p_cfg->codec_info)) { in avdt_scb_hdl_setconfig_cmd() 1013 A2DP_UsesRtpHeader(is_content_protection, p_scb->curr_cfg.codec_info); in avdt_scb_hdl_write_req() 1217 A2DP_CodecInfoString(p_data->msg.config_cmd.p_cfg->codec_info).c_str()); in avdt_scb_snd_reconfig_req() 1239 memcpy(p_scb->curr_cfg.codec_info, p_scb->req_cfg.codec_info, in avdt_scb_snd_reconfig_rsp() [all …]
|
D | avdt_api.cc | 477 A2DP_CodecInfoString(p_cfg->codec_info).c_str()); in AVDT_OpenReq() 1058 A2DP_CodecName(scb.stream_config.cfg.codec_info)); in stack_debug_avdtp_api_dump() 1067 A2DP_CodecName(scb.curr_cfg.codec_info)); in stack_debug_avdtp_api_dump() 1069 A2DP_CodecName(scb.req_cfg.codec_info)); in stack_debug_avdtp_api_dump()
|
D | avdt_msg.cc | 298 len = p_cfg->codec_info[0] + 1; in avdt_msg_bld_cfg() 301 memcpy(*p, p_cfg->codec_info, len); in avdt_msg_bld_cfg() 645 p_cfg->codec_info[0] = elem_len; in avdt_msg_prs_cfg() 646 memcpy(&p_cfg->codec_info[1], p, tmp); in avdt_msg_prs_cfg()
|
/system/bt/stack/include/ |
D | avdt_api.h | 355 : codec_info{}, in AvdtpSepConfig() 367 memset(codec_info, 0, sizeof(codec_info)); in Reset() 378 uint8_t codec_info[AVDT_CODEC_SIZE]; /* Codec capabilities array */ variable
|
/system/bt/hci/include/ |
D | bt_vendor_lib.h | 374 uint8_t codec_info[10]; /* Codec capabilities array */ member
|
/system/bt/stack/test/ |
D | stack_a2dp_test.cc | 810 EXPECT_EQ(avdt_cfg.codec_info[i], codec_info_sbc_capability[i]); in TEST_F() 827 EXPECT_EQ(avdt_cfg.codec_info[i], codec_info_sbc_sink_capability[i]); in TEST_F() 838 avdt_cfg.codec_info[6] & A2DP_AAC_VARIABLE_BIT_RATE_MASK; in TEST_F() 842 ASSERT_EQ(avdt_cfg.codec_info[i], codec_info_aac_vbr_capability[i]); in TEST_F() 846 ASSERT_EQ(avdt_cfg.codec_info[i], codec_info_aac_capability[i]); in TEST_F() 1014 avdt_cfg.codec_info[6] & A2DP_AAC_VARIABLE_BIT_RATE_MASK; in TEST_F()
|
/system/bt/bta/include/ |
D | bta_av_api.h | 354 uint8_t* codec_info; member
|