Home
last modified time | relevance | path

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

12

/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DPlmnActRecord.java53 public final String plmn; field in PlmnActRecord
59 public PlmnActRecord(String plmn, int accessTechs) { in PlmnActRecord() argument
60 this.plmn = plmn; in PlmnActRecord()
70 this.plmn = IccUtils.bcdPlmnToString(bytes, offset); in PlmnActRecord()
80 IccUtils.stringToBcdPlmn(this.plmn, ret, 0); in getBytes()
119 return String.format("{PLMN=%s,AccessTechs=%s}", plmn, accessTechString()); in toString()
151 dest.writeString(plmn); in writeToParcel()
170 return Objects.hash(plmn, accessTechs); in hashCode()
178 return plmn.equals(r.plmn) && accessTechs == r.accessTechs; in equals()
DIccRecords.java1053 hplmns[i] = mHplmnActRecords[i].plmn; in getPlmnsFromHplmnActRecord()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/anqp/
DCellularNetwork.java151 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/com/android/internal/telephony/
DSmsCbLocation.java52 public SmsCbLocation(String plmn) { in SmsCbLocation() argument
53 mPlmn = plmn; in SmsCbLocation()
62 public SmsCbLocation(String plmn, int lac, int cid) { in SmsCbLocation() argument
63 mPlmn = plmn; in SmsCbLocation()
150 public boolean isInLocationArea(String plmn, int lac, int cid) { in isInLocationArea() argument
151 if (!mPlmn.equals(plmn)) { in isInLocationArea()
DITelephony.aidl1702 String gid2, String plmn, String spn, String carrierPrivilegeRules, String apn); in setCarrierTestOverride() argument
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/
DGsmCellBroadcastHandler.java111 String plmn = TelephonyManager.from(mContext).getNetworkOperatorForPhone( in handleGsmBroadcastSms() local
128 location = new SmsCbLocation(plmn, lac, -1); in handleGsmBroadcastSms()
133 location = new SmsCbLocation(plmn, lac, cid); in handleGsmBroadcastSms()
138 location = new SmsCbLocation(plmn); in handleGsmBroadcastSms()
187 if (!info.matchesLocation(plmn, lac, cid)) { in handleGsmBroadcastSms()
243 public boolean matchesLocation(String plmn, int lac, int cid) { in matchesLocation() argument
244 return mLocation.isInLocationArea(plmn, lac, cid); in matchesLocation()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DPlmnActRecordTest.java44 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()
DServiceStateTrackerTest.java2244 String plmn = mBundle.getStringArray(CarrierConfigManager.KEY_PNN_OVERRIDE_STRING_ARRAY)[0]; in testUpdateSpnDisplay_spnEmptyAndWifiCallingEnabled_showPlmnOnly() local
2245 plmn = plmn.split("\\s*,\\s*")[0]; in testUpdateSpnDisplay_spnEmptyAndWifiCallingEnabled_showPlmnOnly()
2248 .isEqualTo(String.format(WIFI_CALLING_VOICE_FORMAT, plmn)); in testUpdateSpnDisplay_spnEmptyAndWifiCallingEnabled_showPlmnOnly()
2273 String plmn = mBundle.getStringArray(CarrierConfigManager.KEY_PNN_OVERRIDE_STRING_ARRAY)[0]; in testUpdateSpnDisplay_inServiceNoWifiCalling_showSpnAndPlmn() local
2274 plmn = plmn.split("\\s*,\\s*")[0]; in testUpdateSpnDisplay_inServiceNoWifiCalling_showSpnAndPlmn()
2278 assertThat(b.getString(TelephonyIntents.EXTRA_PLMN)).isEqualTo(plmn); in testUpdateSpnDisplay_inServiceNoWifiCalling_showSpnAndPlmn()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdnr/
DCarrierDisplayNameData.java43 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()
DCarrierDisplayNameResolver.java307 String plmn = null; in getCarrierDisplayNameFromEf() local
312 plmn = efPnn.isEmpty() ? "" : getPlmnNetworkName(efPnn.get(0)); in getCarrierDisplayNameFromEf()
319 if (TextUtils.isEmpty(plmn)) { in getCarrierDisplayNameFromEf()
320 plmn = registeredPlmnNumeric; in getCarrierDisplayNameFromEf()
326 .setPlmn(plmn) in getCarrierDisplayNameFromEf()
376 String plmn = null; in getOutOfServiceDisplayName() local
385 plmn = mContext.getResources().getString( in getOutOfServiceDisplayName()
388 plmn = mContext.getResources().getString( in getOutOfServiceDisplayName()
395 .setPlmn(plmn) in getOutOfServiceDisplayName()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DCarrierTextController.java380 String plmn = ""; in updateCarrierText() local
385 plmn = i.getStringExtra(TelephonyIntents.EXTRA_PLMN); in updateCarrierText()
387 if (DEBUG) Log.d(TAG, "Getting plmn/spn sticky brdcst " + plmn + "/" + spn); in updateCarrierText()
388 if (Objects.equals(plmn, spn)) { in updateCarrierText()
389 text = plmn; in updateCarrierText()
391 text = concatenate(plmn, spn, mSeparator); in updateCarrierText()
577 private static CharSequence concatenate(CharSequence plmn, CharSequence spn, in concatenate() argument
579 final boolean plmnValid = !TextUtils.isEmpty(plmn); in concatenate()
582 return new StringBuilder().append(plmn).append(separator).append(spn).toString(); in concatenate()
584 return plmn; in concatenate()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/
DCellularNetworkTestUtil.java74 for (byte[] plmn : plmnList) { in formatPLMNListIEI()
75 stream.write(plmn); in formatPLMNListIEI()
/frameworks/base/telephony/java/com/android/internal/telephony/uicc/
DIccUtils.java146 public static void stringToBcdPlmn(final String plmn, byte[] data, int offset) { in stringToBcdPlmn() argument
147 char digit6 = (plmn.length() > 5) ? plmn.charAt(5) : 'F'; in stringToBcdPlmn()
148 data[offset] = (byte) (charToByte(plmn.charAt(1)) << 4 | charToByte(plmn.charAt(0))); in stringToBcdPlmn()
149 data[offset + 1] = (byte) (charToByte(digit6) << 4 | charToByte(plmn.charAt(2))); in stringToBcdPlmn()
150 data[offset + 2] = (byte) (charToByte(plmn.charAt(4)) << 4 | charToByte(plmn.charAt(3))); in stringToBcdPlmn()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DCarrierResolver.java524 public final String plmn; field in CarrierResolver.CarrierMatchingRule
541 String gid1, String gid2, String plmn, String spn, String apn, in CarrierMatchingRule() argument
548 this.plmn = plmn; in CarrierMatchingRule()
563 plmn = rule.plmn; in CarrierMatchingRule()
614 if (plmn != null) { in match()
615 if (!CarrierResolver.equals(subscriptionRule.plmn, plmn, true)) { in match()
697 + " plmn: " + plmn in toString()
715 final String plmn = mPhone.getPlmn(); in getSubscriptionMatchingRule() local
734 + " plmn: " + plmn in getSubscriptionMatchingRule()
740 mccmnc, imsi, iccid, gid1, gid2, plmn, spn, apn, accessRules, in getSubscriptionMatchingRule()
[all …]
DServiceStateTracker.java2546 String plmn = null; in updateSpnDisplayLegacy() local
2633 plmn = Resources.getSystem(). in updateSpnDisplayLegacy()
2637 plmn = Resources.getSystem(). in updateSpnDisplayLegacy()
2642 "of service, set plmn='" + plmn + "'"); in updateSpnDisplayLegacy()
2645 plmn = mSS.getOperatorAlpha(); in updateSpnDisplayLegacy()
2646 showPlmn = !TextUtils.isEmpty(plmn) && in updateSpnDisplayLegacy()
2649 if (DBG) log("updateSpnDisplay: rawPlmn = " + plmn); in updateSpnDisplayLegacy()
2653 plmn = Resources.getSystem(). in updateSpnDisplayLegacy()
2656 + showPlmn + " plmn=" + plmn); in updateSpnDisplayLegacy()
2685 } else if (!TextUtils.isEmpty(plmn) && !TextUtils.isEmpty(wfcVoiceSpnFormat)) { in updateSpnDisplayLegacy()
[all …]
DSubscriptionController.java1421 public boolean setPlmnSpn(int slotIndex, boolean showPlmn, String plmn, boolean showSpn, in setPlmnSpn() argument
1438 carrierText = plmn; in setPlmnSpn()
1441 if(!Objects.equals(spn, plmn)) { in setPlmnSpn()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DNetworkControllerSignalTest.java394 String plmn = "Test2"; in testOnReceive_stringsUpdatedAction_bothTrueAndNonNull() local
399 plmn /* plmn */); in testOnReceive_stringsUpdatedAction_bothTrueAndNonNull()
403 assertNetworkNameEquals(plmn in testOnReceive_stringsUpdatedAction_bothTrueAndNonNull()
410 boolean showPlmn, String plmn) { in createStringsUpdatedIntent() argument
419 intent.putExtra(TelephonyIntents.EXTRA_PLMN, plmn); in createStringsUpdatedIntent()
/frameworks/opt/telephony/src/java/android/telephony/
DCellBroadcastMessage.java148 String plmn; in createFromCursor() local
151 plmn = cursor.getString(plmnColumn); in createFromCursor()
153 plmn = null; in createFromCursor()
172 SmsCbLocation location = new SmsCbLocation(plmn, lac, cid); in createFromCursor()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DANQPMatcher.java276 for (String plmn : network.getPlmns()) { in matchCellularNetwork()
277 if (matchMccMnc(plmn, imsiParam, simImsiList)) { in matchCellularNetwork()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DMobileSignalController.java418 boolean showPlmn, String plmn) { in updateNetworkName() argument
422 + " showPlmn=" + showPlmn + " plmn=" + plmn); in updateNetworkName()
426 if (showPlmn && plmn != null) { in updateNetworkName()
427 str.append(plmn); in updateNetworkName()
428 strData.append(plmn); in updateNetworkName()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/
DCdmaInboundSmsHandler.java114 String plmn = in dispatchMessageRadioSpecific() local
116 SmsCbMessage cbMessage = sms.parseBroadcastSms(plmn); in dispatchMessageRadioSpecific()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/
DSubscriptionControllerMock.java156 public boolean setPlmnSpn(int slotIndex, boolean showPlmn, String plmn, boolean showSpn, in setPlmnSpn() argument
/frameworks/opt/telephony/proto/src/
DcarrierId.proto69 repeated string plmn = 4; field
/frameworks/base/wifi/java/android/net/wifi/
DWifiEnterpriseConfig.java1011 public void setPlmn(String plmn) { in setPlmn() argument
1012 setFieldValue(PLMN_KEY, plmn); in setPlmn()
/frameworks/base/telephony/java/com/android/internal/telephony/cdma/
DSmsMessage.java766 public SmsCbMessage parseBroadcastSms(String plmn) { in parseBroadcastSms() argument
777 SmsCbLocation location = new SmsCbLocation(plmn); in parseBroadcastSms()

12