Home
last modified time | relevance | path

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

/packages/modules/Wifi/framework/tests/src/android/net/wifi/hotspot2/
DConfigParserTest.java110 Credential.SimCredential simCredential = new Credential.SimCredential(); in generateConfigurationFromProfile() local
111 simCredential.setImsi("123456*"); in generateConfigurationFromProfile()
112 simCredential.setEapType(23); in generateConfigurationFromProfile()
113 credential.setSimCredential(simCredential); in generateConfigurationFromProfile()
/packages/modules/Wifi/framework/tests/src/android/net/wifi/hotspot2/omadm/
DPpsMoParserTest.java160 Credential.SimCredential simCredential = new Credential.SimCredential(); in generateConfigurationFromPPSMOTree() local
161 simCredential.setImsi("imsi"); in generateConfigurationFromPPSMOTree()
162 simCredential.setEapType(24); in generateConfigurationFromPPSMOTree()
163 credential.setSimCredential(simCredential); in generateConfigurationFromPPSMOTree()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/
DPasspointXmlUtilsTest.java139 Credential.SimCredential simCredential = new Credential.SimCredential(); in createFullPasspointConfiguration() local
140 simCredential.setImsi("imsi"); in createFullPasspointConfiguration()
141 simCredential.setEapType(24); in createFullPasspointConfiguration()
142 credential.setSimCredential(simCredential); in createFullPasspointConfiguration()
DPasspointConfigUserStoreDataTest.java172 Credential.SimCredential simCredential = new Credential.SimCredential(); in createFullPasspointConfiguration() local
173 simCredential.setImsi("imsi"); in createFullPasspointConfiguration()
174 simCredential.setEapType(24); in createFullPasspointConfiguration()
175 credential.setSimCredential(simCredential); in createFullPasspointConfiguration()
DPasspointProviderTest.java314 Credential.SimCredential simCredential = new Credential.SimCredential(); in generateTestPasspointConfiguration() local
315 simCredential.setImsi(TEST_IMSI); in generateTestPasspointConfiguration()
316 simCredential.setEapType(EAPConstants.EAP_SIM); in generateTestPasspointConfiguration()
317 credential.setSimCredential(simCredential); in generateTestPasspointConfiguration()
452 Credential.SimCredential simCredential = credential.getSimCredential(); in verifyWifiConfigWithTestData() local
453 switch (simCredential.getEapType()) { in verifyWifiConfigWithTestData()
467 assertEquals(simCredential.getImsi(), wifiEnterpriseConfig.getPlmn()); in verifyWifiConfigWithTestData()
DPasspointManagerTest.java413 Credential.SimCredential simCredential = new Credential.SimCredential(); in createTestConfigWithSimCredential() local
414 simCredential.setImsi(imsi); in createTestConfigWithSimCredential()
415 simCredential.setEapType(EAPConstants.EAP_SIM); in createTestConfigWithSimCredential()
416 credential.setSimCredential(simCredential); in createTestConfigWithSimCredential()
1798 Credential.SimCredential simCredential = new Credential.SimCredential(); in addLegacyPasspointConfigWithSimCredential() local
1799 simCredential.setEapType(EAPConstants.EAP_SIM); in addLegacyPasspointConfigWithSimCredential()
1800 simCredential.setImsi(imsi); in addLegacyPasspointConfigWithSimCredential()
1801 credential.setSimCredential(simCredential); in addLegacyPasspointConfigWithSimCredential()
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/
DPasspointXmlUtils.java445 Credential.SimCredential simCredential) throws XmlPullParserException, IOException { in serializeSimCredential() argument
446 if (simCredential == null) { in serializeSimCredential()
450 XmlUtil.writeNextValue(out, XML_TAG_IMSI, simCredential.getImsi()); in serializeSimCredential()
451 XmlUtil.writeNextValue(out, XML_TAG_EAP_TYPE, simCredential.getEapType()); in serializeSimCredential()
821 Credential.SimCredential simCredential = new Credential.SimCredential(); in deserializeSimCredential() local
830 simCredential.setImsi((String) value); in deserializeSimCredential()
833 simCredential.setEapType((int) value); in deserializeSimCredential()
840 return simCredential; in deserializeSimCredential()
DPasspointProvider.java1136 Credential.SimCredential simCredential = new Credential.SimCredential(); in buildSimCredentialFromEnterpriseConfig() local
1141 simCredential.setImsi(config.getPlmn()); in buildSimCredentialFromEnterpriseConfig()
1142 simCredential.setEapType(eapType); in buildSimCredentialFromEnterpriseConfig()
1143 return simCredential; in buildSimCredentialFromEnterpriseConfig()
/packages/modules/Wifi/framework/tests/src/android/net/wifi/hotspot2/pps/
DCredentialTest.java481 Credential.SimCredential simCredential = new Credential.SimCredential(); in validateCredentialWithUserAndSimCredential() local
482 simCredential.setImsi("1234*"); in validateCredentialWithUserAndSimCredential()
483 simCredential.setEapType(EAPConstants.EAP_SIM); in validateCredentialWithUserAndSimCredential()
484 cred.setSimCredential(simCredential); in validateCredentialWithUserAndSimCredential()
/packages/modules/Wifi/framework/java/android/net/wifi/hotspot2/pps/
DCredential.java806 SimCredential simCredential = new SimCredential();
807 simCredential.setImsi(in.readString());
808 simCredential.setEapType(in.readInt());
809 return simCredential;
861 public void setSimCredential(SimCredential simCredential) { in setSimCredential() argument
862 mSimCredential = simCredential; in setSimCredential()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiCarrierInfoManagerTest.java1684 Credential.SimCredential simCredential = mock(Credential.SimCredential.class); in tryUpdateCarrierIdForPasspointWithPrefixImsi() local
1685 when(credential.getSimCredential()).thenReturn(simCredential); in tryUpdateCarrierIdForPasspointWithPrefixImsi()
1686 when(simCredential.getImsi()).thenReturn(MATCH_PREFIX_IMSI); in tryUpdateCarrierIdForPasspointWithPrefixImsi()
1700 Credential.SimCredential simCredential = mock(Credential.SimCredential.class); in tryUpdateCarrierIdForPasspointWithFullImsiAndActiveSim() local
1701 when(credential.getSimCredential()).thenReturn(simCredential); in tryUpdateCarrierIdForPasspointWithFullImsiAndActiveSim()
1702 when(simCredential.getImsi()).thenReturn(DATA_FULL_IMSI); in tryUpdateCarrierIdForPasspointWithFullImsiAndActiveSim()
1716 Credential.SimCredential simCredential = mock(Credential.SimCredential.class); in tryUpdateCarrierIdForPasspointWithFullImsiAndInactiveSim() local
1717 when(credential.getSimCredential()).thenReturn(simCredential); in tryUpdateCarrierIdForPasspointWithFullImsiAndInactiveSim()
1718 when(simCredential.getImsi()).thenReturn(NO_MATCH_PREFIX_IMSI); in tryUpdateCarrierIdForPasspointWithFullImsiAndInactiveSim()
DWifiNetworkSuggestionsManagerTest.java5122 Credential.SimCredential simCredential = new Credential.SimCredential(); in createTestConfigWithSimCredential() local
5123 simCredential.setImsi(imsi); in createTestConfigWithSimCredential()
5124 simCredential.setEapType(EAPConstants.EAP_SIM); in createTestConfigWithSimCredential()
5125 credential.setSimCredential(simCredential); in createTestConfigWithSimCredential()
DWifiMetricsTest.java765 Credential.SimCredential simCredential = new Credential.SimCredential(); in createMockProvider() local
766 simCredential.setEapType(eapType); in createMockProvider()
767 credential.setSimCredential(simCredential); in createMockProvider()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiCarrierInfoManager.java1657 Credential.SimCredential simCredential = config.getCredential().getSimCredential(); in tryUpdateCarrierIdForPasspoint() local
1658 if (simCredential == null) { in tryUpdateCarrierIdForPasspoint()
1663 IMSIParameter imsiParameter = IMSIParameter.build(simCredential.getImsi()); in tryUpdateCarrierIdForPasspoint()