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

/hardware/interfaces/bluetooth/1.0/default/
H A Dbluetooth_address.cc31 void BluetoothAddress::bytes_to_string(const uint8_t* addr, char* addr_str) { argument
32 sprintf(addr_str, "%02x:%02x:%02x:%02x:%02x:%02x", addr[0], addr[1], addr[2],
36 bool BluetoothAddress::string_to_bytes(const char* addr_str, uint8_t* addr) { argument
37 if (addr_str == NULL) return false;
38 if (strnlen(addr_str, kStringLength) != kStringLength) return false;
41 return (sscanf(addr_str, "%02hhx:%02hhx:%02hhx:%02hhx:%02hhx:%02hhx%1c",
H A 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);

Completed in 254 milliseconds