/packages/apps/Settings/src/com/android/settings/network/telephony/ |
D | CellInfoUtil.java | 113 String mcc = null; in convertOperatorInfoToCellInfo() local 116 mcc = operatorNumeric.substring(0, 3); in convertOperatorInfoToCellInfo() 124 mcc, in convertOperatorInfoToCellInfo() 146 String mcc = getCellIdentityMcc(cid); in cellInfoToString() local 150 cellType, cellInfo.isRegistered(), mcc, mnc, in cellInfoToString() 161 String mcc = getCellIdentityMcc(cid); in getCellIdentityMccMnc() local 163 return (mcc == null || mnc == null) ? null : mcc + mnc; in getCellIdentityMccMnc() 173 String mcc = null; in getCellIdentityMcc() local 176 mcc = ((CellIdentityGsm) cid).getMccString(); in getCellIdentityMcc() 178 mcc = ((CellIdentityWcdma) cid).getMccString(); in getCellIdentityMcc() [all …]
|
D | NetworkOperatorPreference.java | 169 final String mcc = ((CellIdentityNr) cellId).getMccString(); in getOperatorNumeric() local 170 if (mcc == null) { in getOperatorNumeric() 173 return mcc.concat(((CellIdentityNr) cellId).getMncString()); in getOperatorNumeric()
|
/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 | 122 String mcc = null; in testCarrierConfigFileNaming() 132 mcc = parser.getAttributeValue(i); in testCarrierConfigFileNaming() 155 mcc = (mcc != null) ? mcc : mccmnc.substring(0, 3); in testCarrierConfigFileNaming() 159 new CarrierIdentifier(mcc, mnc, spn, imsi, gid1, gid2)); in testCarrierConfigFileNaming()
|
/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/apps/Settings/src/com/android/settings/network/apn/ |
D | ApnEditor.java | 547 final String mcc = (subInfo == null) ? null : subInfo.getMccString(); in fillUI() local 551 if ((!TextUtils.isEmpty(mcc)) && (!TextUtils.isEmpty(mcc))) { in fillUI() 553 mMcc.setText(mcc); in fillUI() 556 mCurMcc = mcc; in fillUI() 717 final String mcc = (subInfo == null) ? "" : in mvnoDescription() local 721 mMvnoMatchData.setText(mcc + mnc + "x"); in mvnoDescription() 941 final String mcc = checkNotSet(mMcc.getText()); in validateAndSaveApnData() local 1043 mcc, in validateAndSaveApnData() 1053 values.put(Telephony.Carriers.NUMERIC, mcc + mnc); in validateAndSaveApnData() 1056 if (mCurMnc.equals(mnc) && mCurMcc.equals(mcc)) { in validateAndSaveApnData() [all …]
|
/packages/apps/Settings/tests/unit/src/com/android/settings/network/telephony/ |
D | NetworkSelectSettingsTest.java | 169 private CellInfoLte createLteCellInfo(boolean registered, int cellId, String mcc, String mnc, in createLteCellInfo() argument 172 cellId, 5, 200, 2000, new int[]{1, 2}, 10000, new String(mcc), in createLteCellInfo() 185 private CellInfoGsm createGsmCellInfo(boolean registered, int cellId, String mcc, String mnc, in createGsmCellInfo() argument 187 CellIdentityGsm cig = new CellIdentityGsm(1, cellId, 40, 5, new String(mcc), in createGsmCellInfo()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/anqp/ |
D | CellularNetwork.java | 155 int mcc = ((plmn[0] << 8) & 0xF00) | (plmn[0] & 0x0F0) | (plmn[1] & 0x00F); in parsePlmn() local 164 ? String.format("%03x%03x", mcc, (mnc << 4) | mncDigit3) in parsePlmn() 165 : String.format("%03x%02x", mcc, mnc); in parsePlmn()
|
/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/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 | 867 String mcc = ""; in getCarrierIdentifierForPhoneId() local 878 mcc = simOperator.substring(0, 3); in getCarrierIdentifierForPhoneId() 889 return new CarrierIdentifier(mcc, mnc, spn, imsi, gid1, gid2, carrierId, specificCarrierId); in getCarrierIdentifierForPhoneId()
|
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/ |
D | TetheringNotificationUpdaterTest.kt | 350 assertEquals(config.mcc, res.configuration.mcc) in testGetResourcesForSubId() 355 assertEquals(config.mcc, res.configuration.mcc) in testGetResourcesForSubId() 360 assertEquals(311, res.configuration.mcc) in testGetResourcesForSubId()
|
/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() 1880 final String mcc = getMccFromCellInfo(cell); in getLocationMcc() local 1881 if (mcc != null) { in getLocationMcc() 1882 final int count = countryCodeMap.getOrDefault(mcc, 0) + 1; in getLocationMcc() 1883 countryCodeMap.put(mcc, count); in getLocationMcc() 1907 private Context getContextByMccMnc(final int mcc, final int mnc) { in getContextByMccMnc() argument 1909 if (mcc != UNSET_MCC_OR_MNC) config.mcc = mcc; in getContextByMccMnc() 1920 return getContextByMccMnc(overrideInfo.mcc, overrideInfo.mnc); in getCustomizedContextOrDefault() [all …]
|
/packages/services/AlternativeNetworkAccess/src/com/android/ons/ |
D | ONSProfileSelector.java | 266 String mcc = ""; in getMcc() local 268 mcc = ((CellInfoLte) cellInfo).getCellIdentity().getMccString(); in getMcc() 271 return mcc; in getMcc() 283 private int getSubIdUsingAvailableNetworks(String mcc, String mnc, int priorityLevel) { in getSubIdUsingAvailableNetworks() argument 284 String mccMnc = mcc + mnc; in getSubIdUsingAvailableNetworks()
|
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/ |
D | TetheringNotificationUpdater.java | 127 MccMncOverrideInfo(String visitedMccMnc, int mcc, int mnc) { in MccMncOverrideInfo() argument 129 this.homeMcc = mcc; in MccMncOverrideInfo() 207 config.mcc = overrideInfo.homeMcc; in getResourcesForSubId()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | WifiCarrierInfoManager.java | 1952 String mcc; in extractMccMnc() local 1955 mcc = mccMnc.substring(0, 3); in extractMccMnc() 1962 mcc = imsi.substring(0, 3); in extractMccMnc() 1964 vlogd("Guessing from IMSI, MCC=" + mcc + "; MNC=" + mnc); in extractMccMnc() 1968 return Pair.create(mcc, mnc); in extractMccMnc()
|
/packages/apps/CarrierConfig/ |
D | README | 7 CarrierIdentifier objects, rather than just mcc/mnc. per-network configuration files live in assets
|
/packages/modules/NetworkStack/tests/unit/src/com/android/server/connectivity/ |
D | NetworkMonitorTest.java | 909 wnm.getCustomizedContextOrDefault().getResources().getConfiguration().mcc); in testGetLocationMcc() 926 wnm.getCustomizedContextOrDefault().getResources().getConfiguration().mcc); in testGetMccMncOverrideInfo() 932 assertNotEquals(-1, wnm.sCarrierIdToMccMnc.valueAt(i).mcc); in testGetMccMncOverrideInfo() 937 private CellInfoGsm makeTestCellInfoGsm(String mcc) throws Exception { in makeTestCellInfoGsm() argument 939 final CellIdentityGsm ci = makeCellIdentityGsm(0, 0, 0, 0, mcc, "01", "", ""); in makeTestCellInfoGsm() 944 private CellInfoLte makeTestCellInfoLte(String mcc) throws Exception { in makeTestCellInfoLte() argument 946 final CellIdentityLte ci = makeCellIdentityLte(0, 0, 0, 0, 0, mcc, "01", "", ""); in makeTestCellInfoLte() 959 config.mcc = testMcc; in setupNoSimCardNeighborMcc()
|
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/ |
D | TelephonyProvider.java | 2293 String mcc = parser.getAttributeValue(null, "mcc"); in getRow() local 2295 String mccString = mcc; in getRow() 2300 mccString = String.format("%03d", Integer.parseInt(mcc)); in getRow() 4943 int mcc, mnc; in fillInMccMncStringAtCursor() local 4946 mcc = c.getInt(c.getColumnIndexOrThrow(Telephony.SimInfo.COLUMN_MCC)); in fillInMccMncStringAtCursor() 4955 String mccString = String.format(Locale.getDefault(), "%03d", mcc); in fillInMccMncStringAtCursor() 4969 private static String getBestStringMnc(Context context, String mcc, int mnc) { in getBestStringMnc() argument 4976 Arrays.asList(COUNTRY_MCC_WITH_THREE_DIGIT_MNC).contains(mcc); in getBestStringMnc() 4977 int twoDigitResult = countMccMncInCarrierList(context, mcc + twoDigitMnc); in getBestStringMnc() 4978 int threeDigitResult = countMccMncInCarrierList(context, mcc + threeDigitMnc); in getBestStringMnc()
|
/packages/modules/Connectivity/tests/unit/java/android/net/util/ |
D | MultinetworkPolicyTrackerTest.kt | 150 verify(context).createConfigurationContext(argThat { it.mcc == 310 && it.mnc == 210 }) in testOnActiveDataSubscriptionIdChanged()
|
/packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/ |
D | TelephonyProviderTest.java | 474 int mcc = Integer.valueOf(mccMncs.get(idx).substring(0, 3)); in testMccMncMigration() 477 cv.put(SubscriptionManager.MCC, mcc); in testMccMncMigration() 502 String mcc = c.getString(c.getColumnIndexOrThrow(SubscriptionManager.MCC_STRING)); in testMccMncMigration() local 504 assertTrue(mccMncs.contains(mcc + mnc)); in testMccMncMigration()
|