Home
last modified time | relevance | path

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

123

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DPhoneNumberUtilsTest.java22 import android.telephony.PhoneNumberUtils;
30 PhoneNumberUtils.extractNetworkPortion("+17005554141") in testExtractNetworkPortion()
35 PhoneNumberUtils.extractNetworkPortion("+1 (700).555-4141") in testExtractNetworkPortion()
40 PhoneNumberUtils.extractNetworkPortion("1 (700).555-4141") in testExtractNetworkPortion()
46 PhoneNumberUtils.extractNetworkPortion("1 (700).555-4141*#") in testExtractNetworkPortion()
51 PhoneNumberUtils.extractNetworkPortion("1 (700).555-41NN") in testExtractNetworkPortion()
56 PhoneNumberUtils.extractNetworkPortion("1 (700).555-41NN,1234") in testExtractNetworkPortion()
61 PhoneNumberUtils.extractNetworkPortion("1 (700).555-41NN;1234") in testExtractNetworkPortion()
68 PhoneNumberUtils.extractNetworkPortion("**21**+17005554141#") in testExtractNetworkPortion()
74 assertEquals("", PhoneNumberUtils.extractNetworkPortion("")); in testExtractNetworkPortion()
[all …]
DGsmCdmaConnectionTest.java21 import android.telephony.PhoneNumberUtils;
60 "+1 (700).555-41NN%c1234", PhoneNumberUtils.PAUSE), mCT, null); in testFormatDialString()
63 String.format("+1 (700).555-41NN1234%c", PhoneNumberUtils.PAUSE)); in testFormatDialString()
75 "+1 (700).555-41NN%c1234", PhoneNumberUtils.PAUSE), mCT, null); in testSanityGSM()
92 "+1 (700).555-41NN%c1234", PhoneNumberUtils.PAUSE), mCT, null); in testSanityCDMA()
109 "+1 (700).555-41NN%c1234", PhoneNumberUtils.PAUSE), mCT, null); in testConnectionStateUpdate()
126 "+1 (700).555-41NN%c1234", PhoneNumberUtils.PAUSE), mCT, null); in testCDMAPostDialPause()
142 "+1 (700).555-41NN%c1234", PhoneNumberUtils.PAUSE), mCT, null); in testGSMPostDialPause()
160 String.format("+1 (700).555-41NN%c1234", PhoneNumberUtils.WAIT),mCT,null); in testPostDialWait()
176 "+1 (700).555-41NN%c1234", PhoneNumberUtils.PAUSE), mCT, null); in testHangUpConnection()
DGsmCdmaCallTrackerTest.java21 import android.telephony.PhoneNumberUtils;
47 private String mDialString = PhoneNumberUtils.stripSeparators("+17005554141");
110 verify(mSimulatedCommandsVerifier).dial(eq(PhoneNumberUtils. in testMOCallDial()
206 String mDialString = PhoneNumberUtils.stripSeparators("+17005554142"); in testMOCallSwitch()
229 String mDialString = PhoneNumberUtils.stripSeparators("+17005554141"); in testMTCallRinging()
DCallManagerTest.java21 import android.telephony.PhoneNumberUtils;
144 PhoneNumberUtils.stripSeparators("+17005554141"), 0); in testBasicDial()
148 assertEquals(PhoneNumberUtils.stripSeparators("+17005554141"), in testBasicDial()
286 PhoneNumberUtils.stripSeparators("+17005554141"), 0); in testFgCallActiveDial()
291 assertEquals(PhoneNumberUtils.stripSeparators("+17005554141"), in testFgCallActiveDial()
/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/opt/telephony/src/java/com/android/internal/telephony/
DGsmCdmaConnection.java30 import android.telephony.PhoneNumberUtils;
164 mAddress = PhoneNumberUtils.extractNetworkPortionAlt(dialString); in GsmCdmaConnection()
165 mPostDialString = PhoneNumberUtils.extractPostDialPortion(dialString); in GsmCdmaConnection()
279 return PhoneNumberUtils.cdmaCheckAndProcessPlusCode(ret.toString()); in formatDialString()
299 String cAddress = PhoneNumberUtils.stringFromStringAndTOA(c.number, c.TOA); in compareTo()
732 if (PhoneNumberUtils.is12Key(c)) { in processPostDialChar()
768 int wIndex = subStr.indexOf(PhoneNumberUtils.WAIT); in getRemainingPostDialString()
769 int pIndex = subStr.indexOf(PhoneNumberUtils.PAUSE); in getRemainingPostDialString()
958 return c == PhoneNumberUtils.PAUSE; in isPause()
962 return c == PhoneNumberUtils.WAIT; in isWait()
[all …]
DCallForwardInfo.java19 import android.telephony.PhoneNumberUtils;
39 + " \"" + PhoneNumberUtils.stringFromStringAndTOA(number, toa) + "\" " in toString()
DDriverCall.java21 import android.telephony.PhoneNumberUtils;
77 ret.number = PhoneNumberUtils.extractNetworkPortionAlt(p.nextString()); in fromCLCCLine()
88 ret.number = PhoneNumberUtils.stringFromStringAndTOA( in fromCLCCLine()
DSmsNumberUtils.java27 import android.telephony.PhoneNumberUtils;
132 String networkPortionNumber = PhoneNumberUtils.extractNetworkPortion(number); in formatNumber()
302 if (!PhoneNumberUtils.isISODigit(c)) { in checkNANP()
362 return (PhoneNumberUtils.isNanp(number)); in isNANP()
533 if (destAddr == null || !PhoneNumberUtils.isGlobalPhoneNumber(destAddr)) { in filterDestAddr()
DGsmCdmaCallTracker.java32 import android.telephony.PhoneNumberUtils;
303 || mPendingMO.getAddress().indexOf(PhoneNumberUtils.WILD) >= 0) { in dial()
347 if (PhoneNumberUtils.isLocalEmergencyNumber(mPhone.getContext(), dialString)) { in disableDataCallInEmergencyCall()
395 PhoneNumberUtils.isLocalEmergencyNumber(mPhone.getContext(), dialString); in dial()
414 || mPendingMO.getAddress().indexOf(PhoneNumberUtils.WILD) >= 0 ) { in dial()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/
DSuppServiceNotification.java19 import android.telephony.PhoneNumberUtils;
72 + PhoneNumberUtils.stringFromStringAndTOA(number, type) + "\" "; in toString()
DGsmSmsAddress.java19 import android.telephony.PhoneNumberUtils;
74 address = PhoneNumberUtils.calledPartyBCDToString(origBytes, in GsmSmsAddress()
DUsimDataDownloadHandler.java24 import android.telephony.PhoneNumberUtils;
87 PhoneNumberUtils.networkPortionToCalledPartyBCDWithLength( in handleUsimDataDownload()
DSmsMessage.java19 import android.telephony.PhoneNumberUtils;
466 ret.encodedScAddress = PhoneNumberUtils.networkPortionToCalledPartyBCDWithLength( in getSubmitPduHead()
483 daBytes = PhoneNumberUtils.networkPortionToCalledPartyBCD(destinationAddress); in getSubmitPduHead()
528 ret = PhoneNumberUtils in getSCAddress()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DAdnRecord.java21 import android.telephony.PhoneNumberUtils;
246 bcdNumber = PhoneNumberUtils.numberToCalledPartyBCD(mNumber); in buildAdnString()
287 mNumber += PhoneNumberUtils.calledPartyBCDFragmentToString( in appendExtRecord()
325 mNumber = PhoneNumberUtils.calledPartyBCDToString( in parseRecord()
/frameworks/base/telephony/java/com/android/internal/telephony/
DCallerInfoAsyncQuery.java33 import android.telephony.PhoneNumberUtils;
320 mCallerInfo.phoneNumber = PhoneNumberUtils.formatNumber(cw.number, in onQueryComplete()
419 String.valueOf(PhoneNumberUtils.isUriNumber(number))) in startQuery()
437 if (PhoneNumberUtils.isLocalEmergencyNumber(context, number)) { in startQuery()
439 } else if (PhoneNumberUtils.isVoiceMailNumber(subId, number)) { in startQuery()
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()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/
DImsPhoneConnection.java33 import android.telephony.PhoneNumberUtils;
196 mAddress = PhoneNumberUtils.extractNetworkPortionAlt(dialString); in ImsPhoneConnection()
197 mPostDialString = PhoneNumberUtils.extractPostDialPortion(dialString); in ImsPhoneConnection()
441 if (PhoneNumberUtils.is12Key(c)) { in processPostDialChar()
443 } else if (c == PhoneNumberUtils.PAUSE) { in processPostDialChar()
458 } else if (c == PhoneNumberUtils.WAIT) { in processPostDialChar()
460 } else if (c == PhoneNumberUtils.WILD) { in processPostDialChar()
/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/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.java23 import android.telephony.PhoneNumberUtils;
391 mCTUT.sendDtmf(PhoneNumberUtils.PAUSE, null); in testImsSendDtmf()
393 verify(mImsCall, times(1)).sendDtmf(eq(PhoneNumberUtils.PAUSE), (Message) isNull()); in testImsSendDtmf()
408 mCTUT.sendDtmf(PhoneNumberUtils.WAIT, null); in testImsSendDtmf()
410 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/base/telecomm/java/android/telecom/
DLog.java21 import android.telephony.PhoneNumberUtils;
177 if (PhoneNumberUtils.isStartsPostDial(c)) { in piiUri()
179 } else if (PhoneNumberUtils.isDialable(c)) { in piiUri()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/
DCdmaServiceCategoryProgramHandler.java28 import android.telephony.PhoneNumberUtils;
163 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