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.java608 final String[] ncmRegexs = {"test_ncm\\d"}; in testNcmRegexs() local
614 setUsbAndNcmRegexs(rndisRegexs, ncmRegexs); in testNcmRegexs()
615 assertUsbAndNcmRegexs(rndisRegexs, ncmRegexs); in testNcmRegexs()
623 setUsbAndNcmRegexs(rndisRegexs, ncmRegexs); in testNcmRegexs()
624 assertUsbAndNcmRegexs(ncmRegexs, new String[0]); in testNcmRegexs()
631 setUsbAndNcmRegexs(rndisRegexs, ncmRegexs); in testNcmRegexs()
633 assertUsbAndNcmRegexs(rndisRegexs, ncmRegexs); in testNcmRegexs()
636 private void setUsbAndNcmRegexs(final String[] usbRegexs, final String[] ncmRegexs) { in setUsbAndNcmRegexs() argument
638 when(mResources.getStringArray(R.array.config_tether_ncm_regexs)).thenReturn(ncmRegexs); in setUsbAndNcmRegexs()
641 private void assertUsbAndNcmRegexs(final String[] usbRegexs, final String[] ncmRegexs) { in assertUsbAndNcmRegexs() argument
[all …]
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DTetheringConfiguration.java173 final String[] ncmRegexs = getResourceStringArray(res, R.array.config_tether_ncm_regexs); in TetheringConfiguration() local
176 if (isUsingNcm() && (ncmRegexs.length != 0)) { in TetheringConfiguration()
177 tetherableUsbRegexs = ncmRegexs; in TetheringConfiguration()
181 tetherableNcmRegexs = ncmRegexs; in TetheringConfiguration()