Home
last modified time | relevance | path

Searched refs:power_manager_ (Results 1 – 11 of 11) sorted by relevance

/system/nativepower/client/
Dpower_manager_client_unittest.cc31 : power_manager_(new PowerManagerStub()), in PowerManagerClientTest()
32 power_manager_binder_(power_manager_) { in PowerManagerClientTest()
40 PowerManagerStub* power_manager_; // Owned by |power_manager_binder_|. member in android::PowerManagerClientTest
49 EXPECT_EQ(0, power_manager_->num_suspend_requests()); in TEST_F()
54 EXPECT_EQ(1, power_manager_->num_suspend_requests()); in TEST_F()
58 power_manager_->GetSuspendRequestString(0)); in TEST_F()
63 ASSERT_EQ(1u, power_manager_->shutdown_reasons().size()); in TEST_F()
64 EXPECT_EQ("", power_manager_->shutdown_reasons()[0]); in TEST_F()
67 ASSERT_EQ(2u, power_manager_->shutdown_reasons().size()); in TEST_F()
69 power_manager_->shutdown_reasons()[1]); in TEST_F()
[all …]
Dpower_manager_client.cc64 if (power_manager_.get()) { in ~PowerManagerClient()
66 IInterface::asBinder(power_manager_)); in ~PowerManagerClient()
82 power_manager_ = interface_cast<IPowerManager>(power_manager_binder); in Init()
99 DCHECK(power_manager_.get()); in Suspend()
100 status_t status = power_manager_->goToSleep( in Suspend()
110 DCHECK(power_manager_.get()); in ShutDown()
111 status_t status = power_manager_->shutdown(false /* confirm */, in ShutDown()
122 DCHECK(power_manager_.get()); in Reboot()
123 status_t status = power_manager_->reboot(false /* confirm */, in Reboot()
135 power_manager_.clear(); in OnPowerManagerDied()
Dwake_lock_unittest.cc35 : power_manager_(new PowerManagerStub()), in WakeLockTest()
36 power_manager_binder_(power_manager_) { in WakeLockTest()
44 PowerManagerStub* power_manager_; // Owned by |power_manager_binder_|. member in android::WakeLockTest
56 ASSERT_EQ(1, power_manager_->GetNumWakeLocks()); in TEST_F()
60 power_manager_->GetWakeLockString(binder_wrapper()->local_binders()[0])); in TEST_F()
63 EXPECT_EQ(0, power_manager_->GetNumWakeLocks()); in TEST_F()
73 EXPECT_EQ(1, power_manager_->GetNumWakeLocks()); in TEST_F()
/system/connectivity/shill/
Dpower_manager_unittest.cc97 power_manager_(&dispatcher_, &control_), in PowerManagerTest()
114 power_manager_.Start(kTimeout, suspend_imminent_callback_, in SetUp()
120 power_manager_.Stop(); in TearDown()
180 EXPECT_TRUE(power_manager_.suspending()); in OnSuspendImminent()
185 EXPECT_FALSE(power_manager_.suspending()); in OnSuspendDone()
193 power_manager_.OnPowerManagerAppeared(); in OnPowerManagerAppeared()
197 power_manager_.OnPowerManagerVanished(); in OnPowerManagerVanished()
205 PowerManager power_manager_; member in shill::PowerManagerTest
220 EXPECT_FALSE(power_manager_.suspending()); in TEST_F()
222 EXPECT_TRUE(power_manager_.suspending()); in TEST_F()
[all …]
Dmanager.cc261 power_manager_.reset( in Start()
263 power_manager_->Start(base::TimeDelta::FromMilliseconds( in Start()
325 power_manager_->Stop(); in Stop()
326 power_manager_.reset(); in Stop()
1210 if (power_manager_ && power_manager_->suspending()) { in IsSuspending()
1217 power_manager_->RecordDarkResumeWakeReason(wake_reason); in RecordDarkResumeWakeReason()
1725 power_manager_->ReportSuspendReadiness(); in OnSuspendActionsComplete()
1731 power_manager_->ReportDarkSuspendReadiness(); in OnDarkResumeActionsComplete()
1919 if (power_manager_ && power_manager_->suspending() && in AutoConnect()
1920 !power_manager_->in_dark_resume()) { in AutoConnect()
Dmanager.h381 PowerManager* power_manager() const { return power_manager_.get(); } in power_manager()
782 power_manager_.reset(power_manager); in set_power_manager()
835 std::unique_ptr<PowerManager> power_manager_; variable
Dmanager_unittest.cc115 : power_manager_(new MockPowerManager(nullptr, control_interface())), in ManagerTest()
437 power_manager_->suspending_ = suspending; in SetSuspending()
441 manager()->set_power_manager(power_manager_.release()); in SetPowerManager()
492 std::unique_ptr<MockPowerManager> power_manager_; member in shill::ManagerTest
690 manager.set_power_manager(power_manager_.release()); in TEST_F()
720 manager.set_power_manager(power_manager_.release()); in TEST_F()
752 manager.set_power_manager(power_manager_.release()); in TEST_F()
863 manager.set_power_manager(power_manager_.release()); in TEST_F()
3267 EXPECT_CALL(*power_manager_, ReportSuspendReadiness()); in TEST_F()
3284 EXPECT_CALL(*power_manager_, ReportDarkSuspendReadiness()); in TEST_F()
[all …]
Dservice_unittest.cc100 power_manager_(new MockPowerManager(nullptr, &control_)) { in ServiceTest()
112 mock_manager_.set_power_manager(power_manager_); // Passes ownership. in ServiceTest()
131 power_manager_->suspending_ = suspending; in SetSuspending()
231 MockPowerManager* power_manager_; // Owned by |mock_manager_|. member in shill::ServiceTest
/system/nativepower/daemon/
Dpower_manager_unittest.cc38 : power_manager_(new PowerManager()), in PowerManagerTest()
39 interface_(interface_cast<IPowerManager>(power_manager_)), in PowerManagerTest()
45 power_manager_->set_power_state_path_for_testing(power_state_path_); in PowerManagerTest()
48 power_manager_->set_property_setter_for_testing( in PowerManagerTest()
50 power_manager_->set_wake_lock_manager_for_testing( in PowerManagerTest()
53 CHECK(power_manager_->Init()); in PowerManagerTest()
73 sp<PowerManager> power_manager_; member in android::PowerManagerTest
86 EXPECT_EQ(power_manager_, in TEST_F()
Dmain.cc45 if (!power_manager_.Init()) in OnInit()
53 android::PowerManager power_manager_; member in __anonb0a1bed20111::PowerManagerDaemon
/system/nativepower/include/nativepower/
Dpower_manager_client.h66 const sp<IPowerManager>& power_manager() { return power_manager_; } in power_manager()
98 sp<IPowerManager> power_manager_; variable