Home
last modified time | relevance | path

Searched refs:PowerManager (Results 1 – 12 of 12) sorted by relevance

/system/connectivity/shill/
Dpower_manager.cc44 const int PowerManager::kInvalidSuspendId = -1;
45 const char PowerManager::kSuspendDelayDescription[] = "shill";
46 const char PowerManager::kDarkSuspendDelayDescription[] = "shill";
47 const int PowerManager::kSuspendTimeoutMilliseconds = 15 * 1000;
49 PowerManager::PowerManager(EventDispatcher* dispatcher, in PowerManager() function in shill::PowerManager
62 PowerManager::~PowerManager() {} in ~PowerManager()
64 void PowerManager::Start( in Start()
72 Bind(&PowerManager::OnPowerManagerAppeared, Unretained(this)), in Start()
73 Bind(&PowerManager::OnPowerManagerVanished, Unretained(this)))); in Start()
80 void PowerManager::Stop() { in Stop()
[all …]
Dmock_power_manager.h31 class MockPowerManager : public PowerManager {
42 const PowerManager::SuspendImminentCallback& imminent_callback,
43 const PowerManager::SuspendDoneCallback& done_callback,
44 const PowerManager::DarkSuspendImminentCallback& dark_imminent));
Dpower_manager.h38 class PowerManager : public PowerManagerProxyDelegate {
61 PowerManager(EventDispatcher* dispatcher,
63 ~PowerManager() override;
149 DISALLOW_COPY_AND_ASSIGN(PowerManager);
Dpower_manager_unittest.cc205 PowerManager power_manager_;
208 PowerManager::SuspendImminentCallback suspend_imminent_callback_;
209 PowerManager::SuspendDoneCallback suspend_done_callback_;
210 PowerManager::DarkSuspendImminentCallback dark_suspend_imminent_callback_;
311 &power_manager_, &PowerManager::ReportSuspendReadiness))); in TEST_F()
323 &power_manager_, &PowerManager::ReportDarkSuspendReadiness))); in TEST_F()
Dmock_power_manager.cc23 : PowerManager(dispatcher, control_interface) {} in MockPowerManager()
Dmanager.h381 PowerManager* power_manager() const { return power_manager_.get(); } in power_manager()
781 void set_power_manager(PowerManager* power_manager) { in set_power_manager()
835 std::unique_ptr<PowerManager> power_manager_;
Dservice.cc990 PowerManager* power_manager = manager_->power_manager(); in NoteDisconnectEvent()
Dmanager.cc262 new PowerManager(dispatcher_, control_interface_)); in Start()
/system/nativepower/daemon/
Dpower_manager.cc37 const char PowerManager::kRebootPrefix[] = "reboot,";
38 const char PowerManager::kShutdownPrefix[] = "shutdown,";
39 const char PowerManager::kPowerStateSuspend[] = "mem";
41 PowerManager::PowerManager() in PowerManager() function in android::PowerManager
44 PowerManager::~PowerManager() = default;
46 bool PowerManager::Init() { in Init()
60 status_t PowerManager::acquireWakeLock(int flags, in acquireWakeLock()
71 status_t PowerManager::acquireWakeLockWithUid(int flags, in acquireWakeLockWithUid()
82 status_t PowerManager::releaseWakeLock(const sp<IBinder>& lock, in releaseWakeLock()
88 status_t PowerManager::updateWakeLockUids(const sp<IBinder>& lock, in updateWakeLockUids()
[all …]
Dpower_manager_unittest.cc38 : power_manager_(new PowerManager()), in PowerManagerTest()
73 sp<PowerManager> power_manager_;
126 EXPECT_EQ(PowerManager::kPowerStateSuspend, ReadPowerState()); in TEST_F()
139 EXPECT_EQ(PowerManager::kPowerStateSuspend, ReadPowerState()); in TEST_F()
144 EXPECT_EQ(PowerManager::kRebootPrefix, in TEST_F()
149 EXPECT_EQ(std::string(PowerManager::kRebootPrefix) + kRebootReasonRecovery, in TEST_F()
160 EXPECT_EQ(PowerManager::kShutdownPrefix, in TEST_F()
166 EXPECT_EQ(std::string(PowerManager::kShutdownPrefix) + in TEST_F()
Dpower_manager.h32 class PowerManager : public BnPowerManager {
43 PowerManager();
44 ~PowerManager() override;
107 DISALLOW_COPY_AND_ASSIGN(PowerManager);
Dmain.cc53 android::PowerManager power_manager_;