Searched refs:kMinId (Results 1 – 7 of 7) sorted by relevance
/system/bt/gd/common/ |
D | metric_id_manager.cc | 36 const int MetricIdManager::kMinId = 1; member in bluetooth::common::MetricIdManager 43 (MetricIdManager::kMaxId - MetricIdManager::kMinId), 69 next_id_ = kMinId; in Init() 71 if (p.second < kMinId || p.second > kMaxId) { in Init() 74 p.second, p.first.ToString().c_str(), kMinId, kMaxId); in Init() 84 next_id_ = kMinId; in Init() 136 next_id_ = kMinId; in AllocateId() 148 next_id_ = kMinId; in AllocateId() 193 return id >= kMinId && id <= kMaxId; in IsValidId()
|
D | metric_id_manager_unittest.cc | 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() 101 MetricIdManager::kMinId; in TEST() 123 int id = MetricIdManager::kMinId; in TEST() 162 MetricIdManager::kMinId); in TEST() 175 MetricIdManager::kMinId + 1); in TEST() 177 MetricIdManager::kMinId + 2); in TEST() [all …]
|
D | metric_id_manager.h | 39 static const int kMinId; variable 126 int next_id_{kMinId};
|
/system/bt/common/ |
D | metric_id_allocator.cc | 33 const int MetricIdAllocator::kMinId = 1; member in bluetooth::common::MetricIdAllocator 40 (MetricIdAllocator::kMaxId - MetricIdAllocator::kMinId), 65 next_id_ = kMinId; in Init() 67 if (p.second < kMinId || p.second > kMaxId) { in Init() 78 next_id_ = kMinId; in Init() 129 next_id_ = kMinId; in AllocateId() 141 next_id_ = kMinId; in AllocateId() 195 return id >= kMinId && id <= kMaxId; in IsValidId()
|
D | metric_id_allocator_unittest.cc | 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() 97 MetricIdAllocator::kMinId; in TEST() 118 int id = MetricIdAllocator::kMinId; in TEST() 149 MetricIdAllocator::kMinId); in TEST() 160 MetricIdAllocator::kMinId + 1); in TEST() 162 MetricIdAllocator::kMinId + 2); in TEST() [all …]
|
D | metric_id_allocator.h | 40 static const int kMinId; variable 126 int next_id_{kMinId};
|
/system/bt/test/mock/ |
D | mock_common_metric_id_allocator.cc | 46 const int MetricIdAllocator::kMinId = 0; member in bluetooth::common::MetricIdAllocator
|