Searched refs:mcc (Results 1 - 25 of 51) sorted by relevance

123

/frameworks/base/telephony/java/android/telephony/
H A DImsiEncryptionInfo.java40 private final String mcc; field in class:ImsiEncryptionInfo
48 public ImsiEncryptionInfo(String mcc, String mnc, int keyType, String keyIdentifier, argument
50 this(mcc, mnc, keyType, keyIdentifier, makeKeyObject(key), expirationTime);
53 public ImsiEncryptionInfo(String mcc, String mnc, int keyType, String keyIdentifier, argument
58 this.mcc = mcc;
71 mcc = in.readString();
83 return this.mcc;
136 dest.writeString(mcc);
146 + "mcc
[all...]
H A DCellIdentity.java98 protected CellIdentity(String tag, int type, String mcc, String mnc, String alphal, argument
103 // Only allow INT_MAX if unknown string mcc/mnc
104 if (mcc == null || mcc.matches("^[0-9]{3}$")) {
105 mMccStr = mcc;
106 } else if (mcc.isEmpty() || mcc.equals(String.valueOf(Integer.MAX_VALUE))) {
113 log("invalid MCC format: " + mcc);
H A DCellIdentityTdscdma.java50 * @param mcc 3-digit Mobile Country Code, 0..999
58 public CellIdentityTdscdma(int mcc, int mnc, int lac, int cid, int cpid) { argument
59 this(String.valueOf(mcc), String.valueOf(mnc), lac, cid, cpid, null, null);
63 * @param mcc 3-digit Mobile Country Code in string format
72 public CellIdentityTdscdma(String mcc, String mnc, int lac, int cid, int cpid) { argument
73 super(TAG, TYPE_TDSCDMA, mcc, mnc, null, null);
80 * @param mcc 3-digit Mobile Country Code in string format
90 public CellIdentityTdscdma(String mcc, String mnc, int lac, int cid, int cpid, argument
92 super(TAG, TYPE_TDSCDMA, mcc, mnc, alphal, alphas);
H A DCellIdentityWcdma.java53 * @param mcc 3-digit Mobile Country Code, 0..999
61 public CellIdentityWcdma (int mcc, int mnc, int lac, int cid, int psc) { argument
62 this(lac, cid, psc, Integer.MAX_VALUE, String.valueOf(mcc), String.valueOf(mnc),
68 * @param mcc 3-digit Mobile Country Code, 0..999
77 public CellIdentityWcdma (int mcc, int mnc, int lac, int cid, int psc, int uarfcn) { argument
78 this(lac, cid, psc, uarfcn, String.valueOf(mcc), String.valueOf(mnc), null, null);
H A DSubscriptionInfo.java142 Bitmap icon, int mcc, int mnc, String countryIso) {
144 roaming, icon, mcc, mnc, countryIso, false /* isEmbedded */,
153 Bitmap icon, int mcc, int mnc, String countryIso, boolean isEmbedded,
156 roaming, icon, mcc, mnc, countryIso, isEmbedded, accessRules, null /* cardId */);
164 Bitmap icon, int mcc, int mnc, String countryIso, boolean isEmbedded,
176 this.mMcc = mcc;
428 int mcc = source.readInt();
437 nameSource, iconTint, number, dataRoaming, iconBitmap, mcc, mnc, countryIso,
494 + " dataRoaming=" + mDataRoaming + " iconBitmap=" + mIconBitmap + " mcc " + mMcc
140 SubscriptionInfo(int id, String iccId, int simSlotIndex, CharSequence displayName, CharSequence carrierName, int nameSource, int iconTint, String number, int roaming, Bitmap icon, int mcc, int mnc, String countryIso) argument
151 SubscriptionInfo(int id, String iccId, int simSlotIndex, CharSequence displayName, CharSequence carrierName, int nameSource, int iconTint, String number, int roaming, Bitmap icon, int mcc, int mnc, String countryIso, boolean isEmbedded, @Nullable UiccAccessRule[] accessRules) argument
162 SubscriptionInfo(int id, String iccId, int simSlotIndex, CharSequence displayName, CharSequence carrierName, int nameSource, int iconTint, String number, int roaming, Bitmap icon, int mcc, int mnc, String countryIso, boolean isEmbedded, @Nullable UiccAccessRule[] accessRules, String cardId) argument
H A DCellIdentityGsm.java53 * @param mcc 3-digit Mobile Country Code, 0..999
60 public CellIdentityGsm(int mcc, int mnc, int lac, int cid) { argument
62 String.valueOf(mcc), String.valueOf(mnc), null, null);
67 * @param mcc 3-digit Mobile Country Code, 0..999
76 public CellIdentityGsm(int mcc, int mnc, int lac, int cid, int arfcn, int bsic) { argument
77 this(lac, cid, arfcn, bsic, String.valueOf(mcc), String.valueOf(mnc), null, null);
H A DCellIdentityLte.java57 * @param mcc 3-digit Mobile Country Code, 0..999
65 public CellIdentityLte(int mcc, int mnc, int ci, int pci, int tac) { argument
66 this(ci, pci, tac, Integer.MAX_VALUE, Integer.MAX_VALUE, String.valueOf(mcc),
72 * @param mcc 3-digit Mobile Country Code, 0..999
81 public CellIdentityLte(int mcc, int mnc, int ci, int pci, int tac, int earfcn) { argument
82 this(ci, pci, tac, earfcn, Integer.MAX_VALUE, String.valueOf(mcc), String.valueOf(mnc),
/frameworks/base/services/core/java/com/android/server/emergency/
H A DEmergencyAffordanceService.java226 int mcc = info.getMcc();
227 if (mccRequiresEmergencyAffordance(mcc)) {
230 } else if (mcc != 0 && mcc != Integer.MAX_VALUE){
231 // a Sim with a different mcc code was found
235 mcc = 0;
237 mcc = Integer.parseInt(simOperator.substring(0, 3));
239 if (mcc != 0) {
240 if (mccRequiresEmergencyAffordance(mcc)) {
244 // a Sim with a different mcc cod
318 mccRequiresEmergencyAffordance(int mcc) argument
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DLocaleTracker.java186 String mcc = null;
188 mcc = ((CellInfoGsm) cellInfo).getCellIdentity().getMccString();
190 mcc = ((CellInfoLte) cellInfo).getCellIdentity().getMccString();
192 mcc = ((CellInfoWcdma) cellInfo).getCellIdentity().getMccString();
194 if (mcc != null) {
196 if (countryCodeMap.containsKey(mcc)) {
197 count = countryCodeMap.get(mcc) + 1;
199 countryCodeMap.put(mcc, count);
204 selectedMcc = mcc;
264 if (DBG) log("updateOperatorNumericSync. mcc/mn
[all...]
H A DMccTable.java74 private static MccEntry entryForMcc(int mcc) { argument
75 MccEntry m = new MccEntry(mcc, "", 0);
88 * @param mcc Mobile Country Code
91 public static String defaultTimeZoneForMcc(int mcc) { argument
92 MccEntry entry = entryForMcc(mcc);
105 public static String countryCodeForMcc(int mcc) { argument
106 MccEntry entry = entryForMcc(mcc);
120 public static String defaultLanguageForMcc(int mcc) { argument
121 MccEntry entry = entryForMcc(mcc);
123 Slog.d(LOG_TAG, "defaultLanguageForMcc(" + mcc
147 smallestDigitsMccForMnc(int mcc) argument
360 setTimezoneFromMccIfNeeded(Context context, int mcc) argument
380 getLocaleFromMcc(Context context, int mcc, String simLanguage) argument
406 setWifiCountryCodeFromMcc(Context context, int mcc) argument
[all...]
H A DCarrierInfoManager.java61 String mcc = "";
67 mcc = simOperator.substring(0, 3);
69 Log.i(LOG_TAG, "using values for mnc, mcc: " + mnc + "," + mcc);
83 "mcc=? and mnc=? and key_type=?",
84 new String[]{mcc, mnc, String.valueOf(keyType)}, null);
95 return new ImsiEncryptionInfo(mcc, mnc, keyType, keyIdentifier, carrier_key,
146 "mcc=? and mnc=? and key_type=?", new String[]{
212 String mcc = "";
218 mcc
[all...]
H A DCarrierKeyDownloadManager.java295 Log.e(LOG_TAG, "simOperator or mcc/mnc is empty");
302 Log.d(LOG_TAG, "values from sharedPrefs mcc, mnc: " + mccSource + "," + mncSource);
306 Log.d(LOG_TAG, "using values for mcc, mnc: " + mccCurrent + "," + mncCurrent);
414 * @param mccMnc contains the mcc, mnc.
419 Log.e(LOG_TAG, "jsonStr or mcc, mnc: is empty");
424 String mcc = "";
427 mcc = splitValue[0];
455 savePublicKey(keyInfo.first, type, identifier, keyInfo.second, mcc, mnc);
509 String mcc = "";
514 mcc
567 savePublicKey(PublicKey publicKey, int type, String identifier, long expirationDate, String mcc, String mnc) argument
[all...]
H A DCellularNetworkService.java312 cellIdentityGsm.arfcn, cellIdentityGsm.bsic, cellIdentityGsm.mcc,
323 cellIdentityWcdma.mcc, cellIdentityWcdma.mnc, null, null);
331 result = new CellIdentityTdscdma(cellIdentityTdscdma.mcc,
344 cellIdentityLte.mcc, cellIdentityLte.mnc, null, null);
385 cellIdentityGsm.base.mcc,
402 cellIdentityWcdma.base.mcc,
415 cellIdentityTdscdma.base.mcc,
436 cellIdentityLte.base.mcc,
H A DHbpcdUtils.java97 // time zone is not accurate, it may get wrong mcc, ignore it.
99 Rlog.d(LOG_TAG, "time zone is not accurate, mcc may be " + tmpMcc);
137 public String getIddByMcc(int mcc) { argument
145 MccIdd.MCC + "=" + mcc, null, null);
H A DSmsNumberUtils.java119 * @param activeMcc current network's mcc
237 * @param mcc current network's country code
241 private static ArrayList<String> getAllIDDs(Context context, String mcc) { argument
242 ArrayList<String> allIDDs = IDDS_MAPS.get(mcc);
252 // if mcc is null : return all rows
253 // if mcc is empty-string : return those rows whose mcc is emptry-string
255 if (mcc != null) {
257 selectionArgs = new String[] {mcc};
280 IDDS_MAPS.put(mcc, allIDD
[all...]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/anqp/
H A DCellularNetwork.java155 int mcc = ((plmn[0] << 8) & 0xF00) | (plmn[0] & 0x0F0) | (plmn[1] & 0x00F);
164 ? String.format("%03x%03x", mcc, (mnc << 4) | mncDigit3)
165 : String.format("%03x%02x", mcc, mnc);
/frameworks/base/core/jni/
H A Dandroid_content_res_Configuration.cpp31 jfieldID mcc; member in struct:android::__anon829
50 out->mcc = env->GetIntField(clazz, gConfigurationClassInfo.mcc);
79 gConfigurationClassInfo.mcc = GetFieldIDOrDie(env, clazz, "mcc", "I");
/frameworks/base/core/java/android/content/res/
H A DConfiguration.java93 * <a href="{@docRoot}guide/topics/resources/providing-resources.html#MccQualifier">mcc</a>
96 public int mcc; field in class:Configuration
898 mcc = o.mcc;
931 if (mcc != 0) {
932 sb.append(mcc);
933 sb.append("mcc");
935 sb.append("?mcc");
1094 protoOutputStream.write(MCC, mcc);
1177 mcc
[all...]
/frameworks/base/native/android/
H A Dconfiguration.cpp50 return config->mcc;
142 void AConfiguration_setMcc(AConfiguration* config, int32_t mcc) { argument
143 config->mcc = mcc;
/frameworks/base/telephony/java/android/telephony/euicc/
H A DEuiccRulesAuthTable.java111 * @param mcc A 2-character or 3-character string which can be either MCC or MNC.
112 * @return Whether the {@code mccRule} matches {@code mcc}.
117 public static boolean match(String mccRule, String mcc) { argument
118 if (mccRule.length() < mcc.length()) {
124 || (i < mcc.length() && mccRule.charAt(i) == mcc.charAt(i))) {
/frameworks/base/core/java/android/service/carrier/
H A DCarrierIdentifier.java53 public CarrierIdentifier(String mcc, String mnc, @Nullable String spn, @Nullable String imsi, argument
55 mMcc = mcc;
176 + "mcc=" + mMcc
/frameworks/base/core/proto/android/content/
H A Dconfiguration.proto34 optional uint32 mcc = 2;
/frameworks/base/tools/aapt2/
H A DConfiguration.proto129 uint32 mcc = 1;
H A DConfigDescription.cpp43 if (out) out->mcc = 0;
64 if (out) out->mcc = d;
913 if (mcc || o.mcc) return (!o.mcc);
976 return !pred(mcc, o.mcc) || !pred(mnc, o.mnc) || !pred(locale, o.locale) ||
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
H A DTelephonyUtil.java48 private static final String THREE_GPP_NAI_REALM_FORMAT = "wlan.mnc%s.mcc%s.3gppnetwork.org";
204 /* extract mcc & mnc from mccMnc */
205 String mcc;
208 mcc = mccMnc.substring(0, 3);
214 // extract mcc & mnc from IMSI, assume mnc size is 3
215 mcc = imsi.substring(0, 3);
219 String naiRealm = String.format(THREE_GPP_NAI_REALM_FORMAT, mnc, mcc);

Completed in 1896 milliseconds

123