Home
last modified time | relevance | path

Searched refs:imsi (Results 1 – 25 of 28) sorted by relevance

12

/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DIMSIParameter.java38 public IMSIParameter(String imsi, boolean prefix) { in IMSIParameter() argument
39 mImsi = imsi; in IMSIParameter()
50 public static IMSIParameter build(String imsi) { in build() argument
51 if (TextUtils.isEmpty(imsi)) { in build()
54 if (imsi.length() > MAX_IMSI_LENGTH) { in build()
61 for (nonDigit = 0; nonDigit < imsi.length(); nonDigit++) { in build()
62 stopChar = imsi.charAt(nonDigit); in build()
68 if (nonDigit == imsi.length()) { in build()
70 return new IMSIParameter(imsi, false); in build()
72 else if (nonDigit == imsi.length()-1 && stopChar == '*') { in build()
[all …]
DSIMAccessor.java27 String imsi = mTelephonyManager.getSubscriberId(subId); in getMatchingImsis() local
28 if (imsi != null && mccMnc.matchesImsi(imsi)) { in getMatchingImsis()
29 imsis.add(imsi); in getMatchingImsis()
DClientModeImpl.java4874 private String buildIdentity(int eapMethod, String imsi, String mccMnc) { in buildIdentity() argument
4879 if (imsi == null || imsi.isEmpty()) { in buildIdentity()
4903 mcc = imsi.substring(0, 3); in buildIdentity()
4904 mnc = imsi.substring(3, 6); in buildIdentity()
4907 return prefix + imsi + "@wlan.mnc" + mnc + ".mcc" + mcc + ".3gppnetwork.org"; in buildIdentity()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DCarrierTestOverride.java96 String imsi = mCarrierTestParamMap.get(CARRIER_TEST_XML_ITEM_KEY_STRING_IMSI); in getFakeIMSI() local
97 Rlog.d(LOG_TAG, "reading imsi from CarrierTestConfig file: " + imsi); in getFakeIMSI()
98 return imsi; in getFakeIMSI()
160 void override(String mccmnc, String imsi, String iccid, String gid1, String gid2, String pnn, in override() argument
164 mCarrierTestParamMap.put(CARRIER_TEST_XML_ITEM_KEY_STRING_IMSI, imsi); in override()
DRuimRecords.java227 String imsi = getIMSI(); in getRUIMOperatorNumeric() local
229 if (imsi == null) { in getRUIMOperatorNumeric()
236 return imsi.substring(0, 3 + mMncLength); in getRUIMOperatorNumeric()
242 int mcc = Integer.parseInt(imsi.substring(0, 3)); in getRUIMOperatorNumeric()
243 return imsi.substring(0, 3 + MccTable.smallestDigitsMccForMnc(mcc)); in getRUIMOperatorNumeric()
802 String imsi = getIMSI(); in onAllRecordsLoaded() local
804 if (!TextUtils.isEmpty(imsi)) { in onAllRecordsLoaded()
805 log("onAllRecordsLoaded set mcc imsi=" + (VDBG ? ("=" + imsi) : "")); in onAllRecordsLoaded()
807 MccTable.countryCodeForMcc(imsi.substring(0, 3))); in onAllRecordsLoaded()
DIccRecords.java288 public void setCarrierTestOverride(String mccmnc, String imsi, String iccid, String gid1, in setCarrierTestOverride() argument
290 mCarrierTestOverride.override(mccmnc, imsi, iccid, gid1, gid2, pnn, spn); in setCarrierTestOverride()
577 String imsi = getIMSI(); in updateOperatorPlmn() local
579 if (imsi != null) { in updateOperatorPlmn()
581 if (((mMncLength == UNKNOWN) || (mMncLength == 2)) && imsi.length() >= 6) { in updateOperatorPlmn()
582 String mccmncCode = imsi.substring(0, 6); in updateOperatorPlmn()
595 int mcc = Integer.parseInt(imsi.substring(0, 3)); in updateOperatorPlmn()
604 && imsi.length() >= 3 + mMncLength) { in updateOperatorPlmn()
605 log("update mccmnc=" + imsi.substring(0, 3 + mMncLength)); in updateOperatorPlmn()
608 MccTable.updateMccMncConfiguration(mContext, imsi.substring(0, 3 + mMncLength)); in updateOperatorPlmn()
DSIMRecords.java593 String imsi = getIMSI(); in getOperatorNumeric() local
594 if (imsi == null) { in getOperatorNumeric()
605 if (imsi.length() >= 3 + mMncLength) { in getOperatorNumeric()
606 return imsi.substring(0, 3 + mMncLength); in getOperatorNumeric()
1451 String imsi = getIMSI(); in onAllRecordsLoaded() local
1453 if (!TextUtils.isEmpty(imsi) && imsi.length() >= 3) { in onAllRecordsLoaded()
1454 log("onAllRecordsLoaded set mcc imsi" + (VDBG ? ("=" + imsi) : "")); in onAllRecordsLoaded()
1456 mParentApp.getPhoneId(), MccTable.countryCodeForMcc(imsi.substring(0, 3))); in onAllRecordsLoaded()
/frameworks/base/core/java/android/service/carrier/
DCarrierIdentifier.java61 public CarrierIdentifier(String mcc, String mnc, @Nullable String spn, @Nullable String imsi, in CarrierIdentifier() argument
63 this(mcc, mnc, spn, imsi, gid1, gid2, TelephonyManager.UNKNOWN_CARRIER_ID, in CarrierIdentifier()
80 @Nullable String imsi, @Nullable String gid1, @Nullable String gid2, in CarrierIdentifier() argument
85 mImsi = imsi; in CarrierIdentifier()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DTelephonyUtil.java103 String imsi = defaultDataTm.getSubscriberId(); in getSimIdentity() local
110 String identity = buildIdentity(getSimMethodForConfig(config), imsi, mccMnc, false); in getSimIdentity()
265 private static String buildIdentity(int eapMethod, String imsi, String mccMnc, in buildIdentity() argument
267 if (imsi == null || imsi.isEmpty()) { in buildIdentity()
288 mcc = imsi.substring(0, 3); in buildIdentity()
289 mnc = imsi.substring(3, 6); in buildIdentity()
293 return prefix + imsi + "@" + naiRealm; in buildIdentity()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DCarrierResolver.java647 private boolean imsiPrefixMatch(String imsi, String prefixXPattern) { in imsiPrefixMatch() argument
649 if (TextUtils.isEmpty(imsi)) return false; in imsiPrefixMatch()
650 if (imsi.length() < prefixXPattern.length()) { in imsiPrefixMatch()
655 && (prefixXPattern.charAt(i) != imsi.charAt(i))) { in imsiPrefixMatch()
714 final String imsi = mPhone.getSubscriberId(); in getSubscriptionMatchingRule() local
732 + " imsi: " + Rlog.pii(LOG_TAG, imsi) in getSubscriptionMatchingRule()
740 mccmnc, imsi, iccid, gid1, gid2, plmn, spn, apn, accessRules, in getSubscriptionMatchingRule()
908 final String imsi = carrierIdentifier.getImsi(); in getCarrierIdFromIdentifier() local
915 + " imsi: " + Rlog.pii(LOG_TAG, imsi) in getCarrierIdFromIdentifier()
920 new CarrierMatchingRule(mccmnc, imsi, null, gid1, gid2, null, in getCarrierIdFromIdentifier()
DSubscriptionInfoUpdater.java482 String imsi = tm.createForSubscriptionId(subId).getSubscriberId(); in handleSimLoaded() local
483 if (imsi != null) { in handleSimLoaded()
484 SubscriptionController.getInstance().setImsi(imsi, subId); in handleSimLoaded()
DRadioResponse.java214 public void getIMSIForAppResponse(RadioResponseInfo responseInfo, String imsi) { in getIMSIForAppResponse() argument
215 responseString(responseInfo, imsi); in getIMSIForAppResponse()
2276 String spn = null, imsi = null, gid1 = null, gid2 = null; in convertCarrierList() local
2282 imsi = matchData; in convertCarrierList()
2288 ret.add(new CarrierIdentifier(mcc, mnc, spn, imsi, gid1, gid2)); in convertCarrierList()
DGsmCdmaPhone.java1556 private void setVmSimImsi(String imsi) { in setVmSimImsi() argument
1559 editor.putString(VM_SIM_IMSI + getPhoneId(), imsi); in setVmSimImsi()
1714 public void setCarrierTestOverride(String mccmnc, String imsi, String iccid, String gid1, in setCarrierTestOverride() argument
1727 r.setCarrierTestOverride(mccmnc, imsi, iccid, gid1, gid2, pnn, spn); in setCarrierTestOverride()
2575 String imsi = getVmSimImsi(); in handleMessage() local
2577 if ((!isPhoneTypeGsm() || imsi != null) && imsiFromSIM != null in handleMessage()
2578 && !imsiFromSIM.equals(imsi)) { in handleMessage()
DSubscriptionController.java1830 public int setImsi(String imsi, int subId) { in setImsi() argument
1831 if (DBG) logd("[setImsi]+ imsi:" + imsi + " subId:" + subId); in setImsi()
1833 value.put(SubscriptionManager.IMSI, imsi); in setImsi()
1861 String imsi = null; in getImsiPrivileged() local
1864 imsi = getOptionalStringFromCursor(cursor, SubscriptionManager.IMSI, in getImsiPrivileged()
1871 return imsi; in getImsiPrivileged()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/omadm/
DDevDetailMo.java211 String imsi = telephonyManager in serializeToXml() local
214 if (imsi != null && sAllowToSendImsiImeiInfo) { in serializeToXml()
216 wifiNode.appendChild(moSerializer.createNodeForValue(doc, TAG_IMSI, imsi)); in serializeToXml()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DANQPMatcher.java305 for (String imsi : simImsiList) { in matchMccMnc()
306 if (imsi.startsWith(mccMnc)) { in matchMccMnc()
DPasspointManager.java632 String imsi = simCredential.getImsi(); in installEphemeralPasspointConfigForCarrier() local
633 if (imsi.length() < IMSIParameter.MCC_MNC_LENGTH) { in installEphemeralPasspointConfigForCarrier()
634 Log.e(TAG, "Invalid IMSI length: " + imsi.length()); in installEphemeralPasspointConfigForCarrier()
637 int index = imsi.indexOf("*"); in installEphemeralPasspointConfigForCarrier()
642 if (hasCarrierProvider(imsi.substring(0, index))) { in installEphemeralPasspointConfigForCarrier()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DGsmCdmaPhoneTest.java510 String imsi = "1234567890"; in testVoiceMailCount() local
511 editor.putString("vm_id_key", imsi); in testVoiceMailCount()
514 doReturn(imsi).when(mSimRecords).getIMSI(); in testVoiceMailCount()
560 String imsi = "1234567890"; in testGetCallForwardingOption() local
561 doReturn(imsi).when(mSimRecords).getIMSI(); in testGetCallForwardingOption()
856 String imsi = "1234"; in testCallForwardingIndicator() local
857 doReturn(imsi).when(mSimRecords).getIMSI(); in testCallForwardingIndicator()
860 editor.putString(Phone.CF_ID, imsi); in testCallForwardingIndicator()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
DTelephonyUtilTest.java138 String imsi = "3214561234567890"; in getEncryptedIdentity_WithRfc4648() local
152 when(mDataTelephonyManager.getSubscriberId()).thenReturn(imsi); in getEncryptedIdentity_WithRfc4648()
179 String imsi = "3214561234567890"; in getEncryptedIdentityFailed() local
186 when(mDataTelephonyManager.getSubscriberId()).thenReturn(imsi); in getEncryptedIdentityFailed()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/
DPasspointProviderTest.java1098 String imsi = "1234*"; in getWifiConfigWithSimCredential() local
1112 simCredential.setImsi(imsi); in getWifiConfigWithSimCredential()
1134 assertEquals(imsi, wifiEnterpriseConfig.getPlmn()); in getWifiConfigWithSimCredential()
1201 String imsi = "1234"; in convertFromWifiConfigWithSimCredential() local
1210 wifiConfig.enterpriseConfig.setPlmn(imsi); in convertFromWifiConfigWithSimCredential()
1222 simCredential.setImsi(imsi); in convertFromWifiConfigWithSimCredential()
1282 String imsi = "1234*"; in providerBackedBySimCredential() local
1294 simCredential.setImsi(imsi); in providerBackedBySimCredential()
DPasspointManagerTest.java324 private PasspointConfiguration createTestConfigWithSimCredential(String fqdn, String imsi, in createTestConfigWithSimCredential() argument
334 simCredential.setImsi(imsi); in createTestConfigWithSimCredential()
365 private PasspointProvider addTestCarrierProvider(String fqdn, String imsi, String realm) { in addTestCarrierProvider() argument
366 PasspointConfiguration config = createTestConfigWithSimCredential(fqdn, imsi, realm); in addTestCarrierProvider()
1418 String imsi = "1234"; in addLegacyPasspointConfigWithSimCredential() local
1427 wifiConfig.enterpriseConfig.setPlmn(imsi); in addLegacyPasspointConfigWithSimCredential()
1439 simCredential.setImsi(imsi); in addLegacyPasspointConfigWithSimCredential()
/frameworks/base/wifi/java/android/net/wifi/hotspot2/pps/
DCredential.java658 public void setImsi(String imsi) { in setImsi() argument
659 mImsi = imsi; in setImsi()
/frameworks/base/tools/split-select/
DMain.cpp109 outConfig->imsi = 0; in removeRuntimeQualifiers()
/frameworks/base/telephony/java/com/android/internal/telephony/
DITelephony.aidl1701 void setCarrierTestOverride(int subId, String mccmnc, String imsi, String iccid, String gid1, in setCarrierTestOverride() argument
/frameworks/base/libs/androidfw/
DResourceTypes.cpp1968 if (imsi != o.imsi) { in compare()
1969 return (imsi > o.imsi) ? 1 : -1; in compare()
2141 if (imsi || o.imsi) { in isMoreSpecificThan()
2416 if (imsi || o.imsi) { in isBetterThan()
2677 if (imsi != 0) { in match()

12