Home
last modified time | relevance | path

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

123

/frameworks/base/services/core/java/com/android/server/stats/pull/netstats/
DSubInfo.java34 public final String mnc; field in SubInfo
39 public SubInfo(int subId, int carrierId, @NonNull String mcc, @NonNull String mnc, in SubInfo() argument
44 this.mnc = mnc; in SubInfo()
58 && mnc.equals(other.mnc) in equals()
64 return Objects.hash(subId, mcc, mnc, carrierId, subscriberId, isOpportunistic); in hashCode()
/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()
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()
DSubscriptionInfo.java238 Bitmap icon, String mcc, String mnc, String countryIso, boolean isEmbedded, in SubscriptionInfo() argument
241 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
256 roaming, icon, mcc, mnc, countryIso, isEmbedded, nativeAccessRules, cardString, -1, in SubscriptionInfo()
266 Bitmap icon, String mcc, String mnc, String countryIso, boolean isEmbedded, in SubscriptionInfo() argument
283 this.mMnc = mnc; in SubscriptionInfo()
765 String mnc = source.readString();
786 carrierName, nameSource, iconTint, number, dataRoaming, iconBitmap, mcc, mnc,
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/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
930 mnc = o.mnc; in setTo()
968 if (mnc != 0) { in toString()
969 sb.append(mnc); in toString()
1131 protoOutputStream.write(MNC, mnc); in dumpDebug()
1203 mnc = protoInputStream.readInt(MNC); in readFromProto()
1387 mcc = mnc = 0; in setToDefaults()
1442 if (delta.mnc != 0 && mnc != delta.mnc) { in updateFrom()
1444 mnc = delta.mnc; in updateFrom()
1622 mnc = delta.mnc; in setTo()
[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/
DWifiCarrierInfoManager.java562 String mnc = mccMnc.substring(3); in getAnonymousIdentityWith3GppRealm() local
564 if (mnc.length() == 2) { in getAnonymousIdentityWith3GppRealm()
565 mnc = "0" + mnc; in getAnonymousIdentityWith3GppRealm()
568 String realm = String.format(THREE_GPP_NAI_REALM_FORMAT, mnc, mcc); in getAnonymousIdentityWith3GppRealm()
686 String mnc; in buildIdentity() local
689 mnc = mccMnc.substring(3); in buildIdentity()
690 if (mnc.length() == 2) { in buildIdentity()
691 mnc = "0" + mnc; in buildIdentity()
696 mnc = imsi.substring(3, 6); in buildIdentity()
699 String naiRealm = String.format(THREE_GPP_NAI_REALM_FORMAT, mnc, mcc); in buildIdentity()
[all …]
/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/tools/aapt2/test/
DBuilders.h221 ConfigDescriptionBuilder& setMnc(uint16_t mnc) { in setMnc() argument
222 config_.mnc = mnc; in setMnc()
/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/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