Home
last modified time | relevance | path

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

123

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DPhoneNumberUtilsTest.java26 import android.telephony.PhoneNumberUtils;
41 PhoneNumberUtils.extractNetworkPortion("+17005554141") in testExtractNetworkPortion()
46 PhoneNumberUtils.extractNetworkPortion("+1 (700).555-4141") in testExtractNetworkPortion()
51 PhoneNumberUtils.extractNetworkPortion("1 (700).555-4141") in testExtractNetworkPortion()
57 PhoneNumberUtils.extractNetworkPortion("1 (700).555-4141*#") in testExtractNetworkPortion()
62 PhoneNumberUtils.extractNetworkPortion("1 (700).555-41NN") in testExtractNetworkPortion()
67 PhoneNumberUtils.extractNetworkPortion("1 (700).555-41NN,1234") in testExtractNetworkPortion()
72 PhoneNumberUtils.extractNetworkPortion("1 (700).555-41NN;1234") in testExtractNetworkPortion()
79 PhoneNumberUtils.extractNetworkPortion("**21**+17005554141#") in testExtractNetworkPortion()
85 assertEquals("", PhoneNumberUtils.extractNetworkPortion("")); in testExtractNetworkPortion()
[all …]
DGsmCdmaConnectionTest.java21 import android.telephony.PhoneNumberUtils;
60 "+1 (700).555-41NN%c1234", PhoneNumberUtils.PAUSE), mCT, null, in testFormatDialString()
64 String.format("+1 (700).555-41NN1234%c", PhoneNumberUtils.PAUSE)); in testFormatDialString()
76 "+1 (700).555-41NN%c1234", PhoneNumberUtils.PAUSE), mCT, null, in testSanityGSM()
94 "+1 (700).555-41NN%c1234", PhoneNumberUtils.PAUSE), mCT, null, in testSanityCDMA()
112 "+1 (700).555-41NN%c1234", PhoneNumberUtils.PAUSE), mCT, null, in testConnectionStateUpdate()
130 "+1 (700).555-41NN%c1234", PhoneNumberUtils.PAUSE), mCT, null, in testCDMAPostDialPause()
147 "+1 (700).555-41NN%c1234", PhoneNumberUtils.PAUSE), mCT, null, in testGSMPostDialPause()
166 String.format("+1 (700).555-41NN%c1234", PhoneNumberUtils.WAIT),mCT,null, in testPostDialWait()
183 "+1 (700).555-41NN%c1234", PhoneNumberUtils.PAUSE), mCT, null, in testHangUpConnection()
DCallManagerTest.java21 import android.telephony.PhoneNumberUtils;
145 PhoneNumberUtils.stripSeparators("+17005554141"), 0); in testBasicDial()
150 assertEquals(PhoneNumberUtils.stripSeparators("+17005554141"), in testBasicDial()
288 PhoneNumberUtils.stripSeparators("+17005554141"), 0); in testFgCallActiveDial()
294 assertEquals(PhoneNumberUtils.stripSeparators("+17005554141"), in testFgCallActiveDial()
DGsmCdmaCallTrackerTest.java35 import android.telephony.PhoneNumberUtils;
51 private String mDialString = PhoneNumberUtils.stripSeparators("+17005554141");
116 verify(mSimulatedCommandsVerifier).dial(eq(PhoneNumberUtils. in testMOCallDial()
218 String mDialString = PhoneNumberUtils.stripSeparators("+17005554142"); in testMOCallSwitch()
243 String mDialString = PhoneNumberUtils.stripSeparators("+17005554141"); in testMTCallRinging()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DAdnRecord.java21 import android.telephony.PhoneNumberUtils;
251 bcdNumber = PhoneNumberUtils.numberToCalledPartyBCD( in buildAdnString()
252 mNumber, PhoneNumberUtils.BCD_EXTENDED_TYPE_EF_ADN); in buildAdnString()
292 mNumber += PhoneNumberUtils.calledPartyBCDFragmentToString( in appendExtRecord()
296 PhoneNumberUtils.BCD_EXTENDED_TYPE_EF_ADN); in appendExtRecord()
333 mNumber = PhoneNumberUtils.calledPartyBCDToString( in parseRecord()
337 PhoneNumberUtils.BCD_EXTENDED_TYPE_EF_ADN); in parseRecord()
/frameworks/base/telephony/java/android/telephony/
DPhoneNumberFormattingTextWatcher.java22 import android.telephony.PhoneNumberUtils;
120 PhoneNumberUtils.ttsSpanAsPhoneNumber(s, 0, s.length()); in afterTextChanged()
138 if (PhoneNumberUtils.isNonSeparator(c)) { in reformat()
168 if (!PhoneNumberUtils.isNonSeparator(c)) { in hasSeparator()
/frameworks/base/telephony/java/com/android/internal/telephony/gsm/
DGsmSmsAddress.java19 import android.telephony.PhoneNumberUtils;
75 address = PhoneNumberUtils.calledPartyBCDToString( in GsmSmsAddress()
79 PhoneNumberUtils.BCD_EXTENDED_TYPE_CALLED_PARTY); in GsmSmsAddress()
DSmsMessage.java19 import android.telephony.PhoneNumberUtils;
580 ret.encodedScAddress = PhoneNumberUtils.networkPortionToCalledPartyBCDWithLength( in getSubmitPduHead()
597 daBytes = PhoneNumberUtils.networkPortionToCalledPartyBCD(destinationAddress); in getSubmitPduHead()
645 ret = PhoneNumberUtils.calledPartyBCDToString( in getSCAddress()
646 mPdu, mCur, len, PhoneNumberUtils.BCD_EXTENDED_TYPE_CALLED_PARTY); in getSCAddress()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DGsmCdmaConnection.java29 import android.telephony.PhoneNumberUtils;
130 mIsEmergencyCall = PhoneNumberUtils.isLocalEmergencyNumber(phone.getContext(), mAddress); in GsmCdmaConnection()
169 mAddress = PhoneNumberUtils.extractNetworkPortionAlt(dialString); in GsmCdmaConnection()
171 mPostDialString = PhoneNumberUtils.extractPostDialPortion(dialString); in GsmCdmaConnection()
292 return PhoneNumberUtils.cdmaCheckAndProcessPlusCode(ret.toString()); in formatDialString()
312 String cAddress = PhoneNumberUtils.stringFromStringAndTOA(c.number, c.TOA); in compareTo()
781 if (PhoneNumberUtils.is12Key(c)) { in processPostDialChar()
817 int wIndex = subStr.indexOf(PhoneNumberUtils.WAIT); in getRemainingPostDialString()
818 int pIndex = subStr.indexOf(PhoneNumberUtils.PAUSE); in getRemainingPostDialString()
1021 return c == PhoneNumberUtils.PAUSE; in isPause()
[all …]
DDriverCall.java21 import android.telephony.PhoneNumberUtils;
102 ret.number = PhoneNumberUtils.extractNetworkPortionAlt(p.nextString()); in fromCLCCLine()
113 ret.number = PhoneNumberUtils.stringFromStringAndTOA( in fromCLCCLine()
DSmsNumberUtils.java26 import android.telephony.PhoneNumberUtils;
135 String networkPortionNumber = PhoneNumberUtils.extractNetworkPortion(number); in formatNumber()
305 if (!PhoneNumberUtils.isISODigit(c)) { in checkNANP()
365 return (PhoneNumberUtils.isNanp(number)); in isNANP()
536 if (destAddr == null || !PhoneNumberUtils.isGlobalPhoneNumber(destAddr)) { in filterDestAddr()
DVisualVoicemailSmsFilter.java24 import android.telephony.PhoneNumberUtils;
311 if (PhoneNumberUtils.compare(number, message.getOriginatingAddress())) { in isSmsFromNumbers()
/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;
87 PhoneNumberUtils.networkPortionToCalledPartyBCDWithLength( in handleUsimDataDownload()
/frameworks/base/telephony/java/com/android/internal/telephony/
DCallerInfo.java32 import android.telephony.PhoneNumberUtils;
354 if (PhoneNumberUtils.isLocalEmergencyNumber(context, number)) { in getCallerInfo()
356 } else if (PhoneNumberUtils.isVoiceMailNumber(subId, number)) { in getCallerInfo()
388 && PhoneNumberUtils.isUriNumber(number)) { in doSecondaryLookupIfNecessary()
389 String username = PhoneNumberUtils.getUsernameFromUriNumber(number); in doSecondaryLookupIfNecessary()
390 if (PhoneNumberUtils.isGlobalPhoneNumber(username)) { in doSecondaryLookupIfNecessary()
DCallerInfoAsyncQuery.java34 import android.telephony.PhoneNumberUtils;
343 mCallerInfo.phoneNumber = PhoneNumberUtils.formatNumber(cw.number, in onQueryComplete()
462 String.valueOf(PhoneNumberUtils.isUriNumber(number))) in startQuery()
480 if (PhoneNumberUtils.isLocalEmergencyNumber(context, number)) { in startQuery()
482 } else if (PhoneNumberUtils.isVoiceMailNumber(context, subId, number)) { in startQuery()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DDeviceInfoUtils.java27 import android.telephony.PhoneNumberUtils;
180 formattedNumber = PhoneNumberUtils.formatNumber(rawNumber); in getFormattedPhoneNumber()
198 sb.append(PhoneNumberUtils.formatNumber(rawNumber)); in getFormattedPhoneNumbers()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/sip/
DSipConnectionBase.java28 import android.telephony.PhoneNumberUtils;
56 mPostDialString = PhoneNumberUtils.extractPostDialPortion(dialString); in SipConnectionBase()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/
DImsExternalConnection.java30 import android.telephony.PhoneNumberUtils;
238 Uri telUri = PhoneNumberUtils.convertSipUriToTelUri(address); in setExternalConnectionAddress()
DImsPhoneConnection.java34 import android.telephony.PhoneNumberUtils;
225 mAddress = PhoneNumberUtils.extractNetworkPortionAlt(dialString); in ImsPhoneConnection()
226 mPostDialString = PhoneNumberUtils.extractPostDialPortion(dialString); in ImsPhoneConnection()
500 if (PhoneNumberUtils.is12Key(c)) { in processPostDialChar()
504 } else if (c == PhoneNumberUtils.PAUSE) { in processPostDialChar()
519 } else if (c == PhoneNumberUtils.WAIT) { in processPostDialChar()
521 } else if (c == PhoneNumberUtils.WILD) { in processPostDialChar()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/imsphone/
DImsPhoneConnectionTest.java24 import android.telephony.PhoneNumberUtils;
107 PhoneNumberUtils.PAUSE), mImsCT, mForeGroundCall, false); in testImsConnectionSanity()
192 PhoneNumberUtils.WAIT), mImsCT, mForeGroundCall, false); in testPostDialWait()
215 PhoneNumberUtils.PAUSE), mImsCT, mForeGroundCall, false); in testPostDialPause()
DImsPhoneCallTrackerTest.java50 import android.telephony.PhoneNumberUtils;
580 mCTUT.sendDtmf(PhoneNumberUtils.PAUSE, null); in testImsSendDtmf()
582 verify(mImsCall, times(1)).sendDtmf(eq(PhoneNumberUtils.PAUSE), (Message) isNull()); in testImsSendDtmf()
596 mCTUT.sendDtmf(PhoneNumberUtils.WAIT, null); in testImsSendDtmf()
598 verify(mSecondImsCall, times(1)).sendDtmf(eq(PhoneNumberUtils.WAIT), (Message) isNull()); in testImsSendDtmf()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/
DSimulatedGsmCallState.java22 import android.telephony.PhoneNumberUtils;
58 mTOA = PhoneNumberUtils.TOA_International; in CallInfo()
60 mTOA = PhoneNumberUtils.TOA_Unknown; in CallInfo()
207 PhoneNumberUtils.extractNetworkPortion(number)); in triggerRing()
671 String phNum = PhoneNumberUtils.extractNetworkPortion(address); in onDial()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/
DCdmaServiceCategoryProgramHandler.java28 import android.telephony.PhoneNumberUtils;
164 PhoneNumberUtils.cdmaCheckAndProcessPlusCodeForSms(sender));
/frameworks/opt/vcard/java/com/android/vcard/
DVCardUtils.java20 import android.telephony.PhoneNumberUtils;
93 PhoneNumberUtils.formatNumber(text, defaultFormattingType); in formatNumber()
328 return PhoneNumberUtils.FORMAT_JAPAN; in getPhoneNumberFormat()
330 return PhoneNumberUtils.FORMAT_NANP; in getPhoneNumberFormat()

123