Home
last modified time | relevance | path

Searched refs:addr_str (Results 1 – 2 of 2) sorted by relevance

/hardware/interfaces/bluetooth/1.0/default/
Dbluetooth_address.cc31 void BluetoothAddress::bytes_to_string(const uint8_t* addr, char* addr_str) { in bytes_to_string() argument
32 sprintf(addr_str, "%02x:%02x:%02x:%02x:%02x:%02x", addr[0], addr[1], addr[2], in bytes_to_string()
36 bool BluetoothAddress::string_to_bytes(const char* addr_str, uint8_t* addr) { in string_to_bytes() argument
37 if (addr_str == NULL) return false; in string_to_bytes()
38 if (strnlen(addr_str, kStringLength) != kStringLength) return false; in string_to_bytes()
41 return (sscanf(addr_str, "%02hhx:%02hhx:%02hhx:%02hhx:%02hhx:%02hhx%1c", in string_to_bytes()
Dbluetooth_address.h50 static void bytes_to_string(const uint8_t* addr, char* addr_str);
52 static bool string_to_bytes(const char* addr_str, uint8_t* addr);