| bymason.platform.PowerManagerPrivileged |
A privileged extension of the existing android.os.PowerManager.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Reboot the device.
| |||||||||||
Shutdown the device.
| |||||||||||
Put the device to sleep.
| |||||||||||
Reboot the device.
| Parameters | |
|---|---|
confirm |
boolean: If true, shows a reboot confirmation dialog. |
reason |
String: code to pass to the kernel (e.g., "recovery") to request special boot modes, or null. |
wait |
boolean: If true, this call waits for the reboot to complete and does not return. |
Shutdown the device.
| Parameters | |
|---|---|
confirm |
boolean: If true, shows a shutdown confirmation dialog. |
reason |
String: code to pass to the kernel, or null. |
wait |
boolean: If true, this call waits for the shutdown to complete and does not return. |
Put the device to sleep. This is the default behavior of short-pressing the power button.