FactoryTestpublic final class FactoryTest extends Object Provides support for in-place factory test functions.
This class provides a few properties that alter the normal operation of the system
during factory testing.
{@hide} |
Fields Summary |
---|
public static final int | FACTORY_TEST_OFF | public static final int | FACTORY_TEST_LOW_LEVEL | public static final int | FACTORY_TEST_HIGH_LEVEL |
Methods Summary |
---|
public static int | getMode()Gets the current factory test mode.
return SystemProperties.getInt("ro.factorytest", FACTORY_TEST_OFF);
| public static boolean | isLongPressOnPowerOffEnabled()When true, long-press on power should immediately cause the device to
shut down, without prompting the user.
return SystemProperties.getInt("factory.long_press_power_off", 0) != 0;
|
|