Methods Summary |
---|
public static native void | acquireWakeLock(int lock, java.lang.String id)
|
public static native void | reboot(java.lang.String reason)Reboot the device.
|
public static native void | releaseWakeLock(java.lang.String id)
|
public static native int | setLastUserActivityTimeout(long ms)
|
public static native int | setScreenState(boolean on)Turn the screen on or off
|
public static native void | shutdown()Turn the device off.
This method is considered deprecated in favor of
{@link android.policy.ShutdownThread.shutdownAfterDisablingRadio()}.
|