Home
last modified time | relevance | path

Searched refs:urlToCheck (Results 1 – 6 of 6) sorted by relevance

/tools/tradefederation/core/util-apps/WifiUtil/src/com/android/tradefed/utils/wifi/
DWifiMonitorService.java101 final String urlToCheck = getStringExtra(intent, EXTRA_URL_TO_CHECK, in monitor() local
105 writer.write(String.format("%d,", checkLatency(urlToCheck))); in monitor()
119 final String urlToCheck = getStringExtra(intent, EXTRA_URL_TO_CHECK, in reconnect() local
121 Log.d(TAG, "checking network connection with " + urlToCheck); in reconnect()
122 long latency = checkLatency(urlToCheck); in reconnect()
126 connector.reconnectToLastNetwork(urlToCheck); in reconnect()
147 private static long checkLatency(final String urlToCheck) { in checkLatency() argument
151 httpclient.execute(new HttpGet(urlToCheck)); in checkLatency()
185 final String urlToCheck) { in enable() argument
186 if (interval <= 0 || urlToCheck == null) { in enable()
[all …]
DWifiConnector.java196 public boolean checkConnectivity(final String urlToCheck) { in checkConnectivity() argument
199 httpclient.execute(new HttpGet(urlToCheck)); in checkConnectivity()
217 public void connectToNetwork(final String ssid, final String psk, final String urlToCheck, in connectToNetwork() argument
276 return checkConnectivity(urlToCheck); in connectToNetwork()
278 }, String.format("request to %s (ssid: %s)", urlToCheck, ssid), connectTimeout); in connectToNetwork()
291 public void connectToNetwork(final String ssid, final String psk, final String urlToCheck, in connectToNetwork() argument
294 connectToNetwork(ssid, psk, urlToCheck, -1, false); in connectToNetwork()
306 public void connectToNetwork(final String ssid, final String psk, final String urlToCheck) in connectToNetwork() argument
308 connectToNetwork(ssid, psk, urlToCheck, -1); in connectToNetwork()
368 public void reconnectToLastNetwork(String urlToCheck) throws WifiException { in reconnectToLastNetwork() argument
[all …]
DWifiUtil.java269 final String urlToCheck = getString("urlToCheck", DEFAULT_URL_TO_CHECK); in onStart() local
271 WifiMonitorService.enable(getContext(), interval, urlToCheck); in onStart() local
/tools/tradefederation/core/src/com/android/tradefed/device/
DIWifiHelper.java213 boolean checkConnectivity(String urlToCheck) throws DeviceNotAvailableException; in checkConnectivity() argument
224 boolean connectToNetwork(String ssid, String psk, String urlToCheck) in connectToNetwork() argument
237 boolean connectToNetwork(String ssid, String psk, String urlToCheck, boolean scanSsid) in connectToNetwork() argument
256 boolean startMonitor(long interval, String urlToCheck) throws DeviceNotAvailableException; in startMonitor() argument
DWifiHelper.java431 public boolean checkConnectivity(String urlToCheck) throws DeviceNotAvailableException { in checkConnectivity() argument
432 return asBool(runWifiUtil("checkConnectivity", "urlToCheck", urlToCheck)); in checkConnectivity()
439 public boolean connectToNetwork(String ssid, String psk, String urlToCheck) in connectToNetwork() argument
441 return connectToNetwork(ssid, psk, urlToCheck, false); in connectToNetwork()
448 public boolean connectToNetwork(String ssid, String psk, String urlToCheck, in connectToNetwork() argument
451 urlToCheck, "scan_ssid", Boolean.toString(scanSsid))); in connectToNetwork()
466 … public boolean startMonitor(long interval, String urlToCheck) throws DeviceNotAvailableException { in startMonitor() argument
468 urlToCheck)); in startMonitor()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/
DWifiHelperTest.java112 final String urlToCheck = "urlToCheck"; in testStartMonitor() local
114 "interval", Long.toString(interval), "urlToCheck", urlToCheck); in testStartMonitor()
119 assertTrue(wifiHelper.startMonitor(interval, urlToCheck)); in testStartMonitor()