Methods Summary |
---|
public static java.lang.String | countryCodeForMcc(int mcc)Given a GSM Mobile Country Code, returns
an ISO two-character country code if available.
Returns "" if unavailable.
MccEntry entry;
entry = entryForMcc(mcc);
if (entry == null) {
return "";
} else {
return entry.iso;
}
|
static java.lang.String | defaultLanguageForMcc(int mcc)Given a GSM Mobile Country Code, returns
an ISO 2-3 character language code if available.
Returns null if unavailable.
MccEntry entry;
entry = entryForMcc(mcc);
if (entry == null) {
return null;
} else {
return entry.language;
}
|
static java.lang.String | defaultTimeZoneForMcc(int mcc)Returns a default time zone ID for the given MCC.
MccEntry entry;
entry = entryForMcc(mcc);
if (entry == null) {
return null;
} else {
return entry.timezone;
}
|
private static com.android.internal.telephony.gsm.MccTable$MccEntry | entryForMcc(int mcc)
int index;
MccEntry m;
m = new MccEntry(mcc, null, 0);
index = Collections.binarySearch(table, m);
if (index < 0) {
return null;
} else {
return table.get(index);
}
|
public static int | smallestDigitsMccForMnc(int mcc)Given a GSM Mobile Country Code, returns
the smallest number of digits that M if available.
Returns "" if unavailable.
MccEntry entry;
entry = entryForMcc(mcc);
if (entry == null) {
return 2;
} else {
return entry.smallestDigitsMnc;
}
|