public interface

PowerManagerPrivileged

bymason.platform.PowerManagerPrivileged

Class Overview

A privileged extension of the existing android.os.PowerManager.

Summary

Public Methods
abstract void reboot(boolean confirm, String reason, boolean wait)
Reboot the device.
abstract void shutdown(boolean confirm, String reason, boolean wait)
Shutdown the device.
abstract void sleep()
Put the device to sleep.

Public Methods

public abstract void reboot (boolean confirm, String reason, boolean wait)

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.

public abstract void shutdown (boolean confirm, String reason, boolean wait)

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.

public abstract void sleep ()

Put the device to sleep. This is the default behavior of short-pressing the power button.