Home
last modified time | relevance | path

Searched refs:mnc (Results 1 – 25 of 27) sorted by relevance

12

/packages/apps/Settings/src/com/android/settings/network/telephony/
DCellInfoUtil.java114 String mnc = null; in convertOperatorInfoToCellInfo() local
117 mnc = operatorNumeric.substring(3); in convertOperatorInfoToCellInfo()
125 mnc, in convertOperatorInfoToCellInfo()
147 String mnc = getCellIdentityMnc(cid); in cellInfoToString() local
150 cellType, cellInfo.isRegistered(), mcc, mnc, in cellInfoToString()
162 String mnc = getCellIdentityMnc(cid); in getCellIdentityMccMnc() local
163 return (mcc == null || mnc == null) ? null : mcc + mnc; in getCellIdentityMccMnc()
197 String mnc = null; in getCellIdentityMnc() local
200 mnc = ((CellIdentityGsm) cid).getMncString(); in getCellIdentityMnc()
202 mnc = ((CellIdentityWcdma) cid).getMncString(); in getCellIdentityMnc()
[all …]
/packages/apps/Stk/src/com/android/stk/
DStkMenuConfig.java66 public int mnc; field in StkMenuConfig.Config
70 public Config(int mcc, int mnc, String label, String icon) { in Config() argument
72 this.mnc = mnc; in Config()
134 int mnc = Integer.parseInt(operator.substring(3)); in findConfig() local
137 && mConfigs[slotId].mnc == mnc) { in findConfig()
144 if ((config.mcc == mcc) && (config.mnc == mnc)) { in findConfig()
150 mConfigs[slotId] = new Config(mcc, mnc, null, null); in findConfig()
171 int mnc = parser.getAttributeIntValue(null, XML_MNC_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/
DBugleCarrierConfigValuesLoader.java165 final int mnc = mccMnc[1]; in getSubDepContext() local
167 if (mcc == 0 && mnc == 0) { in getSubDepContext()
170 subConfig.mnc = config.mnc; in getSubDepContext()
173 subConfig.mnc = mnc; in getSubDepContext()
/packages/services/Iwlan/src/com/google/android/iwlan/
DIwlanHelper.java54 String mnc = subInfo.getMncString(); in getNai() local
55 mnc = (mnc.length() == 2) ? '0' + mnc : mnc; in getNai()
61 .append(mnc) in getNai()
/packages/apps/Messaging/src/com/android/messaging/ui/appsettings/
DApnEditorActivity.java268 String mnc = numeric.substring(3); in fillUi() local
271 mMnc.setText(mnc); in fillUi()
272 mCurMnc = mnc; in fillUi()
353 final String mnc = checkNotSet(mMnc.getText()); in validateAndSave() local
379 values.put(Telephony.Carriers.MNC, mnc); in validateAndSave()
381 values.put(Telephony.Carriers.NUMERIC, mcc + mnc); in validateAndSave()
384 if (mCurMnc.equals(mnc) && mCurMcc.equals(mcc)) { in validateAndSave()
442 String mnc = checkNotSet(mMnc.getText()); in getErrorMsg() local
448 } else if ((mnc.length() & 0xFFFE) != 2) { in getErrorMsg()
/packages/apps/Messaging/src/com/android/messaging/util/
DPhoneUtils.java302 int mnc = 0; in getMccMnc() local
305 mnc = Integer.parseInt(mccmnc.substring(3)); in getMccMnc()
309 return new int[]{mcc, mnc}; in getMccMnc()
465 int mnc = 0; in getMccMnc() local
469 mnc = subInfo.getMnc(); 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.java123 String mnc = null; in testCarrierConfigFileNaming()
135 mnc = parser.getAttributeValue(i); in testCarrierConfigFileNaming()
156 mnc = (mnc != null) ? mnc : mccmnc.substring(3); in testCarrierConfigFileNaming()
159 new CarrierIdentifier(mcc, mnc, spn, imsi, gid1, gid2)); in testCarrierConfigFileNaming()
/packages/apps/Messaging/src/android/support/v7/mms/
DUtils.java140 final int mnc = mccMnc[1]; in getSubDepContext() local
141 if (mcc == 0 && mnc == 0) { in getSubDepContext()
146 subConfig.mnc = mnc; in getSubDepContext()
DDefaultApnSettingsLoader.java409 final String mnc = trimWithNullCheck(apnValues.getAsString(APN_MNC)); in loadFromResources()
413 mccMnc[1] == Integer.parseInt(mnc) && in loadFromResources()
/packages/apps/Settings/tests/unit/src/com/android/settings/network/telephony/
DNetworkSelectSettingsTest.java169 private CellInfoLte createLteCellInfo(boolean registered, int cellId, String mcc, String mnc, in createLteCellInfo() argument
173 new String(mnc), new String(plmnName), new String(plmnName), in createLteCellInfo()
185 private CellInfoGsm createGsmCellInfo(boolean registered, int cellId, String mcc, String mnc, in createGsmCellInfo() argument
188 new String(mnc), new String(plmnName), new String(plmnName), in createGsmCellInfo()
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/anqp/
DCellularNetwork.java158 int mnc = ((plmn[2] << 4) & 0xF0) | ((plmn[2] >> 4) & 0x0F); 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/
DTestCertActivity.java150 String mnc = ""; in savePublicKey() local
155 mnc = networkOperator.substring(3); in savePublicKey()
156 Log.i(LOG_TAG, "using values for mnc, mcc: " + mnc + "," + mcc); in savePublicKey()
160 mnc, type, identifier, keyBytes, new Date()); in savePublicKey()
/packages/apps/Settings/src/com/android/settings/network/apn/
DApnEditor.java549 final String mnc = (subInfo == null) ? null : subInfo.getMncString(); in fillUI() local
554 mMnc.setText(mnc); in fillUI()
555 mCurMnc = mnc; in fillUI()
719 final String mnc = (subInfo == null) ? "" : in mvnoDescription() local
721 mMvnoMatchData.setText(mcc + mnc + "x"); in mvnoDescription()
942 final String mnc = checkNotSet(mMnc.getText()); in validateAndSaveApnData() local
1049 mnc, in validateAndSaveApnData()
1053 values.put(Telephony.Carriers.NUMERIC, mcc + mnc); in validateAndSaveApnData()
1056 if (mCurMnc.equals(mnc) && mCurMcc.equals(mcc)) { in validateAndSaveApnData()
1152 final String mnc = checkNotSet(mMnc.getText()); in validateApnData() local
[all …]
/packages/services/Telephony/src/com/android/phone/
DCellInfoUtil.java140 String mnc = null; in convertOperatorInfoToCellInfo() local
143 mnc = operatorNumeric.substring(3); in convertOperatorInfoToCellInfo()
151 mnc, in convertOperatorInfoToCellInfo()
DCarrierConfigLoader.java868 String mnc = ""; in getCarrierIdentifierForPhoneId() local
879 mnc = simOperator.substring(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/
DTetheringNotificationUpdaterTest.kt351 assertEquals(config.mnc, res.configuration.mnc) in testGetResourcesForSubId()
356 assertEquals(config.mnc, res.configuration.mnc) in testGetResourcesForSubId()
361 assertEquals(480, res.configuration.mnc) in testGetResourcesForSubId()
/packages/services/AlternativeNetworkAccess/src/com/android/ons/
DONSProfileSelector.java275 String mnc = ""; in getMnc() local
277 mnc = ((CellInfoLte) cellInfo).getCellIdentity().getMncString(); in getMnc()
280 return mnc; in getMnc()
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/
DTetheringNotificationUpdater.java127 MccMncOverrideInfo(String visitedMccMnc, int mcc, int mnc) { in MccMncOverrideInfo() argument
130 this.homeMnc = mnc; in MccMncOverrideInfo()
208 config.mnc = overrideInfo.homeMnc; in getResourcesForSubId()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiCarrierInfoManager.java1953 String mnc; in extractMccMnc() local
1956 mnc = mccMnc.substring(3); in extractMccMnc()
1957 if (mnc.length() == 2) { in extractMccMnc()
1958 mnc = "0" + mnc; in extractMccMnc()
1963 mnc = imsi.substring(3, 6); in extractMccMnc()
1964 vlogd("Guessing from IMSI, MCC=" + mcc + "; MNC=" + mnc); in extractMccMnc()
1968 return Pair.create(mcc, mnc); in extractMccMnc()
/packages/modules/NetworkStack/src/com/android/server/connectivity/
DNetworkMonitor.java267 public final int mnc; field in NetworkMonitor.MccMncOverrideInfo
268 MccMncOverrideInfo(int mcc, int mnc) { in MccMncOverrideInfo() argument
270 this.mnc = mnc; in MccMncOverrideInfo()
1907 private Context getContextByMccMnc(final int mcc, final int mnc) { in getContextByMccMnc() argument
1910 if (mnc != UNSET_MCC_OR_MNC) config.mnc = mnc; in getContextByMccMnc()
1920 return getContextByMccMnc(overrideInfo.mcc, overrideInfo.mnc); in getCustomizedContextOrDefault()
/packages/apps/CarrierConfig/
DREADME7 CarrierIdentifier objects, rather than just mcc/mnc. per-network configuration files live in assets
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DTelephonyProvider.java2294 String mnc = parser.getAttributeValue(null, "mnc"); in getRow() local
2296 String mncString = mnc; in getRow()
2303 mncString = getBestStringMnc(mContext, mccString, Integer.parseInt(mnc)); in getRow()
4943 int mcc, mnc; in fillInMccMncStringAtCursor() local
4947 mnc = c.getInt(c.getColumnIndexOrThrow(Telephony.SimInfo.COLUMN_MNC)); in fillInMccMncStringAtCursor()
4956 String mncString = getBestStringMnc(context, mccString, mnc); in fillInMccMncStringAtCursor()
4969 private static String getBestStringMnc(Context context, String mcc, int mnc) { in getBestStringMnc() argument
4970 if (mnc >= 100 && mnc <= 999) { in getBestStringMnc()
4971 return String.valueOf(mnc); in getBestStringMnc()
4973 String twoDigitMnc = String.format(Locale.getDefault(), "%02d", mnc); in getBestStringMnc()
/packages/modules/Connectivity/tests/unit/java/android/net/util/
DMultinetworkPolicyTrackerTest.kt150 verify(context).createConfigurationContext(argThat { it.mcc == 310 && it.mnc == 210 }) in testOnActiveDataSubscriptionIdChanged()
/packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/
DTelephonyProviderTest.java475 int mnc = Integer.valueOf(mccMncs.get(idx).substring(3)); in testMccMncMigration()
478 cv.put(SubscriptionManager.MNC, mnc); in testMccMncMigration()
503 String mnc = c.getString(c.getColumnIndexOrThrow(SubscriptionManager.MNC_STRING)); in testMccMncMigration() local
504 assertTrue(mccMncs.contains(mcc + mnc)); in testMccMncMigration()
/packages/providers/PartnerBookmarksProvider/src/com/android/providers/partnerbookmarks/
DPartnerBookmarksProvider.java141 + "-mnc=" + Integer.toString(config.mnc) in getConfigSignature()

12