public class PowerManager extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
PowerManager.WakeLock |
| Modifier and Type | Field and Description |
|---|---|
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
Deprecated.
|
static int |
SCREEN_DIM_WAKE_LOCK |
| Modifier and Type | Method and Description |
|---|---|
void |
goToSleep(long time) |
boolean |
isScreenOn() |
PowerManager.WakeLock |
newWakeLock(int flags,
String tag) |
void |
reboot(String reason) |
void |
userActivity(long when,
boolean noChangeLights) |
public static final int PARTIAL_WAKE_LOCK
public static final int FULL_WAKE_LOCK
@Deprecated public static final int SCREEN_BRIGHT_WAKE_LOCK
public static final int SCREEN_DIM_WAKE_LOCK
public static final int ACQUIRE_CAUSES_WAKEUP
public static final int ON_AFTER_RELEASE
public PowerManager.WakeLock newWakeLock(int flags, String tag)
public void userActivity(long when,
boolean noChangeLights)
public void goToSleep(long time)
public boolean isScreenOn()
public void reboot(String reason)
Copyright © 2008-2013. All Rights Reserved.