Searched refs:PowerManager (Results 1 – 12 of 12) sorted by relevance
/system/connectivity/shill/ |
D | power_manager.cc | 44 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 …]
|
D | mock_power_manager.h | 31 class MockPowerManager : public PowerManager { 42 const PowerManager::SuspendImminentCallback& imminent_callback, 43 const PowerManager::SuspendDoneCallback& done_callback, 44 const PowerManager::DarkSuspendImminentCallback& dark_imminent));
|
D | power_manager.h | 38 class PowerManager : public PowerManagerProxyDelegate { 61 PowerManager(EventDispatcher* dispatcher, 63 ~PowerManager() override; 149 DISALLOW_COPY_AND_ASSIGN(PowerManager);
|
D | power_manager_unittest.cc | 205 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()
|
D | mock_power_manager.cc | 23 : PowerManager(dispatcher, control_interface) {} in MockPowerManager()
|
D | manager.h | 381 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_;
|
D | service.cc | 990 PowerManager* power_manager = manager_->power_manager(); in NoteDisconnectEvent()
|
D | manager.cc | 262 new PowerManager(dispatcher_, control_interface_)); in Start()
|
/system/nativepower/daemon/ |
D | power_manager.cc | 37 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 …]
|
D | power_manager_unittest.cc | 38 : 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()
|
D | power_manager.h | 32 class PowerManager : public BnPowerManager { 43 PowerManager(); 44 ~PowerManager() override; 107 DISALLOW_COPY_AND_ASSIGN(PowerManager);
|
D | main.cc | 53 android::PowerManager power_manager_;
|