Searched refs:expectAvailable (Results 1 – 1 of 1) sorted by relevance
339 private void assertNetworkAccess(boolean expectAvailable, boolean needScreenOn) in assertNetworkAccess() argument346 error = checkNetworkAccess(expectAvailable); in assertNetworkAccess()355 Log.w(TAG, "Network status didn't match for expectAvailable=" + expectAvailable in assertNetworkAccess()368 fail("Invalid state for expectAvailable=" + expectAvailable + " after " + maxTries in assertNetworkAccess()377 private String checkNetworkAccess(boolean expectAvailable) throws Exception { in checkNetworkAccess() argument379 return checkForAvailabilityInResultData(resultData, expectAvailable); in checkNetworkAccess()382 private String checkForAvailabilityInResultData(String resultData, boolean expectAvailable) { in checkForAvailabilityInResultData() argument399 if (expectAvailable) { in checkForAvailabilityInResultData()407 if (expectAvailable != connected) { in checkForAvailabilityInResultData()409 expectAvailable, connected)); in checkForAvailabilityInResultData()