Searched refs:WakelockManager (Results 1 – 5 of 5) sorted by relevance
38 using bluetooth::os::WakelockManager;42 class TestOsCallouts : public WakelockManager::OsCallouts {99 WakelockManager::Get().SetOsCallouts(&os_callouts, handler_); in TEST_F()103 ASSERT_FALSE(os_callouts.GetNetAcquiredCount(WakelockManager::kBtWakelockId)); in TEST_F()105 WakelockManager::Get().Acquire(); in TEST_F()108 ASSERT_THAT(os_callouts.GetNetAcquiredCount(WakelockManager::kBtWakelockId), Optional(Eq(1))); in TEST_F()110 WakelockManager::Get().Acquire(); in TEST_F()113 ASSERT_THAT(os_callouts.GetNetAcquiredCount(WakelockManager::kBtWakelockId), Optional(Eq(2))); in TEST_F()115 WakelockManager::Get().Release(); in TEST_F()117 ASSERT_THAT(os_callouts.GetNetAcquiredCount(WakelockManager::kBtWakelockId), Optional(Eq(1))); in TEST_F()[all …]
44 const std::string WakelockManager::kBtWakelockId = "bluetooth_gd_timer";47 struct WakelockManager::Stats {181 void WakelockManager::SetOsCallouts(OsCallouts* callouts, Handler* handler) { in SetOsCallouts()195 bool WakelockManager::Acquire() { in Acquire()221 bool WakelockManager::Release() { in Release()247 void WakelockManager::CleanUp() { in CleanUp()264 flatbuffers::Offset<WakelockManagerData> WakelockManager::GetDumpsysData(flatbuffers::FlatBufferBui… in GetDumpsysData()269 WakelockManager::WakelockManager() : pstats_(std::make_unique<Stats>()) {} in WakelockManager() function in bluetooth::os::WakelockManager271 WakelockManager::~WakelockManager() = default;
33 class WakelockManager {37 static WakelockManager& Get() { in Get()38 static WakelockManager instance; in Get()78 ~WakelockManager();81 WakelockManager();
34 using ::bluetooth::os::WakelockManager;44 WakelockManager::Get().Acquire(); in StartUp()53 WakelockManager::Get().Release(); in StartUp()73 WakelockManager::Get().Acquire(); in ShutDown()81 WakelockManager::Get().Release(); in ShutDown()82 WakelockManager::Get().CleanUp(); in ShutDown()
25 using ::bluetooth::os::WakelockManager;144 auto wakelock_offset = WakelockManager::Get().GetDumpsysData(&builder); in DumpState()