/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | IMSIParameter.java | 38 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 …]
|
D | SIMAccessor.java | 27 String imsi = mTelephonyManager.getSubscriberId(subId); in getMatchingImsis() local 28 if (imsi != null && mccMnc.matchesImsi(imsi)) { in getMatchingImsis() 29 imsis.add(imsi); in getMatchingImsis()
|
D | ClientModeImpl.java | 4908 private String buildIdentity(int eapMethod, String imsi, String mccMnc) { in buildIdentity() argument 4913 if (imsi == null || imsi.isEmpty()) { in buildIdentity() 4937 mcc = imsi.substring(0, 3); in buildIdentity() 4938 mnc = imsi.substring(3, 6); in buildIdentity() 4941 return prefix + imsi + "@wlan.mnc" + mnc + ".mcc" + mcc + ".3gppnetwork.org"; in buildIdentity()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/ |
D | CarrierTestOverride.java | 96 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()
|
D | RuimRecords.java | 217 String imsi = getIMSI(); in getRUIMOperatorNumeric() local 219 if (imsi == null) { in getRUIMOperatorNumeric() 226 return imsi.substring(0, 3 + mMncLength); in getRUIMOperatorNumeric() 232 int mcc = Integer.parseInt(imsi.substring(0, 3)); in getRUIMOperatorNumeric() 233 return imsi.substring(0, 3 + MccTable.smallestDigitsMccForMnc(mcc)); in getRUIMOperatorNumeric() 799 String imsi = getIMSI(); in onAllRecordsLoaded() local 801 if (!TextUtils.isEmpty(imsi)) { in onAllRecordsLoaded() 802 log("onAllRecordsLoaded set mcc imsi=" + (VDBG ? ("=" + imsi) : "")); in onAllRecordsLoaded() 804 MccTable.countryCodeForMcc(imsi.substring(0, 3))); in onAllRecordsLoaded()
|
D | IccRecords.java | 312 public void setCarrierTestOverride(String mccmnc, String imsi, String iccid, String gid1, in setCarrierTestOverride() argument 314 mCarrierTestOverride.override(mccmnc, imsi, iccid, gid1, gid2, pnn, spn); in setCarrierTestOverride() 625 String imsi = getIMSI(); in updateOperatorPlmn() local 627 if (imsi != null) { in updateOperatorPlmn() 629 if (((mMncLength == UNKNOWN) || (mMncLength == 2)) && imsi.length() >= 6) { in updateOperatorPlmn() 630 String mccmncCode = imsi.substring(0, 6); in updateOperatorPlmn() 643 int mcc = Integer.parseInt(imsi.substring(0, 3)); in updateOperatorPlmn() 652 && imsi.length() >= 3 + mMncLength) { in updateOperatorPlmn() 653 log("update mccmnc=" + imsi.substring(0, 3 + mMncLength)); in updateOperatorPlmn() 656 MccTable.updateMccMncConfiguration(mContext, imsi.substring(0, 3 + mMncLength)); in updateOperatorPlmn()
|
D | SIMRecords.java | 596 String imsi = getIMSI(); in getOperatorNumeric() local 597 if (imsi == null) { in getOperatorNumeric() 608 if (imsi.length() >= 3 + mMncLength) { in getOperatorNumeric() 609 return imsi.substring(0, 3 + mMncLength); in getOperatorNumeric() 1494 String imsi = getIMSI(); in onAllRecordsLoaded() local 1496 if (!TextUtils.isEmpty(imsi) && imsi.length() >= 3) { in onAllRecordsLoaded() 1497 log("onAllRecordsLoaded set mcc imsi" + (VDBG ? ("=" + imsi) : "")); in onAllRecordsLoaded() 1499 mParentApp.getPhoneId(), MccTable.countryCodeForMcc(imsi.substring(0, 3))); in onAllRecordsLoaded()
|
/frameworks/base/telephony/java/android/service/carrier/ |
D | CarrierIdentifier.java | 61 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/ |
D | TelephonyUtil.java | 104 String imsi = defaultDataTm.getSubscriberId(); in getSimIdentity() local 111 String identity = buildIdentity(getSimMethodForConfig(config), imsi, mccMnc, false); in getSimIdentity() 266 private static String buildIdentity(int eapMethod, String imsi, String mccMnc, in buildIdentity() argument 268 if (imsi == null || imsi.isEmpty()) { in buildIdentity() 289 mcc = imsi.substring(0, 3); in buildIdentity() 290 mnc = imsi.substring(3, 6); in buildIdentity() 294 return prefix + imsi + "@" + naiRealm; in buildIdentity()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | CarrierResolver.java | 648 private boolean imsiPrefixMatch(String imsi, String prefixXPattern) { in imsiPrefixMatch() argument 650 if (TextUtils.isEmpty(imsi)) return false; in imsiPrefixMatch() 651 if (imsi.length() < prefixXPattern.length()) { in imsiPrefixMatch() 656 && (prefixXPattern.charAt(i) != imsi.charAt(i))) { in imsiPrefixMatch() 715 final String imsi = mPhone.getSubscriberId(); in getSubscriptionMatchingRule() local 733 + " imsi: " + Rlog.pii(LOG_TAG, imsi) in getSubscriptionMatchingRule() 741 mccmnc, imsi, iccid, gid1, gid2, plmn, spn, apn, accessRules, in getSubscriptionMatchingRule() 909 final String imsi = carrierIdentifier.getImsi(); in getCarrierIdFromIdentifier() local 916 + " imsi: " + Rlog.pii(LOG_TAG, imsi) in getCarrierIdFromIdentifier() 921 new CarrierMatchingRule(mccmnc, imsi, null, gid1, gid2, null, in getCarrierIdFromIdentifier()
|
D | SubscriptionController.java | 1970 private String scrubImsi(String imsi) { in scrubImsi() argument 1972 return imsi; in scrubImsi() 1973 } else if (imsi != null) { in scrubImsi() 1974 return imsi.substring(0, Math.min(6, imsi.length())) + "..."; in scrubImsi() 1985 public int setImsi(String imsi, int subId) { in setImsi() argument 1986 if (DBG) logd("[setImsi]+ imsi:" + scrubImsi(imsi) + " subId:" + subId); in setImsi() 1988 value.put(SubscriptionManager.IMSI, imsi); in setImsi() 2069 String imsi = null; in getImsiPrivileged() local 2072 imsi = getOptionalStringFromCursor(cursor, SubscriptionManager.IMSI, in getImsiPrivileged() 2079 return imsi; in getImsiPrivileged()
|
D | SubscriptionInfoUpdater.java | 544 String imsi = tm.createForSubscriptionId(subId).getSubscriberId(); in handleSimLoaded() local 545 if (imsi != null) { in handleSimLoaded() 546 SubscriptionController.getInstance().setImsi(imsi, subId); in handleSimLoaded()
|
D | RadioResponse.java | 237 public void getIMSIForAppResponse(RadioResponseInfo responseInfo, String imsi) { in getIMSIForAppResponse() argument 238 responseString(responseInfo, imsi); in getIMSIForAppResponse() 2530 String spn = null, imsi = null, gid1 = null, gid2 = null; in convertCarrierList() local 2536 imsi = matchData; in convertCarrierList() 2542 ret.add(new CarrierIdentifier(mcc, mnc, spn, imsi, gid1, gid2)); in convertCarrierList()
|
D | GsmCdmaPhone.java | 1718 private void setVmSimImsi(String imsi) { in setVmSimImsi() argument 1721 editor.putString(VM_SIM_IMSI + getPhoneId(), imsi); in setVmSimImsi() 1884 public void setCarrierTestOverride(String mccmnc, String imsi, String iccid, String gid1, in setCarrierTestOverride() argument 1897 r.setCarrierTestOverride(mccmnc, imsi, iccid, gid1, gid2, pnn, spn); in setCarrierTestOverride() 2855 String imsi = getVmSimImsi(); in handleMessage() local 2857 if ((!isPhoneTypeGsm() || imsi != null) && imsiFromSIM != null in handleMessage() 2858 && !imsiFromSIM.equals(imsi)) { in handleMessage()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/omadm/ |
D | DevDetailMo.java | 211 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/ |
D | ANQPMatcher.java | 276 for (String imsi : simImsiList) { in matchMccMnc() 277 if (imsi.startsWith(mccMnc)) { in matchMccMnc()
|
D | PasspointManager.java | 637 String imsi = simCredential.getImsi(); in installEphemeralPasspointConfigForCarrier() local 638 if (imsi.length() < IMSIParameter.MCC_MNC_LENGTH) { in installEphemeralPasspointConfigForCarrier() 639 Log.e(TAG, "Invalid IMSI length: " + imsi.length()); in installEphemeralPasspointConfigForCarrier() 642 int index = imsi.indexOf("*"); in installEphemeralPasspointConfigForCarrier() 647 if (hasCarrierProvider(imsi.substring(0, index))) { in installEphemeralPasspointConfigForCarrier()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/ |
D | TelephonyUtilTest.java | 138 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/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | GsmCdmaPhoneTest.java | 722 String imsi = "1234567890"; in testVoiceMailCount() local 723 editor.putString("vm_id_key", imsi); in testVoiceMailCount() 726 doReturn(imsi).when(mSimRecords).getIMSI(); in testVoiceMailCount() 772 String imsi = "1234567890"; in testGetCallForwardingOption() local 773 doReturn(imsi).when(mSimRecords).getIMSI(); in testGetCallForwardingOption() 1071 String imsi = "1234"; in testCallForwardingIndicator() local 1072 doReturn(imsi).when(mSimRecords).getIMSI(); in testCallForwardingIndicator() 1075 editor.putString(Phone.CF_ID, imsi); in testCallForwardingIndicator()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/ |
D | PasspointProviderTest.java | 1106 String imsi = "1234*"; in getWifiConfigWithSimCredential() local 1120 simCredential.setImsi(imsi); in getWifiConfigWithSimCredential() 1142 assertEquals(imsi, wifiEnterpriseConfig.getPlmn()); in getWifiConfigWithSimCredential() 1209 String imsi = "1234"; in convertFromWifiConfigWithSimCredential() local 1218 wifiConfig.enterpriseConfig.setPlmn(imsi); in convertFromWifiConfigWithSimCredential() 1230 simCredential.setImsi(imsi); in convertFromWifiConfigWithSimCredential() 1290 String imsi = "1234*"; in providerBackedBySimCredential() local 1302 simCredential.setImsi(imsi); in providerBackedBySimCredential()
|
D | PasspointManagerTest.java | 326 private PasspointConfiguration createTestConfigWithSimCredential(String fqdn, String imsi, in createTestConfigWithSimCredential() argument 336 simCredential.setImsi(imsi); in createTestConfigWithSimCredential() 367 private PasspointProvider addTestCarrierProvider(String fqdn, String imsi, String realm) { in addTestCarrierProvider() argument 368 PasspointConfiguration config = createTestConfigWithSimCredential(fqdn, imsi, realm); in addTestCarrierProvider() 1420 String imsi = "1234"; in addLegacyPasspointConfigWithSimCredential() local 1429 wifiConfig.enterpriseConfig.setPlmn(imsi); in addLegacyPasspointConfigWithSimCredential() 1441 simCredential.setImsi(imsi); in addLegacyPasspointConfigWithSimCredential()
|
/frameworks/base/wifi/java/android/net/wifi/hotspot2/pps/ |
D | Credential.java | 658 public void setImsi(String imsi) { in setImsi() argument 659 mImsi = imsi; in setImsi()
|
/frameworks/base/tools/split-select/ |
D | Main.cpp | 109 outConfig->imsi = 0; in removeRuntimeQualifiers()
|
/frameworks/base/libs/androidfw/ |
D | ResourceTypes.cpp | 1968 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()
|
/frameworks/base/telephony/java/com/android/internal/telephony/ |
D | ITelephony.aidl | 1892 void setCarrierTestOverride(int subId, String mccmnc, String imsi, String iccid, String gid1, in setCarrierTestOverride() argument
|