/frameworks/base/telephony/java/android/telephony/ |
D | ImsiEncryptionInfo.java | 42 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()
|
D | CellIdentity.java | 80 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()
|
D | CellIdentityTdscdma.java | 88 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()
|
D | SubscriptionInfo.java | 224 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,
|
D | CellIdentityLte.java | 93 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()
|
D | CellIdentityGsm.java | 105 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()
|
D | CellIdentityWcdma.java | 110 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/ |
D | LocaleUtils.java | 47 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/ |
D | MccTable.java | 70 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 …]
|
D | LocaleTracker.java | 295 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 …]
|
D | CarrierInfoManager.java | 63 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()
|
D | CarrierKeyDownloadManager.java | 442 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/ |
D | MccTableTest.java | 48 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/ |
D | TelephonyNetworkFinder.java | 44 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/ |
D | android_content_res_Configuration.cpp | 31 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/ |
D | CellularNetwork.java | 155 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/ |
D | Configuration.java | 106 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/ |
D | CarrierIdentifier.java | 61 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/ |
D | EuiccRulesAuthTable.java | 117 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/ |
D | configuration.cpp | 50 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/ |
D | TelephonyUtil.java | 163 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/ |
D | SmsNumberUtils.java | 247 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()
|
D | HbpcdUtils.java | 137 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/ |
D | TetheringNotificationUpdaterTest.kt | 292 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/ |
D | ConfigDescription.cpp | 37 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()
|