FileDocCategorySizeDatePackage
FactoryTest.javaAPI DocAndroid 5.1 API1630Thu Mar 12 22:22:10 GMT 2015android.os

FactoryTest

public 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
Constructors Summary
Methods Summary
public static intgetMode()
Gets the current factory test mode.

return
One of: {@link #FACTORY_TEST_OFF}, {@link #FACTORY_TEST_LOW_LEVEL}, or {@link #FACTORY_TEST_HIGH_LEVEL}.


                         
        
        return SystemProperties.getInt("ro.factorytest", FACTORY_TEST_OFF);
    
public static booleanisLongPressOnPowerOffEnabled()
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;