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.java176 String mccMnc = "310:270"; in testParseJson() local
177 mCarrierKeyDM.parseJsonAndPersistKey(mJsonStr, mccMnc); in testParseJson()
200 String mccMnc = "310:270"; in testParseJsonPublicKey() local
201 mCarrierKeyDM.parseJsonAndPersistKey(mJsonStr1, mccMnc); in testParseJsonPublicKey()
213 String mccMnc = "310:290"; in testParseBadJsonFail() local
215 mCarrierKeyDM.parseJsonAndPersistKey(badJsonStr, mccMnc); in testParseBadJsonFail()
226 String mccMnc = "310:260"; in testIsValidDownload() local
228 assertTrue(mCarrierKeyDM.isValidDownload(mccMnc)); in testIsValidDownload()
238 String mccMnc = "310:290"; in testIsValidDownloadFail() local
240 assertFalse(mCarrierKeyDM.isValidDownload(mccMnc)); in testIsValidDownloadFail()
[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.java4874 private String buildIdentity(int eapMethod, String imsi, String mccMnc) { in buildIdentity() argument
4895 if (mccMnc != null && !mccMnc.isEmpty()) { in buildIdentity()
4896 mcc = mccMnc.substring(0, 3); in buildIdentity()
4897 mnc = mccMnc.substring(3); in buildIdentity()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DTelephonyUtil.java104 String mccMnc = ""; in getSimIdentity() local
107 mccMnc = defaultDataTm.getSimOperator(); in getSimIdentity()
110 String identity = buildIdentity(getSimMethodForConfig(config), imsi, mccMnc, false); in getSimIdentity()
156 String mccMnc = defaultDataTm.getSimOperator(); in getAnonymousIdentityWith3GppRealm() local
157 if (mccMnc == null || mccMnc.isEmpty()) { in getAnonymousIdentityWith3GppRealm()
162 String mcc = mccMnc.substring(0, 3); in getAnonymousIdentityWith3GppRealm()
163 String mnc = mccMnc.substring(3); in getAnonymousIdentityWith3GppRealm()
265 private static String buildIdentity(int eapMethod, String imsi, String mccMnc, in buildIdentity() argument
280 if (mccMnc != null && !mccMnc.isEmpty()) { in buildIdentity()
281 mcc = mccMnc.substring(0, 3); in buildIdentity()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DCarrierKeyDownloadManager.java167 String mccMnc = getMccMncSetFromPref(); in handleMessage() local
168 if (isValidDownload(mccMnc)) { in handleMessage()
169 onDownloadComplete(carrierKeyDownloadIdentifier, mccMnc); in handleMessage()
303 public boolean isValidDownload(String mccMnc) { in isValidDownload() argument
310 if (TextUtils.isEmpty(simOperator) || TextUtils.isEmpty(mccMnc)) { in isValidDownload()
315 String[] splitValue = mccMnc.split(SEPARATOR); in isValidDownload()
333 private void onDownloadComplete(long carrierKeyDownloadIdentifier, String mccMnc) { in onDownloadComplete() argument
352 parseJsonAndPersistKey(jsonStr, mccMnc); in onDownloadComplete()
435 public void parseJsonAndPersistKey(String jsonStr, String mccMnc) { in parseJsonAndPersistKey() argument
436 if (TextUtils.isEmpty(jsonStr) || TextUtils.isEmpty(mccMnc)) { in parseJsonAndPersistKey()
[all …]
DVisualVoicemailSmsFilter.java206 String mccMnc = context.getSystemService(TelephonyManager.class).getSimOperator(subId); in messageBodyMatchesVvmPattern() local
208 List<Pattern> patterns = sPatterns.get(mccMnc); in messageBodyMatchesVvmPattern()
246 for (String mccMnc : mccMncList) { in buildPatternsMap()
247 if (!sPatterns.containsKey(mccMnc)) { in buildPatternsMap()
248 sPatterns.put(mccMnc, new ArrayList<>()); in buildPatternsMap()
250 sPatterns.get(mccMnc).add(pattern); in buildPatternsMap()
DCarrierResolver.java519 public final String mccMnc; field in CarrierResolver.CarrierMatchingRule
543 mccMnc = mccmnc; in CarrierMatchingRule()
558 mccMnc = rule.mccMnc; in CarrierMatchingRule()
579 if (mccMnc != null) { in match()
580 if (!CarrierResolver.equals(subscriptionRule.mccMnc, mccMnc, false)) { in match()
694 + " mccmnc: " + mccMnc in toString()
822 && !TextUtils.isEmpty(subscriptionRule.mccMnc)) ? subscriptionRule.mccMnc : null; in matchSubscriptionCarrier()
840 subscriptionRule.mccMnc, in matchSubscriptionCarrier()
928 context, targetRule.mccMnc); in getCarrierIdFromIdentifier()
DNetworkScanRequestTracker.java171 String mccMnc = ci.getCellIdentity().getMccString() in doesCellInfoCorrespondToKnownMccMnc() local
173 return knownMccMncs.contains(mccMnc); in doesCellInfoCorrespondToKnownMccMnc()
DPhone.java3511 public boolean isMccMncMarkedAsRoaming(String mccMnc) { in isMccMncMarkedAsRoaming() argument
3512 return getRoamingOverrideHelper(GSM_ROAMING_LIST_OVERRIDE_PREFIX, mccMnc); in isMccMncMarkedAsRoaming()
3515 public boolean isMccMncMarkedAsNonRoaming(String mccMnc) { in isMccMncMarkedAsNonRoaming() argument
3516 return getRoamingOverrideHelper(GSM_NON_ROAMING_LIST_OVERRIDE_PREFIX, mccMnc); in isMccMncMarkedAsNonRoaming()
DSubscriptionController.java1796 public int setMccMnc(String mccMnc, int subId) { in setMccMnc() argument
1797 String mccString = mccMnc.substring(0, 3); in setMccMnc()
1798 String mncString = mccMnc.substring(3); in setMccMnc()
1805 loge("[setMccMnc] - couldn't parse mcc/mnc: " + mccMnc); in setMccMnc()
/frameworks/base/core/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.java293 private static boolean matchMccMnc(String mccMnc, IMSIParameter imsiParam, in matchMccMnc() argument
299 if (!imsiParam.matchesMccMnc(mccMnc)) { in matchMccMnc()
306 if (imsi.startsWith(mccMnc)) { in matchMccMnc()
DPasspointManager.java423 String mccMnc = mTelephonyManager in findEapMethodFromNAIRealmMatchedWithCarrier() local
426 if (mccMnc == null || mccMnc.length() < IMSIParameter.MCC_MNC_LENGTH - 1) { in findEapMethodFromNAIRealmMatchedWithCarrier()
430 String domain = Utils.getRealmForMccMnc(mccMnc); in findEapMethodFromNAIRealmMatchedWithCarrier()
486 String mccMnc = mTelephonyManager in createEphemeralPasspointConfigForCarrier() local
489 if (mccMnc == null || mccMnc.length() < IMSIParameter.MCC_MNC_LENGTH - 1) { in createEphemeralPasspointConfigForCarrier()
499 String domain = Utils.getRealmForMccMnc(mccMnc); in createEphemeralPasspointConfigForCarrier()
501 Log.e(TAG, "can't make a home domain name using " + mccMnc); in createEphemeralPasspointConfigForCarrier()
518 simCredential.setImsi(mccMnc + "*"); in createEphemeralPasspointConfigForCarrier()
DPasspointNetworkEvaluator.java195 String mccMnc = telephonyManager in createEphemeralProfileForMatchingAp() local
198 if (mPasspointManager.hasCarrierProvider(mccMnc)) { in createEphemeralProfileForMatchingAp()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/
DSubscriptionControllerMock.java177 public int setMccMnc(String mccMnc, int subId) { in setMccMnc() argument
DPhoneMock.java906 public boolean isMccMncMarkedAsRoaming(String mccMnc) { in isMccMncMarkedAsRoaming() argument
910 public boolean isMccMncMarkedAsNonRoaming(String mccMnc) { in isMccMncMarkedAsNonRoaming() argument
/frameworks/base/services/core/java/com/android/server/location/
DGnssLocationProvider.java511 String mccMnc = SubscriptionManager.isValidSubscriptionId(ddSubId) in subscriptionOrCarrierConfigChanged() local
514 if (!TextUtils.isEmpty(mccMnc)) { in subscriptionOrCarrierConfigChanged()
515 if (DEBUG) Log.d(TAG, "SIM MCC/MNC is available: " + mccMnc); in subscriptionOrCarrierConfigChanged()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/
DTelephonyMetrics.java2472 carrierIdMatchingResult.mccmnc = TextUtils.emptyIfNull(simInfo.mccMnc); in writeCarrierIdMatchingEvent()