Searched refs:ifaceRegexs (Results 1 – 2 of 2) sorted by relevance
/packages/modules/Connectivity/tests/cts/tethering/src/android/tethering/cts/ |
D | TetheringManagerTest.java | 159 public void expectTethering(final boolean active, final String[] ifaceRegexs) { in expectTethering() argument 161 final TetherState state = pollAndAssertNoError(DEFAULT_TIMEOUT_MS, ifaceRegexs); in expectTethering() 164 if (isIfaceActive(ifaceRegexs, state) == active) return; in expectTethering() 168 private TetherState pollAndAssertNoError(final int timeout, final String[] ifaceRegexs) { in pollAndAssertNoError() argument 170 assertNoErroredIfaces(state, ifaceRegexs); in pollAndAssertNoError() 183 private boolean isIfaceActive(final String[] ifaceRegexs, final TetherState state) { in isIfaceActive() argument 184 return isAnyIfaceMatch(ifaceRegexs, state.mActive); in isIfaceActive() 187 private void assertNoErroredIfaces(final TetherState state, final String[] ifaceRegexs) { in assertNoErroredIfaces() argument 190 if (isAnyIfaceMatch(ifaceRegexs, state.mErrored)) { in assertNoErroredIfaces()
|
/packages/modules/Connectivity/tests/cts/net/util/java/android/net/cts/util/ |
D | CtsTetheringUtils.java | 128 private static boolean isRegexMatch(final String[] ifaceRegexs, String iface) { in isRegexMatch() argument 129 if (ifaceRegexs == null) fail("ifaceRegexs should not be null"); in isRegexMatch() 131 for (String regex : ifaceRegexs) { in isRegexMatch() 138 public static boolean isAnyIfaceMatch(final String[] ifaceRegexs, final List<String> ifaces) { in isAnyIfaceMatch() argument 142 if (isRegexMatch(ifaceRegexs, s)) return true; in isAnyIfaceMatch()
|