Home
last modified time | relevance | path

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

/system/bt/bta/ag/
Dbta_ag_at.cc84 void bta_ag_process_at(tBTA_AG_AT_CB* p_cb, char* p_end) { in bta_ag_process_at() argument
100 if (p_arg > p_end) { in bta_ag_process_at()
147 p_end, int_arg); in bta_ag_process_at()
152 p_end, int_arg); in bta_ag_process_at()
204 char* p_end = p_cb->p_cmd_buf + p_cb->cmd_pos; in bta_ag_at_parse() local
206 bta_ag_process_at(p_cb, p_end); in bta_ag_at_parse()
Dbta_ag_at.h63 uint8_t arg_type, char* p_arg, char* p_end,
Dbta_ag_cmd.cc368 static bool bta_ag_parse_cmer(char* p_s, char* p_end, bool* p_enabled) { in bta_ag_parse_cmer() argument
375 for (p = p_s; p < p_end && *p != ',' && *p != 0; p++) in bta_ag_parse_cmer()
379 if (p > p_end) { in bta_ag_parse_cmer()
442 char* p_end) { in bta_ag_parse_bac() argument
449 for (p = p_s; p < p_end && *p != ',' && *p != 0; p++) in bta_ag_parse_bac()
453 if (p > p_end) { in bta_ag_parse_bac()
581 uint8_t arg_type, char* p_arg, char* p_end, in bta_ag_at_hsp_cback() argument
593 if ((p_end - p_arg + 1) >= (long)sizeof(val.str)) { in bta_ag_at_hsp_cback()
850 char* p_arg, char* p_end, int16_t int_arg) { in bta_ag_at_hfp_cback() argument
870 if ((p_end - p_arg + 1) >= (long)sizeof(val.str)) { in bta_ag_at_hfp_cback()
[all …]
Dbta_ag_int.h361 uint8_t arg_type, char* p_arg, char* p_end,
364 uint8_t arg_type, char* p_arg, char* p_end,
Dbta_ag_act.cc58 uint8_t arg_type, char* p_arg, char* p_end,
/system/bt/stack/sdp/
Dsdp_discovery.cc56 static uint8_t* add_attr(uint8_t* p, uint8_t* p_end, tSDP_DISCOVERY_DB* p_db,
215 uint8_t* p_end = p + p_msg->len; in sdp_disc_server_rsp() local
230 process_service_search_rsp(p_ccb, p, p_end); in sdp_disc_server_rsp()
237 process_service_attr_rsp(p_ccb, p, p_end); in sdp_disc_server_rsp()
244 process_service_search_attr_rsp(p_ccb, p, p_end); in sdp_disc_server_rsp()
344 uint8_t* p_end; in sdp_copy_raw_data() local
351 p_end = &p_ccb->rsp_list[0] + list_len; in sdp_copy_raw_data()
357 p = sdpu_get_len_from_type(p, p_end, type, &list_len); in sdp_copy_raw_data()
358 if (p == NULL || (p + list_len) > p_end) { in sdp_copy_raw_data()
523 uint8_t *p, *p_start, *p_end, *p_param_len; in process_service_search_attr_rsp() local
[all …]
Dsdp_db.cc55 tSDP_RECORD* p_end = &sdp_cb.server_db.record[sdp_cb.server_db.num_records]; in sdp_db_service_search() local
66 for (; p_rec < p_end; p_rec++) { in sdp_db_service_search()
105 uint8_t* p_end = p + seq_len; in find_uuid_in_seq() local
112 while (p < p_end) { in find_uuid_in_seq()
114 p = sdpu_get_len_from_type(p, p_end, type, &len); in find_uuid_in_seq()
115 if (p == NULL || (p + len) > p_end) { in find_uuid_in_seq()
145 tSDP_RECORD* p_end = &sdp_cb.server_db.record[sdp_cb.server_db.num_records]; in sdp_db_find_record() local
148 for (p_rec = &sdp_cb.server_db.record[0]; p_rec < p_end; p_rec++) { in sdp_db_find_record()
Dsdp_utils.cc788 uint8_t* sdpu_get_len_from_type(uint8_t* p, uint8_t* p_end, uint8_t type, in sdpu_get_len_from_type() argument
811 if (p + 1 > p_end) { in sdpu_get_len_from_type()
819 if (p + 2 > p_end) { in sdpu_get_len_from_type()
827 if (p + 4 > p_end) { in sdpu_get_len_from_type()
Dsdpint.h212 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()
206 if (p_rec > p_new || p_end < p_new) { in NDEF_MsgValidate()
223 if (p_rec != p_end) return (NDEF_MSG_LENGTH_MISMATCH); in NDEF_MsgValidate()
/system/bt/stack/avdt/
Davdt_msg.cc526 uint8_t* p_end; in avdt_msg_prs_cfg() local
543 p_end = p + len; in avdt_msg_prs_cfg()
544 while ((p < p_end) && (err == 0)) { in avdt_msg_prs_cfg()
546 if ((p_end - p) < AVDT_LEN_CFG_MIN) { in avdt_msg_prs_cfg()
591 if ((p_end - p) < 3) { in avdt_msg_prs_cfg()
610 if (p + elem_len > p_end) { in avdt_msg_prs_cfg()
626 if ((p_end - p) < 1) { in avdt_msg_prs_cfg()
639 if (p + tmp > p_end) { in avdt_msg_prs_cfg()