Home
last modified time | relevance | path

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

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DCarrierKeyDownloadMgrTest.java154 String mccMnc = "310:270"; in testParseJson() local
155 mCarrierKeyDM.parseJsonAndPersistKey(mJsonStr, mccMnc); in testParseJson()
175 String mccMnc = "310:270"; in testParseJsonPublicKey() local
176 mCarrierKeyDM.parseJsonAndPersistKey(mJsonStr1, mccMnc); in testParseJsonPublicKey()
188 String mccMnc = "310:290"; in testParseBadJsonFail() local
190 mCarrierKeyDM.parseJsonAndPersistKey(badJsonStr, mccMnc); in testParseBadJsonFail()
201 String mccMnc = "310:260"; in testIsValidDownload() local
203 assertTrue(mCarrierKeyDM.isValidDownload(mccMnc)); in testIsValidDownload()
213 String mccMnc = "310:290"; in testIsValidDownloadFail() local
215 assertFalse(mCarrierKeyDM.isValidDownload(mccMnc)); in testIsValidDownloadFail()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DLocaleTracker.java333 MccMnc mccMnc = new MccMnc(mcc, mnc); in getMccMncFromCellInfo() local
335 if (mccMncMap.containsKey(mccMnc)) { in getMccMncFromCellInfo()
336 count = mccMncMap.get(mccMnc) + 1; in getMccMncFromCellInfo()
338 mccMncMap.put(mccMnc, count); in getMccMncFromCellInfo()
344 selectedMccMnc = mccMnc; in getMccMncFromCellInfo()
504 MccMnc mccMnc = MccMnc.fromOperatorNumeric(mOperatorNumeric); in updateLocale() local
505 if (mccMnc != null) { in updateLocale()
506 countryIso = MccTable.countryCodeForMcc(mccMnc.mcc); in updateLocale()
508 + "): MccTable.countryCodeForMcc(\"" + mccMnc.mcc + "\")"; in updateLocale()
509 timeZoneCountryIso = MccTable.geoCountryCodeForMccMnc(mccMnc); in updateLocale()
[all …]
DCarrierKeyDownloadManager.java169 String mccMnc = getMccMncSetFromPref(); in handleMessage() local
170 if (isValidDownload(mccMnc)) { in handleMessage()
171 onDownloadComplete(carrierKeyDownloadIdentifier, mccMnc); in handleMessage()
304 public boolean isValidDownload(String mccMnc) { in isValidDownload() argument
311 if (TextUtils.isEmpty(simOperator) || TextUtils.isEmpty(mccMnc)) { in isValidDownload()
316 String[] splitValue = mccMnc.split(SEPARATOR); in isValidDownload()
334 private void onDownloadComplete(long carrierKeyDownloadIdentifier, String mccMnc) { in onDownloadComplete() argument
353 parseJsonAndPersistKey(jsonStr, mccMnc); in onDownloadComplete()
436 public void parseJsonAndPersistKey(String jsonStr, String mccMnc) { in parseJsonAndPersistKey() argument
437 if (TextUtils.isEmpty(jsonStr) || TextUtils.isEmpty(mccMnc)) { in parseJsonAndPersistKey()
[all …]
DVisualVoicemailSmsFilter.java210 String mccMnc = context.getSystemService(TelephonyManager.class).getSimOperator(subId); in messageBodyMatchesVvmPattern() local
212 List<Pattern> patterns = sPatterns.get(mccMnc); in messageBodyMatchesVvmPattern()
250 for (String mccMnc : mccMncList) { in buildPatternsMap()
251 if (!sPatterns.containsKey(mccMnc)) { in buildPatternsMap()
252 sPatterns.put(mccMnc, new ArrayList<>()); in buildPatternsMap()
254 sPatterns.get(mccMnc).add(pattern); in buildPatternsMap()
DMccTable.java137 MccMnc mccMnc = (MccMnc) o; in equals() local
138 return mcc.equals(mccMnc.mcc) in equals()
139 && Objects.equals(mnc, mccMnc.mnc); in equals()
216 public static String geoCountryCodeForMccMnc(@NonNull MccMnc mccMnc) { in geoCountryCodeForMccMnc() argument
218 if (mccMnc.mnc != null) { in geoCountryCodeForMccMnc()
219 countryCode = countryCodeForMccMncNoFallback(mccMnc); in geoCountryCodeForMccMnc()
223 countryCode = MccTable.countryCodeForMcc(mccMnc.mcc); in geoCountryCodeForMccMnc()
229 private static String countryCodeForMccMncNoFallback(MccMnc mccMnc) { in countryCodeForMccMncNoFallback() argument
240 sTelephonyNetworkFinder.findNetworkByMccMnc(mccMnc.mcc, mccMnc.mnc); in countryCodeForMccMncNoFallback()
DCarrierResolver.java520 public final String mccMnc; field in CarrierResolver.CarrierMatchingRule
544 mccMnc = mccmnc; in CarrierMatchingRule()
559 mccMnc = rule.mccMnc; in CarrierMatchingRule()
580 if (mccMnc != null) { in match()
581 if (!CarrierResolver.equals(subscriptionRule.mccMnc, mccMnc, false)) { in match()
695 + " mccmnc: " + mccMnc in toString()
823 && !TextUtils.isEmpty(subscriptionRule.mccMnc)) ? subscriptionRule.mccMnc : null; in matchSubscriptionCarrier()
841 subscriptionRule.mccMnc, in matchSubscriptionCarrier()
929 context, targetRule.mccMnc); in getCarrierIdFromIdentifier()
DNetworkScanRequestTracker.java186 String mccMnc = ci.getCellIdentity().getMccString() in doesCellInfoCorrespondToKnownMccMnc() local
188 return knownMccMncs.contains(mccMnc); in doesCellInfoCorrespondToKnownMccMnc()
DPhone.java3798 public boolean isMccMncMarkedAsRoaming(String mccMnc) { in isMccMncMarkedAsRoaming() argument
3799 return getRoamingOverrideHelper(GSM_ROAMING_LIST_OVERRIDE_PREFIX, mccMnc); in isMccMncMarkedAsRoaming()
3802 public boolean isMccMncMarkedAsNonRoaming(String mccMnc) { in isMccMncMarkedAsNonRoaming() argument
3803 return getRoamingOverrideHelper(GSM_NON_ROAMING_LIST_OVERRIDE_PREFIX, mccMnc); in isMccMncMarkedAsNonRoaming()
DSubscriptionController.java1938 public int setMccMnc(String mccMnc, int subId) { in setMccMnc() argument
1939 String mccString = mccMnc.substring(0, 3); in setMccMnc()
1940 String mncString = mccMnc.substring(3); in setMccMnc()
1947 loge("[setMccMnc] - couldn't parse mcc/mnc: " + mccMnc); in setMccMnc()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DTelephonyUtil.java105 String mccMnc = ""; in getSimIdentity() local
108 mccMnc = defaultDataTm.getSimOperator(); in getSimIdentity()
111 String identity = buildIdentity(getSimMethodForConfig(config), imsi, mccMnc, false); in getSimIdentity()
157 String mccMnc = defaultDataTm.getSimOperator(); in getAnonymousIdentityWith3GppRealm() local
158 if (mccMnc == null || mccMnc.isEmpty()) { in getAnonymousIdentityWith3GppRealm()
163 String mcc = mccMnc.substring(0, 3); in getAnonymousIdentityWith3GppRealm()
164 String mnc = mccMnc.substring(3); in getAnonymousIdentityWith3GppRealm()
266 private static String buildIdentity(int eapMethod, String imsi, String mccMnc, in buildIdentity() argument
281 if (mccMnc != null && !mccMnc.isEmpty()) { in buildIdentity()
282 mcc = mccMnc.substring(0, 3); in buildIdentity()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DIMSIParameter.java106 public boolean matchesMccMnc(String mccMnc) { in matchesMccMnc() argument
107 if (mccMnc == null) { in matchesMccMnc()
110 if (mccMnc.length() != MCC_MNC_LENGTH) { in matchesMccMnc()
117 return mImsi.regionMatches(false, 0, mccMnc, 0, checkLength); in matchesMccMnc()
DSIMAccessor.java21 public List<String> getMatchingImsis(IMSIParameter mccMnc) { in getMatchingImsis() argument
22 if (mccMnc == null) { in getMatchingImsis()
28 if (imsi != null && mccMnc.matchesImsi(imsi)) { in getMatchingImsis()
DClientModeImpl.java4908 private String buildIdentity(int eapMethod, String imsi, String mccMnc) { in buildIdentity() argument
4929 if (mccMnc != null && !mccMnc.isEmpty()) { in buildIdentity()
4930 mcc = mccMnc.substring(0, 3); in buildIdentity()
4931 mnc = mccMnc.substring(3); in buildIdentity()
/frameworks/base/telephony/java/android/service/carrier/
DCarrierIdentifier.java100 public CarrierIdentifier(byte[] mccMnc, @Nullable String gid1, @Nullable String gid2) { in CarrierIdentifier() argument
101 if (mccMnc.length != 3) { in CarrierIdentifier()
103 "MCC & MNC must be set by a 3-byte array: byte[" + mccMnc.length + "]"); in CarrierIdentifier()
105 String hex = IccUtils.bytesToHexString(mccMnc); in CarrierIdentifier()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DANQPMatcher.java264 private static boolean matchMccMnc(String mccMnc, IMSIParameter imsiParam, in matchMccMnc() argument
270 if (!imsiParam.matchesMccMnc(mccMnc)) { in matchMccMnc()
277 if (imsi.startsWith(mccMnc)) { in matchMccMnc()
DPasspointManager.java467 String mccMnc = mTelephonyManager in findEapMethodFromNAIRealmMatchedWithCarrier() local
470 if (mccMnc == null || mccMnc.length() < IMSIParameter.MCC_MNC_LENGTH - 1) { in findEapMethodFromNAIRealmMatchedWithCarrier()
474 String domain = Utils.getRealmForMccMnc(mccMnc); in findEapMethodFromNAIRealmMatchedWithCarrier()
530 String mccMnc = mTelephonyManager in createEphemeralPasspointConfigForCarrier() local
533 if (mccMnc == null || mccMnc.length() < IMSIParameter.MCC_MNC_LENGTH - 1) { in createEphemeralPasspointConfigForCarrier()
543 String domain = Utils.getRealmForMccMnc(mccMnc); in createEphemeralPasspointConfigForCarrier()
545 Log.e(TAG, "can't make a home domain name using " + mccMnc); in createEphemeralPasspointConfigForCarrier()
562 simCredential.setImsi(mccMnc + "*"); in createEphemeralPasspointConfigForCarrier()
DPasspointNetworkEvaluator.java195 String mccMnc = telephonyManager in createEphemeralProfileForMatchingAp() local
198 if (mPasspointManager.hasCarrierProvider(mccMnc)) { in createEphemeralProfileForMatchingAp()
/frameworks/base/services/core/java/com/android/server/location/
DGnssLocationProvider.java543 String mccMnc = phone.getSimOperator(); in subscriptionOrCarrierConfigChanged() local
545 if (!TextUtils.isEmpty(mccMnc)) { in subscriptionOrCarrierConfigChanged()
546 if (DEBUG) Log.d(TAG, "SIM MCC/MNC is available: " + mccMnc); in subscriptionOrCarrierConfigChanged()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/
DTelephonyMetrics.java2541 carrierIdMatchingResult.mccmnc = TelephonyUtils.emptyIfNull(simInfo.mccMnc); in writeCarrierIdMatchingEvent()