Searched refs:p_ascii (Results 1 – 4 of 4) sorted by relevance
/packages/modules/Bluetooth/system/btif/src/ |
D | btif_util.cc | 85 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/ |
D | mock_btif_util.h | 48 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()
|
D | mock_btif_util.cc | 87 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/ |
D | btif_util.h | 64 int ascii_2_hex(const char* p_ascii, int len, uint8_t* p_hex);
|