public class PowerCtrl
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
BUNDLE_ERROR_CODE |
static java.lang.String |
BUNDLE_ERROR_MSG |
static int |
RESULT_CODE_ERROR |
static int |
RESULT_CODE_SUCCESS |
| Constructor and Description |
|---|
PowerCtrl(android.content.Context context)
Instantiates a new Power ctrl.
|
| Modifier and Type | Method and Description |
|---|---|
android.os.Bundle |
acquireWakeLock(long timeout)
Acquires the wake lock.
|
android.os.Bundle |
ColdBoot()
Factory Reset
|
android.os.Bundle |
releaseWakeLock()
Releases the wake lock.
|
android.os.Bundle |
WarmBoot()
Warm boot
|
public static final java.lang.String BUNDLE_ERROR_CODE
public static final java.lang.String BUNDLE_ERROR_MSG
public static final int RESULT_CODE_ERROR
public static final int RESULT_CODE_SUCCESS
public PowerCtrl(android.content.Context context)
context - the contextpublic android.os.Bundle ColdBoot()
public android.os.Bundle WarmBoot()
public android.os.Bundle acquireWakeLock(long timeout)
timeout - The timeout after which to release the wake lock, in milliseconds.public android.os.Bundle releaseWakeLock()