Searched refs:kBase (Results 1 – 4 of 4) sorted by relevance
/packages/modules/Bluetooth/system/gd/hci/ |
D | uuid_unittest.cc | 34 static const Uuid kBase = variable 44 ASSERT_FALSE(kBase.IsEmpty()); in TEST() 48 ASSERT_EQ(Uuid::kNumBytes16, kBase.GetShortestRepresentationSize()); in TEST() 57 ASSERT_EQ((uint16_t)0x0000, kBase.As16Bit()); in TEST() 64 ASSERT_EQ((uint32_t)0x00000000, kBase.As32Bit()); in TEST() 71 ASSERT_TRUE(kBase.Is16Bit()); in TEST() 78 ASSERT_EQ(Uuid::From16Bit(0x0000), kBase); in TEST() 97 ASSERT_EQ(Uuid::From32Bit(0x00000000), kBase); in TEST() 121 ASSERT_EQ(UUID_BASE_STR, kBase.ToString()); in TEST() 166 Uuid uuidBe = kBase; in TEST() [all …]
|
D | uuid.cc | 34 Uuid kBase = Uuid::From128BitBE(UUID128Bit{{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x80, variable 39 if (memcmp(uu.data() + kNumBytes32, kBase.uu.data() + kNumBytes32, kNumBytes128 - kNumBytes32) != in GetShortestRepresentationSize() 64 Uuid ret = kBase; in FromString() 115 Uuid u = kBase; in From16Bit() 123 Uuid u = kBase; in From32Bit()
|
/packages/modules/Bluetooth/system/types/test/bluetooth/ |
D | uuid_unittest.cc | 33 constexpr Uuid kBase = variable 39 EXPECT_FALSE(kBase.IsEmpty()); in TEST() 43 EXPECT_TRUE(Uuid::kNumBytes16 == kBase.GetShortestRepresentationSize()); in TEST() 52 EXPECT_EQ((uint16_t)0x0000, kBase.As16Bit()); in TEST() 59 EXPECT_EQ((uint32_t)0x00000000, kBase.As32Bit()); in TEST() 66 EXPECT_TRUE(kBase.Is16Bit()); in TEST() 71 EXPECT_EQ(Uuid::From16Bit(0x0000), kBase); in TEST() 90 EXPECT_EQ(Uuid::From32Bit(0x00000000), kBase); in TEST() 114 EXPECT_EQ(UUID_BASE_STR, kBase.ToString()); in TEST()
|
/packages/modules/Bluetooth/system/types/bluetooth/ |
D | uuid.cc | 38 constexpr Uuid kBase = variable 44 if (memcmp(uu.data() + kNumBytes32, kBase.uu.data() + kNumBytes32, kNumBytes128 - kNumBytes32) != in GetShortestRepresentationSize() 68 Uuid ret = kBase; in FromString() 128 Uuid u = kBase; in From16Bit() 136 Uuid u = kBase; in From32Bit() 173 bool Uuid::IsBase() const { return *this == kBase; } in IsBase()
|