public final class FactoryTest extends Object
Modifier and Type | Field and Description |
---|---|
static int |
FACTORY_TEST_HIGH_LEVEL |
static int |
FACTORY_TEST_LOW_LEVEL |
static int |
FACTORY_TEST_OFF |
Constructor and Description |
---|
FactoryTest() |
Modifier and Type | Method and Description |
---|---|
static int |
getMode()
Gets the current factory test mode.
|
static boolean |
isLongPressOnPowerOffEnabled()
When true, long-press on power should immediately cause the device to
shut down, without prompting the user.
|
public static final int FACTORY_TEST_OFF
public static final int FACTORY_TEST_LOW_LEVEL
public static final int FACTORY_TEST_HIGH_LEVEL
public static int getMode()
FACTORY_TEST_OFF
, FACTORY_TEST_LOW_LEVEL
,
or FACTORY_TEST_HIGH_LEVEL
.public static boolean isLongPressOnPowerOffEnabled()