Home
last modified time | relevance | path

Searched refs:homeSP (Results 1 – 14 of 14) sorted by relevance

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DPasspointManagementObjectManagerTest.java138 HomeSP homeSP = moMgr.getHomeSP("twcwifi.com"); in loadR1Configs() local
139 assertNotNull(homeSP); in loadR1Configs()
140 assertEquals("TWC-WiFi", homeSP.getFriendlyName()); in loadR1Configs()
141 assertEquals("tushar4", homeSP.getCredential().getUserName()); in loadR1Configs()
143 homeSP = moMgr.getHomeSP("wi-fi.org"); in loadR1Configs()
144 assertNotNull(homeSP); in loadR1Configs()
145 assertEquals("Wi-Fi Alliance", homeSP.getFriendlyName()); in loadR1Configs()
146 assertEquals("sta006", homeSP.getCredential().getUserName()); in loadR1Configs()
158 HomeSP homeSP = moMgr.getHomeSP("twcwifi.com"); in loadR2Configs() local
159 assertNotNull(homeSP); in loadR2Configs()
[all …]
/frameworks/base/packages/Osu/src/com/android/hotspot2/osu/service/
DSubscriptionTimer.java29 private UpdateAction(HomeSP homeSP, long now) { in UpdateAction() argument
30 mRemediation = homeSP.getSubscriptionUpdate() != null ? in UpdateAction()
31 now + homeSP.getSubscriptionUpdate().getInterval() : -1; in UpdateAction()
32 mPolicy = homeSP.getPolicy() != null ? in UpdateAction()
33 now + homeSP.getPolicy().getPolicyUpdate().getInterval() : -1; in UpdateAction()
35 Log.d(OSUManager.TAG, "Timer set for " + homeSP.getFQDN() + in UpdateAction()
83 for (HomeSP homeSP : homeSPs) { in checkUpdates()
84 UpdateAction updateAction = mOutstanding.get(homeSP); in checkUpdates()
87 updateAction = new UpdateAction(homeSP, now); in checkUpdates()
88 mOutstanding.put(homeSP, updateAction); in checkUpdates()
[all …]
/frameworks/base/packages/Osu/src/com/android/configparse/
DConfigBuilder.java34 public static WifiConfiguration buildConfig(HomeSP homeSP, X509Certificate caCert, in buildConfig() argument
38 Credential credential = homeSP.getCredential(); in buildConfig()
48 config = buildTTLSConfig(homeSP); in buildConfig()
51 config = buildTLSConfig(homeSP, clientChain, key); in buildConfig()
60 config = buildSIMConfig(homeSP); in buildConfig()
98 private static WifiConfiguration buildTTLSConfig(HomeSP homeSP) in buildTTLSConfig() argument
100 Credential credential = homeSP.getCredential(); in buildTTLSConfig()
114 WifiConfiguration config = buildBaseConfiguration(homeSP); in buildTTLSConfig()
124 private static WifiConfiguration buildTLSConfig(HomeSP homeSP, in buildTLSConfig() argument
129 Credential credential = homeSP.getCredential(); in buildTLSConfig()
[all …]
/frameworks/base/packages/Osu/src/com/android/hotspot2/osu/
DOSUManager.java269 private OSUThread(String osuURL, OSUManager osuManager, KeyManager km, HomeSP homeSP, in OSUThread() argument
273 mHomeSP = homeSP; in OSUThread()
274 mSpName = homeSP.getFriendlyName(); in OSUThread()
575 private static KeyManager getKeyManager(HomeSP homeSP, KeyStore keyStore) in getKeyManager() argument
577 return homeSP != null ? new ClientKeyManager(homeSP, keyStore) : in getKeyManager()
678 HomeSP homeSP = mWifiNetworkAdapter.getCurrentSP(); in deauth() local
679 String spName = homeSP != null ? homeSP.getFriendlyName() : "unknown"; in deauth()
688 HomeSP homeSP = MOManager.buildSP(config.getMoTree()); in wnmRemediate() local
689 if (homeSP == null) { in wnmRemediate()
701 Log.d(TAG, "WNM Remediation on " + network.netId + " FQDN " + homeSP.getFQDN()); in wnmRemediate()
[all …]
DOSUClient.java204 public void remediate(OSUManager osuManager, Network network, KeyManager km, HomeSP homeSP, in remediate() argument
207 try (HTTPHandler httpHandler = createHandler(network, homeSP, km, flowType)) { in remediate() argument
208 URL redirectURL = osuManager.prepareUserInput(homeSP.getFriendlyName()); in remediate()
236 osuManager.getMOTree(homeSP)); in remediate()
279 km, mKeyStore, homeSP, flowType)) { in remediate() argument
350 osuManager.remediationComplete(homeSP, mods, certs, clientKey); in remediate()
352 osuManager.provisioningFailed(homeSP.getFriendlyName(), e.getMessage(), homeSP, in remediate()
359 private HTTPHandler createHandler(Network network, HomeSP homeSP, in createHandler() argument
361 Credential credential = homeSP.getCredential(); in createHandler()
370 subscriptionUpdate = homeSP.getPolicy() != null ? in createHandler()
[all …]
DClientKeyManager.java30 public ClientKeyManager(HomeSP homeSP, KeyStore keyStore) throws IOException { in ClientKeyManager() argument
33 mAliasMap.put(OSUCertType.AAA, OSUManager.CERT_CLT_CA_ALIAS + homeSP.getFQDN()); in ClientKeyManager()
34 mAliasMap.put(OSUCertType.Client, OSUManager.CERT_CLT_CERT_ALIAS + homeSP.getFQDN()); in ClientKeyManager()
35 mAliasMap.put(OSUCertType.PrivateKey, OSUManager.CERT_CLT_KEY_ALIAS + homeSP.getFQDN()); in ClientKeyManager()
DOSUSocketFactory.java78 public static OSUSocketFactory getSocketFactory(KeyStore ks, HomeSP homeSP, int flowType, in getSocketFactory() argument
86 return new OSUSocketFactory(ks, homeSP, flowType, network, url, km); in getSocketFactory()
89 private OSUSocketFactory(KeyStore ks, HomeSP homeSP, int flowType, Network network, in OSUSocketFactory() argument
93 mTrustManager = new WFATrustManager(ks, homeSP, flowType); in OSUSocketFactory()
221 private WFATrustManager(KeyStore ks, HomeSP homeSP, int flowType) in WFATrustManager() argument
224 mHomeSP = homeSP; in WFATrustManager()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/configparse/
DConfigBuilder.java167 HomeSP homeSP = PasspointManagementObjectManager.buildSP(moText); in parse() local
169 return buildConfig(homeSP, caCert, clientChain, clientKey); in parse()
172 private static WifiConfiguration buildConfig(HomeSP homeSP, X509Certificate caCert, in buildConfig() argument
176 Credential credential = homeSP.getCredential(); in buildConfig()
186 config = buildTTLSConfig(homeSP); in buildConfig()
189 config = buildTLSConfig(homeSP, clientChain, key); in buildConfig()
198 config = buildSIMConfig(homeSP); in buildConfig()
236 private static WifiConfiguration buildTTLSConfig(HomeSP homeSP) in buildTTLSConfig() argument
238 Credential credential = homeSP.getCredential(); in buildTTLSConfig()
252 WifiConfiguration config = buildBaseConfiguration(homeSP); in buildTTLSConfig()
[all …]
/frameworks/base/packages/Osu/src/com/android/hotspot2/omadm/
DMOManager.java234 public void addSP(HomeSP homeSP, OSUManager osuManager) throws IOException { in addSP() argument
238 if (mSPs.containsKey(homeSP.getFQDN())) { in addSP()
240 homeSP.getFQDN() + " already exists"); in addSP()
243 Log.d(OSUManager.TAG, "Adding new HS20 profile for " + homeSP.getFQDN()); in addSP()
246 buildHomeSPTree(homeSP, dummyRoot, mSPs.size() + 1); in addSP()
256 mSPs.put(homeSP.getFQDN(), homeSP); in addSP() local
350 public HomeSP modifySP(HomeSP homeSP, Collection<MOData> mods, OSUManager osuManager) in modifySP() argument
361 OMAConstructed targetTree = findTargetTree(moTree, homeSP.getFQDN()); in modifySP()
363 throw new IOException("Failed to find PPS tree for " + homeSP.getFQDN()); in modifySP()
390 homeSP.getFQDN()); in modifySP()
[all …]
/frameworks/base/packages/Osu/src/com/android/hotspot2/
DWifiNetworkAdapter.java110 public MOTree getMOTree(HomeSP homeSP) { in getMOTree() argument
111 PasspointConfig config = mPasspointConfigs.get(homeSP.getFQDN()); in getMOTree()
145 public HomeSP modifySP(HomeSP homeSP, Collection<MOData> mods) in modifySP() argument
182 public WifiConfiguration getWifiConfig(HomeSP homeSP) { in getWifiConfig() argument
183 PasspointConfig passpointConfig = mPasspointConfigs.get(homeSP.getFQDN()); in getWifiConfig()
217 public Integer addNetwork(HomeSP homeSP, Map<OSUCertType, List<X509Certificate>> certs, in addNetwork() argument
226 WifiConfiguration config = ConfigBuilder.buildConfig(homeSP, in addNetwork()
247 public void updateNetwork(HomeSP homeSP, X509Certificate caCert, in updateNetwork() argument
251 WifiConfiguration config = getWifiConfig(homeSP); in updateNetwork()
258 WifiConfiguration newConfig = ConfigBuilder.buildConfig(homeSP, in updateNetwork()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/omadm/
DPasspointManagementObjectManager.java232 public void addSP(HomeSP homeSP) throws IOException { in addSP() argument
236 if (mSPs.containsKey(homeSP.getFQDN())) { in addSP()
238 + homeSP.getFQDN() + " already exists"); in addSP()
241 Log.d(Utils.hs2LogTag(getClass()), "Adding new HS20 profile for " + homeSP.getFQDN()); in addSP()
244 buildHomeSPTree(homeSP, dummyRoot, mSPs.size() + 1); in addSP()
252 mSPs.put(homeSP.getFQDN(), homeSP); in addSP() local
463 private static OMANode buildHomeSPTree(HomeSP homeSP, OMAConstructed root, int instanceID) in buildHomeSPTree() argument
470 if (!homeSP.getSSIDs().isEmpty()) { in buildHomeSPTree()
474 for (Map.Entry<String, Long> entry : homeSP.getSSIDs().entrySet()) { in buildHomeSPTree()
486 homeSpNode.addChild(TAG_FriendlyName, null, homeSP.getFriendlyName(), null); in buildHomeSPTree()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiConfigManager.java971 HomeSP homeSP = mMOManager.getHomeSP(fqdn); in matchProviderWithCurrentNetwork() local
972 if (homeSP == null) { in matchProviderWithCurrentNetwork()
981 return homeSP.match(scanDetail.getNetworkDetail(), anqpElements, mSIMAccessor).ordinal(); in matchProviderWithCurrentNetwork()
1807 public void writePasspointConfigs(final String fqdn, final HomeSP homeSP) { in writePasspointConfigs() argument
1812 if (homeSP != null) { in writePasspointConfigs()
1813 mMOManager.addSP(homeSP); in writePasspointConfigs()
2012 HomeSP homeSP = null; in addOrUpdateNetworkNative() local
2024 homeSP = new HomeSP(Collections.<String, Long>emptyMap(), config.FQDN, in addOrUpdateNetworkNative()
2116 if (homeSP != null) { in addOrUpdateNetworkNative()
2117 writePasspointConfigs(null, homeSP); in addOrUpdateNetworkNative()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DPasspointMatchInfo.java90 ScanDetail scanDetail, HomeSP homeSP) { in PasspointMatchInfo() argument
93 mHomeSP = homeSP; in PasspointMatchInfo()
/frameworks/base/packages/Osu/src/com/android/hotspot2/est/
DESTHandler.java83 KeyManager km, KeyStore ks, HomeSP homeSP, int flowType) in ESTHandler() argument
88 mSocketFactory = OSUSocketFactory.getSocketFactory(ks, homeSP, flowType, in ESTHandler()