Home
last modified time | relevance | path

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

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DCarrierKeyDownloadMgrTest.java171 String mccMnc = "310:270"; in testParseJson() local
172 mCarrierKeyDM.parseJsonAndPersistKey(mJsonStr, mccMnc); in testParseJson()
195 String mccMnc = "310:270"; in testParseJsonPublicKey() local
196 mCarrierKeyDM.parseJsonAndPersistKey(mJsonStr1, mccMnc); in testParseJsonPublicKey()
208 String mccMnc = "310:290"; in testParseBadJsonFail() local
210 mCarrierKeyDM.parseJsonAndPersistKey(badJsonStr, mccMnc); in testParseBadJsonFail()
221 String mccMnc = "310:260"; in testIsValidDownload() local
223 assertTrue(mCarrierKeyDM.isValidDownload(mccMnc)); in testIsValidDownload()
233 String mccMnc = "310:290"; in testIsValidDownloadFail() local
235 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.java19 public List<String> getMatchingImsis(IMSIParameter mccMnc) { in getMatchingImsis() argument
20 if (mccMnc == null) { in getMatchingImsis()
26 if (imsi != null && mccMnc.matchesImsi(imsi)) { in getMatchingImsis()
DWifiStateMachine.java4663 private String buildIdentity(int eapMethod, String imsi, String mccMnc) { in buildIdentity() argument
4681 if (mccMnc != null && !mccMnc.isEmpty()) { in buildIdentity()
4682 mcc = mccMnc.substring(0, 3); in buildIdentity()
4683 mnc = mccMnc.substring(3); in buildIdentity()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DTelephonyUtil.java77 String mccMnc = ""; in getSimIdentity() local
80 mccMnc = tm.getSimOperator(); in getSimIdentity()
91 String identity = buildIdentity(getSimMethodForConfig(config), imsi, mccMnc, false); in getSimIdentity()
98 getSimMethodForConfig(config), imsi, mccMnc, imsiEncryptionInfo); in getSimIdentity()
137 String imsi, String mccMnc, in buildEncryptedIdentity() argument
155 String encryptedIdentity = buildIdentity(eapMethod, encryptedImsi, mccMnc, true); in buildEncryptedIdentity()
192 private static String buildIdentity(int eapMethod, String imsi, String mccMnc, in buildIdentity() argument
207 if (mccMnc != null && !mccMnc.isEmpty()) { in buildIdentity()
208 mcc = mccMnc.substring(0, 3); in buildIdentity()
209 mnc = mccMnc.substring(3); in buildIdentity()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DCarrierKeyDownloadManager.java151 String mccMnc = getMccMncSetFromPref();
152 if (isValidDownload(mccMnc)) {
153 onDownloadComplete(carrierKeyDownloadIdentifier, mccMnc);
287 public boolean isValidDownload(String mccMnc) { in isValidDownload() argument
294 if (TextUtils.isEmpty(simOperator) || TextUtils.isEmpty(mccMnc)) { in isValidDownload()
299 String[] splitValue = mccMnc.split(SEPARATOR); in isValidDownload()
317 private void onDownloadComplete(long carrierKeyDownloadIdentifier, String mccMnc) { in onDownloadComplete() argument
336 parseJsonAndPersistKey(jsonStr, mccMnc); in onDownloadComplete()
417 public void parseJsonAndPersistKey(String jsonStr, String mccMnc) { in parseJsonAndPersistKey() argument
418 if (TextUtils.isEmpty(jsonStr) || TextUtils.isEmpty(mccMnc)) { in parseJsonAndPersistKey()
[all …]
DVisualVoicemailSmsFilter.java186 String mccMnc = telephonyManager.getSimOperator(subId); in filter() local
188 List<Pattern> patterns = sPatterns.get(mccMnc); in filter()
228 for (String mccMnc : mccMncList) { in buildPatternsMap()
229 if (!sPatterns.containsKey(mccMnc)) { in buildPatternsMap()
230 sPatterns.put(mccMnc, new ArrayList<>()); in buildPatternsMap()
232 sPatterns.get(mccMnc).add(pattern); in buildPatternsMap()
DSubscriptionController.java1375 public int setMccMnc(String mccMnc, int subId) {
1379 mcc = Integer.parseInt(mccMnc.substring(0,3));
1380 mnc = Integer.parseInt(mccMnc.substring(3));
1382 loge("[setMccMnc] - couldn't parse mcc/mnc: " + mccMnc);
DPhone.java3200 public boolean isMccMncMarkedAsRoaming(String mccMnc) { in isMccMncMarkedAsRoaming() argument
3201 return getRoamingOverrideHelper(GSM_ROAMING_LIST_OVERRIDE_PREFIX, mccMnc); in isMccMncMarkedAsRoaming()
3204 public boolean isMccMncMarkedAsNonRoaming(String mccMnc) { in isMccMncMarkedAsNonRoaming() argument
3205 return getRoamingOverrideHelper(GSM_NON_ROAMING_LIST_OVERRIDE_PREFIX, mccMnc); in isMccMncMarkedAsNonRoaming()
/frameworks/base/core/java/android/service/carrier/
DCarrierIdentifier.java71 public CarrierIdentifier(byte[] mccMnc, @Nullable String gid1, @Nullable String gid2) { in CarrierIdentifier() argument
72 if (mccMnc.length != 3) { in CarrierIdentifier()
74 "MCC & MNC must be set by a 3-byte array: byte[" + mccMnc.length + "]"); in CarrierIdentifier()
76 String hex = IccUtils.bytesToHexString(mccMnc); in CarrierIdentifier()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DANQPMatcher.java242 private static boolean matchMccMnc(String mccMnc, IMSIParameter imsiParam, in matchMccMnc() argument
248 if (!imsiParam.matchesMccMnc(mccMnc)) { in matchMccMnc()
255 if (imsi.startsWith(mccMnc)) { in matchMccMnc()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/
DSubscriptionControllerMock.java172 public int setMccMnc(String mccMnc, int subId) { in setMccMnc() argument
DPhoneMock.java908 public boolean isMccMncMarkedAsRoaming(String mccMnc) { in isMccMncMarkedAsRoaming() argument
912 public boolean isMccMncMarkedAsNonRoaming(String mccMnc) { in isMccMncMarkedAsNonRoaming() argument
/frameworks/base/services/core/java/com/android/server/location/
DGnssLocationProvider.java600 String mccMnc = phone.getSimOperator(); in subscriptionOrSimChanged() local
602 if (!TextUtils.isEmpty(mccMnc)) { in subscriptionOrSimChanged()
603 if (DEBUG) Log.d(TAG, "SIM MCC/MNC is available: " + mccMnc); in subscriptionOrSimChanged()