FileDocCategorySizeDatePackage
ConnectivityManagerTestRunner.javaAPI DocAndroid 5.1 API2486Thu Mar 12 22:22:12 GMT 2015com.android.connectivitymanagertest

ConnectivityManagerTestRunner

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

Fields Summary
public boolean
mWifiOnly
public String
mSsid
public String
mPassword
Constructors Summary
Methods Summary
public junit.framework.TestSuitegetAllTests()


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

        return ConnectivityManagerTestRunner.class.getClassLoader();
    
public java.lang.StringgetWifiPassword()

        return mPassword;
    
public java.lang.StringgetWifiSsid()

        return mSsid;
    
public booleanisWifiOnly()

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

        super.onCreate(icicle);
        String ssid = icicle.getString("ssid");
        if (ssid != null) {
            mSsid = ssid;
        }
        String password = (String) icicle.get("password");
        if (password != null) {
            mPassword = password;
        }
        String wifiOnlyFlag = (String) icicle.get("wifi-only");
        if (wifiOnlyFlag != null) {
            mWifiOnly = true;
        }