Home
last modified time | relevance | path

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

/system/bt/common/
Dmetric_id_allocator_unittest.cc30 RawAddress kthAddress(uint32_t k) { in kthAddress() function
45 device_map[kthAddress(key)] = key + MetricIdAllocator::kMinId; in generateAddresses()
82 EXPECT_EQ(allocator.AllocateId(kthAddress(0)), MetricIdAllocator::kMinId); in TEST()
83 EXPECT_EQ(allocator.AllocateId(kthAddress(1)), MetricIdAllocator::kMinId + 1); in TEST()
84 EXPECT_EQ(allocator.AllocateId(kthAddress(0)), MetricIdAllocator::kMinId); in TEST()
85 EXPECT_EQ(allocator.AllocateId(kthAddress(2)), MetricIdAllocator::kMinId + 2); in TEST()
103 EXPECT_EQ(allocator.AllocateId(kthAddress(INT_MAX)), id); in TEST()
104 EXPECT_EQ(allocator.AllocateId(kthAddress(INT_MAX - 1)), id + 1); in TEST()
105 EXPECT_EQ(allocator.AllocateId(kthAddress(INT_MAX)), id); in TEST()
106 EXPECT_EQ(allocator.AllocateId(kthAddress(INT_MAX - 2)), id + 2); in TEST()
[all …]
/system/bt/gd/common/
Dmetric_id_manager_unittest.cc29 bluetooth::hci::Address kthAddress(uint32_t k) { in kthAddress() function
45 device_map[kthAddress(key)] = key + MetricIdManager::kMinId; in generateAddresses()
85 ASSERT_EQ(manager.AllocateId(kthAddress(0)), MetricIdManager::kMinId); in TEST()
86 ASSERT_EQ(manager.AllocateId(kthAddress(1)), MetricIdManager::kMinId + 1); in TEST()
87 ASSERT_EQ(manager.AllocateId(kthAddress(0)), MetricIdManager::kMinId); in TEST()
88 ASSERT_EQ(manager.AllocateId(kthAddress(2)), MetricIdManager::kMinId + 2); in TEST()
107 ASSERT_EQ(manager.AllocateId(kthAddress(INT_MAX)), id); in TEST()
108 ASSERT_EQ(manager.AllocateId(kthAddress(INT_MAX - 1)), id + 1); in TEST()
109 ASSERT_EQ(manager.AllocateId(kthAddress(INT_MAX)), id); in TEST()
110 ASSERT_EQ(manager.AllocateId(kthAddress(INT_MAX - 2)), id + 2); in TEST()
[all …]