/packages/apps/Stk/src/com/android/stk/ |
D | StkMenuConfig.java | 65 public int mcc; field in StkMenuConfig.Config 70 public Config(int mcc, int mnc, String label, String icon) { in Config() argument 71 this.mcc = mcc; in Config() 133 int mcc = Integer.parseInt(operator.substring(0, 3)); in findConfig() local 136 if (mConfigs[slotId] != null && mConfigs[slotId].mcc == mcc in findConfig() 144 if ((config.mcc == mcc) && (config.mnc == mnc)) { in findConfig() 150 mConfigs[slotId] = new Config(mcc, mnc, null, null); in findConfig() 170 int mcc = parser.getAttributeIntValue(null, XML_MCC_ATTR, UNSPECIFIED); in initialize() local 173 if ((mcc == UNSPECIFIED) || (mnc == UNSPECIFIED)) { in initialize() 180 Config config = new Config(mcc, mnc, label, icon); in initialize()
|
/packages/apps/Messaging/src/com/android/messaging/sms/ |
D | BugleCarrierConfigValuesLoader.java | 164 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/ |
D | ApnEditorActivity.java | 266 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/ |
D | PhoneUtils.java | 301 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/ |
D | CarrierConfigTest.java | 121 String mcc = null; in testCarrierConfigFileNaming() 131 mcc = parser.getAttributeValue(i); in testCarrierConfigFileNaming() 154 mcc = (mcc != null) ? mcc : mccmnc.substring(0, 3); in testCarrierConfigFileNaming() 158 new CarrierIdentifier(mcc, mnc, spn, imsi, gid1, gid2)); in testCarrierConfigFileNaming()
|
/packages/apps/Settings/src/com/android/settings/network/ |
D | ApnEditor.java | 575 final String mcc = (subInfo == null) ? null : subInfo.getMccString(); in fillUI() local 579 if ((!TextUtils.isEmpty(mcc)) && (!TextUtils.isEmpty(mcc))) { in fillUI() 581 mMcc.setText(mcc); in fillUI() 584 mCurMcc = mcc; in fillUI() 743 final String mcc = (subInfo == null) ? "" : in mvnoDescription() local 747 mMvnoMatchData.setText(mcc + mnc + "x"); in mvnoDescription() 957 final String mcc = checkNotSet(mMcc.getText()); in validateAndSaveApnData() local 1059 mcc, in validateAndSaveApnData() 1069 values.put(Telephony.Carriers.NUMERIC, mcc + mnc); in validateAndSaveApnData() 1072 if (mCurMnc.equals(mnc) && mCurMcc.equals(mcc)) { in validateAndSaveApnData() [all …]
|
/packages/apps/Messaging/src/android/support/v7/mms/ |
D | Utils.java | 139 final int mcc = mccMnc[0]; in getSubDepContext() local 141 if (mcc == 0 && mnc == 0) { in getSubDepContext() 145 subConfig.mcc = mcc; in getSubDepContext()
|
D | DefaultApnSettingsLoader.java | 408 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/ |
D | TestCertActivity.java | 149 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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/network/ |
D | ApnEditor.java | 511 String mcc = numeric.substring(0, 3); in fillUI() local 515 mMcc.setText(mcc); in fillUI() 518 mCurMcc = mcc; in fillUI() 871 String mcc = checkNotSet(mMcc.getText()); in validateAndSaveApnData() local 973 mcc, in validateAndSaveApnData() 983 values.put(Telephony.Carriers.NUMERIC, mcc + mnc); in validateAndSaveApnData() 986 if (mCurMnc.equals(mnc) && mCurMcc.equals(mcc)) { in validateAndSaveApnData() 1081 String mcc = checkNotSet(mMcc.getText()); in validateApnData() local 1088 } else if (mcc == null || mcc.length() != 3) { in validateApnData()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/network/telephony/ |
D | CellInfoUtil.java | 139 String mcc = null; in convertOperatorInfoToCellInfo() local 142 mcc = operatorNumeric.substring(0, 3); in convertOperatorInfoToCellInfo() 150 mcc, in convertOperatorInfoToCellInfo()
|
/packages/services/Telephony/src/com/android/phone/ |
D | CellInfoUtil.java | 139 String mcc = null; in convertOperatorInfoToCellInfo() local 142 mcc = operatorNumeric.substring(0, 3); in convertOperatorInfoToCellInfo() 150 mcc, in convertOperatorInfoToCellInfo()
|
D | CarrierConfigLoader.java | 678 String mcc = ""; in getCarrierIdentifierForPhoneId() local 689 mcc = simOperator.substring(0, 3); in getCarrierIdentifierForPhoneId() 700 return new CarrierIdentifier(mcc, mnc, spn, imsi, gid1, gid2, carrierId, specificCarrierId); in getCarrierIdentifierForPhoneId()
|
D | PhoneInterfaceManager.java | 6652 final int mcc = info.getMcc(); in getSimLocaleForSubscriber() local 6669 final Locale mccLocale = LocaleUtils.getLocaleFromMcc(mApp, mcc, simLanguage); in getSimLocaleForSubscriber()
|
/packages/apps/Settings/src/com/android/settings/network/telephony/ |
D | CellInfoUtil.java | 140 String mcc = null; in convertOperatorInfoToCellInfo() local 143 mcc = operatorNumeric.substring(0, 3); in convertOperatorInfoToCellInfo() 151 mcc, in convertOperatorInfoToCellInfo()
|
/packages/modules/NetworkStack/src/com/android/server/connectivity/ |
D | NetworkMonitor.java | 266 public final int mcc; field in NetworkMonitor.MccMncOverrideInfo 268 MccMncOverrideInfo(int mcc, int mnc) { in MccMncOverrideInfo() argument 269 this.mcc = mcc; in MccMncOverrideInfo() 1844 final String mcc = getMccFromCellInfo(cell); in getLocationMcc() local 1845 if (mcc != null) { in getLocationMcc() 1846 final int count = countryCodeMap.getOrDefault(mcc, 0) + 1; in getLocationMcc() 1847 countryCodeMap.put(mcc, count); in getLocationMcc() 1871 private Context getContextByMccMnc(final int mcc, final int mnc) { in getContextByMccMnc() argument 1873 if (mcc != UNSET_MCC_OR_MNC) config.mcc = mcc; in getContextByMccMnc() 1884 return getContextByMccMnc(overrideInfo.mcc, overrideInfo.mnc); in getCustomizedContextOrDefault() [all …]
|
/packages/services/AlternativeNetworkAccess/src/com/android/ons/ |
D | ONSProfileSelector.java | 264 String mcc = ""; in getMcc() local 266 mcc = ((CellInfoLte) cellInfo).getCellIdentity().getMccString(); in getMcc() 269 return mcc; in getMcc() 281 private int getSubIdUsingAvailableNetworks(String mcc, String mnc, int priorityLevel) { in getSubIdUsingAvailableNetworks() argument 282 String mccMnc = mcc + mnc; in getSubIdUsingAvailableNetworks()
|
/packages/modules/NetworkStack/tests/unit/src/com/android/server/connectivity/ |
D | NetworkMonitorTest.java | 888 wnm.getCustomizedContextOrDefault().getResources().getConfiguration().mcc); in testGetLocationMcc() 905 wnm.getCustomizedContextOrDefault().getResources().getConfiguration().mcc); in testGetMccMncOverrideInfo() 911 assertNotEquals(-1, wnm.sCarrierIdToMccMnc.valueAt(i).mcc); in testGetMccMncOverrideInfo() 916 private CellInfoGsm makeTestCellInfoGsm(String mcc) throws Exception { in makeTestCellInfoGsm() argument 918 final CellIdentityGsm ci = makeCellIdentityGsm(0, 0, 0, 0, mcc, "01", "", ""); in makeTestCellInfoGsm() 923 private CellInfoLte makeTestCellInfoLte(String mcc) throws Exception { in makeTestCellInfoLte() argument 925 final CellIdentityLte ci = makeCellIdentityLte(0, 0, 0, 0, 0, mcc, "01", "", ""); in makeTestCellInfoLte() 938 config.mcc = testMcc; in setupNoSimCardNeighborMcc()
|
/packages/apps/CarrierConfig/ |
D | README | 7 CarrierIdentifier objects, rather than just mcc/mnc. per-network configuration files live in assets
|
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/ |
D | TelephonyProvider.java | 2077 String mcc = parser.getAttributeValue(null, "mcc"); in getRow() local 2079 String numeric = mcc + mnc; in getRow() 2082 map.put(MCC, mcc); in getRow() 4046 int mcc, mnc; in fillInMccMncStringAtCursor() local 4049 mcc = c.getInt(c.getColumnIndexOrThrow(Telephony.SimInfo.COLUMN_MCC)); in fillInMccMncStringAtCursor() 4058 String mccString = String.format(Locale.getDefault(), "%03d", mcc); in fillInMccMncStringAtCursor() 4072 private static String getBestStringMnc(Context context, String mcc, int mnc) { in getBestStringMnc() argument 4084 /* selectionArgs */ new String[]{mcc + twoDigitMnc}, null) in getBestStringMnc()
|
/packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/ |
D | TelephonyProviderTest.java | 345 int mcc = Integer.valueOf(mccMncs.get(idx).substring(0, 3)); in testMccMncMigration() 348 cv.put(SubscriptionManager.MCC, mcc); in testMccMncMigration() 373 String mcc = c.getString(c.getColumnIndexOrThrow(SubscriptionManager.MCC_STRING)); in testMccMncMigration() local 375 assertTrue(mccMncs.contains(mcc + mnc)); in testMccMncMigration()
|
/packages/providers/PartnerBookmarksProvider/src/com/android/providers/partnerbookmarks/ |
D | PartnerBookmarksProvider.java | 140 return "mmc=" + Integer.toString(config.mcc) in getConfigSignature()
|