/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/ |
D | PlmnActRecord.java | 54 public final String plmn; field in PlmnActRecord 60 public PlmnActRecord(String plmn, int accessTechs) { in PlmnActRecord() argument 61 this.plmn = plmn; in PlmnActRecord() 71 this.plmn = IccUtils.bcdPlmnToString(bytes, offset); in PlmnActRecord() 81 IccUtils.stringToBcdPlmn(this.plmn, ret, 0); in getBytes() 120 return String.format("{PLMN=%s,AccessTechs=%s}", plmn, accessTechString()); in toString() 152 dest.writeString(plmn); in writeToParcel() 171 return Objects.hash(plmn, accessTechs); in hashCode() 179 return plmn.equals(r.plmn) && accessTechs == r.accessTechs; in equals()
|
D | IccRecords.java | 1181 hplmns[i] = mHplmnActRecords[i].plmn; in getPlmnsFromHplmnActRecord() 1391 OperatorPlmnInfo[] opls, @Nullable String plmn, int lacTac) { in getNetworkNameForPlmnFromPnnOpl() argument 1392 if (opls == null || pnns == null || plmn == null || plmn.length() < PLMN_MIN_LENGTH in getNetworkNameForPlmnFromPnnOpl() 1393 || plmn.length() > PLMN_MAX_LENGTH) { in getNetworkNameForPlmnFromPnnOpl() 1398 int pnnIdx = operatorPlmnInfo.getPnnIdx(plmn, lacTac); in getNetworkNameForPlmnFromPnnOpl() 1443 public int getPnnIdx(@Nullable String plmn, int lacTac) { in getPnnIdx() argument 1444 if (plmn == null || plmn.length() != plmnNumericPattern.length()) return -1; in getPnnIdx() 1448 for (int i = 0; i < plmn.length(); i++) { in getPnnIdx() 1449 if (plmn.charAt(i) != plmnNumericPattern.charAt(i) in getPnnIdx()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/anqp/ |
D | CellularNetwork.java | 151 byte[] plmn = new byte[PLMN_DATA_BYTES]; in parsePlmn() 152 payload.get(plmn); in parsePlmn() 155 int mcc = ((plmn[0] << 8) & 0xF00) | (plmn[0] & 0x0F0) | (plmn[1] & 0x00F); in parsePlmn() 158 int mnc = ((plmn[2] << 4) & 0xF0) | ((plmn[2] >> 4) & 0x0F); in parsePlmn() 162 int mncDigit3 = (plmn[1] >> 4) & 0x0F; in parsePlmn()
|
/frameworks/base/telephony/java/android/telephony/ |
D | SmsCbLocation.java | 59 public SmsCbLocation(String plmn) { in SmsCbLocation() argument 60 mPlmn = plmn; in SmsCbLocation() 73 public SmsCbLocation(@NonNull String plmn, int lac, int cid) { in SmsCbLocation() argument 74 mPlmn = plmn; in SmsCbLocation() 163 public boolean isInLocationArea(@Nullable String plmn, int lac, int cid) { in isInLocationArea() argument 164 if (!mPlmn.equals(plmn)) { in isInLocationArea()
|
D | CellIdentityNr.java | 80 for (String plmn : additionalPlmns) { in CellIdentityNr() 81 if (isValidPlmn(plmn)) { in CellIdentityNr() 82 mAdditionalPlmns.add(plmn); in CellIdentityNr() 114 String plmn = getPlmn(); in updateGlobalCellId() local 115 if (plmn == null) return; in updateGlobalCellId() 119 mGlobalCellId = plmn + String.format("%09x", mNci); in updateGlobalCellId()
|
D | CellIdentityGsm.java | 93 for (String plmn : additionalPlmns) { in CellIdentityGsm() 94 if (isValidPlmn(plmn)) { in CellIdentityGsm() 95 mAdditionalPlmns.add(plmn); in CellIdentityGsm() 145 String plmn = getPlmn(); in updateGlobalCellId() local 146 if (plmn == null) return; in updateGlobalCellId() 150 mGlobalCellId = plmn + String.format("%04x%04x", mLac, mCid); in updateGlobalCellId()
|
D | CellIdentityTdscdma.java | 98 for (String plmn : additionalPlmns) { in CellIdentityTdscdma() 99 if (isValidPlmn(plmn)) { in CellIdentityTdscdma() 100 mAdditionalPlmns.add(plmn); in CellIdentityTdscdma() 154 String plmn = getPlmn(); in updateGlobalCellId() local 155 if (plmn == null) return; in updateGlobalCellId() 159 mGlobalCellId = plmn + String.format("%04x%04x", mLac, mCid); in updateGlobalCellId()
|
D | CellIdentityWcdma.java | 99 for (String plmn : additionalPlmns) { in CellIdentityWcdma() 100 if (isValidPlmn(plmn)) { in CellIdentityWcdma() 101 mAdditionalPlmns.add(plmn); in CellIdentityWcdma() 153 String plmn = getPlmn(); in updateGlobalCellId() local 154 if (plmn == null) return; in updateGlobalCellId() 158 mGlobalCellId = plmn + String.format("%04x%04x", mLac, mCid); in updateGlobalCellId()
|
D | CellIdentityLte.java | 128 for (String plmn : additionalPlmns) { in CellIdentityLte() 129 if (isValidPlmn(plmn)) { in CellIdentityLte() 130 mAdditionalPlmns.add(plmn); in CellIdentityLte() 183 String plmn = getPlmn(); in updateGlobalCellId() local 184 if (plmn == null) return; in updateGlobalCellId() 188 mGlobalCellId = plmn + String.format("%07x", mCi); in updateGlobalCellId()
|
D | CellIdentity.java | 274 public static boolean isValidPlmn(@NonNull String plmn) { in isValidPlmn() argument 275 if (plmn.length() < MCC_LENGTH + MNC_MIN_LENGTH in isValidPlmn() 276 || plmn.length() > MCC_LENGTH + MNC_MAX_LENGTH) { in isValidPlmn() 279 return (isMcc(plmn.substring(0, MCC_LENGTH)) && isMnc(plmn.substring(MCC_LENGTH))); in isValidPlmn()
|
D | SmsCbMessage.java | 642 String plmn; in createFromCursor() local 645 plmn = cursor.getString(plmnColumn); in createFromCursor() 647 plmn = null; in createFromCursor() 666 SmsCbLocation location = new SmsCbLocation(plmn, lac, cid); in createFromCursor()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdnr/ |
D | CarrierDisplayNameResolver.java | 307 String plmn = null; in getCarrierDisplayNameFromEf() local 309 plmn = registeredPlmnName; in getCarrierDisplayNameFromEf() 315 plmn = efPnn.isEmpty() ? "" : getPlmnNetworkName(efPnn.get(0)); in getCarrierDisplayNameFromEf() 323 if (TextUtils.isEmpty(plmn)) { in getCarrierDisplayNameFromEf() 324 plmn = TextUtils.isEmpty(registeredPlmnName) ? registeredPlmnNumeric in getCarrierDisplayNameFromEf() 329 boolean showPlmn = TextUtils.isEmpty(spn) || displayRule.shouldShowPlmn(isRoaming, plmn); in getCarrierDisplayNameFromEf() 334 .setPlmn(plmn) in getCarrierDisplayNameFromEf() 353 String plmn = efPnn.isEmpty() ? "" : getPlmnNetworkName(efPnn.get(0)); in getCarrierDisplayNameFromWifiCallingOverride() local 355 TextUtils.isEmpty(plmn) ? rawCarrierDisplayNameData.getPlmn() : plmn); in getCarrierDisplayNameFromWifiCallingOverride() 388 String plmn = null; in getOutOfServiceDisplayName() local [all …]
|
D | CarrierDisplayNameData.java | 43 private CarrierDisplayNameData(String spn, String dataSpn, boolean showSpn, String plmn, in CarrierDisplayNameData() argument 48 this.mPlmn = plmn; in CarrierDisplayNameData() 184 public Builder setPlmn(String plmn) { in setPlmn() argument 185 mPlmn = plmn; in setPlmn()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/ |
D | IccRecordsTest.java | 254 String plmn = "123456"; in testOperatorPlmnInfo() local 259 OperatorPlmnInfo opi = new OperatorPlmnInfo(plmn, lacTacStart, lacTacEnd, pnnIndex); in testOperatorPlmnInfo() 260 assertEquals(opi.getPnnIdx(plmn, lacTacStart), pnnIndex - 1); in testOperatorPlmnInfo() 261 assertEquals(opi.getPnnIdx(plmn, lacTacEnd), pnnIndex - 1); in testOperatorPlmnInfo() 262 assertEquals(opi.getPnnIdx(plmn, 0xFFFF), pnnIndex - 1); in testOperatorPlmnInfo() 268 opi = new OperatorPlmnInfo(plmn, lacTacStart, lacTacEnd, pnnIndex); in testOperatorPlmnInfo() 269 assertEquals(opi.getPnnIdx(plmn, 2), pnnIndex - 1); in testOperatorPlmnInfo() 270 assertEquals(opi.getPnnIdx(plmn, 0x2FFF), -1); in testOperatorPlmnInfo() 271 assertEquals(opi.getPnnIdx(plmn, 0xFFFF), -1); in testOperatorPlmnInfo() 273 plmn = "123DDD"; in testOperatorPlmnInfo() [all …]
|
D | SIMRecordsTest.java | 337 String plmn = "123456"; in testGetEfOpl() local 342 rawOpl.add(encodeOpl(plmn, lacTacStart, lacTacEnd, pnnIndex)); in testGetEfOpl() 343 targetOpl.add(new OperatorPlmnInfo(plmn, lacTacStart, lacTacEnd, pnnIndex)); in testGetEfOpl() 353 plmn = "123DDD"; in testGetEfOpl() 358 rawOpl.add(encodeOpl(plmn, lacTacStart, lacTacEnd, pnnIndex)); in testGetEfOpl() 359 targetOpl.add(new OperatorPlmnInfo(plmn, lacTacStart, lacTacEnd, pnnIndex)); in testGetEfOpl() 369 plmn = "123"; in testGetEfOpl() 374 rawOpl.add(encodeOpl(plmn, lacTacStart, lacTacEnd, pnnIndex)); in testGetEfOpl() 384 private byte[] encodeOpl(String plmn, int lacTacStart, int lacTacEnd, int pnnIndex) { in encodeOpl() argument 387 if (plmn.length() == 5 || plmn.length() == 6) { in encodeOpl() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | PlmnActRecordTest.java | 44 assertEquals(TEST_PLMN_5DIGIT, rec.plmn); in testConstructors() 48 assertEquals(TEST_PLMN_5DIGIT, rec.plmn); in testConstructors() 54 assertEquals(TEST_PLMN_6DIGIT, rec.plmn); in testConstructors() 58 assertEquals(TEST_PLMN_6DIGIT, rec.plmn); in testConstructors()
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
D | CarrierTextController.java | 323 String plmn = ""; in updateCarrierText() local 328 plmn = i.getStringExtra(TelephonyIntents.EXTRA_PLMN); in updateCarrierText() 330 if (DEBUG) Log.d(TAG, "Getting plmn/spn sticky brdcst " + plmn + "/" + spn); in updateCarrierText() 331 if (Objects.equals(plmn, spn)) { in updateCarrierText() 332 text = plmn; in updateCarrierText() 334 text = concatenate(plmn, spn, mSeparator); in updateCarrierText() 520 private static CharSequence concatenate(CharSequence plmn, CharSequence spn, in concatenate() argument 522 final boolean plmnValid = !TextUtils.isEmpty(plmn); in concatenate() 525 return new StringBuilder().append(plmn).append(separator).append(spn).toString(); in concatenate() 527 return plmn; in concatenate() [all …]
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/ |
D | CellularNetworkTestUtil.java | 74 for (byte[] plmn : plmnList) { in formatPLMNListIEI() 75 stream.write(plmn); in formatPLMNListIEI()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | CarrierResolver.java | 525 public final String plmn; field in CarrierResolver.CarrierMatchingRule 542 String gid1, String gid2, String plmn, String spn, String apn, in CarrierMatchingRule() argument 549 this.plmn = plmn; in CarrierMatchingRule() 564 plmn = rule.plmn; in CarrierMatchingRule() 615 if (plmn != null) { in match() 616 if (!CarrierResolver.equals(subscriptionRule.plmn, plmn, true)) { in match() 698 + " plmn: " + plmn in toString() 716 final String plmn = mPhone.getPlmn(); in getSubscriptionMatchingRule() local 735 + " plmn: " + plmn in getSubscriptionMatchingRule() 741 mccmnc, imsi, iccid, gid1, gid2, plmn, spn, apn, accessRules, in getSubscriptionMatchingRule() [all …]
|
D | ServiceStateTracker.java | 2656 String plmn = null; in updateSpnDisplayLegacy() local 2741 plmn = Resources.getSystem(). in updateSpnDisplayLegacy() 2745 plmn = Resources.getSystem(). in updateSpnDisplayLegacy() 2750 "of service, set plmn='" + plmn + "'"); in updateSpnDisplayLegacy() 2753 plmn = mSS.getOperatorAlpha(); in updateSpnDisplayLegacy() 2754 showPlmn = !TextUtils.isEmpty(plmn) && in updateSpnDisplayLegacy() 2757 if (DBG) log("updateSpnDisplay: rawPlmn = " + plmn); in updateSpnDisplayLegacy() 2761 plmn = Resources.getSystem(). in updateSpnDisplayLegacy() 2764 + showPlmn + " plmn=" + plmn); in updateSpnDisplayLegacy() 2793 } else if (!TextUtils.isEmpty(plmn) && !TextUtils.isEmpty(wfcVoiceSpnFormat)) { in updateSpnDisplayLegacy() [all …]
|
/frameworks/base/telephony/java/com/android/internal/telephony/uicc/ |
D | IccUtils.java | 155 public static void stringToBcdPlmn(final String plmn, byte[] data, int offset) { in stringToBcdPlmn() argument 156 char digit6 = (plmn.length() > 5) ? plmn.charAt(5) : 'F'; in stringToBcdPlmn() 157 data[offset] = (byte) (charToByte(plmn.charAt(1)) << 4 | charToByte(plmn.charAt(0))); in stringToBcdPlmn() 158 data[offset + 1] = (byte) (charToByte(digit6) << 4 | charToByte(plmn.charAt(2))); in stringToBcdPlmn() 159 data[offset + 2] = (byte) (charToByte(plmn.charAt(4)) << 4 | charToByte(plmn.charAt(3))); in stringToBcdPlmn()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | NetworkControllerSignalTest.java | 395 String plmn = "Test2"; in testOnReceive_stringsUpdatedAction_bothTrueAndNonNull() local 400 plmn /* plmn */); in testOnReceive_stringsUpdatedAction_bothTrueAndNonNull() 404 assertNetworkNameEquals(plmn in testOnReceive_stringsUpdatedAction_bothTrueAndNonNull() 411 boolean showPlmn, String plmn) { in createStringsUpdatedIntent() argument 420 intent.putExtra(TelephonyIntents.EXTRA_PLMN, plmn); in createStringsUpdatedIntent()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/ |
D | ANQPMatcher.java | 247 for (String plmn : network.getPlmns()) { in matchCellularNetwork() 248 if (matchMccMnc(plmn, imsiParam, simImsiList)) { in matchCellularNetwork()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | MobileSignalController.java | 472 boolean showPlmn, String plmn) { in updateNetworkName() argument 476 + " showPlmn=" + showPlmn + " plmn=" + plmn); in updateNetworkName() 480 if (showPlmn && plmn != null) { in updateNetworkName() 481 str.append(plmn); in updateNetworkName() 482 strData.append(plmn); in updateNetworkName()
|
/frameworks/opt/telephony/proto/src/ |
D | carrierId.proto | 69 repeated string plmn = 4; field
|