FileDocCategorySizeDatePackage
ConnectivityManagerStressTestRunner.javaAPI DocAndroid 5.1 API4177Thu Mar 12 22:22:12 GMT 2015com.android.connectivitymanagertest

ConnectivityManagerStressTestRunner

public class ConnectivityManagerStressTestRunner extends android.test.InstrumentationTestRunner
Instrumentation Test Runner for all stress tests To run the stress tests: adb shell am instrument -e stressnum \ -w com.android.connectivitymanagertest/.ConnectivityManagerStressTestRunner

Fields Summary
private int
mSoftApIterations
private int
mScanIterations
private int
mReconnectIterations
private long
mSleepTime
private String
mReconnectSsid
private String
mReconnectPassword
private boolean
mWifiOnlyFlag
Constructors Summary
Methods Summary
public junit.framework.TestSuitegetAllTests()


    
       
        TestSuite suite = new InstrumentationTestSuite(this);
        suite.addTestSuite(WifiApStress.class);
        suite.addTestSuite(WifiStressTest.class);
        return suite;
    
public java.lang.ClassLoadergetLoader()

        return ConnectivityManagerTestRunner.class.getClassLoader();
    
public intgetReconnectIterations()

        return mReconnectIterations;
    
public java.lang.StringgetReconnectPassword()

        return mReconnectPassword;
    
public java.lang.StringgetReconnectSsid()

        return mReconnectSsid;
    
public intgetScanIterations()

        return mScanIterations;
    
public longgetSleepTime()

        return mSleepTime;
    
public intgetSoftApInterations()

        return mSoftApIterations;
    
public booleanisWifiOnly()

        return mWifiOnlyFlag;
    
public voidonCreate(android.os.Bundle icicle)

        super.onCreate(icicle);
        String valueStr = icicle.getString("softap_iterations");
        if (valueStr != null) {
            int iteration = Integer.parseInt(valueStr);
            if (iteration > 0) {
                mSoftApIterations = iteration;
            }
        }

        String scanIterationStr = icicle.getString("scan_iterations");
        if (scanIterationStr != null) {
            int scanIteration = Integer.parseInt(scanIterationStr);
            if (scanIteration > 0) {
                mScanIterations = scanIteration;
            }
        }

        String ssidStr= icicle.getString("reconnect_ssid");
        if (ssidStr != null) {
            mReconnectSsid = ssidStr;
        }

        String passwordStr = icicle.getString("reconnect_password");
        if (passwordStr != null) {
            mReconnectPassword = passwordStr;
        }

        String reconnectStr = icicle.getString("reconnect_iterations");
        if (reconnectStr != null) {
            int iteration = Integer.parseInt(reconnectStr);
            if (iteration > 0) {
                mReconnectIterations = iteration;
            }
        }

        String sleepTimeStr = icicle.getString("sleep_time");
        if (sleepTimeStr != null) {
            int sleepTime = Integer.parseInt(sleepTimeStr);
            if (sleepTime > 0) {
                mSleepTime = 1000 * sleepTime;
            }
        }

        String wifiOnlyFlag = icicle.getString("wifi-only");
        if (wifiOnlyFlag != null) {
            mWifiOnlyFlag = true;
        }