/packages/modules/Wifi/framework/tests/src/android/net/wifi/hotspot2/pps/ |
D | HomeSpTest.java | 62 HomeSp homeSp = new HomeSp(); in createHomeSp() local 63 homeSp.setFqdn("fqdn"); in createHomeSp() 64 homeSp.setFriendlyName("friendly name"); in createHomeSp() 65 homeSp.setIconUrl("icon.url"); in createHomeSp() 66 homeSp.setHomeNetworkIds(homeNetworkIds); in createHomeSp() 67 homeSp.setMatchAllOis(new long[] {0x11L, 0x22L}); in createHomeSp() 68 homeSp.setMatchAnyOis(new long[] {0x33L, 0x44L}); in createHomeSp() 69 homeSp.setOtherHomePartners(OTHER_HOME_PARTNER_LIST); in createHomeSp() 70 homeSp.setRoamingConsortiumOis(new long[] {0x55, 0x66}); in createHomeSp() 71 return homeSp; in createHomeSp() [all …]
|
/packages/modules/Wifi/framework/tests/src/android/net/wifi/hotspot2/ |
D | PasspointConfigurationTest.java | 418 HomeSp homeSp = config2.getHomeSp(); in validateUniqueIdDifferentHomeSpSameFqdn() local 419 homeSp.setRoamingConsortiumOis(new long[] {0xaa, 0xbb}); in validateUniqueIdDifferentHomeSpSameFqdn() 420 homeSp.setFriendlyName("Some other name"); in validateUniqueIdDifferentHomeSpSameFqdn() 421 config2.setHomeSp(homeSp); in validateUniqueIdDifferentHomeSpSameFqdn() 438 HomeSp homeSp = config2.getHomeSp(); in validateUniqueIdSameHomeSpDifferentFqdn() local 439 homeSp.setFqdn("fqdn2.com"); in validateUniqueIdSameHomeSpDifferentFqdn() 440 config2.setHomeSp(homeSp); in validateUniqueIdSameHomeSpDifferentFqdn() 688 HomeSp homeSp = new HomeSp(); in testValidatePasspointConfig() local 689 homeSp.setFqdn(Strings.repeat("A", MAX_STRING_LENGTH)); in testValidatePasspointConfig() 690 homeSp.setFriendlyName(Strings.repeat("A", MAX_STRING_LENGTH)); in testValidatePasspointConfig() [all …]
|
D | ConfigParserTest.java | 89 HomeSp homeSp = new HomeSp(); in generateConfigurationFromProfile() local 90 homeSp.setFriendlyName("Example Network"); in generateConfigurationFromProfile() 91 homeSp.setFqdn("hotspot.example.net"); in generateConfigurationFromProfile() 92 homeSp.setRoamingConsortiumOis(new long[] {0x112233L, 0x445566L}); in generateConfigurationFromProfile() 93 config.setHomeSp(homeSp); in generateConfigurationFromProfile()
|
D | PasspointTestUtils.java | 44 HomeSp homeSp = new HomeSp(); in createHomeSp() local 45 homeSp.setFqdn("fqdn"); in createHomeSp() 46 homeSp.setFriendlyName("friendly name"); in createHomeSp() 47 homeSp.setRoamingConsortiumOis(new long[] {0x55, 0x66}); in createHomeSp() 48 return homeSp; in createHomeSp()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/ |
D | PasspointXmlUtilsTest.java | 106 HomeSp homeSp = new HomeSp(); in createFullPasspointConfiguration() local 107 homeSp.setFriendlyName("Century House"); in createFullPasspointConfiguration() 108 homeSp.setFqdn("mi6.co.uk"); in createFullPasspointConfiguration() 109 homeSp.setRoamingConsortiumOis(new long[] {0x112233L, 0x445566L}); in createFullPasspointConfiguration() 110 homeSp.setIconUrl("icon.test.com"); in createFullPasspointConfiguration() 114 homeSp.setHomeNetworkIds(homeNetworkIds); in createFullPasspointConfiguration() 115 homeSp.setMatchAllOis(new long[] {0x11223344}); in createFullPasspointConfiguration() 116 homeSp.setMatchAnyOis(new long[] {0x55667788}); in createFullPasspointConfiguration() 117 homeSp.setOtherHomePartners(new String[] {"other.fqdn.com"}); in createFullPasspointConfiguration() 118 config.setHomeSp(homeSp); in createFullPasspointConfiguration() [all …]
|
D | PasspointConfigUserStoreDataTest.java | 139 HomeSp homeSp = new HomeSp(); in createFullPasspointConfiguration() local 140 homeSp.setFriendlyName("Century House"); in createFullPasspointConfiguration() 141 homeSp.setFqdn("mi6.co.uk"); in createFullPasspointConfiguration() 142 homeSp.setRoamingConsortiumOis(new long[] {0x112233L, 0x445566L}); in createFullPasspointConfiguration() 143 homeSp.setIconUrl("icon.test.com"); in createFullPasspointConfiguration() 147 homeSp.setHomeNetworkIds(homeNetworkIds); in createFullPasspointConfiguration() 148 homeSp.setMatchAllOis(new long[] {0x11223344}); in createFullPasspointConfiguration() 149 homeSp.setMatchAnyOis(new long[] {0x55667788}); in createFullPasspointConfiguration() 150 homeSp.setOtherHomePartners(new String[] {"other.fqdn.com"}); in createFullPasspointConfiguration() 151 config.setHomeSp(homeSp); in createFullPasspointConfiguration()
|
D | PasspointProviderTest.java | 278 HomeSp homeSp = new HomeSp(); in generateTestPasspointConfiguration() local 279 homeSp.setFqdn(TEST_FQDN); in generateTestPasspointConfiguration() 280 homeSp.setFriendlyName(TEST_FRIENDLY_NAME); in generateTestPasspointConfiguration() 281 homeSp.setRoamingConsortiumOis(TEST_RC_OIS); in generateTestPasspointConfiguration() 282 config.setHomeSp(homeSp); in generateTestPasspointConfiguration() 336 HomeSp homeSp = passpointConfig.getHomeSp(); in verifyWifiConfigWithTestData() local 342 assertEquals(homeSp.getFqdn(), wifiConfig.FQDN); in verifyWifiConfigWithTestData() 343 assertEquals(homeSp.getFriendlyName(), wifiConfig.providerFriendlyName); in verifyWifiConfigWithTestData() 344 assertTrue(Arrays.equals(homeSp.getRoamingConsortiumOis(), in verifyWifiConfigWithTestData() 405 assertEquals(homeSp.getFqdn(), wifiEnterpriseConfig.getDomainSuffixMatch()); in verifyWifiConfigWithTestData() [all …]
|
D | PasspointManagerTest.java | 382 HomeSp homeSp = new HomeSp(); in createTestConfigWithUserCredentialAndRealm() local 383 homeSp.setFqdn(fqdn); in createTestConfigWithUserCredentialAndRealm() 384 homeSp.setFriendlyName(friendlyName); in createTestConfigWithUserCredentialAndRealm() 385 config.setHomeSp(homeSp); in createTestConfigWithUserCredentialAndRealm() 407 HomeSp homeSp = new HomeSp(); in createTestConfigWithSimCredential() local 408 homeSp.setFqdn(fqdn); in createTestConfigWithSimCredential() 409 homeSp.setFriendlyName(TEST_FRIENDLY_NAME); in createTestConfigWithSimCredential() 410 config.setHomeSp(homeSp); in createTestConfigWithSimCredential() 1714 HomeSp homeSp = new HomeSp(); in addLegacyPasspointConfigWithUserCredential() local 1715 homeSp.setFqdn(fqdn); in addLegacyPasspointConfigWithUserCredential() [all …]
|
D | PasspointProvisionerTest.java | 271 HomeSp homeSp = new HomeSp(); in setUp() local 272 homeSp.setFqdn("test.com"); in setUp() 273 when(mPasspointConfiguration.getHomeSp()).thenReturn(homeSp); in setUp()
|
D | PasspointNetworkNominateHelperTest.java | 131 HomeSp homeSp = new HomeSp(); in generateProvider() local 132 homeSp.setFqdn(config.FQDN); in generateProvider() 133 passpointConfig.setHomeSp(homeSp); in generateProvider()
|
/packages/modules/Wifi/framework/tests/src/android/net/wifi/hotspot2/omadm/ |
D | PpsMoParserTest.java | 127 HomeSp homeSp = new HomeSp(); in generateConfigurationFromPPSMOTree() local 128 homeSp.setFriendlyName("Century House"); in generateConfigurationFromPPSMOTree() 129 homeSp.setFqdn("mi6.co.uk"); in generateConfigurationFromPPSMOTree() 130 homeSp.setRoamingConsortiumOis(new long[]{0x112233L, 0x445566L}); in generateConfigurationFromPPSMOTree() 131 homeSp.setIconUrl("icon.test.com"); in generateConfigurationFromPPSMOTree() 135 homeSp.setHomeNetworkIds(homeNetworkIds); in generateConfigurationFromPPSMOTree() 136 homeSp.setMatchAllOis(new long[]{0x11223344}); in generateConfigurationFromPPSMOTree() 137 homeSp.setMatchAnyOis(new long[]{0x55667788}); in generateConfigurationFromPPSMOTree() 138 homeSp.setOtherHomePartners(new String[]{"other.fqdn.com"}); in generateConfigurationFromPPSMOTree() 139 config.setHomeSp(homeSp); in generateConfigurationFromPPSMOTree()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/ |
D | PasspointXmlUtils.java | 309 private static void serializeHomeSp(XmlSerializer out, HomeSp homeSp) in serializeHomeSp() argument 311 if (homeSp == null) { in serializeHomeSp() 315 XmlUtil.writeNextValue(out, XML_TAG_FQDN, homeSp.getFqdn()); in serializeHomeSp() 316 XmlUtil.writeNextValue(out, XML_TAG_FRIENDLY_NAME, homeSp.getFriendlyName()); in serializeHomeSp() 317 XmlUtil.writeNextValue(out, XML_TAG_ICON_URL, homeSp.getIconUrl()); in serializeHomeSp() 318 XmlUtil.writeNextValue(out, XML_TAG_HOME_NETWORK_IDS, homeSp.getHomeNetworkIds()); in serializeHomeSp() 319 XmlUtil.writeNextValue(out, XML_TAG_MATCH_ALL_OIS, homeSp.getMatchAllOis()); in serializeHomeSp() 320 XmlUtil.writeNextValue(out, XML_TAG_MATCH_ANY_OIS, homeSp.getMatchAnyOis()); in serializeHomeSp() 321 XmlUtil.writeNextValue(out, XML_TAG_OTHER_HOME_PARTNERS, homeSp.getOtherHomePartners()); in serializeHomeSp() 323 homeSp.getRoamingConsortiumOis()); in serializeHomeSp() [all …]
|
D | PasspointProvider.java | 667 HomeSp homeSp = new HomeSp(); in convertFromWifiConfig() local 672 homeSp.setFqdn(wifiConfig.FQDN); in convertFromWifiConfig() 673 homeSp.setFriendlyName(wifiConfig.providerFriendlyName); in convertFromWifiConfig() 675 homeSp.setRoamingConsortiumOis(Arrays.copyOf( in convertFromWifiConfig() 678 passpointConfig.setHomeSp(homeSp); in convertFromWifiConfig()
|
/packages/modules/Wifi/framework/java/android/net/wifi/hotspot2/pps/ |
D | HomeSp.java | 507 HomeSp homeSp = new HomeSp(); 508 homeSp.setFqdn(in.readString()); 509 homeSp.setFriendlyName(in.readString()); 510 homeSp.setIconUrl(in.readString()); 511 homeSp.setHomeNetworkIds(readHomeNetworkIds(in)); 512 homeSp.setMatchAllOis(in.createLongArray()); 513 homeSp.setMatchAnyOis(in.createLongArray()); 514 homeSp.setOtherHomePartners(in.createStringArray()); 515 homeSp.setRoamingConsortiumOis(in.createLongArray()); 516 return homeSp;
|
/packages/modules/Wifi/framework/java/android/net/wifi/hotspot2/omadm/ |
D | PpsMoParser.java | 706 HomeSp homeSp = new HomeSp(); in parseHomeSP() local 710 homeSp.setFqdn(getPpsNodeValue(child)); in parseHomeSP() 713 homeSp.setFriendlyName(getPpsNodeValue(child)); in parseHomeSP() 716 homeSp.setRoamingConsortiumOis( in parseHomeSP() 720 homeSp.setIconUrl(getPpsNodeValue(child)); in parseHomeSP() 723 homeSp.setHomeNetworkIds(parseNetworkIds(child)); in parseHomeSP() 727 homeSp.setMatchAllOis(convertFromLongList(homeOIs.first)); in parseHomeSP() 728 homeSp.setMatchAnyOis(convertFromLongList(homeOIs.second)); in parseHomeSP() 731 homeSp.setOtherHomePartners(parseOtherHomePartners(child)); in parseHomeSP() 737 return homeSp; in parseHomeSP()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | NetworkSuggestionStoreDataTest.java | 525 HomeSp homeSp = new HomeSp(); in createTestConfigWithUserCredential() local 526 homeSp.setFqdn(fqdn); in createTestConfigWithUserCredential() 527 homeSp.setFriendlyName(friendlyName); in createTestConfigWithUserCredential() 528 config.setHomeSp(homeSp); in createTestConfigWithUserCredential()
|
D | WifiServiceImplTest.java | 5034 HomeSp homeSp = new HomeSp(); in testGetPasspointConfigurations() local 5035 homeSp.setFqdn("test.com"); in testGetPasspointConfigurations() 5036 config.setHomeSp(homeSp); in testGetPasspointConfigurations() 6748 HomeSp homeSp = new HomeSp(); in testFactoryReset() local 6749 homeSp.setFqdn(fqdn); in testFactoryReset() 6750 config.setHomeSp(homeSp); in testFactoryReset() 7936 HomeSp homeSp = new HomeSp(); in addOrUpdatePasspointConfigIsAllowedForAppsTargetingBelowRSdk() local 7937 homeSp.setFqdn("test.com"); in addOrUpdatePasspointConfigIsAllowedForAppsTargetingBelowRSdk() 7938 config.setHomeSp(homeSp); in addOrUpdatePasspointConfigIsAllowedForAppsTargetingBelowRSdk() 7964 HomeSp homeSp = new HomeSp(); in addOrUpdatePasspointConfigIsNotAllowedForAppsTargetingRSdk() local [all …]
|
D | WifiNetworkSuggestionsManagerTest.java | 4345 HomeSp homeSp = new HomeSp(); in testAddInvalidPasspointNetworkSuggestions() local 4346 homeSp.setFqdn(TEST_FQDN); in testAddInvalidPasspointNetworkSuggestions() 4347 passpointConfiguration.setHomeSp(homeSp); in testAddInvalidPasspointNetworkSuggestions() 5091 HomeSp homeSp = new HomeSp(); in createTestConfigWithUserCredential() local 5092 homeSp.setFqdn(fqdn); in createTestConfigWithUserCredential() 5093 homeSp.setFriendlyName(friendlyName); in createTestConfigWithUserCredential() 5094 config.setHomeSp(homeSp); in createTestConfigWithUserCredential() 5116 HomeSp homeSp = new HomeSp(); in createTestConfigWithSimCredential() local 5117 homeSp.setFqdn(fqdn); in createTestConfigWithSimCredential() 5118 homeSp.setFriendlyName(TEST_FRIENDLY_NAME); in createTestConfigWithSimCredential() [all …]
|
/packages/modules/Wifi/framework/java/android/net/wifi/hotspot2/ |
D | PasspointConfiguration.java | 125 public void setHomeSp(HomeSp homeSp) { mHomeSp = homeSp; } in setHomeSp() argument
|