Home
last modified time | relevance | path

Searched refs:ref_cnt (Results 1 – 3 of 3) sorted by relevance

/packages/modules/Bluetooth/system/bta/has/
Dhas_ctp.h168 static size_t ref_cnt; member
175 ref_cnt = 0;
182 log::verbose("{}", ref_cnt); in Cleanup()
189 ref_cnt = 0; in Cleanup()
192 static bool IsFullyCompleted() { return ref_cnt == 0; } in IsFullyCompleted()
193 static bool IsPending() { return ref_cnt != 0; } in IsPending()
206 ref_cnt += other.devices.size(); in HasCtpGroupOpCoordinator()
222 ref_cnt += devices.size(); in HasCtpGroupOpCoordinator()
237 if (ref_cnt != 0) { in ~HasCtpGroupOpCoordinator()
238 ref_cnt -= devices.size(); in ~HasCtpGroupOpCoordinator()
[all …]
Dhas_client_test.cc3222 ASSERT_EQ(0u, HasCtpGroupOpCoordinator::ref_cnt); in TEST_F()
3230 ASSERT_EQ(2u, wrapper.ref_cnt); in TEST_F()
3233 ASSERT_EQ(0u, wrapper.ref_cnt); in TEST_F()
3243 ASSERT_EQ(0u, HasCtpGroupOpCoordinator::ref_cnt); in TEST_F()
3255 ASSERT_EQ(3u, wrapper.ref_cnt); in TEST_F()
3259 ASSERT_EQ(5u, wrapper.ref_cnt); in TEST_F()
3262 ASSERT_EQ(4u, wrapper.ref_cnt); in TEST_F()
3265 ASSERT_EQ(0u, wrapper.ref_cnt); in TEST_F()
3276 ASSERT_EQ(0u, HasCtpGroupOpCoordinator::ref_cnt); in TEST_F()
3289 ASSERT_EQ(3u, wrapper.ref_cnt); in TEST_F()
[all …]
Dhas_client.cc2101 size_t HasCtpGroupOpCoordinator::ref_cnt = 0u; member in HasCtpGroupOpCoordinator