Home
last modified time | relevance | path

Searched refs:mcc (Results 1 – 25 of 69) sorted by relevance

123

/frameworks/base/telephony/java/android/telephony/
DImsiEncryptionInfo.java42 private final String mcc; field in ImsiEncryptionInfo
51 public ImsiEncryptionInfo(String mcc, String mnc, int keyType, String keyIdentifier, in ImsiEncryptionInfo() argument
53 this(mcc, mnc, keyType, keyIdentifier, makeKeyObject(key), expirationTime); in ImsiEncryptionInfo()
57 public ImsiEncryptionInfo(String mcc, String mnc, int keyType, String keyIdentifier, in ImsiEncryptionInfo() argument
62 this.mcc = mcc; in ImsiEncryptionInfo()
76 mcc = in.readString(); in ImsiEncryptionInfo()
90 return this.mcc; in getMcc()
155 dest.writeString(mcc); in writeToParcel()
165 + "mcc=" + mcc in toString()
DCellIdentity.java80 protected CellIdentity(@Nullable String tag, int type, @Nullable String mcc, in CellIdentity() argument
86 if (mcc == null || isMcc(mcc)) { in CellIdentity()
87 mMccStr = mcc; in CellIdentity()
88 } else if (mcc.isEmpty() || mcc.equals(String.valueOf(Integer.MAX_VALUE))) { in CellIdentity()
95 log("invalid MCC format: " + mcc); in CellIdentity()
340 private static boolean isMcc(@NonNull String mcc) { in isMcc() argument
342 if (mcc.length() != MCC_LENGTH) return false; in isMcc()
346 if (mcc.charAt(i) < '0' || mcc.charAt(i) > '9') return false; in isMcc()
DCellIdentityTdscdma.java88 public CellIdentityTdscdma(@Nullable String mcc, @Nullable String mnc, int lac, int cid, in CellIdentityTdscdma() argument
92 super(TAG, CellInfo.TYPE_TDSCDMA, mcc, mnc, alphal, alphas); in CellIdentityTdscdma()
115 this(cid.mcc, cid.mnc, cid.lac, cid.cid, cid.cpid, CellInfo.UNAVAILABLE, "", "", in CellIdentityTdscdma()
121 this(cid.base.mcc, cid.base.mnc, cid.base.lac, cid.base.cid, cid.base.cpid, in CellIdentityTdscdma()
128 this(cid.base.base.mcc, cid.base.base.mnc, cid.base.base.lac, cid.base.base.cid, in CellIdentityTdscdma()
DSubscriptionInfo.java224 Bitmap icon, String mcc, String mnc, String countryIso, boolean isEmbedded, in SubscriptionInfo() argument
227 roaming, icon, mcc, mnc, countryIso, isEmbedded, nativeAccessRules, cardString, -1, in SubscriptionInfo()
238 Bitmap icon, String mcc, String mnc, String countryIso, boolean isEmbedded, in SubscriptionInfo() argument
242 roaming, icon, mcc, mnc, countryIso, isEmbedded, nativeAccessRules, cardString, -1, in SubscriptionInfo()
252 Bitmap icon, String mcc, String mnc, String countryIso, boolean isEmbedded, in SubscriptionInfo() argument
268 this.mMcc = mcc; in SubscriptionInfo()
693 String mcc = source.readString();
715 carrierName, nameSource, iconTint, number, dataRoaming, iconBitmap, mcc, mnc,
DCellIdentityLte.java93 public CellIdentityLte(int mcc, int mnc, int ci, int pci, int tac) { in CellIdentityLte() argument
95 String.valueOf(mcc), String.valueOf(mnc), null, null, new ArraySet<>(), in CellIdentityLte()
140 CellInfo.UNAVAILABLE, cid.mcc, cid.mnc, "", "", new ArraySet<>(), null); in CellIdentityLte()
146 cid.bandwidth, cid.base.mcc, cid.base.mnc, cid.operatorNames.alphaLong, in CellIdentityLte()
154 cid.base.base.mcc, cid.base.base.mnc, cid.base.operatorNames.alphaLong, in CellIdentityLte()
DCellIdentityGsm.java105 cid.mcc, cid.mnc, "", "", new ArraySet<>()); in CellIdentityGsm()
111 cid.base.bsic == (byte) 0xFF ? CellInfo.UNAVAILABLE : cid.base.bsic, cid.base.mcc, in CellIdentityGsm()
120 : cid.base.base.bsic, cid.base.base.mcc, in CellIdentityGsm()
DCellIdentityWcdma.java110 this(cid.lac, cid.cid, cid.psc, cid.uarfcn, cid.mcc, cid.mnc, "", "", in CellIdentityWcdma()
117 cid.base.mcc, cid.base.mnc, cid.operatorNames.alphaLong, in CellIdentityWcdma()
124 cid.base.base.mcc, cid.base.base.mnc, cid.base.operatorNames.alphaLong, in CellIdentityWcdma()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/util/
DLocaleUtils.java47 public static Locale getLocaleFromMcc(Context context, int mcc, String simLanguage) { in getLocaleFromMcc() argument
49 String language = hasSimLanguage ? simLanguage : defaultLanguageForMcc(mcc); in getLocaleFromMcc()
50 String country = MccTable.countryCodeForMcc(mcc); in getLocaleFromMcc()
52 Rlog.d(LOG_TAG, "getLocaleFromMcc(" + language + ", " + country + ", " + mcc); in getLocaleFromMcc()
58 language = defaultLanguageForMcc(mcc); in getLocaleFromMcc()
59 Rlog.d(LOG_TAG, "[retry ] getLocaleFromMcc(" + language + ", " + country + ", " + mcc); in getLocaleFromMcc()
157 public static String defaultLanguageForMcc(int mcc) { in defaultLanguageForMcc() argument
158 MccTable.MccEntry entry = MccTable.entryForMcc(mcc); in defaultLanguageForMcc()
160 Rlog.d(LOG_TAG, "defaultLanguageForMcc(" + mcc + "): no country for mcc"); in defaultLanguageForMcc()
174 Rlog.d(LOG_TAG, "defaultLanguageForMcc(" + mcc + "): country " + country + " uses " in defaultLanguageForMcc()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DMccTable.java70 MccEntry(int mcc, String iso, int smallestDigitsMCC) { in MccEntry() argument
74 mMcc = mcc; in MccEntry()
93 public final String mcc; field in MccTable.MccMnc
105 String mcc; in fromOperatorNumeric() local
107 mcc = operatorNumeric.substring(0, 3); in fromOperatorNumeric()
118 return new MccMnc(mcc, mnc); in fromOperatorNumeric()
124 public MccMnc(@NonNull String mcc, @Nullable String mnc) { in MccMnc() argument
125 this.mcc = Objects.requireNonNull(mcc); in MccMnc()
138 return mcc.equals(mccMnc.mcc) in equals()
144 return Objects.hash(mcc, mnc); in hashCode()
[all …]
DLocaleTracker.java295 String mcc = cellInfo.getCellIdentity().getMccString(); in getMccFromCellInfo() local
296 if (mcc != null) { in getMccFromCellInfo()
298 if (mccMap.containsKey(mcc)) { in getMccFromCellInfo()
299 count = mccMap.get(mcc) + 1; in getMccFromCellInfo()
301 mccMap.put(mcc, count); in getMccFromCellInfo()
306 selectedMcc = mcc; in getMccFromCellInfo()
330 String mcc = cellInfo.getCellIdentity().getMccString(); in getMccMncFromCellInfo() local
331 if (Objects.equals(mcc, mccToMatch)) { in getMccMncFromCellInfo()
333 MccMnc mccMnc = new MccMnc(mcc, mnc); in getMccMncFromCellInfo()
506 countryIso = MccTable.countryCodeForMcc(mccMnc.mcc); in updateLocale()
[all …]
DCarrierInfoManager.java63 String mcc = ""; in getCarrierInfoForImsiEncryption() local
66 mcc = operatorNumeric.substring(0, 3); in getCarrierInfoForImsiEncryption()
68 Log.i(LOG_TAG, "using values for mnc, mcc: " + mnc + "," + mcc); in getCarrierInfoForImsiEncryption()
83 new String[]{mcc, mnc, String.valueOf(keyType)}, null); in getCarrierInfoForImsiEncryption()
94 return new ImsiEncryptionInfo(mcc, mnc, keyType, keyIdentifier, carrier_key, in getCarrierInfoForImsiEncryption()
211 String mcc = ""; in deleteCarrierInfoForImsiEncryption() local
217 mcc = simOperator.substring(0, 3); in deleteCarrierInfoForImsiEncryption()
226 String[] whereArgs = new String[] { mcc, mnc }; in deleteCarrierInfoForImsiEncryption()
DCarrierKeyDownloadManager.java442 String mcc = ""; in parseJsonAndPersistKey() local
445 mcc = splitValue[0]; in parseJsonAndPersistKey()
472 savePublicKey(keyInfo.first, type, identifier, keyInfo.second, mcc, mnc); in parseJsonAndPersistKey()
518 String mcc = ""; in downloadKey() local
523 mcc = simOperator.substring(0, 3); in downloadKey()
525 Log.d(LOG_TAG, "using values for mcc, mnc: " + mcc + "," + mnc); in downloadKey()
542 String mccMnc = mcc + SEPARATOR + mnc; in downloadKey()
544 Log.d(LOG_TAG, "storing values in sharedpref mcc, mnc, days: " + mcc + "," + mnc in downloadKey()
581 String mcc, String mnc) { in savePublicKey() argument
582 ImsiEncryptionInfo imsiEncryptionInfo = new ImsiEncryptionInfo(mcc, mnc, type, identifier, in savePublicKey()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DMccTableTest.java48 private void checkMccLookupWithNoMnc(String expectedCountryIsoCode, int mcc) { in checkMccLookupWithNoMnc() argument
49 assertEquals(expectedCountryIsoCode, MccTable.countryCodeForMcc(mcc)); in checkMccLookupWithNoMnc()
50 assertEquals(expectedCountryIsoCode, MccTable.countryCodeForMcc(mcc)); in checkMccLookupWithNoMnc()
51 assertEquals(expectedCountryIsoCode, MccTable.countryCodeForMcc("" + mcc)); in checkMccLookupWithNoMnc()
53 MccTable.geoCountryCodeForMccMnc(new MccMnc("" + mcc, "999"))); in checkMccLookupWithNoMnc()
/frameworks/base/core/java/android/timezone/
DTelephonyNetworkFinder.java44 public TelephonyNetwork findNetworkByMccMnc(@NonNull String mcc, @NonNull String mnc) { in findNetworkByMccMnc() argument
45 Objects.requireNonNull(mcc); in findNetworkByMccMnc()
49 mDelegate.findNetworkByMccMnc(mcc, mnc); in findNetworkByMccMnc()
/frameworks/base/core/jni/
Dandroid_content_res_Configuration.cpp31 jfieldID mcc; member
50 out->mcc = env->GetIntField(clazz, gConfigurationClassInfo.mcc); in android_Configuration_getFromJava()
79 gConfigurationClassInfo.mcc = GetFieldIDOrDie(env, clazz, "mcc", "I"); in register_android_content_res_Configuration()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/anqp/
DCellularNetwork.java155 int mcc = ((plmn[0] << 8) & 0xF00) | (plmn[0] & 0x0F0) | (plmn[1] & 0x00F); in parsePlmn() local
164 ? String.format("%03x%03x", mcc, (mnc << 4) | mncDigit3) in parsePlmn()
165 : String.format("%03x%02x", mcc, mnc); in parsePlmn()
/frameworks/base/core/java/android/content/res/
DConfiguration.java106 public int mcc; field in Configuration
912 mcc = o.mcc; in setTo()
945 if (mcc != 0) { in toString()
946 sb.append(mcc); in toString()
1113 protoOutputStream.write(MCC, mcc); in writeToProto()
1183 mcc = protoInputStream.readInt(MCC); in readFromProto()
1370 mcc = mnc = 0; in setToDefaults()
1421 if (delta.mcc != 0 && mcc != delta.mcc) { in updateFrom()
1423 mcc = delta.mcc; in updateFrom()
1648 if ((compareUndefined || delta.mcc != 0) && mcc != delta.mcc) { in diff()
[all …]
/frameworks/base/telephony/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()
79 public CarrierIdentifier(@NonNull String mcc, @NonNull String mnc, @Nullable String spn, in CarrierIdentifier() argument
82 mMcc = mcc; in CarrierIdentifier()
/frameworks/base/telephony/java/android/telephony/euicc/
DEuiccRulesAuthTable.java117 public static boolean match(String mccRule, String mcc) { in match() argument
118 if (mccRule.length() < mcc.length()) { in match()
124 || (i < mcc.length() && mccRule.charAt(i) == mcc.charAt(i))) { in match()
/frameworks/base/native/android/
Dconfiguration.cpp50 return config->mcc; in AConfiguration_getMcc()
142 void AConfiguration_setMcc(AConfiguration* config, int32_t mcc) { in AConfiguration_setMcc() argument
143 config->mcc = mcc; in AConfiguration_setMcc()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DTelephonyUtil.java163 String mcc = mccMnc.substring(0, 3); in getAnonymousIdentityWith3GppRealm() local
170 String realm = String.format(THREE_GPP_NAI_REALM_FORMAT, mnc, mcc); in getAnonymousIdentityWith3GppRealm()
279 String mcc; in buildIdentity() local
282 mcc = mccMnc.substring(0, 3); in buildIdentity()
289 mcc = imsi.substring(0, 3); in buildIdentity()
293 String naiRealm = String.format(THREE_GPP_NAI_REALM_FORMAT, mnc, mcc); in buildIdentity()
763 String mcc = mccMnc.substring(0, 3); in decoratePseudonymWith3GppRealm() local
770 String realm = String.format(THREE_GPP_NAI_REALM_FORMAT, mnc, mcc); in decoratePseudonymWith3GppRealm()
/frameworks/base/telephony/common/com/android/internal/telephony/
DSmsNumberUtils.java247 private static ArrayList<String> getAllIDDs(Context context, String mcc) { in getAllIDDs() argument
248 ArrayList<String> allIDDs = IDDS_MAPS.get(mcc); in getAllIDDs()
261 if (mcc != null) { in getAllIDDs()
263 selectionArgs = new String[] {mcc}; in getAllIDDs()
286 IDDS_MAPS.put(mcc, allIDDs); in getAllIDDs()
288 if (DBG) Log.d(TAG, "MCC = " + mcc + ", all IDDs = " + allIDDs); in getAllIDDs()
DHbpcdUtils.java137 public String getIddByMcc(int mcc) { in getIddByMcc() argument
145 MccIdd.MCC + "=" + mcc, null, null); in getIddByMcc()
/frameworks/base/packages/Tethering/tests/unit/src/com/android/networkstack/tethering/
DTetheringNotificationUpdaterTest.kt292 assertEquals(config.mcc, res.configuration.mcc) in testGetResourcesForSubId()
297 assertEquals(config.mcc, res.configuration.mcc) in testGetResourcesForSubId()
302 assertEquals(311, res.configuration.mcc) in testGetResourcesForSubId()
/frameworks/base/libs/androidfw/
DConfigDescription.cpp37 if (out) out->mcc = 0; in parseMcc()
58 if (out) out->mcc = d; in parseMcc()
907 if (mcc || o.mcc) return (!o.mcc); in HasHigherPrecedenceThan()
970 return !pred(mcc, o.mcc) || !pred(mnc, o.mnc) || !pred(locale, o.locale) || in ConflictsWith()

123