Home
last modified time | relevance | path

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

/system/nativepower/daemon/
Dpower_manager_unittest.cc41 wake_lock_manager_(new WakeLockManagerStub()) { in PowerManagerTest()
51 std::unique_ptr<WakeLockManagerInterface>(wake_lock_manager_)); in PowerManagerTest()
76 WakeLockManagerStub* wake_lock_manager_; // Owned by |power_manager_|. member in android::PowerManagerTest
100 EXPECT_EQ(1, wake_lock_manager_->num_requests()); in TEST_F()
103 wake_lock_manager_->GetRequestString( in TEST_F()
107 EXPECT_EQ(0, wake_lock_manager_->num_requests()); in TEST_F()
113 EXPECT_EQ(1, wake_lock_manager_->num_requests()); in TEST_F()
116 wake_lock_manager_->GetRequestString( in TEST_F()
Dpower_manager_stub.cc52 : wake_lock_manager_(new WakeLockManagerStub()) {} in PowerManagerStub()
57 return wake_lock_manager_->num_requests(); in GetNumWakeLocks()
62 return wake_lock_manager_->GetRequestString(binder); in GetWakeLockString()
79 CHECK(wake_lock_manager_->AddRequest(lock, String8(tag).string(), in acquireWakeLock()
91 CHECK(wake_lock_manager_->AddRequest(lock, String8(tag).string(), in acquireWakeLockWithUid()
100 CHECK(wake_lock_manager_->RemoveRequest(lock)); in releaseWakeLock()
Dpower_manager.cc49 if (!wake_lock_manager_) { in Init()
50 wake_lock_manager_.reset(new WakeLockManager()); in Init()
51 if (!static_cast<WakeLockManager*>(wake_lock_manager_.get())->Init()) in Init()
85 return wake_lock_manager_->RemoveRequest(lock) ? OK : UNKNOWN_ERROR; in releaseWakeLock()
169 return wake_lock_manager_->AddRequest(lock, String8(tag).string(), in AddWakeLockRequest()
Dpower_manager.h55 wake_lock_manager_ = std::move(manager); in set_wake_lock_manager_for_testing()
98 std::unique_ptr<WakeLockManagerInterface> wake_lock_manager_; variable
/system/nativepower/include/nativepower/
Dpower_manager_stub.h104 std::unique_ptr<WakeLockManagerStub> wake_lock_manager_; variable