Home
last modified time | relevance | path

Searched refs:p_end (Results 1 – 13 of 13) sorted by relevance

/system/bt/bta/ag/
Dbta_ag_at.cc80 void bta_ag_process_at(tBTA_AG_AT_CB* p_cb, char* p_end) { in bta_ag_process_at() argument
96 if (p_arg > p_end) { in bta_ag_process_at()
142 p_end, int_arg); in bta_ag_process_at()
147 p_end, int_arg); in bta_ag_process_at()
198 char* p_end = p_cb->p_cmd_buf + p_cb->cmd_pos; in bta_ag_at_parse() local
200 bta_ag_process_at(p_cb, p_end); in bta_ag_at_parse()
Dbta_ag_at.h59 uint8_t arg_type, char* p_arg, char* p_end,
Dbta_ag_cmd.cc374 static bool bta_ag_parse_cmer(char* p_s, char* p_end, bool* p_enabled) { in bta_ag_parse_cmer() argument
381 for (p = p_s; p < p_end && *p != ',' && *p != 0; p++) in bta_ag_parse_cmer()
385 if (p > p_end) { in bta_ag_parse_cmer()
448 char* p_end) { in bta_ag_parse_bac() argument
455 for (p = p_s; p < p_end && *p != ',' && *p != 0; p++) in bta_ag_parse_bac()
459 if (p > p_end) { in bta_ag_parse_bac()
587 uint8_t arg_type, char* p_arg, char* p_end, in bta_ag_at_hsp_cback() argument
599 if ((p_end - p_arg + 1) >= (long)sizeof(val.str)) { in bta_ag_at_hsp_cback()
837 char* p_arg, char* p_end, int16_t int_arg) { in bta_ag_at_hfp_cback() argument
857 if ((p_end - p_arg + 1) >= (long)sizeof(val.str)) { in bta_ag_at_hfp_cback()
[all …]
Dbta_ag_int.h347 uint8_t arg_type, char* p_arg, char* p_end,
350 uint8_t arg_type, char* p_arg, char* p_end,
Dbta_ag_act.cc61 uint8_t arg_type, char* p_arg, char* p_end,
/system/bt/stack/sdp/
Dsdp_discovery.cc54 static uint8_t* add_attr(uint8_t* p, uint8_t* p_end, tSDP_DISCOVERY_DB* p_db,
218 uint8_t* p_end = p + p_msg->len; in sdp_disc_server_rsp() local
233 process_service_search_rsp(p_ccb, p, p_end); in sdp_disc_server_rsp()
240 process_service_attr_rsp(p_ccb, p, p_end); in sdp_disc_server_rsp()
247 process_service_search_attr_rsp(p_ccb, p, p_end); in sdp_disc_server_rsp()
347 uint8_t* p_end; in sdp_copy_raw_data() local
354 p_end = &p_ccb->rsp_list[0] + list_len; in sdp_copy_raw_data()
360 p = sdpu_get_len_from_type(p, p_end, type, &list_len); in sdp_copy_raw_data()
361 if (p == NULL || (p + list_len) > p_end) { in sdp_copy_raw_data()
526 uint8_t *p, *p_start, *p_end, *p_param_len; in process_service_search_attr_rsp() local
[all …]
Dsdp_db.cc61 tSDP_RECORD* p_end = &sdp_cb.server_db.record[sdp_cb.server_db.num_records]; in sdp_db_service_search() local
72 for (; p_rec < p_end; p_rec++) { in sdp_db_service_search()
111 uint8_t* p_end = p + seq_len; in find_uuid_in_seq() local
118 while (p < p_end) { in find_uuid_in_seq()
120 p = sdpu_get_len_from_type(p, p_end, type, &len); in find_uuid_in_seq()
121 if (p == NULL || (p + len) > p_end) { in find_uuid_in_seq()
151 tSDP_RECORD* p_end = &sdp_cb.server_db.record[sdp_cb.server_db.num_records]; in sdp_db_find_record() local
154 for (p_rec = &sdp_cb.server_db.record[0]; p_rec < p_end; p_rec++) { in sdp_db_find_record()
Dsdp_utils.cc787 uint8_t* sdpu_get_len_from_type(uint8_t* p, uint8_t* p_end, uint8_t type, in sdpu_get_len_from_type() argument
810 if (p + 1 > p_end) { in sdpu_get_len_from_type()
818 if (p + 2 > p_end) { in sdpu_get_len_from_type()
826 if (p + 4 > p_end) { in sdpu_get_len_from_type()
Dsdpint.h268 extern uint8_t* sdpu_get_len_from_type(uint8_t* p, uint8_t* p_end, uint8_t type,
/system/core/libcutils/
Drecord_stream.cpp75 unsigned char *p_end) in getEndOfRecord() argument
80 if (p_end < p_begin + HEADER_SIZE) { in getEndOfRecord()
89 if (p_end < p_ret) { in getEndOfRecord()
/system/nfc/src/nfc/ndef/
Dndef_utils.cc77 uint8_t* p_end = p_msg + msg_len; in NDEF_MsgValidate() local
93 for (count = 0; p_rec < p_end; count++) { in NDEF_MsgValidate()
95 if (p_rec + 3 > p_end) return (NDEF_MSG_TOO_SHORT); in NDEF_MsgValidate()
121 if (p_rec + 4 > p_end) return (NDEF_MSG_TOO_SHORT); in NDEF_MsgValidate()
129 if (p_rec + 1 > p_end) return (NDEF_MSG_TOO_SHORT); in NDEF_MsgValidate()
191 if ((p_rec_type + type_len) > p_end) return (NDEF_MSG_TOO_SHORT); in NDEF_MsgValidate()
202 if (p_rec > p_new || p_end < p_new) { in NDEF_MsgValidate()
219 if (p_rec != p_end) return (NDEF_MSG_LENGTH_MISMATCH); in NDEF_MsgValidate()
/system/bt/stack/avdt/
Davdt_msg.cc524 uint8_t* p_end; in avdt_msg_prs_cfg() local
541 p_end = p + len; in avdt_msg_prs_cfg()
542 while ((p < p_end) && (err == 0)) { in avdt_msg_prs_cfg()
544 if ((p_end - p) < AVDT_LEN_CFG_MIN) { in avdt_msg_prs_cfg()
589 if ((p_end - p) < 3) { in avdt_msg_prs_cfg()
608 if (p + elem_len > p_end) { in avdt_msg_prs_cfg()
624 if ((p_end - p) < 1) { in avdt_msg_prs_cfg()
637 if (p + tmp > p_end) { in avdt_msg_prs_cfg()
Davdt_api.cc1108 uint8_t *p, *plen, *pm1, *p_end; in AVDT_SendReport() local
1170 p_end = p; in AVDT_SendReport()
1175 p_pkt->len = p_end - p; in AVDT_SendReport()