Home | History | Annotate | Download | only in telephony

Lines Matching defs:mcc

74     private static MccEntry entryForMcc(int mcc) {
75 MccEntry m = new MccEntry(mcc, "", 0);
87 * Returns a default time zone ID for the given MCC.
88 * @param mcc Mobile Country Code
91 public static String defaultTimeZoneForMcc(int mcc) {
92 MccEntry entry = entryForMcc(mcc);
105 public static String countryCodeForMcc(int mcc) {
106 MccEntry entry = entryForMcc(mcc);
120 public static String defaultLanguageForMcc(int mcc) {
121 MccEntry entry = entryForMcc(mcc);
123 Slog.d(LOG_TAG, "defaultLanguageForMcc(" + mcc + "): no country for mcc");
137 Slog.d(LOG_TAG, "defaultLanguageForMcc(" + mcc + "): country " + country + " uses " +
147 public static int smallestDigitsMccForMnc(int mcc) {
148 MccEntry entry = entryForMcc(mcc);
158 * Updates MCC and MNC device configuration information for application retrieving
159 * correct version of resources. If MCC is 0, MCC and MNC will be ignored (not set).
161 * @param mccmnc truncated imsi with just the MCC and MNC - MNC assumed to be from 4th to end
177 int mcc, mnc;
188 mcc = Integer.parseInt(mccmnc.substring(0,3));
195 Slog.d(LOG_TAG, "updateMccMncConfiguration: mcc=" + mcc + ", mnc=" + mnc);
196 if (mcc != 0) {
197 setTimezoneFromMccIfNeeded(context, mcc);
200 setWifiCountryCodeFromMcc(context, mcc);
206 if (mcc != 0) {
207 config.mcc = mcc;
356 * If the timezone is not already set, set it based on the MCC of the SIM.
358 * @param mcc Mobile Country Code of the SIM or SIM-like entity (build prop on CDMA)
360 private static void setTimezoneFromMccIfNeeded(Context context, int mcc) {
362 String zoneId = defaultTimeZoneForMcc(mcc);
364 // Set time zone based on MCC
372 * Get Locale based on the MCC of the SIM.
375 * @param mcc Mobile Country Code of the SIM or SIM-like entity (build prop on CDMA)
378 * @return locale for the mcc or null if none
380 public static Locale getLocaleFromMcc(Context context, int mcc, String simLanguage) {
382 String language = hasSimLanguage ? simLanguage : MccTable.defaultLanguageForMcc(mcc);
383 String country = MccTable.countryCodeForMcc(mcc);
385 Slog.d(LOG_TAG, "getLocaleFromMcc(" + language + ", " + country + ", " + mcc);
391 language = MccTable.defaultLanguageForMcc(mcc);
392 Slog.d(LOG_TAG, "[retry ] getLocaleFromMcc(" + language + ", " + country + ", " + mcc);
404 * @param mcc Mobile Country Code of the operator. 0 if not known
406 private static void setWifiCountryCodeFromMcc(Context context, int mcc) {
407 String country = MccTable.countryCodeForMcc(mcc);