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.java97 final String urlToCheck = getStringExtra(intent, EXTRA_URL_TO_CHECK, in monitor() local
101 writer.write(String.format("%d,", checkLatency(urlToCheck))); in monitor()
115 final String urlToCheck = getStringExtra(intent, EXTRA_URL_TO_CHECK, in reconnect() local
117 Log.d(TAG, "checking network connection with " + urlToCheck); in reconnect()
118 long latency = checkLatency(urlToCheck); in reconnect()
122 connector.reconnectToLastNetwork(urlToCheck); in reconnect()
143 private static long checkLatency(final String urlToCheck) { in checkLatency() argument
145 if (!WifiConnector.checkConnectivity(urlToCheck)) { in checkLatency()
178 final String urlToCheck) { in enable() argument
179 if (interval <= 0 || urlToCheck == null) { in enable()
[all …]
DWifiConnector.java197 public static boolean checkConnectivity(final String urlToCheck) { in checkConnectivity() argument
200 url = new URL(urlToCheck); in checkConnectivity()
229 public void connectToNetwork(final String ssid, final String psk, final String urlToCheck, in connectToNetwork() argument
288 return checkConnectivity(urlToCheck); in connectToNetwork()
290 }, String.format("request to %s (ssid: %s)", urlToCheck, ssid), connectTimeout); in connectToNetwork()
303 public void connectToNetwork(final String ssid, final String psk, final String urlToCheck, in connectToNetwork() argument
306 connectToNetwork(ssid, psk, urlToCheck, -1, false); in connectToNetwork()
318 public void connectToNetwork(final String ssid, final String psk, final String urlToCheck) in connectToNetwork() argument
320 connectToNetwork(ssid, psk, urlToCheck, -1); in connectToNetwork()
371 public void reconnectToLastNetwork(String urlToCheck) throws WifiException { in reconnectToLastNetwork() argument
[all …]
DWifiUtil.java279 final String urlToCheck = getString("urlToCheck", DEFAULT_URL_TO_CHECK); in onStart() local
281 WifiMonitorService.enable(getContext(), interval, urlToCheck); in onStart() local
/tools/tradefederation/core/src/com/android/tradefed/device/
DWifiHelper.java439 public boolean checkConnectivity(String urlToCheck) throws DeviceNotAvailableException { in checkConnectivity() argument
440 return asBool(runWifiUtil("checkConnectivity", "urlToCheck", urlToCheck)); in checkConnectivity()
447 public boolean connectToNetwork(String ssid, String psk, String urlToCheck) in connectToNetwork() argument
449 return connectToNetwork(ssid, psk, urlToCheck, false); in connectToNetwork()
456 public boolean connectToNetwork(String ssid, String psk, String urlToCheck, in connectToNetwork() argument
463 urlToCheck, "scan_ssid", Boolean.toString(scanSsid)))) { in connectToNetwork()
490 … public boolean startMonitor(long interval, String urlToCheck) throws DeviceNotAvailableException { in startMonitor() argument
492 urlToCheck)); in startMonitor()
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
/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()