Home
last modified time | relevance | path

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

123

/frameworks/base/telephony/java/android/telephony/
DImsiEncryptionInfo.java43 private final String mnc; field in ImsiEncryptionInfo
51 public ImsiEncryptionInfo(String mcc, String mnc, int keyType, String keyIdentifier, in ImsiEncryptionInfo() argument
53 this(mcc, mnc, keyType, keyIdentifier, makeKeyObject(key), expirationTime); in ImsiEncryptionInfo()
57 public ImsiEncryptionInfo(String mcc, String mnc, int keyType, String keyIdentifier, in ImsiEncryptionInfo() argument
63 this.mnc = mnc; in ImsiEncryptionInfo()
77 mnc = in.readString(); in ImsiEncryptionInfo()
85 return this.mnc; in getMnc()
156 dest.writeString(mnc); in writeToParcel()
166 + "mnc=" + mnc in toString()
DCellIdentity.java81 @Nullable String mnc, @Nullable String alphal, @Nullable String alphas) { in CellIdentity() argument
98 if (mnc == null || isMnc(mnc)) { in CellIdentity()
99 mMncStr = mnc; in CellIdentity()
100 } else if (mnc.isEmpty() || mnc.equals(String.valueOf(Integer.MAX_VALUE))) { in CellIdentity()
107 log("invalid MNC format: " + mnc); in CellIdentity()
353 private static boolean isMnc(@NonNull String mnc) { in isMnc() argument
355 if (mnc.length() < MNC_MIN_LENGTH || mnc.length() > MNC_MAX_LENGTH) return false; in isMnc()
358 for (int i = 0; i < mnc.length(); i++) { in isMnc()
359 if (mnc.charAt(i) < '0' || mnc.charAt(i) > '9') return false; in isMnc()
DCellIdentityTdscdma.java88 public CellIdentityTdscdma(@Nullable String mcc, @Nullable String mnc, int lac, int cid, in CellIdentityTdscdma() argument
92 super(TAG, CellInfo.TYPE_TDSCDMA, mcc, mnc, alphal, alphas); in CellIdentityTdscdma()
115 this(cid.mcc, cid.mnc, cid.lac, cid.cid, cid.cpid, CellInfo.UNAVAILABLE, "", "", in CellIdentityTdscdma()
121 this(cid.base.mcc, cid.base.mnc, cid.base.lac, cid.base.cid, cid.base.cpid, in CellIdentityTdscdma()
128 this(cid.base.base.mcc, cid.base.base.mnc, cid.base.base.lac, cid.base.base.cid, in CellIdentityTdscdma()
DSubscriptionInfo.java224 Bitmap icon, String mcc, String mnc, String countryIso, boolean isEmbedded, in SubscriptionInfo() argument
227 roaming, icon, mcc, mnc, countryIso, isEmbedded, nativeAccessRules, cardString, -1, in SubscriptionInfo()
238 Bitmap icon, String mcc, String mnc, String countryIso, boolean isEmbedded, in SubscriptionInfo() argument
242 roaming, icon, mcc, mnc, countryIso, isEmbedded, nativeAccessRules, cardString, -1, in SubscriptionInfo()
252 Bitmap icon, String mcc, String mnc, String countryIso, boolean isEmbedded, in SubscriptionInfo() argument
269 this.mMnc = mnc; in SubscriptionInfo()
694 String mnc = source.readString();
715 carrierName, nameSource, iconTint, number, dataRoaming, iconBitmap, mcc, mnc,
DCellIdentityLte.java93 public CellIdentityLte(int mcc, int mnc, int ci, int pci, int tac) { in CellIdentityLte() argument
95 String.valueOf(mcc), String.valueOf(mnc), null, null, new ArraySet<>(), in CellIdentityLte()
140 CellInfo.UNAVAILABLE, cid.mcc, cid.mnc, "", "", new ArraySet<>(), null); in CellIdentityLte()
146 cid.bandwidth, cid.base.mcc, cid.base.mnc, cid.operatorNames.alphaLong, in CellIdentityLte()
154 cid.base.base.mcc, cid.base.base.mnc, cid.base.operatorNames.alphaLong, in CellIdentityLte()
DCellIdentityGsm.java105 cid.mcc, cid.mnc, "", "", new ArraySet<>()); in CellIdentityGsm()
112 cid.base.mnc, cid.operatorNames.alphaLong, cid.operatorNames.alphaShort, in CellIdentityGsm()
121 cid.base.base.mnc, cid.base.operatorNames.alphaLong, in CellIdentityGsm()
DCellIdentityWcdma.java110 this(cid.lac, cid.cid, cid.psc, cid.uarfcn, cid.mcc, cid.mnc, "", "", in CellIdentityWcdma()
117 cid.base.mcc, cid.base.mnc, cid.operatorNames.alphaLong, in CellIdentityWcdma()
124 cid.base.base.mcc, cid.base.base.mnc, cid.base.operatorNames.alphaLong, in CellIdentityWcdma()
DCellIdentityNr.java90 this(cid.pci, cid.tac, cid.nrarfcn, new int[] {}, cid.mcc, cid.mnc, cid.nci, in CellIdentityNr()
99 cid.base.mnc, cid.base.nci, cid.base.operatorNames.alphaLong, in CellIdentityNr()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DCarrierInfoManager.java64 String mnc = ""; in getCarrierInfoForImsiEncryption() local
67 mnc = operatorNumeric.substring(3); in getCarrierInfoForImsiEncryption()
68 Log.i(LOG_TAG, "using values for mnc, mcc: " + mnc + "," + mcc); in getCarrierInfoForImsiEncryption()
83 new String[]{mcc, mnc, String.valueOf(keyType)}, null); in getCarrierInfoForImsiEncryption()
94 return new ImsiEncryptionInfo(mcc, mnc, keyType, keyIdentifier, carrier_key, in getCarrierInfoForImsiEncryption()
212 String mnc = ""; in deleteCarrierInfoForImsiEncryption() local
218 mnc = simOperator.substring(3); in deleteCarrierInfoForImsiEncryption()
226 String[] whereArgs = new String[] { mcc, mnc }; in deleteCarrierInfoForImsiEncryption()
DMccTable.java96 public final String mnc; field in MccTable.MccMnc
112 String mnc; in fromOperatorNumeric() local
114 mnc = operatorNumeric.substring(3); in fromOperatorNumeric()
116 mnc = null; in fromOperatorNumeric()
118 return new MccMnc(mcc, mnc); in fromOperatorNumeric()
124 public MccMnc(@NonNull String mcc, @Nullable String mnc) { in MccMnc() argument
126 this.mnc = mnc; in MccMnc()
139 && Objects.equals(mnc, mccMnc.mnc); in equals()
144 return Objects.hash(mcc, mnc); in hashCode()
151 + ", mnc='" + mnc + '\'' in toString()
[all …]
DCarrierKeyDownloadManager.java443 String mnc = ""; in parseJsonAndPersistKey() local
446 mnc = splitValue[1]; in parseJsonAndPersistKey()
472 savePublicKey(keyInfo.first, type, identifier, keyInfo.second, mcc, mnc); in parseJsonAndPersistKey()
519 String mnc = ""; in downloadKey() local
524 mnc = simOperator.substring(3); in downloadKey()
525 Log.d(LOG_TAG, "using values for mcc, mnc: " + mcc + "," + mnc); in downloadKey()
542 String mccMnc = mcc + SEPARATOR + mnc; in downloadKey()
544 Log.d(LOG_TAG, "storing values in sharedpref mcc, mnc, days: " + mcc + "," + mnc in downloadKey()
581 String mcc, String mnc) { in savePublicKey() argument
582 ImsiEncryptionInfo imsiEncryptionInfo = new ImsiEncryptionInfo(mcc, mnc, type, identifier, in savePublicKey()
DCellularNetworkService.java209 final String mnc = ci.getMncString(); in getPlmnFromCellIdentity() local
211 if (TextUtils.isEmpty(mcc) || TextUtils.isEmpty(mnc)) return ""; in getPlmnFromCellIdentity()
213 return mcc + mnc; in getPlmnFromCellIdentity()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DTelephonyUtil.java164 String mnc = mccMnc.substring(3); in getAnonymousIdentityWith3GppRealm() local
166 if (mnc.length() == 2) { in getAnonymousIdentityWith3GppRealm()
167 mnc = "0" + mnc; in getAnonymousIdentityWith3GppRealm()
170 String realm = String.format(THREE_GPP_NAI_REALM_FORMAT, mnc, mcc); in getAnonymousIdentityWith3GppRealm()
280 String mnc; in buildIdentity() local
283 mnc = mccMnc.substring(3); in buildIdentity()
284 if (mnc.length() == 2) { in buildIdentity()
285 mnc = "0" + mnc; in buildIdentity()
290 mnc = imsi.substring(3, 6); in buildIdentity()
293 String naiRealm = String.format(THREE_GPP_NAI_REALM_FORMAT, mnc, mcc); in buildIdentity()
[all …]
/frameworks/base/core/java/android/timezone/
DTelephonyNetworkFinder.java44 public TelephonyNetwork findNetworkByMccMnc(@NonNull String mcc, @NonNull String mnc) { in findNetworkByMccMnc() argument
46 Objects.requireNonNull(mnc); in findNetworkByMccMnc()
49 mDelegate.findNetworkByMccMnc(mcc, mnc); in findNetworkByMccMnc()
/frameworks/base/core/jni/
Dandroid_content_res_Configuration.cpp32 jfieldID mnc; member
51 out->mnc = env->GetIntField(clazz, gConfigurationClassInfo.mnc); in android_Configuration_getFromJava()
80 gConfigurationClassInfo.mnc = GetFieldIDOrDie(env, clazz, "mnc", "I"); in register_android_content_res_Configuration()
/frameworks/opt/net/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()
/frameworks/base/core/java/android/content/res/
DConfiguration.java114 public int mnc; field in Configuration
913 mnc = o.mnc; in setTo()
951 if (mnc != 0) { in toString()
952 sb.append(mnc); in toString()
1114 protoOutputStream.write(MNC, mnc); in writeToProto()
1186 mnc = protoInputStream.readInt(MNC); in readFromProto()
1370 mcc = mnc = 0; in setToDefaults()
1425 if (delta.mnc != 0 && mnc != delta.mnc) { in updateFrom()
1427 mnc = delta.mnc; in updateFrom()
1651 if ((compareUndefined || delta.mnc != 0) && mnc != delta.mnc) { in diff()
[all …]
/frameworks/base/telephony/java/android/service/carrier/
DCarrierIdentifier.java61 public CarrierIdentifier(String mcc, String mnc, @Nullable String spn, @Nullable String imsi, in CarrierIdentifier() argument
63 this(mcc, mnc, spn, imsi, gid1, gid2, TelephonyManager.UNKNOWN_CARRIER_ID, in CarrierIdentifier()
79 public CarrierIdentifier(@NonNull String mcc, @NonNull String mnc, @Nullable String spn, in CarrierIdentifier() argument
83 mMnc = mnc; in CarrierIdentifier()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DUtils.java127 String mnc = mccmnc.substring(3); in getRealmForMccMnc() local
128 if (mnc.length() == 2) { in getRealmForMccMnc()
129 mnc = "0" + mnc; in getRealmForMccMnc()
131 return String.format("wlan.mnc%s.mcc%s.3gppnetwork.org", mnc, mcc); in getRealmForMccMnc()
/frameworks/base/native/android/
Dconfiguration.cpp54 return config->mnc; in AConfiguration_getMnc()
146 void AConfiguration_setMnc(AConfiguration* config, int32_t mnc) { in AConfiguration_setMnc() argument
147 config->mnc = mnc; in AConfiguration_setMnc()
/frameworks/base/libs/androidfw/
DConfigDescription.cpp67 if (out) out->mnc = 0; in parseMnc()
87 out->mnc = atoi(val); in parseMnc()
88 if (out->mnc == 0) { in parseMnc()
89 out->mnc = ACONFIGURATION_MNC_ZERO; in parseMnc()
908 if (mnc || o.mnc) return (!o.mnc); in HasHigherPrecedenceThan()
970 return !pred(mcc, o.mcc) || !pred(mnc, o.mnc) || !pred(locale, o.locale) || in ConflictsWith()
/frameworks/base/packages/Tethering/tests/unit/src/com/android/networkstack/tethering/
DTetheringNotificationUpdaterTest.kt293 assertEquals(config.mnc, res.configuration.mnc) in testGetResourcesForSubId()
298 assertEquals(config.mnc, res.configuration.mnc) in testGetResourcesForSubId()
303 assertEquals(480, res.configuration.mnc) in testGetResourcesForSubId()
/frameworks/base/packages/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()
/frameworks/base/tools/aapt2/test/
DBuilders.h221 ConfigDescriptionBuilder& setMnc(uint16_t mnc) { in setMnc() argument
222 config_.mnc = mnc; in setMnc()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DRILTest.java1333 lte.cellIdentityLte.mnc = MNC_STR; in testConvertHalCellInfoListForLTE()
1378 cellinfo.cellIdentityGsm.mnc = MNC_STR; in testConvertHalCellInfoListForGSM()
1420 cellinfo.cellIdentityWcdma.mnc = MNC_STR; in testConvertHalCellInfoListForWcdma()
1458 cid.base.mnc = MNC_STR; in initializeCellIdentityTdscdma_1_2()
1796 cellinfo.cellidentity.mnc = MNC_STR; in testConvertHalCellInfoList_1_4ForNr()
2175 id.base.mnc = MNC_STR; in initializeCellIdentityLte_1_2()
2199 String mcc, String mnc, String alphaLong, String alphaShort) { in getCellInfoListForLTE() argument
2207 lte.cellIdentityLte.base.mnc = mnc; in getCellInfoListForLTE()
2223 String mcc, String mnc, String alphaLong, String alphaShort) { in getCellInfoListForGSM() argument
2231 cellinfo.cellIdentityGsm.base.mnc = mnc; in getCellInfoListForGSM()
[all …]

123