Home | History | Annotate | Download | only in telephony

Lines Matching defs:mcc

86     /** Current serving PLMN's MCC/MNC */
175 * Get the MCC from cell tower information.
177 * @return MCC in string format. Null if the information is not available.
186 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);
200 // This is unlikely, but if MCC from cell info looks different, we choose the
201 // MCC that occurs most.
204 selectedMcc = mcc;
237 // When the device is out of airplane mode or powered on, and network's MCC/MNC is
255 * Update MCC/MNC from network service state synchronously. Note if this is called from phone
260 * @param operatorNumeric MCC/MNC of the operator
264 if (DBG) log("updateOperatorNumericSync. mcc/mnc=" + operatorNumeric);
272 // that we can get MCC from it.
289 * Update MCC/MNC from network service state asynchronously. The update operation will run
294 * @param operatorNumeric MCC/MNC of the operator
297 if (DBG) log("updateOperatorNumericAsync. mcc/mnc=" + operatorNumeric);
369 // If MCC is available from network service state, use it first.
370 String mcc = null;
374 mcc = mOperatorNumeric.substring(0, 3);
375 countryIso = MccTable.countryCodeForMcc(Integer.parseInt(mcc));
377 loge("updateLocale: Can't get country from operator numeric. mcc = "
378 + mcc + ". ex=" + ex);
385 mcc = getMccFromCellInfo();
386 if (!TextUtils.isEmpty(mcc)) {
388 countryIso = MccTable.countryCodeForMcc(Integer.parseInt(mcc));
390 loge("updateLocale: Can't get country from cell info. mcc = "
391 + mcc + ". ex=" + ex);
396 String msg = "updateLocale: mcc = " + mcc + ", country = " + countryIso;