Home
last modified time | relevance | path

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

123

/frameworks/base/services/core/java/com/android/server/stats/pull/netstats/
DSubInfo.java32 public final String mcc; field in SubInfo
39 public SubInfo(int subId, int carrierId, @NonNull String mcc, @NonNull String mnc, in SubInfo() argument
43 this.mcc = mcc; in SubInfo()
57 && mcc.equals(other.mcc) in equals()
64 return Objects.hash(subId, mcc, mnc, carrierId, subscriberId, isOpportunistic); in hashCode()
/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.java79 protected CellIdentity(@Nullable String tag, int type, @Nullable String mcc, in CellIdentity() argument
85 if (mcc == null || isMcc(mcc)) { in CellIdentity()
86 mMccStr = mcc; in CellIdentity()
87 } else if (mcc.isEmpty() || mcc.equals(String.valueOf(Integer.MAX_VALUE))) { in CellIdentity()
94 log("invalid MCC format: " + mcc); in CellIdentity()
338 private static boolean isMcc(@NonNull String mcc) { in isMcc() argument
340 if (mcc.length() != MCC_LENGTH) return false; in isMcc()
344 if (mcc.charAt(i) < '0' || mcc.charAt(i) > '9') return false; in isMcc()
DCellIdentityTdscdma.java90 public CellIdentityTdscdma(@Nullable String mcc, @Nullable String mnc, int lac, int cid, in CellIdentityTdscdma() argument
94 super(TAG, CellInfo.TYPE_TDSCDMA, mcc, mnc, alphal, alphas); in CellIdentityTdscdma()
117 this(cid.mcc, cid.mnc, cid.lac, cid.cid, cid.cpid, CellInfo.UNAVAILABLE, "", "", in CellIdentityTdscdma()
123 this(cid.base.mcc, cid.base.mnc, cid.base.lac, cid.base.cid, cid.base.cpid, in CellIdentityTdscdma()
130 this(cid.base.base.mcc, cid.base.base.mnc, cid.base.base.lac, cid.base.base.cid, in CellIdentityTdscdma()
DCellIdentityLte.java95 public CellIdentityLte(int mcc, int mnc, int ci, int pci, int tac) { in CellIdentityLte() argument
97 String.valueOf(mcc), String.valueOf(mnc), null, null, new ArraySet<>(), in CellIdentityLte()
142 CellInfo.UNAVAILABLE, cid.mcc, cid.mnc, "", "", new ArraySet<>(), null); in CellIdentityLte()
148 cid.bandwidth, cid.base.mcc, cid.base.mnc, cid.operatorNames.alphaLong, in CellIdentityLte()
156 cid.base.base.mcc, cid.base.base.mnc, cid.base.operatorNames.alphaLong, in CellIdentityLte()
DSubscriptionInfo.java242 Bitmap icon, String mcc, String mnc, String countryIso, boolean isEmbedded, in SubscriptionInfo() argument
245 roaming, icon, mcc, mnc, countryIso, isEmbedded, nativeAccessRules, cardString, -1, in SubscriptionInfo()
256 Bitmap icon, String mcc, String mnc, String countryIso, boolean isEmbedded, in SubscriptionInfo() argument
260 roaming, icon, mcc, mnc, countryIso, isEmbedded, nativeAccessRules, cardString, -1, in SubscriptionInfo()
270 Bitmap icon, String mcc, String mnc, String countryIso, boolean isEmbedded, in SubscriptionInfo() argument
286 this.mMcc = mcc; in SubscriptionInfo()
774 String mcc = source.readString();
796 carrierName, nameSource, iconTint, number, dataRoaming, iconBitmap, mcc, mnc,
DCellIdentityGsm.java108 cid.mcc, cid.mnc, "", "", new ArraySet<>()); in CellIdentityGsm()
114 cid.base.bsic == (byte) 0xFF ? CellInfo.UNAVAILABLE : cid.base.bsic, cid.base.mcc, in CellIdentityGsm()
123 : cid.base.base.bsic, cid.base.base.mcc, in CellIdentityGsm()
DCellIdentityWcdma.java112 this(cid.lac, cid.cid, cid.psc, cid.uarfcn, cid.mcc, cid.mnc, "", "", in CellIdentityWcdma()
119 cid.base.mcc, cid.base.mnc, cid.operatorNames.alphaLong, in CellIdentityWcdma()
126 cid.base.base.mcc, cid.base.base.mnc, cid.base.operatorNames.alphaLong, in CellIdentityWcdma()
DCellIdentityNr.java104 this(cid.pci, cid.tac, cid.nrarfcn, new int[] {}, cid.mcc, cid.mnc, cid.nci, in CellIdentityNr()
112 cid.bands.stream().mapToInt(Integer::intValue).toArray(), cid.base.mcc, in CellIdentityNr()
/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.java285 String mcc = cellInfo.getCellIdentity().getMccString(); in getMccFromCellInfo() local
286 if (mcc != null) { in getMccFromCellInfo()
288 if (mccMap.containsKey(mcc)) { in getMccFromCellInfo()
289 count = mccMap.get(mcc) + 1; in getMccFromCellInfo()
291 mccMap.put(mcc, count); in getMccFromCellInfo()
296 selectedMcc = mcc; in getMccFromCellInfo()
320 String mcc = cellInfo.getCellIdentity().getMccString(); in getMccMncFromCellInfo() local
321 if (Objects.equals(mcc, mccToMatch)) { in getMccMncFromCellInfo()
323 MccMnc mccMnc = new MccMnc(mcc, mnc); in getMccMncFromCellInfo()
496 countryIso = MccTable.countryCodeForMcc(mccMnc.mcc); in updateLocale()
[all …]
DCarrierInfoManager.java74 String mcc = ""; in getCarrierInfoForImsiEncryption() local
77 mcc = operatorNumeric.substring(0, 3); in getCarrierInfoForImsiEncryption()
79 Log.i(LOG_TAG, "using values for mcc, mnc: " + mcc + "," + mnc); in getCarrierInfoForImsiEncryption()
94 new String[]{mcc, mnc, String.valueOf(keyType)}, null); in getCarrierInfoForImsiEncryption()
143 return new ImsiEncryptionInfo(mcc, mnc, keyType, keyId, in getCarrierInfoForImsiEncryption()
152 return new ImsiEncryptionInfo(mcc, mnc, keyType, keyIdentifier, carrier_key, in getCarrierInfoForImsiEncryption()
275 String mcc = ""; in deleteCarrierInfoForImsiEncryption() local
281 mcc = simOperator.substring(0, 3); in deleteCarrierInfoForImsiEncryption()
290 String[] whereArgs = new String[] { mcc, mnc }; in deleteCarrierInfoForImsiEncryption()
DCarrierKeyDownloadManager.java457 String mcc = mccMnc.substring(0, 3); in parseJsonAndPersistKey() local
484 savePublicKey(keyInfo.first, type, identifier, keyInfo.second, mcc, mnc); in parseJsonAndPersistKey()
600 String mcc, String mnc) { in savePublicKey() argument
601 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/base/core/java/android/content/res/
DConfiguration.java107 public int mcc; field in Configuration
951 mcc = o.mcc; in setTo()
991 if (mcc != 0) { in toString()
992 sb.append(mcc); in toString()
1165 protoOutputStream.write(MCC, mcc); in dumpDebug()
1236 mcc = protoInputStream.readInt(MCC); in readFromProto()
1426 mcc = mnc = 0; in setToDefaults()
1478 if (delta.mcc != 0 && mcc != delta.mcc) { in updateFrom()
1480 mcc = delta.mcc; in updateFrom()
1665 mcc = delta.mcc; in setTo()
[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/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/libs/androidfw/
DConfigDescription.cpp37 if (out) out->mcc = 0; in parseMcc()
58 if (out) out->mcc = d; in parseMcc()
910 if (mcc || o.mcc) return (!o.mcc); in HasHigherPrecedenceThan()
973 return !pred(mcc, o.mcc) || !pred(mnc, o.mnc) || !pred(locale, o.locale) || in ConflictsWith()
/frameworks/base/tools/aapt2/test/
DBuilders.h217 ConfigDescriptionBuilder& setMcc(uint16_t mcc) { in setMcc() argument
218 config_.mcc = mcc; in setMcc()

123