Home
last modified time | relevance | path

Searched refs:WakelockManager (Results 1 – 5 of 5) sorted by relevance

/system/bt/gd/os/linux_generic/
Dwakelock_manager_unittest.cc38 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 …]
Dwakelock_manager.cc44 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::WakelockManager
271 WakelockManager::~WakelockManager() = default;
/system/bt/gd/os/
Dwakelock_manager.h33 class WakelockManager {
37 static WakelockManager& Get() { in Get()
38 static WakelockManager instance; in Get()
78 ~WakelockManager();
81 WakelockManager();
/system/bt/gd/
Dstack_manager.cc34 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()
Dmodule.cc25 using ::bluetooth::os::WakelockManager;
144 auto wakelock_offset = WakelockManager::Get().GetDumpsysData(&builder); in DumpState()