/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/ |
D | OsuProviderInfoTest.java | 98 List<I18Name> friendlyNames = new ArrayList<>(); in getFriendlyNameMatchingDefaultLocale() local 106 friendlyNames.add( in getFriendlyNameMatchingDefaultLocale() 108 friendlyNames.add(new I18Name(defaultLocale.getLanguage(), defaultLocale, defaultString)); in getFriendlyNameMatchingDefaultLocale() 110 new OsuProviderInfo(friendlyNames, null, null, null, null, null); in getFriendlyNameMatchingDefaultLocale() 122 List<I18Name> friendlyNames = new ArrayList<>(); in getFriendlyNameNotMatchingDefaultLocale() local 129 friendlyNames.add( in getFriendlyNameNotMatchingDefaultLocale() 131 friendlyNames.add( in getFriendlyNameNotMatchingDefaultLocale() 134 new OsuProviderInfo(friendlyNames, null, null, null, null, null); in getFriendlyNameNotMatchingDefaultLocale()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/ |
D | PasspointProvisioningTestUtil.java | 64 Map<String, String> friendlyNames = new HashMap<>(); in generateOsuProvider() local 65 friendlyNames.put("en", TEST_FRIENDLY_NAME); in generateOsuProvider() 66 return generateOsuProviderWithFriendlyName(openOsuAP, friendlyNames); in generateOsuProvider() 77 Map<String, String> friendlyNames) { in generateOsuProviderWithFriendlyName() argument 79 return new OsuProvider(TEST_SSID, friendlyNames, in generateOsuProviderWithFriendlyName() 83 return new OsuProvider(TEST_SSID, friendlyNames, in generateOsuProviderWithFriendlyName()
|
D | OsuServerConnectionTest.java | 177 Map<String, String> friendlyNames = new HashMap<>(); in verifyValidateProviderWithMultipleProviderLangs() local 178 friendlyNames.put( in verifyValidateProviderWithMultipleProviderLangs() 180 friendlyNames.put(Locale.US.getISO3Language(), PROVIDER_NAME_VALID); in verifyValidateProviderWithMultipleProviderLangs() 182 assertTrue(mOsuServerConnection.validateProvider(friendlyNames)); in verifyValidateProviderWithMultipleProviderLangs() 203 Map<String, String> friendlyNames = new HashMap<>(); in verifyValidateProviderWithMismatchedProviderLang() local 204 friendlyNames.put( in verifyValidateProviderWithMismatchedProviderLang() 207 assertFalse(mOsuServerConnection.validateProvider(friendlyNames)); in verifyValidateProviderWithMismatchedProviderLang() 228 Map<String, String> friendlyNames = new HashMap<>(); in verifyValidateProviderWithSameLangButDifferentRegion() local 229 friendlyNames.put( in verifyValidateProviderWithSameLangButDifferentRegion() 232 assertTrue(mOsuServerConnection.validateProvider(friendlyNames)); in verifyValidateProviderWithSameLangButDifferentRegion()
|
D | PasspointManagerTest.java | 445 Map<String, String> friendlyNames = new HashMap<>(); in addTestProvider() local 446 friendlyNames.put("en", friendlyName); in addTestProvider() 447 friendlyNames.put("kr", friendlyName + 1); in addTestProvider() 448 friendlyNames.put("jp", friendlyName + 2); in addTestProvider() 449 config.setServiceFriendlyNames(friendlyNames); in addTestProvider() 1522 List<I18Name> friendlyNames = Arrays.asList( in getMatchingOsuProvidersWithMatch() local 1528 friendlyNames.forEach(e -> friendlyNameMap.put(e.getLanguage(), e.getText())); in getMatchingOsuProvidersWithMatch() 1536 friendlyNames, serverUri, methodList, null, nai, serviceDescriptions)); in getMatchingOsuProvidersWithMatch() 1541 friendlyNames, serverUri, methodList, null, nai, serviceDescriptions)); in getMatchingOsuProvidersWithMatch() 1590 Map<String, String> friendlyNames = new HashMap<>(); in getMatchingPasspointConfigsForOsuProvidersWithMatch() local [all …]
|
/packages/modules/Wifi/framework/tests/src/android/net/wifi/hotspot2/ |
D | PasspointTestUtils.java | 159 Map<String, String> friendlyNames = new HashMap<>(); in createConfig() local 160 friendlyNames.put("en", "ServiceName1"); in createConfig() 161 friendlyNames.put("kr", "ServiceName2"); in createConfig() 162 config.setServiceFriendlyNames(friendlyNames); in createConfig()
|
D | PasspointConfigurationTest.java | 745 HashMap<String, String> friendlyNames = new HashMap<>(); in testValidatePasspointConfig() local 747 friendlyNames.put(String.valueOf(i), String.valueOf(i)); in testValidatePasspointConfig() 749 passpointConfiguration.setServiceFriendlyNames(friendlyNames); in testValidatePasspointConfig()
|
/packages/modules/Wifi/framework/java/android/net/wifi/hotspot2/ |
D | OsuProvider.java | 89 public OsuProvider(String osuSsid, Map<String, String> friendlyNames, in OsuProvider() argument 92 friendlyNames, serviceDescription, serverUri, nai, methodList); in OsuProvider() 96 public OsuProvider(WifiSsid osuSsid, Map<String, String> friendlyNames, in OsuProvider() argument 99 mFriendlyNames = friendlyNames; in OsuProvider()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/anqp/ |
D | OsuProviderInfo.java | 83 public OsuProviderInfo(List<I18Name> friendlyNames, Uri serverUri, List<Integer> methodList, in OsuProviderInfo() argument 86 if (friendlyNames != null) { in OsuProviderInfo() 87 friendlyNames.forEach( in OsuProviderInfo()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/ |
D | OsuServerConnection.java | 209 Map<String, String> friendlyNames) { in validateProvider() argument 211 if (friendlyNames.size() == 0) { in validateProvider() 221 friendlyNames.get(identity.first.getISO3Language()))) { in validateProvider()
|