Home
last modified time | relevance | path

Searched refs:mcc (Results 1 – 22 of 22) sorted by relevance

/packages/apps/Stk/src/com/android/stk/
DStkMenuConfig.java64 public int mcc; field in StkMenuConfig.Config
69 public Config(int mcc, int mnc, String label, String icon) { in Config() argument
70 this.mcc = mcc; in Config()
132 int mcc = Integer.parseInt(operator.substring(0, 3)); in findConfig() local
135 if (mConfigs[slotId] != null && mConfigs[slotId].mcc == mcc in findConfig()
143 if ((config.mcc == mcc) && (config.mnc == mnc)) { in findConfig()
149 mConfigs[slotId] = new Config(mcc, mnc, null, null); in findConfig()
169 int mcc = parser.getAttributeIntValue(null, XML_MCC_ATTR, UNSPECIFIED); in initialize() local
172 if ((mcc == UNSPECIFIED) || (mnc == UNSPECIFIED)) { in initialize()
179 Config config = new Config(mcc, mnc, label, icon); in initialize()
/packages/apps/Messaging/src/com/android/messaging/sms/
DBugleCarrierConfigValuesLoader.java164 final int mcc = mccMnc[0]; in getSubDepContext() local
167 if (mcc == 0 && mnc == 0) { in getSubDepContext()
169 subConfig.mcc = config.mcc; in getSubDepContext()
172 subConfig.mcc = mcc; in getSubDepContext()
/packages/apps/Messaging/src/com/android/messaging/ui/appsettings/
DApnEditorActivity.java266 String mcc = numeric.substring(0, 3); in fillUi() local
270 mMcc.setText(mcc); in fillUi()
273 mCurMcc = mcc; in fillUi()
352 final String mcc = checkNotSet(mMcc.getText()); in validateAndSave() local
378 values.put(Telephony.Carriers.MCC, mcc); in validateAndSave()
381 values.put(Telephony.Carriers.NUMERIC, mcc + mnc); in validateAndSave()
384 if (mCurMnc.equals(mnc) && mCurMcc.equals(mcc)) { in validateAndSave()
441 String mcc = checkNotSet(mMcc.getText()); in getErrorMsg() local
446 } else if (mcc.length() != 3) { in getErrorMsg()
/packages/apps/Messaging/src/com/android/messaging/util/
DPhoneUtils.java301 int mcc = 0; in getMccMnc() local
304 mcc = Integer.parseInt(mccmnc.substring(0, 3)); in getMccMnc()
309 return new int[]{mcc, mnc}; in getMccMnc()
464 int mcc = 0; in getMccMnc() local
468 mcc = subInfo.getMcc(); in getMccMnc()
471 return new int[]{mcc, mnc}; in getMccMnc()
962 public static String canonicalizeMccMnc(final String mcc, final String mnc) { in canonicalizeMccMnc() argument
964 return String.format("%03d%03d", Integer.parseInt(mcc), Integer.parseInt(mnc)); in canonicalizeMccMnc()
967 LogUtil.w(TAG, "canonicalizeMccMnc: invalid mccmnc:" + mcc + " ," + mnc); in canonicalizeMccMnc()
969 return mcc + mnc; in canonicalizeMccMnc()
/packages/apps/CarrierConfig/tests/src/com/android/carrierconfig/
DCarrierConfigTest.java103 String mcc = null; in testCarrierConfigFileNaming()
113 mcc = parser.getAttributeValue(i); in testCarrierConfigFileNaming()
136 mcc = (mcc != null) ? mcc : mccmnc.substring(0, 3); in testCarrierConfigFileNaming()
140 new CarrierIdentifier(mcc, mnc, spn, imsi, gid1, gid2)); in testCarrierConfigFileNaming()
/packages/apps/Messaging/src/android/support/v7/mms/
DUtils.java139 final int mcc = mccMnc[0]; in getSubDepContext() local
141 if (mcc == 0 && mnc == 0) { in getSubDepContext()
145 subConfig.mcc = mcc; in getSubDepContext()
DDefaultApnSettingsLoader.java408 final String mcc = trimWithNullCheck(apnValues.getAsString(APN_MCC)); in loadFromResources()
412 if (mccMnc[0] == Integer.parseInt(mcc) && in loadFromResources()
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/
DTestCertActivity.java149 String mcc = ""; in savePublicKey() local
154 mcc = networkOperator.substring(0, 3); in savePublicKey()
156 Log.i(LOG_TAG, "using values for mnc, mcc: " + mnc + "," + mcc); in savePublicKey()
159 ImsiEncryptionInfo imsiEncryptionInfo = new ImsiEncryptionInfo(mcc, in savePublicKey()
/packages/apps/Settings/src/com/android/settings/network/
DApnEditor.java511 String mcc = numeric.substring(0, 3); in fillUI() local
515 mMcc.setText(mcc); in fillUI()
518 mCurMcc = mcc; in fillUI()
867 String mcc = checkNotSet(mMcc.getText()); in validateAndSaveApnData() local
969 mcc, in validateAndSaveApnData()
979 values.put(Telephony.Carriers.NUMERIC, mcc + mnc); in validateAndSaveApnData()
982 if (mCurMnc.equals(mnc) && mCurMcc.equals(mcc)) { in validateAndSaveApnData()
1077 String mcc = checkNotSet(mMcc.getText()); in validateApnData() local
1084 } else if (mcc == null || mcc.length() != 3) { in validateApnData()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/network/
DApnEditor.java511 String mcc = numeric.substring(0, 3); in fillUI() local
515 mMcc.setText(mcc); in fillUI()
518 mCurMcc = mcc; in fillUI()
867 String mcc = checkNotSet(mMcc.getText()); in validateAndSaveApnData() local
969 mcc, in validateAndSaveApnData()
979 values.put(Telephony.Carriers.NUMERIC, mcc + mnc); in validateAndSaveApnData()
982 if (mCurMnc.equals(mnc) && mCurMcc.equals(mcc)) { in validateAndSaveApnData()
1077 String mcc = checkNotSet(mMcc.getText()); in validateApnData() local
1084 } else if (mcc == null || mcc.length() != 3) { in validateApnData()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/network/telephony/
DCellInfoUtil.java138 String mcc = null; in convertOperatorInfoToCellInfo() local
141 mcc = operatorNumeric.substring(0, 3); in convertOperatorInfoToCellInfo()
149 mcc, in convertOperatorInfoToCellInfo()
/packages/services/Telephony/src/com/android/phone/
DCellInfoUtil.java138 String mcc = null; in convertOperatorInfoToCellInfo() local
141 mcc = operatorNumeric.substring(0, 3); in convertOperatorInfoToCellInfo()
149 mcc, in convertOperatorInfoToCellInfo()
DNetworkQueryService.java382 String mcc = null; in getCellInfoList() local
386 mcc = operatorNumeric.substring(0, 3); in getCellInfoList()
394 mcc, in getCellInfoList()
DCarrierConfigLoader.java615 String mcc = ""; in getCarrierIdentifierForPhoneId() local
626 mcc = simOperator.substring(0, 3); in getCarrierIdentifierForPhoneId()
637 return new CarrierIdentifier(mcc, mnc, spn, imsi, gid1, gid2, carrierId, specificCarrierId); in getCarrierIdentifierForPhoneId()
DPhoneInterfaceManager.java5460 final int mcc = info.getMcc(); in getSimLocaleForSubscriber() local
5477 final Locale mccLocale = MccTable.getLocaleFromMcc(mApp, mcc, simLanguage); in getSimLocaleForSubscriber()
/packages/apps/Settings/src/com/android/settings/network/telephony/
DCellInfoUtil.java139 String mcc = null; in convertOperatorInfoToCellInfo() local
142 mcc = operatorNumeric.substring(0, 3); in convertOperatorInfoToCellInfo()
150 mcc, in convertOperatorInfoToCellInfo()
/packages/services/AlternativeNetworkAccess/src/com/android/ons/
DONSProfileSelector.java229 String mcc = ""; in getMcc() local
231 mcc = ((CellInfoLte) cellInfo).getCellIdentity().getMccString(); in getMcc()
234 return mcc; in getMcc()
246 private int getSubIdUsingAvailableNetworks(String mcc, String mnc, int priorityLevel) { in getSubIdUsingAvailableNetworks() argument
247 String mccMnc = mcc + mnc; in getSubIdUsingAvailableNetworks()
/packages/apps/CarrierConfig/
DREADME7 CarrierIdentifier objects, rather than just mcc/mnc. per-network configuration files live in assets
/packages/services/Mms/src/com/android/mms/service/
DMmsConfigManager.java114 configuration.mcc + "/" + configuration.mnc); in loadInBackground()
/packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/
DTelephonyProviderTest.java329 int mcc = Integer.valueOf(mccMncs.get(idx).substring(0, 3)); in testMccMncMigration()
332 cv.put(SubscriptionManager.MCC, mcc); in testMccMncMigration()
357 String mcc = c.getString(c.getColumnIndexOrThrow(SubscriptionManager.MCC_STRING)); in testMccMncMigration() local
359 assertTrue(mccMncs.contains(mcc + mnc)); in testMccMncMigration()
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DTelephonyProvider.java1962 String mcc = parser.getAttributeValue(null, "mcc"); in getRow() local
1964 String numeric = mcc + mnc; in getRow()
1967 map.put(MCC, mcc); in getRow()
3998 int mcc, mnc; in fillInMccMncStringAtCursor() local
4001 mcc = c.getInt(c.getColumnIndexOrThrow(SubscriptionManager.MCC)); in fillInMccMncStringAtCursor()
4010 String mccString = String.format(Locale.getDefault(), "%03d", mcc); in fillInMccMncStringAtCursor()
4024 private static String getBestStringMnc(Context context, String mcc, int mnc) { in getBestStringMnc() argument
4036 /* selectionArgs */ new String[]{mcc + twoDigitMnc}, null) in getBestStringMnc()
/packages/providers/PartnerBookmarksProvider/src/com/android/providers/partnerbookmarks/
DPartnerBookmarksProvider.java140 return "mmc=" + Integer.toString(config.mcc) in getConfigSignature()