/system/nativepower/client/ |
D | power_manager_client_unittest.cc | 31 : 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 …]
|
D | power_manager_client.cc | 64 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()
|
D | wake_lock_unittest.cc | 35 : 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/ |
D | power_manager_unittest.cc | 97 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 …]
|
D | manager.cc | 261 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()
|
D | manager.h | 381 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
|
D | manager_unittest.cc | 115 : 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 …]
|
D | service_unittest.cc | 100 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/ |
D | power_manager_unittest.cc | 38 : 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()
|
D | main.cc | 45 if (!power_manager_.Init()) in OnInit() 53 android::PowerManager power_manager_; member in __anonb0a1bed20111::PowerManagerDaemon
|
/system/nativepower/include/nativepower/ |
D | power_manager_client.h | 66 const sp<IPowerManager>& power_manager() { return power_manager_; } in power_manager() 98 sp<IPowerManager> power_manager_; variable
|