Home
last modified time | relevance | path

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

/system/bt/gd/os/linux_generic/
Dwakelock_manager_unittest.cc103 ASSERT_FALSE(os_callouts.GetNetAcquiredCount(WakelockManager::kBtWakelockId)); in TEST_F()
108 ASSERT_THAT(os_callouts.GetNetAcquiredCount(WakelockManager::kBtWakelockId), Optional(Eq(1))); in TEST_F()
113 ASSERT_THAT(os_callouts.GetNetAcquiredCount(WakelockManager::kBtWakelockId), Optional(Eq(2))); in TEST_F()
117 ASSERT_THAT(os_callouts.GetNetAcquiredCount(WakelockManager::kBtWakelockId), Optional(Eq(1))); in TEST_F()
129 ASSERT_FALSE(os_callouts.GetNetAcquiredCount(WakelockManager::kBtWakelockId)); in TEST_F()
134 ASSERT_THAT(os_callouts.GetNetAcquiredCount(WakelockManager::kBtWakelockId), Optional(Eq(1))); in TEST_F()
139 ASSERT_THAT(os_callouts.GetNetAcquiredCount(WakelockManager::kBtWakelockId), Optional(Eq(0))); in TEST_F()
144 ASSERT_THAT(os_callouts.GetNetAcquiredCount(WakelockManager::kBtWakelockId), Optional(Eq(-1))); in TEST_F()
156 ASSERT_FALSE(os_callouts.GetNetAcquiredCount(WakelockManager::kBtWakelockId)); in TEST_F()
162 ASSERT_THAT(os_callouts.GetNetAcquiredCount(WakelockManager::kBtWakelockId), Optional(Eq(1))); in TEST_F()
[all …]
Dwakelock_manager.cc44 const std::string WakelockManager::kBtWakelockId = "bluetooth_gd_timer"; member in bluetooth::os::WakelockManager
206 status = WakelockNative::Get().Acquire(kBtWakelockId); in Acquire()
208 os_callouts_handler_->CallOn(os_callouts_, &OsCallouts::AcquireCallout, kBtWakelockId); in Acquire()
232 status = WakelockNative::Get().Release(kBtWakelockId); in Release()
234 os_callouts_handler_->CallOn(os_callouts_, &OsCallouts::ReleaseCallout, kBtWakelockId); in Release()
/system/bt/gd/os/
Dwakelock_manager.h35 static const std::string kBtWakelockId;