Home
last modified time | relevance | path

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

/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DTetheringConfigurationTest.java686 final String[] ncmRegexs = {"test_ncm\\d"}; in testNcmRegexs() local
692 setUsbAndNcmRegexs(rndisRegexs, ncmRegexs); in testNcmRegexs()
693 assertUsbAndNcmRegexs(rndisRegexs, ncmRegexs); in testNcmRegexs()
701 setUsbAndNcmRegexs(rndisRegexs, ncmRegexs); in testNcmRegexs()
702 assertUsbAndNcmRegexs(ncmRegexs, new String[0]); in testNcmRegexs()
709 setUsbAndNcmRegexs(rndisRegexs, ncmRegexs); in testNcmRegexs()
711 assertUsbAndNcmRegexs(rndisRegexs, ncmRegexs); in testNcmRegexs()
714 private void setUsbAndNcmRegexs(final String[] usbRegexs, final String[] ncmRegexs) { in setUsbAndNcmRegexs() argument
716 when(mResources.getStringArray(R.array.config_tether_ncm_regexs)).thenReturn(ncmRegexs); in setUsbAndNcmRegexs()
719 private void assertUsbAndNcmRegexs(final String[] usbRegexs, final String[] ncmRegexs) { in assertUsbAndNcmRegexs() argument
[all …]
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DTetheringConfiguration.java231 final String[] ncmRegexs = getResourceStringArray(res, R.array.config_tether_ncm_regexs); in TetheringConfiguration() local
234 if (isUsingNcm() && (ncmRegexs.length != 0)) { in TetheringConfiguration()
235 tetherableUsbRegexs = ncmRegexs; in TetheringConfiguration()
239 tetherableNcmRegexs = ncmRegexs; in TetheringConfiguration()