Home
last modified time | relevance | path

Searched refs:p_result (Results 1 – 12 of 12) sorted by relevance

/system/bt/stack/avrc/
Davrc_pars_tg.cc43 tAVRC_COMMAND* p_result) { in avrc_ctrl_pars_vendor_cmd() argument
47 p_result->pdu = *p++; in avrc_ctrl_pars_vendor_cmd()
48 AVRC_TRACE_DEBUG("%s pdu:0x%x", __func__, p_result->pdu); in avrc_ctrl_pars_vendor_cmd()
49 if (!AVRC_IsValidAvcType(p_result->pdu, p_msg->hdr.ctype)) { in avrc_ctrl_pars_vendor_cmd()
63 switch (p_result->pdu) { in avrc_ctrl_pars_vendor_cmd()
68 BE_STREAM_TO_UINT8(p_result->volume.volume, p); in avrc_ctrl_pars_vendor_cmd()
69 p_result->volume.volume = AVRC_MAX_VOLUME & p_result->volume.volume; in avrc_ctrl_pars_vendor_cmd()
74 BE_STREAM_TO_UINT8(p_result->reg_notif.event_id, p); in avrc_ctrl_pars_vendor_cmd()
75 BE_STREAM_TO_UINT32(p_result->reg_notif.param, p); in avrc_ctrl_pars_vendor_cmd()
97 tAVRC_COMMAND* p_result, uint8_t* p_buf, in avrc_pars_vendor_cmd() argument
[all …]
Davrc_pars_ct.cc47 tAVRC_RESPONSE* p_result) { in avrc_pars_vendor_rsp() argument
66 BE_STREAM_TO_UINT8(p_result->pdu, p); in avrc_pars_vendor_rsp()
70 __func__, p_msg->hdr.ctype, p_result->pdu, len, len, in avrc_pars_vendor_rsp()
86 p_result->rsp.status = *p; in avrc_pars_vendor_rsp()
87 return p_result->rsp.status; in avrc_pars_vendor_rsp()
90 switch (p_result->pdu) { in avrc_pars_vendor_rsp()
99 BE_STREAM_TO_UINT8(p_result->volume.volume, p); in avrc_pars_vendor_rsp()
126 p_result->reg_notif.status = p_msg->hdr.ctype; in avrc_pars_vendor_rsp()
127 p_result->reg_notif.event_id = eventid; in avrc_pars_vendor_rsp()
128 BE_STREAM_TO_UINT8(p_result->reg_notif.param.volume, p); in avrc_pars_vendor_rsp()
[all …]
/system/bt/stack/a2dp/
Da2dp_vendor_ldac.cc112 uint8_t* p_result) { in A2DP_BuildInfoLdac() argument
113 if (p_ie == NULL || p_result == NULL) { in A2DP_BuildInfoLdac()
117 *p_result++ = A2DP_LDAC_CODEC_LEN; in A2DP_BuildInfoLdac()
118 *p_result++ = (media_type << 4); in A2DP_BuildInfoLdac()
119 *p_result++ = A2DP_MEDIA_CT_NON_A2DP; in A2DP_BuildInfoLdac()
122 *p_result++ = (uint8_t)(p_ie->vendorId & 0x000000FF); in A2DP_BuildInfoLdac()
123 *p_result++ = (uint8_t)((p_ie->vendorId & 0x0000FF00) >> 8); in A2DP_BuildInfoLdac()
124 *p_result++ = (uint8_t)((p_ie->vendorId & 0x00FF0000) >> 16); in A2DP_BuildInfoLdac()
125 *p_result++ = (uint8_t)((p_ie->vendorId & 0xFF000000) >> 24); in A2DP_BuildInfoLdac()
126 *p_result++ = (uint8_t)(p_ie->codecId & 0x00FF); in A2DP_BuildInfoLdac()
[all …]
Da2dp_vendor_aptx_hd.cc101 uint8_t* p_result) { in A2DP_BuildInfoAptxHd() argument
102 if (p_ie == NULL || p_result == NULL) { in A2DP_BuildInfoAptxHd()
106 *p_result++ = A2DP_APTX_HD_CODEC_LEN; in A2DP_BuildInfoAptxHd()
107 *p_result++ = (media_type << 4); in A2DP_BuildInfoAptxHd()
108 *p_result++ = A2DP_MEDIA_CT_NON_A2DP; in A2DP_BuildInfoAptxHd()
109 *p_result++ = (uint8_t)(p_ie->vendorId & 0x000000FF); in A2DP_BuildInfoAptxHd()
110 *p_result++ = (uint8_t)((p_ie->vendorId & 0x0000FF00) >> 8); in A2DP_BuildInfoAptxHd()
111 *p_result++ = (uint8_t)((p_ie->vendorId & 0x00FF0000) >> 16); in A2DP_BuildInfoAptxHd()
112 *p_result++ = (uint8_t)((p_ie->vendorId & 0xFF000000) >> 24); in A2DP_BuildInfoAptxHd()
113 *p_result++ = (uint8_t)(p_ie->codecId & 0x00FF); in A2DP_BuildInfoAptxHd()
[all …]
Da2dp_aac.cc120 uint8_t* p_result) { in A2DP_BuildInfoAac() argument
121 if (p_ie == NULL || p_result == NULL) { in A2DP_BuildInfoAac()
125 *p_result++ = A2DP_AAC_CODEC_LEN; in A2DP_BuildInfoAac()
126 *p_result++ = (media_type << 4); in A2DP_BuildInfoAac()
127 *p_result++ = A2DP_MEDIA_CT_AAC; in A2DP_BuildInfoAac()
131 *p_result++ = p_ie->objectType; in A2DP_BuildInfoAac()
135 *p_result++ = (uint8_t)(p_ie->sampleRate & A2DP_AAC_SAMPLING_FREQ_MASK0); in A2DP_BuildInfoAac()
136 *p_result = (uint8_t)((p_ie->sampleRate & A2DP_AAC_SAMPLING_FREQ_MASK1) >> 8); in A2DP_BuildInfoAac()
140 *p_result++ |= (p_ie->channelMode & A2DP_AAC_CHANNEL_MODE_MASK); in A2DP_BuildInfoAac()
143 *p_result = (p_ie->variableBitRateSupport & A2DP_AAC_VARIABLE_BIT_RATE_MASK); in A2DP_BuildInfoAac()
[all …]
Da2dp_vendor_aptx.cc94 uint8_t* p_result) { in A2DP_BuildInfoAptx() argument
95 if (p_ie == NULL || p_result == NULL) { in A2DP_BuildInfoAptx()
99 *p_result++ = A2DP_APTX_CODEC_LEN; in A2DP_BuildInfoAptx()
100 *p_result++ = (media_type << 4); in A2DP_BuildInfoAptx()
101 *p_result++ = A2DP_MEDIA_CT_NON_A2DP; in A2DP_BuildInfoAptx()
102 *p_result++ = (uint8_t)(p_ie->vendorId & 0x000000FF); in A2DP_BuildInfoAptx()
103 *p_result++ = (uint8_t)((p_ie->vendorId & 0x0000FF00) >> 8); in A2DP_BuildInfoAptx()
104 *p_result++ = (uint8_t)((p_ie->vendorId & 0x00FF0000) >> 16); in A2DP_BuildInfoAptx()
105 *p_result++ = (uint8_t)((p_ie->vendorId & 0xFF000000) >> 24); in A2DP_BuildInfoAptx()
106 *p_result++ = (uint8_t)(p_ie->codecId & 0x00FF); in A2DP_BuildInfoAptx()
[all …]
Da2dp_sbc.cc123 uint8_t* p_result) { in A2DP_BuildInfoSbc() argument
124 if (p_ie == NULL || p_result == NULL || in A2DP_BuildInfoSbc()
139 *p_result++ = A2DP_SBC_INFO_LEN; in A2DP_BuildInfoSbc()
140 *p_result++ = (media_type << 4); in A2DP_BuildInfoSbc()
141 *p_result++ = A2DP_MEDIA_CT_SBC; in A2DP_BuildInfoSbc()
144 *p_result++ = p_ie->samp_freq | p_ie->ch_mode; in A2DP_BuildInfoSbc()
146 *p_result++ = p_ie->block_len | p_ie->num_subbands | p_ie->alloc_method; in A2DP_BuildInfoSbc()
148 *p_result++ = p_ie->min_bitpool; in A2DP_BuildInfoSbc()
149 *p_result = p_ie->max_bitpool; in A2DP_BuildInfoSbc()
918 static bool select_best_sample_rate(uint8_t samp_freq, tA2DP_SBC_CIE* p_result, in select_best_sample_rate() argument
[all …]
/system/bt/stack/include/
Davrc_api.h616 tAVRC_COMMAND* p_result);
629 extern tAVRC_STS AVRC_ParsCommand(tAVRC_MSG* p_msg, tAVRC_COMMAND* p_result,
643 extern tAVRC_STS AVRC_ParsResponse(tAVRC_MSG* p_msg, tAVRC_RESPONSE* p_result,
658 tAVRC_RESPONSE* p_result,
/system/bt/internal_include/
Dbt_trace.h747 inline std::string& AppendField(std::string* p_result, bool append, in AppendField() argument
749 CHECK(p_result != nullptr); in AppendField()
750 if (!append) return *p_result; in AppendField()
751 if (!p_result->empty()) *p_result += "|"; in AppendField()
752 *p_result += name; in AppendField()
753 return *p_result; in AppendField()
/system/bt/btif/src/
Dbtif_gatt_client.cc211 tBTM_RSSI_RESULT* p_result = (tBTM_RSSI_RESULT*)p_void; in btm_read_rssi_cb() local
213 if (!p_result) return; in btm_read_rssi_cb()
216 p_result->rem_bda, p_result->rssi, p_result->status); in btm_read_rssi_cb()
/system/bt/bta/dm/
Dbta_dm_act.cc62 static void bta_dm_inq_cmpl_cb(void* p_result);
94 static void bta_dm_eir_search_services(tBTM_INQ_RESULTS* p_result,
156 static void bta_dm_observe_cmpl_cb(void* p_result);
2116 static void bta_dm_inq_cmpl_cb(void* p_result) { in bta_dm_inq_cmpl_cb() argument
2123 p_msg->inq_cmpl.num = ((tBTM_INQUIRY_CMPL*)p_result)->num_resp; in bta_dm_inq_cmpl_cb()
2277 tBTM_REMOTE_DEV_NAME* p_result = (tBTM_REMOTE_DEV_NAME*)p_data; in bta_dm_pinname_cback() local
2287 if (p_result && p_result->status == BTM_SUCCESS) { in bta_dm_pinname_cback()
2288 bytes_to_copy = (p_result->length < (BD_NAME_LEN - 1)) in bta_dm_pinname_cback()
2289 ? p_result->length in bta_dm_pinname_cback()
2291 memcpy(sec_event.cfm_req.bd_name, p_result->remote_bd_name, in bta_dm_pinname_cback()
[all …]
/system/bt/bta/hearing_aid/
Dhearing_aid.cc1636 tBTM_RSSI_RESULT* p_result = (tBTM_RSSI_RESULT*)p_void; in read_rssi_cb() local
1638 if (!p_result) return; in read_rssi_cb()
1640 if ((instance) && (p_result->status == BTM_SUCCESS)) { in read_rssi_cb()
1641 instance->OnReadRssiComplete(p_result->rem_bda, p_result->rssi); in read_rssi_cb()