Home
last modified time | relevance | path

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

/packages/modules/Connectivity/tests/cts/hostside/app/src/com/android/cts/net/hostside/
DAbstractRestrictBackgroundNetworkTestCase.java380 private void assertNetworkAccess(boolean expectAvailable, boolean needScreenOn) in assertNetworkAccess() argument
387 error = checkNetworkAccess(expectAvailable); in assertNetworkAccess()
396 Log.w(TAG, "Network status didn't match for expectAvailable=" + expectAvailable in assertNetworkAccess()
409 fail("Invalid state for expectAvailable=" + expectAvailable + " after " + maxTries in assertNetworkAccess()
418 private String checkNetworkAccess(boolean expectAvailable) throws Exception { in checkNetworkAccess() argument
420 return checkForAvailabilityInResultData(resultData, expectAvailable); in checkNetworkAccess()
423 private String checkForAvailabilityInResultData(String resultData, boolean expectAvailable) { in checkForAvailabilityInResultData() argument
440 if (expectAvailable) { in checkForAvailabilityInResultData()
448 if (expectAvailable != connected) { in checkForAvailabilityInResultData()
450 expectAvailable, connected)); in checkForAvailabilityInResultData()
[all …]