Home
last modified time | relevance | path

Searched refs:p_ascii (Results 1 – 4 of 4) sorted by relevance

/packages/modules/Bluetooth/system/btif/src/
Dbtif_util.cc85 int ascii_2_hex(const char* p_ascii, int len, uint8_t* p_hex) { in ascii_2_hex() argument
89 for (x = 0; (x < len) && (*p_ascii); x++) { in ascii_2_hex()
90 if (ISDIGIT(*p_ascii)) in ascii_2_hex()
91 c = (*p_ascii - '0') << 4; in ascii_2_hex()
93 c = (toupper(*p_ascii) - 'A' + 10) << 4; in ascii_2_hex()
95 p_ascii++; in ascii_2_hex()
96 if (*p_ascii) { in ascii_2_hex()
97 if (ISDIGIT(*p_ascii)) in ascii_2_hex()
98 c |= (*p_ascii - '0'); in ascii_2_hex()
100 c |= (toupper(*p_ascii) - 'A' + 10); in ascii_2_hex()
[all …]
/packages/modules/Bluetooth/system/test/mock/
Dmock_btif_util.h48 std::function<int(const char* p_ascii, int len, uint8_t* p_hex)> body{
52 int operator()(const char* p_ascii, int len, uint8_t* p_hex) { in operator()
53 return body(p_ascii, len, p_hex); in operator()
Dmock_btif_util.cc87 int ascii_2_hex(const char* p_ascii, int len, uint8_t* p_hex) { in ascii_2_hex() argument
89 return test::mock::btif_util::ascii_2_hex(p_ascii, len, p_hex); in ascii_2_hex()
/packages/modules/Bluetooth/system/btif/include/
Dbtif_util.h64 int ascii_2_hex(const char* p_ascii, int len, uint8_t* p_hex);