Home
last modified time | relevance | path

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

1234

/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
52 public ImsiEncryptionInfo(String mcc, String mnc, int keyType, String keyIdentifier, in ImsiEncryptionInfo() argument
54 this(mcc, mnc, keyType, keyIdentifier, makeKeyObject(key), expirationTime, carrierId); in ImsiEncryptionInfo()
58 public ImsiEncryptionInfo(String mcc, String mnc, int keyType, String keyIdentifier, in ImsiEncryptionInfo() argument
63 this.mcc = mcc; in ImsiEncryptionInfo()
78 mcc = in.readString(); in ImsiEncryptionInfo()
93 return this.mcc; in getMcc()
163 dest.writeString(mcc); in writeToParcel()
174 + "mcc=" + mcc in toString()
DCellIdentity.java78 protected CellIdentity(@Nullable String tag, int type, @Nullable String mcc, in CellIdentity() argument
84 if (mcc == null || isMcc(mcc)) { in CellIdentity()
85 mMccStr = mcc; in CellIdentity()
86 } else if (mcc.isEmpty() || mcc.equals(String.valueOf(Integer.MAX_VALUE))) { in CellIdentity()
93 log("invalid MCC format: " + mcc); in CellIdentity()
337 private static boolean isMcc(@NonNull String mcc) { in isMcc() argument
339 if (mcc.length() != MCC_LENGTH) return false; in isMcc()
343 if (mcc.charAt(i) < '0' || mcc.charAt(i) > '9') return false; in isMcc()
DSubscriptionInfo.java285 Bitmap icon, String mcc, String mnc, String countryIso, boolean isEmbedded, in SubscriptionInfo() argument
288 roaming, icon, mcc, mnc, countryIso, isEmbedded, nativeAccessRules, cardString, -1, in SubscriptionInfo()
303 Bitmap icon, String mcc, String mnc, String countryIso, boolean isEmbedded, in SubscriptionInfo() argument
307 roaming, icon, mcc, mnc, countryIso, isEmbedded, nativeAccessRules, cardString, -1, in SubscriptionInfo()
321 Bitmap icon, String mcc, String mnc, String countryIso, boolean isEmbedded, in SubscriptionInfo() argument
328 roaming, icon, mcc, mnc, countryIso, isEmbedded, nativeAccessRules, cardString, in SubscriptionInfo()
342 int roaming, Bitmap icon, String mcc, String mnc, String countryIso, boolean isEmbedded, in SubscriptionInfo() argument
349 roaming, icon, mcc, mnc, countryIso, isEmbedded, nativeAccessRules, cardString, in SubscriptionInfo()
364 Bitmap icon, String mcc, String mnc, String countryIso, boolean isEmbedded, in SubscriptionInfo() argument
380 this.mMcc = TextUtils.emptyIfNull(mcc); in SubscriptionInfo()
[all …]
DCarrierInfo.java151 public CarrierInfo(@NonNull String mcc, @NonNull String mnc, @Nullable String spn, in CarrierInfo() argument
154 mMcc = mcc; in CarrierInfo()
/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 …]
DCarrierInfoManager.java76 String mcc = ""; in getCarrierInfoForImsiEncryption() local
79 mcc = operatorNumeric.substring(0, 3); in getCarrierInfoForImsiEncryption()
81 Log.i(LOG_TAG, "using values for mcc, mnc: " + mcc + "," + mnc); in getCarrierInfoForImsiEncryption()
97 new String[]{mcc, mnc, String.valueOf(keyType)}, null); in getCarrierInfoForImsiEncryption()
146 return new ImsiEncryptionInfo(mcc, mnc, keyType, keyId, in getCarrierInfoForImsiEncryption()
160 return getImsiEncryptionInfo(findCursor, mcc, mnc, keyType, in getCarrierInfoForImsiEncryption()
169 return getImsiEncryptionInfo(findCursor, mcc, mnc, keyType, cursorCarrierId); in getCarrierInfoForImsiEncryption()
182 private static ImsiEncryptionInfo getImsiEncryptionInfo(Cursor findCursor, String mcc, in getImsiEncryptionInfo() argument
189 imsiEncryptionInfo = new ImsiEncryptionInfo(mcc, mnc, in getImsiEncryptionInfo()
335 String mcc = ""; in deleteCarrierInfoForImsiEncryption() local
[all …]
DLocaleTracker.java292 String mcc = cellInfo.getCellIdentity().getMccString(); in getMccFromCellInfo() local
293 if (mcc != null) { in getMccFromCellInfo()
295 if (mccMap.containsKey(mcc)) { in getMccFromCellInfo()
296 count = mccMap.get(mcc) + 1; in getMccFromCellInfo()
298 mccMap.put(mcc, count); in getMccFromCellInfo()
303 selectedMcc = mcc; in getMccFromCellInfo()
327 String mcc = cellInfo.getCellIdentity().getMccString(); in getMccMncFromCellInfo() local
328 if (Objects.equals(mcc, mccToMatch)) { in getMccMncFromCellInfo()
330 MccMnc mccMnc = new MccMnc(mcc, mnc); in getMccMncFromCellInfo()
514 String mcc = getMccFromCellInfo(); in updateLocale() local
[all …]
/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/opt/telephony/src/java/com/android/internal/telephony/metrics/
DCellularSecurityTransparencyStats.java44 int mcc = parsePlmnPartOrDefault(simMcc, LOG_DESCRIPTOR_SIM_MCC); in logIdentifierDisclosure() local
58 writeIdentifierDisclosure(mcc, mnc, disclosureMcc, disclosureMnc, in logIdentifierDisclosure()
79 public void writeIdentifierDisclosure(int mcc, int mnc, int disclosureMcc, int disclosureMnc, in writeIdentifierDisclosure() argument
82 TelephonyStatsLog.write(TelephonyStatsLog.CELLULAR_IDENTIFIER_DISCLOSED, mcc, mnc, in writeIdentifierDisclosure()
/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/packages/SystemUI/tests/src/com/android/systemui/statusbar/connectivity/ui/
DMobileContextProviderTest.kt68 assertThat(config.mcc).isEqualTo(SUB_1_MCC) in test_oneSubscription_contextHasMccMnc()
83 assertThat(config1.mcc).isEqualTo(SUB_1_MCC) in test_twoSubscriptions_eachContextReflectsMccMnc()
87 assertThat(config2.mcc).isEqualTo(SUB_2_MCC) in test_twoSubscriptions_eachContextReflectsMccMnc()
109 whenever(it.mcc).thenReturn(SUB_1_MCC) in <lambda>()
119 whenever(it.mcc).thenReturn(SUB_2_MCC) in <lambda>()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/mobile/dataservice/
DSubscriptionInfoEntity.java32 String displayName, String carrierName, int dataRoaming, String mcc, String mnc, in SubscriptionInfoEntity() argument
46 this.mcc = mcc; in SubscriptionInfoEntity()
88 public String mcc; field in SubscriptionInfoEntity
172 mcc, in hashCode()
209 && TextUtils.equals(mcc, info.mcc) in equals()
245 .append(mcc) in toString()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/connectivity/ui/
DMobileContextProvider.kt87 return createCarrierConfigContext(context, info.mcc, info.mnc) in <lambda>()
133 private fun createCarrierConfigContext(context: Context, mcc: Int, mnc: Int): Context { in <lambda>()
136 c.mcc = mcc in <lambda>()
/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/services/core/jni/gnss/
DAGnssRil.cpp48 jboolean AGnssRil::setRefLocation(jint type, jint mcc, jint mnc, jint lac, jlong cid, jint tac, in setRefLocation() argument
58 location.cellID.mcc = static_cast<int>(mcc); in setRefLocation()
124 jboolean AGnssRil_V1_0::setRefLocation(jint type, jint mcc, jint mnc, jint lac, jlong cid, jint tac, in setRefLocation() argument
133 location.cellID.mcc = static_cast<uint16_t>(mcc); in setRefLocation()
DAGnssRil.h41 virtual jboolean setRefLocation(jint type, jint mcc, jint mnc, jint lac, jlong cid, jint tac,
55 jboolean setRefLocation(jint type, jint mcc, jint mnc, jint lac, jlong cid, jint tac, jint pcid,
72 jboolean setRefLocation(jint type, jint mcc, jint mnc, jint lac, jlong cid, jint, jint,
/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/core/java/android/content/res/
DConfiguration.java117 public int mcc; field in Configuration
1084 mcc = o.mcc; in setTo()
1125 if (mcc != 0) { in toString()
1126 sb.append(mcc); in toString()
1307 protoOutputStream.write(MCC, mcc); in dumpDebug()
1379 mcc = protoInputStream.readInt(MCC); in readFromProto()
1572 mcc = mnc = 0; in setToDefaults()
1625 if (delta.mcc != 0 && mcc != delta.mcc) { in updateFrom()
1627 mcc = delta.mcc; in updateFrom()
1817 mcc = delta.mcc; in setTo()
[all …]
/frameworks/base/telephony/java/android/telephony/euicc/
DEuiccRulesAuthTable.java120 public static boolean match(String mccRule, String mcc) { in match() argument
121 if (mccRule.length() < mcc.length()) { in match()
127 || (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/proto_logging/stats/atoms/telecomm/
Dtelecom_extension_atom.proto41 // sim mcc mnc
44 // mcc mnc of the latched network to make emergency call
/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()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/security/
DCellularIdentifierDisclosureNotifier.java148 String mcc = null; in runLogDisclosure()
151 mcc = subInfo.getMcc(); in runLogDisclosure()
155 mCellularSecurityTransparencyStats.logIdentifierDisclosure(disclosure, mcc, mnc, in runLogDisclosure()

1234