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.java95 final String urlToCheck = getStringExtra(intent, EXTRA_URL_TO_CHECK, in monitor() local
99 writer.write(String.format("%d,", checkLatency(urlToCheck))); in monitor()
113 final String urlToCheck = getStringExtra(intent, EXTRA_URL_TO_CHECK, in reconnect() local
115 Log.d(TAG, "checking network connection with " + urlToCheck); in reconnect()
116 long latency = checkLatency(urlToCheck); in reconnect()
120 connector.reconnectToLastNetwork(urlToCheck); in reconnect()
141 private static long checkLatency(final String urlToCheck) { in checkLatency() argument
143 if (!WifiConnector.checkConnectivity(urlToCheck)) { in checkLatency()
176 final String urlToCheck) { in enable() argument
177 if (interval <= 0 || urlToCheck == null) { in enable()
[all …]
DWifiConnector.java208 public static boolean checkConnectivity(final String urlToCheck) { in checkConnectivity() argument
211 url = new URL(urlToCheck); in checkConnectivity()
246 final String urlToCheck, in connectToNetwork() argument
307 return checkConnectivity(urlToCheck); in connectToNetwork()
309 }, String.format("request to %s (ssid: %s)", urlToCheck, ssid), connectTimeout); in connectToNetwork()
323 final String ssid, final String psk, final String urlToCheck, long connectTimeout) in connectToNetwork() argument
325 connectToNetwork(ssid, psk, urlToCheck, -1, false, false); in connectToNetwork()
337 public void connectToNetwork(final String ssid, final String psk, final String urlToCheck) in connectToNetwork() argument
339 connectToNetwork(ssid, psk, urlToCheck, -1); in connectToNetwork()
390 public void reconnectToLastNetwork(String urlToCheck) throws WifiException { in reconnectToLastNetwork() argument
[all …]
DWifiUtil.java290 final String urlToCheck = getString("urlToCheck", DEFAULT_URL_TO_CHECK); in onStart() local
292 WifiMonitorService.enable(getContext(), interval, urlToCheck); in onStart() local
/tools/tradefederation/core/src/com/android/tradefed/device/
DIWifiHelper.java219 boolean checkConnectivity(String urlToCheck) throws DeviceNotAvailableException; in checkConnectivity() argument
230 boolean connectToNetwork(String ssid, String psk, String urlToCheck) in connectToNetwork() argument
244 String ssid, String psk, String urlToCheck, boolean scanSsid) in connectToNetwork() argument
260 String ssid, String psk, String urlToCheck, boolean scanSsid, String defaultType) in connectToNetwork() argument
279 boolean startMonitor(long interval, String urlToCheck) throws DeviceNotAvailableException; in startMonitor() argument
DWifiHelper.java537 public boolean checkConnectivity(String urlToCheck) throws DeviceNotAvailableException { in checkConnectivity() argument
541 return asBool(runWifiUtil("checkConnectivity", "urlToCheck", urlToCheck)); in checkConnectivity()
563 public boolean connectToNetwork(String ssid, String psk, String urlToCheck) in connectToNetwork() argument
565 return WifiConnectionResult.SUCCESS == connectToNetwork(ssid, psk, urlToCheck, false); in connectToNetwork()
571 String ssid, String psk, String urlToCheck, boolean scanSsid) in connectToNetwork() argument
573 return connectToNetwork(ssid, psk, urlToCheck, scanSsid, null); in connectToNetwork()
578 String ssid, String psk, String urlToCheck, boolean scanSsid, String defaultType) in connectToNetwork() argument
589 urlToCheck, "scan_ssid", Boolean.toString(scanSsid)))) { in connectToNetwork()
708 … public boolean startMonitor(long interval, String urlToCheck) throws DeviceNotAvailableException { in startMonitor() argument
710 urlToCheck)); in startMonitor()
/tools/tradefederation/core/javatests/com/android/tradefed/device/
DWifiHelperTest.java128 final String urlToCheck = "urlToCheck"; in testStartMonitor() local
130 "interval", Long.toString(interval), "urlToCheck", urlToCheck); in testStartMonitor()
140 assertTrue(wifiHelper.startMonitor(interval, urlToCheck)); in testStartMonitor()