Home
last modified time | relevance | path

Searched refs:homeSp (Results 1 – 19 of 19) sorted by relevance

/packages/modules/Wifi/framework/tests/src/android/net/wifi/hotspot2/pps/
DHomeSpTest.java62 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/service/java/com/android/server/wifi/hotspot2/
DPasspointXmlUtils.java290 private static void serializeHomeSp(XmlSerializer out, HomeSp homeSp) in serializeHomeSp() argument
292 if (homeSp == null) { in serializeHomeSp()
296 XmlUtil.writeNextValue(out, XML_TAG_FQDN, homeSp.getFqdn()); in serializeHomeSp()
297 XmlUtil.writeNextValue(out, XML_TAG_FRIENDLY_NAME, homeSp.getFriendlyName()); in serializeHomeSp()
298 XmlUtil.writeNextValue(out, XML_TAG_ICON_URL, homeSp.getIconUrl()); in serializeHomeSp()
299 XmlUtil.writeNextValue(out, XML_TAG_HOME_NETWORK_IDS, homeSp.getHomeNetworkIds()); in serializeHomeSp()
300 XmlUtil.writeNextValue(out, XML_TAG_MATCH_ALL_OIS, homeSp.getMatchAllOis()); in serializeHomeSp()
301 XmlUtil.writeNextValue(out, XML_TAG_MATCH_ANY_OIS, homeSp.getMatchAnyOis()); in serializeHomeSp()
302 XmlUtil.writeNextValue(out, XML_TAG_OTHER_HOME_PARTNERS, homeSp.getOtherHomePartners()); in serializeHomeSp()
304 homeSp.getRoamingConsortiumOis()); in serializeHomeSp()
[all …]
DPasspointProvider.java612 HomeSp homeSp = new HomeSp(); in convertFromWifiConfig() local
617 homeSp.setFqdn(wifiConfig.FQDN); in convertFromWifiConfig()
618 homeSp.setFriendlyName(wifiConfig.providerFriendlyName); in convertFromWifiConfig()
620 homeSp.setRoamingConsortiumOis(Arrays.copyOf( in convertFromWifiConfig()
623 passpointConfig.setHomeSp(homeSp); in convertFromWifiConfig()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/
DPasspointXmlUtilsTest.java105 HomeSp homeSp = new HomeSp(); in createFullPasspointConfiguration() local
106 homeSp.setFriendlyName("Century House"); in createFullPasspointConfiguration()
107 homeSp.setFqdn("mi6.co.uk"); in createFullPasspointConfiguration()
108 homeSp.setRoamingConsortiumOis(new long[] {0x112233L, 0x445566L}); in createFullPasspointConfiguration()
109 homeSp.setIconUrl("icon.test.com"); in createFullPasspointConfiguration()
113 homeSp.setHomeNetworkIds(homeNetworkIds); in createFullPasspointConfiguration()
114 homeSp.setMatchAllOis(new long[] {0x11223344}); in createFullPasspointConfiguration()
115 homeSp.setMatchAnyOis(new long[] {0x55667788}); in createFullPasspointConfiguration()
116 homeSp.setOtherHomePartners(new String[] {"other.fqdn.com"}); in createFullPasspointConfiguration()
117 config.setHomeSp(homeSp); in createFullPasspointConfiguration()
DPasspointConfigUserStoreDataTest.java138 HomeSp homeSp = new HomeSp(); in createFullPasspointConfiguration() local
139 homeSp.setFriendlyName("Century House"); in createFullPasspointConfiguration()
140 homeSp.setFqdn("mi6.co.uk"); in createFullPasspointConfiguration()
141 homeSp.setRoamingConsortiumOis(new long[] {0x112233L, 0x445566L}); in createFullPasspointConfiguration()
142 homeSp.setIconUrl("icon.test.com"); in createFullPasspointConfiguration()
146 homeSp.setHomeNetworkIds(homeNetworkIds); in createFullPasspointConfiguration()
147 homeSp.setMatchAllOis(new long[] {0x11223344}); in createFullPasspointConfiguration()
148 homeSp.setMatchAnyOis(new long[] {0x55667788}); in createFullPasspointConfiguration()
149 homeSp.setOtherHomePartners(new String[] {"other.fqdn.com"}); in createFullPasspointConfiguration()
150 config.setHomeSp(homeSp); in createFullPasspointConfiguration()
DPasspointProviderTest.java269 HomeSp homeSp = new HomeSp(); in generateTestPasspointConfiguration() local
270 homeSp.setFqdn(TEST_FQDN); in generateTestPasspointConfiguration()
271 homeSp.setFriendlyName(TEST_FRIENDLY_NAME); in generateTestPasspointConfiguration()
272 homeSp.setRoamingConsortiumOis(TEST_RC_OIS); in generateTestPasspointConfiguration()
273 config.setHomeSp(homeSp); in generateTestPasspointConfiguration()
327 HomeSp homeSp = passpointConfig.getHomeSp(); in verifyWifiConfigWithTestData() local
333 assertEquals(homeSp.getFqdn(), wifiConfig.FQDN); in verifyWifiConfigWithTestData()
334 assertEquals(homeSp.getFriendlyName(), wifiConfig.providerFriendlyName); in verifyWifiConfigWithTestData()
335 assertTrue(Arrays.equals(homeSp.getRoamingConsortiumOis(), in verifyWifiConfigWithTestData()
396 assertEquals(homeSp.getFqdn(), wifiEnterpriseConfig.getDomainSuffixMatch()); in verifyWifiConfigWithTestData()
[all …]
DPasspointManagerTest.java348 HomeSp homeSp = new HomeSp(); in createTestConfigWithUserCredentialAndRealm() local
349 homeSp.setFqdn(fqdn); in createTestConfigWithUserCredentialAndRealm()
350 homeSp.setFriendlyName(friendlyName); in createTestConfigWithUserCredentialAndRealm()
351 config.setHomeSp(homeSp); in createTestConfigWithUserCredentialAndRealm()
378 HomeSp homeSp = new HomeSp(); in createTestConfigWithSimCredential() local
379 homeSp.setFqdn(fqdn); in createTestConfigWithSimCredential()
380 homeSp.setFriendlyName(TEST_FRIENDLY_NAME); in createTestConfigWithSimCredential()
381 config.setHomeSp(homeSp); in createTestConfigWithSimCredential()
1683 HomeSp homeSp = new HomeSp(); in addLegacyPasspointConfigWithUserCredential() local
1684 homeSp.setFqdn(fqdn); in addLegacyPasspointConfigWithUserCredential()
[all …]
DPasspointNetworkNominateHelperTest.java120 HomeSp homeSp = new HomeSp(); in generateProvider() local
121 homeSp.setFqdn(config.FQDN); in generateProvider()
122 passpointConfig.setHomeSp(homeSp); in generateProvider()
DPasspointProvisionerTest.java271 HomeSp homeSp = new HomeSp(); in setUp() local
272 homeSp.setFqdn("test.com"); in setUp()
273 when(mPasspointConfiguration.getHomeSp()).thenReturn(homeSp); in setUp()
/packages/modules/Wifi/framework/tests/src/android/net/wifi/hotspot2/omadm/
DPpsMoParserTest.java127 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/framework/java/android/net/wifi/hotspot2/pps/
DHomeSp.java428 HomeSp homeSp = new HomeSp();
429 homeSp.setFqdn(in.readString());
430 homeSp.setFriendlyName(in.readString());
431 homeSp.setIconUrl(in.readString());
432 homeSp.setHomeNetworkIds(readHomeNetworkIds(in));
433 homeSp.setMatchAllOis(in.createLongArray());
434 homeSp.setMatchAnyOis(in.createLongArray());
435 homeSp.setOtherHomePartners(in.createStringArray());
436 homeSp.setRoamingConsortiumOis(in.createLongArray());
437 return homeSp;
/packages/modules/Wifi/framework/tests/src/android/net/wifi/hotspot2/
DPasspointTestUtils.java41 HomeSp homeSp = new HomeSp(); in createHomeSp() local
42 homeSp.setFqdn("fqdn"); in createHomeSp()
43 homeSp.setFriendlyName("friendly name"); in createHomeSp()
44 homeSp.setRoamingConsortiumOis(new long[] {0x55, 0x66}); in createHomeSp()
45 return homeSp; in createHomeSp()
DConfigParserTest.java89 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()
DPasspointConfigurationTest.java411 HomeSp homeSp = config2.getHomeSp(); in validateUniqueIdDifferentHomeSpSameFqdn() local
412 homeSp.setRoamingConsortiumOis(new long[] {0xaa, 0xbb}); in validateUniqueIdDifferentHomeSpSameFqdn()
413 homeSp.setFriendlyName("Some other name"); in validateUniqueIdDifferentHomeSpSameFqdn()
414 config2.setHomeSp(homeSp); in validateUniqueIdDifferentHomeSpSameFqdn()
431 HomeSp homeSp = config2.getHomeSp(); in validateUniqueIdSameHomeSpDifferentFqdn() local
432 homeSp.setFqdn("fqdn2.com"); in validateUniqueIdSameHomeSpDifferentFqdn()
433 config2.setHomeSp(homeSp); in validateUniqueIdSameHomeSpDifferentFqdn()
/packages/modules/Wifi/framework/java/android/net/wifi/hotspot2/omadm/
DPpsMoParser.java706 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/
DNetworkSuggestionStoreDataTest.java524 HomeSp homeSp = new HomeSp(); in createTestConfigWithUserCredential() local
525 homeSp.setFqdn(fqdn); in createTestConfigWithUserCredential()
526 homeSp.setFriendlyName(friendlyName); in createTestConfigWithUserCredential()
527 config.setHomeSp(homeSp); in createTestConfigWithUserCredential()
DWifiServiceImplTest.java4284 HomeSp homeSp = new HomeSp(); in testGetPasspointConfigurations() local
4285 homeSp.setFqdn("test.com"); in testGetPasspointConfigurations()
4286 config.setHomeSp(homeSp); in testGetPasspointConfigurations()
5614 HomeSp homeSp = new HomeSp(); in testFactoryReset() local
5615 homeSp.setFqdn(fqdn); in testFactoryReset()
5616 config.setHomeSp(homeSp); in testFactoryReset()
6525 HomeSp homeSp = new HomeSp(); in addOrUpdatePasspointConfigIsAllowedForAppsTargetingBelowRSdk() local
6526 homeSp.setFqdn("test.com"); in addOrUpdatePasspointConfigIsAllowedForAppsTargetingBelowRSdk()
6527 config.setHomeSp(homeSp); in addOrUpdatePasspointConfigIsAllowedForAppsTargetingBelowRSdk()
6553 HomeSp homeSp = new HomeSp(); in addOrUpdatePasspointConfigIsNotAllowedForAppsTargetingRSdk() local
[all …]
DWifiNetworkSuggestionsManagerTest.java4163 HomeSp homeSp = new HomeSp(); in testAddInvalidPasspointNetworkSuggestions() local
4164 homeSp.setFqdn(TEST_FQDN); in testAddInvalidPasspointNetworkSuggestions()
4165 passpointConfiguration.setHomeSp(homeSp); in testAddInvalidPasspointNetworkSuggestions()
4864 HomeSp homeSp = new HomeSp(); in createTestConfigWithUserCredential() local
4865 homeSp.setFqdn(fqdn); in createTestConfigWithUserCredential()
4866 homeSp.setFriendlyName(friendlyName); in createTestConfigWithUserCredential()
4867 config.setHomeSp(homeSp); in createTestConfigWithUserCredential()
4894 HomeSp homeSp = new HomeSp(); in createTestConfigWithSimCredential() local
4895 homeSp.setFqdn(fqdn); in createTestConfigWithSimCredential()
4896 homeSp.setFriendlyName(TEST_FRIENDLY_NAME); in createTestConfigWithSimCredential()
[all …]
/packages/modules/Wifi/framework/java/android/net/wifi/hotspot2/
DPasspointConfiguration.java89 public void setHomeSp(HomeSp homeSp) { mHomeSp = homeSp; } in setHomeSp() argument