Home
last modified time | relevance | path

Searched refs:PhoneNumberUtils (Results 1 – 25 of 64) 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;
67 "+1 (700).555-41NN%c1234", PhoneNumberUtils.PAUSE), mCT, null, in testFormatDialString()
71 String.format("+1 (700).555-41NN1234%c", PhoneNumberUtils.PAUSE)); in testFormatDialString()
96 "+1 (700).555-41NN%c1234", PhoneNumberUtils.PAUSE), mCT, null, in testSanityGSM()
114 "+1 (700).555-41NN%c1234", PhoneNumberUtils.PAUSE), mCT, null, in testSanityCDMA()
131 "+1 (700).555-41NN%c1234", PhoneNumberUtils.PAUSE), mCT, null, in testConnectionStateUpdate()
151 "+1 (700).555-41NN%c1234", PhoneNumberUtils.PAUSE), mCT, null, in testCDMAPostDialPause()
169 "+1 (700).555-41NN%c1234", PhoneNumberUtils.PAUSE), mCT, null, in testGSMPostDialPause()
189 String.format("+1 (700).555-41NN%c1234", PhoneNumberUtils.WAIT),mCT,null, in testPostDialWait()
206 "+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;
56 private String mDialString = PhoneNumberUtils.stripSeparators("+17005554141");
105 eq(PhoneNumberUtils.extractNetworkPortionAlt(mDialString)), eq(false), in testMOCallDial()
204 String mDialString = PhoneNumberUtils.stripSeparators("+17005554142"); in testMOCallSwitch()
234 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/
DAdnRecord.java22 import android.telephony.PhoneNumberUtils;
274 bcdNumber = PhoneNumberUtils.numberToCalledPartyBCD( in buildAdnString()
275 mNumber, PhoneNumberUtils.BCD_EXTENDED_TYPE_EF_ADN); in buildAdnString()
315 mNumber += PhoneNumberUtils.calledPartyBCDFragmentToString( in appendExtRecord()
319 PhoneNumberUtils.BCD_EXTENDED_TYPE_EF_ADN); in appendExtRecord()
356 mNumber = PhoneNumberUtils.calledPartyBCDToString( in parseRecord()
360 PhoneNumberUtils.BCD_EXTENDED_TYPE_EF_ADN); in parseRecord()
/frameworks/base/telephony/java/com/android/internal/telephony/gsm/
DGsmSmsAddress.java20 import android.telephony.PhoneNumberUtils;
78 address = PhoneNumberUtils.calledPartyBCDToString( in GsmSmsAddress()
82 PhoneNumberUtils.BCD_EXTENDED_TYPE_CALLED_PARTY); in GsmSmsAddress()
DSmsMessage.java31 import android.telephony.PhoneNumberUtils;
587 ret.encodedScAddress = PhoneNumberUtils.networkPortionToCalledPartyBCDWithLength( in getSubmitPduHead()
604 daBytes = PhoneNumberUtils.networkPortionToCalledPartyBCD(destinationAddress); in getSubmitPduHead()
662 PhoneNumberUtils.networkPortionToCalledPartyBCDWithLength(scAddress); in getDeliverPdu()
670 oaBytes = PhoneNumberUtils.networkPortionToCalledPartyBCD(originatingAddress); in getDeliverPdu()
811 ret = PhoneNumberUtils.calledPartyBCDToString( in getSCAddress()
812 mPdu, mCur, len, PhoneNumberUtils.BCD_EXTENDED_TYPE_CALLED_PARTY); in getSCAddress()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DGsmCdmaConnection.java30 import android.telephony.PhoneNumberUtils;
178 mAddress = PhoneNumberUtils.extractNetworkPortionAlt(dialString); in GsmCdmaConnection()
183 mPostDialString = PhoneNumberUtils.extractPostDialPortion(dialString); in GsmCdmaConnection()
309 return PhoneNumberUtils.cdmaCheckAndProcessPlusCode(ret.toString()); in formatDialString()
329 String cAddress = PhoneNumberUtils.stringFromStringAndTOA(c.number, c.TOA); in compareTo()
832 if (PhoneNumberUtils.is12Key(c)) { in processPostDialChar()
868 int wIndex = subStr.indexOf(PhoneNumberUtils.WAIT); in getRemainingPostDialString()
869 int pIndex = subStr.indexOf(PhoneNumberUtils.PAUSE); in getRemainingPostDialString()
1076 return c == PhoneNumberUtils.PAUSE; in isPause()
1081 return c == PhoneNumberUtils.WAIT; in isWait()
[all …]
DDriverCall.java20 import android.telephony.PhoneNumberUtils;
118 ret.number = PhoneNumberUtils.extractNetworkPortionAlt(p.nextString()); in fromCLCCLine()
129 ret.number = PhoneNumberUtils.stringFromStringAndTOA( in fromCLCCLine()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/
DSuppServiceNotification.java19 import android.telephony.PhoneNumberUtils;
205 + PhoneNumberUtils.stringFromStringAndTOA(number, type) + "\" "; in toString()
DUsimDataDownloadHandler.java24 import android.telephony.PhoneNumberUtils;
90 PhoneNumberUtils.networkPortionToCalledPartyBCDWithLength( in handleUsimDataDownload()
/frameworks/base/telephony/java/android/telephony/
DPhoneNumberFormattingTextWatcher.java121 PhoneNumberUtils.ttsSpanAsPhoneNumber(s, 0, s.length()); in afterTextChanged()
139 if (PhoneNumberUtils.isNonSeparator(c)) { in reformat()
169 if (!PhoneNumberUtils.isNonSeparator(c)) { in hasSeparator()
/frameworks/base/telecomm/java/android/telecom/
DCallerInfo.java35 import android.telephony.PhoneNumberUtils;
408 if (PhoneNumberUtils.isLocalEmergencyNumber(context, number)) { in getCallerInfo()
410 } else if (PhoneNumberUtils.isVoiceMailNumber(null, subId, number)) { in getCallerInfo()
495 && PhoneNumberUtils.isUriNumber(number)) { in doSecondaryLookupIfNecessary()
496 String username = PhoneNumberUtils.getUsernameFromUriNumber(number); in doSecondaryLookupIfNecessary()
497 if (PhoneNumberUtils.isGlobalPhoneNumber(username)) { in doSecondaryLookupIfNecessary()
DCallerInfoAsyncQuery.java34 import android.telephony.PhoneNumberUtils;
341 mCallerInfo.setPhoneNumber(PhoneNumberUtils.formatNumber(cw.number, in onQueryComplete()
460 String.valueOf(PhoneNumberUtils.isUriNumber(number))) in startQuery()
478 if (PhoneNumberUtils.isLocalEmergencyNumber(context, number)) { in startQuery()
480 } else if (PhoneNumberUtils.isVoiceMailNumber(context, subId, number)) { in startQuery()
DLog.java26 import android.telephony.PhoneNumberUtils;
429 boolean isDialable = PhoneNumberUtils.isDialable(c); in obfuscatePhoneNumber()
445 if (PhoneNumberUtils.isDialable(c)) { in getDialableCount()
/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/opt/telephony/src/java/com/android/internal/telephony/emergency/
DEmergencyNumberTracker.java31 import android.telephony.PhoneNumberUtils;
715 number = PhoneNumberUtils.stripSeparators(number); in isEmergencyNumber()
751 emergencyNumber = PhoneNumberUtils.stripSeparators(emergencyNumber); in getEmergencyNumber()
770 emergencyNumber = PhoneNumberUtils.stripSeparators(emergencyNumber); in getEmergencyServiceCategories()
790 emergencyNumber = PhoneNumberUtils.stripSeparators(emergencyNumber); in getEmergencyCallRouting()
879 number = PhoneNumberUtils.stripSeparators(number); in isEmergencyNumberForTest()
892 number = PhoneNumberUtils.stripSeparators(number); in isEmergencyNumberFromDatabase()
909 number = PhoneNumberUtils.stripSeparators(number); in getLabeledEmergencyNumberForEcclist()
939 if (PhoneNumberUtils.isUriNumber(number)) { in isEmergencyNumberFromEccList()
945 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/opt/telephony/src/java/com/android/internal/telephony/vendor/
DVendorGsmCdmaPhone.java22 import android.telephony.PhoneNumberUtils;
120 if (!(PhoneNumberUtils.is12Key(c) || (c == 'D'))) { in startDtmf()
/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/telephony/src/java/com/android/internal/telephony/imsphone/
DImsExternalConnection.java23 import android.telephony.PhoneNumberUtils;
251 Uri telUri = PhoneNumberUtils.convertSipUriToTelUri(address); in setExternalConnectionAddress()
DImsPhoneConnection.java35 import android.telephony.PhoneNumberUtils;
240 mAddress = PhoneNumberUtils.extractNetworkPortionAlt(dialString); in ImsPhoneConnection()
241 mPostDialString = PhoneNumberUtils.extractPostDialPortion(dialString); in ImsPhoneConnection()
590 if (PhoneNumberUtils.is12Key(c)) { in processPostDialChar()
594 } else if (c == PhoneNumberUtils.PAUSE) { in processPostDialChar()
609 } else if (c == PhoneNumberUtils.WAIT) { in processPostDialChar()
611 } else if (c == PhoneNumberUtils.WILD) { in processPostDialChar()
/frameworks/opt/net/ims/src/java/com/android/ims/internal/
DConferenceParticipant.java24 import android.telephony.PhoneNumberUtils;
351 formattedNumber = PhoneNumberUtils.formatNumberToE164(number, countryIso); in getParticipantAddress()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/imsphone/
DImsPhoneConnectionTest.java39 import android.telephony.PhoneNumberUtils;
129 PhoneNumberUtils.PAUSE), mImsCT, mForeGroundCall, false); in testImsIncomingConnectionCorrectness()
215 PhoneNumberUtils.WAIT), mImsCT, mForeGroundCall, false); in testPostDialWait()
238 PhoneNumberUtils.PAUSE), mImsCT, mForeGroundCall, false); in testPostDialPause()

123