Home
last modified time | relevance | path

Searched refs:kMinId (Results 1 – 6 of 6) sorted by relevance

/packages/modules/Bluetooth/system/gd/common/
Dmetric_id_manager.cc39 const int MetricIdManager::kMinId = 1; member in bluetooth::common::MetricIdManager
46 (MetricIdManager::kMaxId - MetricIdManager::kMinId),
72 next_id_ = kMinId; in Init()
74 if (p.second < kMinId || p.second > kMaxId) { in Init()
79 kMinId, in Init()
90 next_id_ = kMinId; in Init()
142 next_id_ = kMinId; in AllocateId()
154 next_id_ = kMinId; in AllocateId()
198 return id >= kMinId && id <= kMaxId; in IsValidId()
Dmetric_id_manager_unittest.cc45 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 …]
Dmetric_id_manager.h39 static const int kMinId; variable
126 int next_id_{kMinId};
/packages/modules/Bluetooth/system/common/
Dmetric_id_allocator_unittest.cc47 device_map[kthAddress(key)] = key + MetricIdAllocator::kMinId; in generateAddresses()
84 EXPECT_EQ(allocator.AllocateId(kthAddress(0)), MetricIdAllocator::kMinId); in TEST()
85 EXPECT_EQ(allocator.AllocateId(kthAddress(1)), MetricIdAllocator::kMinId + 1); in TEST()
86 EXPECT_EQ(allocator.AllocateId(kthAddress(0)), MetricIdAllocator::kMinId); in TEST()
87 EXPECT_EQ(allocator.AllocateId(kthAddress(2)), MetricIdAllocator::kMinId + 2); in TEST()
99 MetricIdAllocator::kMinId; in TEST()
120 int id = MetricIdAllocator::kMinId; in TEST()
151 MetricIdAllocator::kMinId); in TEST()
162 MetricIdAllocator::kMinId + 1); in TEST()
164 MetricIdAllocator::kMinId + 2); in TEST()
[all …]
Dmetric_id_allocator.cc36 const int MetricIdAllocator::kMinId = 1; member in bluetooth::common::MetricIdAllocator
43 (MetricIdAllocator::kMaxId - MetricIdAllocator::kMinId),
68 next_id_ = kMinId; in Init()
70 if (p.second < kMinId || p.second > kMaxId) { in Init()
81 next_id_ = kMinId; in Init()
132 next_id_ = kMinId; in AllocateId()
144 next_id_ = kMinId; in AllocateId()
200 return id >= kMinId && id <= kMaxId; in IsValidId()
Dmetric_id_allocator.h40 static const int kMinId; variable
126 int next_id_{kMinId};