@Override public void onCreate(Bundle icicle) { super.onCreate(icicle); String ssidStr = (String) icicle.get("ssid"); if (ssidStr != null) { mSsid = ssidStr; } String serverStr = (String) icicle.get("server"); if (serverStr != null) { mTestServer = serverStr; } }
@Override public void onCreate(Bundle icicle) { this.mTestPath = (String) icicle.get("path"); String timeout_str = (String) icicle.get("timeout"); if (timeout_str != null) { try { this.mTimeoutInMillis = Integer.parseInt(timeout_str); } catch (Exception e) { e.printStackTrace(); } } String r = (String) icicle.get("rebaseline"); this.mRebaseline = (r != null && r.toLowerCase().equals("true")); super.onCreate(icicle); }
/** Gets the parameter port which is used to fix GPS signal to emulators. */ @Override public void onCreate(Bundle arguments) { String portNumber = arguments.getString("port"); if (portNumber != null) { try { EndToEndTestUtils.emulatorPort = Integer.parseInt(portNumber); } catch (Exception e) { Log.e( EndToEndTestUtils.LOG_TAG, "Unable to get port parameter, use default value." + EndToEndTestUtils.emulatorPort, e); } } String isStressTest = arguments.getString("stress"); if (isStressTest != null && isStressTest.equalsIgnoreCase("true")) { BigTestUtils.runStressTest = true; } else { BigTestUtils.runStressTest = false; } String isSensorTest = arguments.getString("sensor"); if (isSensorTest != null && isSensorTest.equalsIgnoreCase("true")) { BigTestUtils.runSensorTest = true; } else { BigTestUtils.runSensorTest = false; } Log.d( EndToEndTestUtils.LOG_TAG, "Use port number when run test on emulator:" + EndToEndTestUtils.emulatorPort); Log.i(EndToEndTestUtils.LOG_TAG, "Run stress test:" + BigTestUtils.runStressTest); Log.i(EndToEndTestUtils.LOG_TAG, "Run sensor test:" + BigTestUtils.runSensorTest); super.onCreate(arguments); }