Searched refs:p_s (Results 1 – 3 of 3) sorted by relevance
/system/bt/bta/sys/ |
D | utl.cc | 43 int16_t utl_str2int(const char* p_s) { in utl_str2int() argument 46 for (; *p_s == ' ' && *p_s != 0; p_s++) in utl_str2int() 49 if (*p_s == 0) return -1; in utl_str2int() 52 if ((*p_s < '0') || (*p_s > '9')) return -1; in utl_str2int() 54 val += (int32_t)(*p_s++ - '0'); in utl_str2int() 58 if (*p_s == 0) { in utl_str2int() 79 int utl_strucmp(const char* p_s, const char* p_t) { in utl_strucmp() argument 82 while (*p_s && *p_t) { in utl_strucmp() 87 if (*p_s++ != c) { in utl_strucmp() 92 if (*p_t == 0 && *p_s != 0) { in utl_strucmp() [all …]
|
/system/bt/bta/include/ |
D | utl.h | 70 extern int16_t utl_str2int(const char* p_s); 85 extern int utl_strucmp(const char* p_s, const char* p_t); 99 extern uint8_t utl_itoa(uint16_t i, char* p_s); 138 extern bool utl_isintstr(const char* p_s); 163 extern bool utl_isdialstr(const char* p_s);
|
/system/bt/bta/ag/ |
D | bta_ag_cmd.cc | 374 static bool bta_ag_parse_cmer(char* p_s, char* p_end, bool* p_enabled) { in bta_ag_parse_cmer() argument 379 for (i = 0; i < 4; i++, p_s = p + 1) { in bta_ag_parse_cmer() 381 for (p = p_s; p < p_end && *p != ',' && *p != 0; p++) in bta_ag_parse_cmer() 390 n[i] = utl_str2int(p_s); in bta_ag_parse_cmer() 418 static uint8_t bta_ag_parse_chld(UNUSED_ATTR tBTA_AG_SCB* p_scb, char* p_s) { in bta_ag_parse_chld() argument 421 if (!isdigit(p_s[0])) { in bta_ag_parse_chld() 425 if (p_s[1] != 0) { in bta_ag_parse_chld() 427 int16_t idx = utl_str2int(&p_s[1]); in bta_ag_parse_chld() 447 static tBTA_AG_PEER_CODEC bta_ag_parse_bac(tBTA_AG_SCB* p_scb, char* p_s, in bta_ag_parse_bac() argument 453 while (p_s) { in bta_ag_parse_bac() [all …]
|