android.os
Class PowerManager

java.lang.Object
  extended by android.os.PowerManager

public class PowerManager
extends Object


Nested Class Summary
 class PowerManager.WakeLock
           
 
Field Summary
static int ACQUIRE_CAUSES_WAKEUP
           
static int FULL_WAKE_LOCK
           
static int ON_AFTER_RELEASE
           
static int PARTIAL_WAKE_LOCK
           
static int SCREEN_BRIGHT_WAKE_LOCK
           
static int SCREEN_DIM_WAKE_LOCK
           
 
Method Summary
 void goToSleep(long time)
           
 boolean isScreenOn()
           
 PowerManager.WakeLock newWakeLock(int flags, String tag)
           
 void reboot(String reason)
           
 void userActivity(long when, boolean noChangeLights)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PARTIAL_WAKE_LOCK

public static final int PARTIAL_WAKE_LOCK
See Also:
Constant Field Values

FULL_WAKE_LOCK

public static final int FULL_WAKE_LOCK
See Also:
Constant Field Values

SCREEN_BRIGHT_WAKE_LOCK

public static final int SCREEN_BRIGHT_WAKE_LOCK
See Also:
Constant Field Values

SCREEN_DIM_WAKE_LOCK

public static final int SCREEN_DIM_WAKE_LOCK
See Also:
Constant Field Values

ACQUIRE_CAUSES_WAKEUP

public static final int ACQUIRE_CAUSES_WAKEUP
See Also:
Constant Field Values

ON_AFTER_RELEASE

public static final int ON_AFTER_RELEASE
See Also:
Constant Field Values
Method Detail

newWakeLock

public PowerManager.WakeLock newWakeLock(int flags,
                                         String tag)

userActivity

public void userActivity(long when,
                         boolean noChangeLights)

goToSleep

public void goToSleep(long time)

isScreenOn

public boolean isScreenOn()

reboot

public void reboot(String reason)


Copyright © 2008-2012. All Rights Reserved.