Searched refs:wake_lock_manager_ (Results 1 – 5 of 5) sorted by relevance
41 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::PowerManagerTest100 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()
52 : 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()
49 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()
55 wake_lock_manager_ = std::move(manager); in set_wake_lock_manager_for_testing()98 std::unique_ptr<WakeLockManagerInterface> wake_lock_manager_; variable
104 std::unique_ptr<WakeLockManagerStub> wake_lock_manager_; variable