Home
last modified time | relevance | path

Searched refs:PhoneNumberUtils (Results 1 – 25 of 63) sorted by relevance

123

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DPhoneNumberUtilsTest.java25 import android.telephony.PhoneNumberUtils;
45 mOldMinMatch = PhoneNumberUtils.getMinMatchForTest(); in setUp()
46 PhoneNumberUtils.setMinMatchForTest(MIN_MATCH); in setUp()
51 PhoneNumberUtils.setMinMatchForTest(mOldMinMatch); in tearDown()
59 PhoneNumberUtils.extractNetworkPortion("+17005554141") in testExtractNetworkPortion()
64 PhoneNumberUtils.extractNetworkPortion("+1 (700).555-4141") in testExtractNetworkPortion()
69 PhoneNumberUtils.extractNetworkPortion("1 (700).555-4141") in testExtractNetworkPortion()
75 PhoneNumberUtils.extractNetworkPortion("1 (700).555-4141*#") in testExtractNetworkPortion()
80 PhoneNumberUtils.extractNetworkPortion("1 (700).555-41NN") in testExtractNetworkPortion()
85 PhoneNumberUtils.extractNetworkPortion("1 (700).555-41NN,1234") in testExtractNetworkPortion()
[all …]
DGsmCdmaConnectionTest.java27 import android.telephony.PhoneNumberUtils;
75 "+1 (700).555-41NN%c1234", PhoneNumberUtils.PAUSE), mCT, null, in testFormatDialString()
79 String.format("+1 (700).555-41NN1234%c", PhoneNumberUtils.PAUSE)); in testFormatDialString()
104 "+1 (700).555-41NN%c1234", PhoneNumberUtils.PAUSE), mCT, null, in testSanityGSM()
122 "+1 (700).555-41NN%c1234", PhoneNumberUtils.PAUSE), mCT, null, in testSanityCDMA()
139 "+1 (700).555-41NN%c1234", PhoneNumberUtils.PAUSE), mCT, null, in testConnectionStateUpdate()
159 "+1 (700).555-41NN%c1234", PhoneNumberUtils.PAUSE), mCT, null, in testCDMAPostDialPause()
177 "+1 (700).555-41NN%c1234", PhoneNumberUtils.PAUSE), mCT, null, in testGSMPostDialPause()
197 String.format("+1 (700).555-41NN%c1234", PhoneNumberUtils.WAIT),mCT,null, in testPostDialWait()
214 "+1 (700).555-41NN%c1234", PhoneNumberUtils.PAUSE), mCT, null, in testHangUpConnection()
DCallManagerTest.java36 import android.telephony.PhoneNumberUtils;
110 PhoneNumberUtils.stripSeparators("+17005554141"), 0); in testBasicDial()
115 assertEquals(PhoneNumberUtils.stripSeparators("+17005554141"), in testBasicDial()
202 PhoneNumberUtils.stripSeparators("+17005554141"), 0); in testFgCallActiveDial()
208 assertEquals(PhoneNumberUtils.stripSeparators("+17005554141"), in testFgCallActiveDial()
DGsmCdmaCallTrackerTest.java33 import android.telephony.PhoneNumberUtils;
60 private String mDialString = PhoneNumberUtils.stripSeparators("+17005554141");
119 eq(PhoneNumberUtils.extractNetworkPortionAlt(mDialString)), eq(false), in testMOCallDial()
218 String mDialString = PhoneNumberUtils.stripSeparators("+17005554142"); in testMOCallSwitch()
248 String mDialString = PhoneNumberUtils.stripSeparators("+17005554141"); in setupRingingCall()
DSimulatedGsmCallState.java23 import android.telephony.PhoneNumberUtils;
60 mTOA = PhoneNumberUtils.TOA_International; in CallInfo()
62 mTOA = PhoneNumberUtils.TOA_Unknown; in CallInfo()
209 PhoneNumberUtils.extractNetworkPortion(number)); in triggerRing()
679 String phNum = PhoneNumberUtils.extractNetworkPortion(address); in onDial()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DSimPhonebookRecord.java21 import android.telephony.PhoneNumberUtils;
112 return input == null ? null : input.replace( 'e', PhoneNumberUtils.WAIT ) in convertRecordFormatToNumber()
113 .replace( 'T', PhoneNumberUtils.PAUSE ) in convertRecordFormatToNumber()
114 .replace( '?', PhoneNumberUtils.WILD ); in convertRecordFormatToNumber()
121 return input == null ? null : input.replace(PhoneNumberUtils.WAIT, 'e') in convertNumberToRecordFormat()
122 .replace(PhoneNumberUtils.PAUSE, 'T') in convertNumberToRecordFormat()
123 .replace(PhoneNumberUtils.WILD, '?'); in convertNumberToRecordFormat()
DAdnRecord.java24 import android.telephony.PhoneNumberUtils;
368 bcdNumber = PhoneNumberUtils.numberToCalledPartyBCD( in buildAdnString()
369 mNumber, PhoneNumberUtils.BCD_EXTENDED_TYPE_EF_ADN); in buildAdnString()
410 mNumber += PhoneNumberUtils.calledPartyBCDFragmentToString( in appendExtRecord()
414 PhoneNumberUtils.BCD_EXTENDED_TYPE_EF_ADN); in appendExtRecord()
451 mNumber = PhoneNumberUtils.calledPartyBCDToString( in parseRecord()
455 PhoneNumberUtils.BCD_EXTENDED_TYPE_EF_ADN); in parseRecord()
/frameworks/base/telephony/java/com/android/internal/telephony/gsm/
DGsmSmsAddress.java20 import android.telephony.PhoneNumberUtils;
77 address = PhoneNumberUtils.calledPartyBCDToString( in GsmSmsAddress()
81 PhoneNumberUtils.BCD_EXTENDED_TYPE_CALLED_PARTY); in GsmSmsAddress()
DSmsMessage.java31 import android.telephony.PhoneNumberUtils;
586 ret.encodedScAddress = PhoneNumberUtils.networkPortionToCalledPartyBCDWithLength( in getSubmitPduHead()
603 daBytes = PhoneNumberUtils.networkPortionToCalledPartyBCD(destinationAddress); in getSubmitPduHead()
661 PhoneNumberUtils.networkPortionToCalledPartyBCDWithLength(scAddress); in getDeliverPdu()
669 oaBytes = PhoneNumberUtils.networkPortionToCalledPartyBCD(originatingAddress); in getDeliverPdu()
810 ret = PhoneNumberUtils.calledPartyBCDToString( in getSCAddress()
811 mPdu, mCur, len, PhoneNumberUtils.BCD_EXTENDED_TYPE_CALLED_PARTY); in getSCAddress()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/
DSuppServiceNotification.java19 import android.telephony.PhoneNumberUtils;
205 + PhoneNumberUtils.stringFromStringAndTOA(number, type) + "\" "; in toString()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DGsmCdmaConnection.java31 import android.telephony.PhoneNumberUtils;
184 mAddress = PhoneNumberUtils.extractNetworkPortionAlt(dialString); in GsmCdmaConnection()
196 mPostDialString = PhoneNumberUtils.extractPostDialPortion(dialString); in GsmCdmaConnection()
322 return PhoneNumberUtils.cdmaCheckAndProcessPlusCode(ret.toString()); in formatDialString()
342 String cAddress = PhoneNumberUtils.stringFromStringAndTOA(c.number, c.TOA); in compareTo()
856 if (PhoneNumberUtils.is12Key(c)) { in processPostDialChar()
892 int wIndex = subStr.indexOf(PhoneNumberUtils.WAIT); in getRemainingPostDialString()
893 int pIndex = subStr.indexOf(PhoneNumberUtils.PAUSE); in getRemainingPostDialString()
1100 return c == PhoneNumberUtils.PAUSE; in isPause()
1105 return c == PhoneNumberUtils.WAIT; in isWait()
[all …]
DDriverCall.java20 import android.telephony.PhoneNumberUtils;
119 ret.number = PhoneNumberUtils.extractNetworkPortionAlt(p.nextString()); in fromCLCCLine()
130 ret.number = PhoneNumberUtils.stringFromStringAndTOA( in fromCLCCLine()
/frameworks/base/telephony/java/android/telephony/
DPhoneNumberFormattingTextWatcher.java122 PhoneNumberUtils.ttsSpanAsPhoneNumber(s, 0, s.length()); in afterTextChanged()
140 if (PhoneNumberUtils.isNonSeparator(c)) { in reformat()
170 if (!PhoneNumberUtils.isNonSeparator(c)) { in hasSeparator()
/frameworks/opt/net/ims/src/java/com/android/ims/rcs/uce/presence/publish/
DPublishUtils.java21 import android.telephony.PhoneNumberUtils;
126 String number = PhoneNumberUtils.stripSeparators(phoneNumber); in formatPhoneNumber()
127 return PhoneNumberUtils.normalizeNumber(number); in formatPhoneNumber()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DDeviceInfoUtils.java27 import android.telephony.PhoneNumberUtils;
187 formattedNumber = PhoneNumberUtils.formatNumber(rawNumber); in getFormattedPhoneNumber()
204 sb.append(PhoneNumberUtils.formatNumber(rawNumber)).append("\n"); in getFormattedPhoneNumbers()
/frameworks/base/telecomm/java/android/telecom/
DCallerInfoAsyncQuery.java35 import android.telephony.PhoneNumberUtils;
348 mCallerInfo.setPhoneNumber(PhoneNumberUtils.formatNumber(cw.number, in onQueryComplete()
467 String.valueOf(PhoneNumberUtils.isUriNumber(number))) in startQuery()
493 isEmergencyNumber = PhoneNumberUtils.isLocalEmergencyNumber(context, number); in startQuery()
497 } else if (PhoneNumberUtils.isVoiceMailNumber(context, subId, number)) { in startQuery()
DCallerInfo.java36 import android.telephony.PhoneNumberUtils;
412 } else if (PhoneNumberUtils.isVoiceMailNumber(null, subId, number)) { in getCallerInfo()
497 && PhoneNumberUtils.isUriNumber(number)) { in doSecondaryLookupIfNecessary()
498 String username = PhoneNumberUtils.getUsernameFromUriNumber(number); in doSecondaryLookupIfNecessary()
499 if (PhoneNumberUtils.isGlobalPhoneNumber(username)) { in doSecondaryLookupIfNecessary()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/emergency/
DEmergencyNumberTracker.java31 import android.telephony.PhoneNumberUtils;
722 number = PhoneNumberUtils.stripSeparators(number); in isEmergencyNumber()
759 emergencyNumber = PhoneNumberUtils.stripSeparators(emergencyNumber); in getEmergencyNumber()
778 emergencyNumber = PhoneNumberUtils.stripSeparators(emergencyNumber); in getEmergencyServiceCategories()
798 emergencyNumber = PhoneNumberUtils.stripSeparators(emergencyNumber); in getEmergencyCallRouting()
895 number = PhoneNumberUtils.stripSeparators(number); in isEmergencyNumberForTest()
908 number = PhoneNumberUtils.stripSeparators(number); in isEmergencyNumberFromDatabase()
925 number = PhoneNumberUtils.stripSeparators(number); in getLabeledEmergencyNumberForEcclist()
955 if (PhoneNumberUtils.isUriNumber(number)) { in isEmergencyNumberFromEccList()
961 number = PhoneNumberUtils.extractNetworkPortionAlt(number); in isEmergencyNumberFromEccList()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/sip/
DSipConnectionBase.java20 import android.telephony.PhoneNumberUtils;
55 mPostDialString = PhoneNumberUtils.extractPostDialPortion(dialString); in SipConnectionBase()
/frameworks/base/services/people/java/com/android/server/people/data/
DSmsQueryHelper.java25 import android.telephony.PhoneNumberUtils;
92 String address = PhoneNumberUtils.formatNumberToE164( in querySince()
DMmsQueryHelper.java27 import android.telephony.PhoneNumberUtils;
140 return PhoneNumberUtils.formatNumberToE164(address, mCurrentCountryIso); in getMmsAddress()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/
DImsExternalConnection.java24 import android.telephony.PhoneNumberUtils;
252 Uri telUri = PhoneNumberUtils.convertSipUriToTelUri(address); in setExternalConnectionAddress()
DImsPhoneConnection.java38 import android.telephony.PhoneNumberUtils;
256 mAddress = PhoneNumberUtils.extractNetworkPortionAlt(dialString); in ImsPhoneConnection()
257 mPostDialString = PhoneNumberUtils.extractPostDialPortion(dialString); in ImsPhoneConnection()
617 if (PhoneNumberUtils.is12Key(c)) { in processPostDialChar()
621 } else if (c == PhoneNumberUtils.PAUSE) { in processPostDialChar()
636 } else if (c == PhoneNumberUtils.WAIT) { in processPostDialChar()
638 } else if (c == PhoneNumberUtils.WILD) { in processPostDialChar()
/frameworks/base/telephony/common/com/android/internal/telephony/
DSmsNumberUtils.java26 import android.telephony.PhoneNumberUtils;
140 String networkPortionNumber = PhoneNumberUtils.extractNetworkPortion(number); in formatNumber()
312 if (!PhoneNumberUtils.isISODigit(c)) { in checkNANP()
385 if (!PhoneNumberUtils.isISODigit(c)) { in isNANP()
570 if (destAddr == null || !PhoneNumberUtils.isGlobalPhoneNumber(destAddr)) { in filterDestAddr()
/frameworks/opt/net/ims/src/java/com/android/ims/internal/
DConferenceParticipant.java24 import android.telephony.PhoneNumberUtils;
351 formattedNumber = PhoneNumberUtils.formatNumberToE164(number, countryIso); in getParticipantAddress()

123