Home
last modified time | relevance | path

Searched refs:kBytes (Results 1 – 5 of 5) sorted by relevance

/aosp12/hardware/interfaces/bluetooth/1.0/default/test/
H A Dbluetooth_address_test.cc35 constexpr uint8_t kTestAddr1_bytes[BluetoothAddress::kBytes] = {
39 constexpr uint8_t kZeros_bytes[BluetoothAddress::kBytes] = {0x00, 0x00, 0x00,
64 uint8_t addr[BluetoothAddress::kBytes]; in TEST_F()
85 uint8_t addrA[BluetoothAddress::kBytes]; in TEST_F()
86 uint8_t addrB[BluetoothAddress::kBytes]; in TEST_F()
90 EXPECT_TRUE(memcmp(addrA, kTestAddr1_bytes, BluetoothAddress::kBytes) == 0); in TEST_F()
94 EXPECT_TRUE(memcmp(addrB, kZeros_bytes, BluetoothAddress::kBytes) == 0); in TEST_F()
97 EXPECT_FALSE(memcmp(addrA, addrB, BluetoothAddress::kBytes) == 0); in TEST_F()
/aosp12/system/netd/libnetdutils/
H A DSliceTest.cpp42 constexpr size_t kBytes = 14; in TEST_F() local
43 EXPECT_EQ(s1.base(), take(s1, kBytes).base()); in TEST_F()
44 EXPECT_EQ(kBytes, take(s1, kBytes).size()); in TEST_F()
45 EXPECT_EQ(s1.base() + kBytes, drop(s1, kBytes).base()); in TEST_F()
46 EXPECT_EQ(s1.size() - kBytes, drop(s1, kBytes).size()); in TEST_F()
/aosp12/hardware/interfaces/bluetooth/1.0/default/
H A Dbluetooth_address.cc43 &trailing_char) == kBytes); in string_to_bytes()
67 const uint8_t zero_bdaddr[kBytes] = {0, 0, 0, 0, 0, 0}; in get_local_address()
69 (memcmp(local_addr, zero_bdaddr, kBytes) != 0)) { in get_local_address()
H A Dbluetooth_address.h48 static constexpr size_t kBytes = (kStringLength + 1) / 3; variable
H A Dvendor_interface.cc211 uint8_t local_bda[BluetoothAddress::kBytes]; in Open()