Lines Matching refs:PowerManager
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()
97 status_t PowerManager::powerHint(int hintId, int data) { in powerHint()
102 status_t PowerManager::goToSleep(int64_t event_time_ms, int reason, int flags) { in goToSleep()
126 status_t PowerManager::reboot(bool confirm, const String16& reason, bool wait) { in reboot()
142 status_t PowerManager::shutdown(bool confirm, in shutdown()
160 status_t PowerManager::crash(const String16& message) { in crash()
165 bool PowerManager::AddWakeLockRequest(const sp<IBinder>& lock, in AddWakeLockRequest()