Home
last modified time | relevance | path

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

/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/
DAbstractRestrictBackgroundNetworkTestCase.java339 private void assertNetworkAccess(boolean expectAvailable, boolean needScreenOn) in assertNetworkAccess() argument
346 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() argument
379 return checkForAvailabilityInResultData(resultData, expectAvailable); in checkNetworkAccess()
382 private String checkForAvailabilityInResultData(String resultData, boolean expectAvailable) { in checkForAvailabilityInResultData() argument
399 if (expectAvailable) { in checkForAvailabilityInResultData()
407 if (expectAvailable != connected) { in checkForAvailabilityInResultData()
409 expectAvailable, connected)); in checkForAvailabilityInResultData()