Home
last modified time | relevance | path

Searched refs:CdmaSmsAddress (Results 1 – 9 of 9) sorted by relevance

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/cdma/sms/
DCdmaSmsAddressTest.java32 CdmaSmsAddress cdmaAddress = CdmaSmsAddress.parse(address); in testNumberAddress()
34 assertEquals(CdmaSmsAddress.DIGIT_MODE_4BIT_DTMF, cdmaAddress.digitMode); in testNumberAddress()
35 assertEquals(CdmaSmsAddress.NUMBER_MODE_NOT_DATA_NETWORK, cdmaAddress.numberMode); in testNumberAddress()
36 assertArrayEquals(CdmaSmsAddress.parseToDtmf(address), cdmaAddress.origBytes); in testNumberAddress()
42 CdmaSmsAddress cdmaAddress = CdmaSmsAddress.parse(address); in testNumberWithSugar()
44 assertEquals(CdmaSmsAddress.DIGIT_MODE_4BIT_DTMF, cdmaAddress.digitMode); in testNumberWithSugar()
45 assertEquals(CdmaSmsAddress.NUMBER_MODE_NOT_DATA_NETWORK, cdmaAddress.numberMode); in testNumberWithSugar()
46 assertArrayEquals(CdmaSmsAddress.parseToDtmf("3141592653"), cdmaAddress.origBytes); in testNumberWithSugar()
52 CdmaSmsAddress cdmaAddress = CdmaSmsAddress.parse(address); in testInternationalAddress()
54 assertEquals(CdmaSmsAddress.DIGIT_MODE_8BIT_CHAR, cdmaAddress.digitMode); in testInternationalAddress()
[all …]
DCdmaSmsTest.java50 CdmaSmsAddress addr = CdmaSmsAddress.parse("6502531000"); in testCdmaSmsAddrParsing()
51 assertEquals(addr.ton, CdmaSmsAddress.TON_UNKNOWN); in testCdmaSmsAddrParsing()
52 assertEquals(addr.digitMode, CdmaSmsAddress.DIGIT_MODE_4BIT_DTMF); in testCdmaSmsAddrParsing()
53 assertEquals(addr.numberMode, CdmaSmsAddress.NUMBER_MODE_NOT_DATA_NETWORK); in testCdmaSmsAddrParsing()
60 addr = CdmaSmsAddress.parse("(650) 253-1000"); in testCdmaSmsAddrParsing()
61 assertEquals(addr.ton, CdmaSmsAddress.TON_UNKNOWN); in testCdmaSmsAddrParsing()
62 assertEquals(addr.digitMode, CdmaSmsAddress.DIGIT_MODE_4BIT_DTMF); in testCdmaSmsAddrParsing()
63 assertEquals(addr.numberMode, CdmaSmsAddress.NUMBER_MODE_NOT_DATA_NETWORK); in testCdmaSmsAddrParsing()
70 addr = CdmaSmsAddress.parse("650.253.1000"); in testCdmaSmsAddrParsing()
71 assertEquals(addr.ton, CdmaSmsAddress.TON_UNKNOWN); in testCdmaSmsAddrParsing()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/
DCdmaInboundSmsHandler.java40 import com.android.internal.telephony.cdma.sms.CdmaSmsAddress;
114 CdmaSmsAddress destAddr = CdmaSmsAddress.parse( in CdmaInboundSmsHandler()
467 CdmaSmsAddress nonNullAddress = new CdmaSmsAddress(); in handleTestAction()
486 SmsMessage sms = new SmsMessage(new CdmaSmsAddress(), envelope); in handleTestAction()
511 CdmaSmsAddress nonNullAddress = new CdmaSmsAddress(); in handleTestAction()
523 CdmaSmsAddress origAddr = new CdmaSmsAddress(); in handleTestAction()
DSmsMessageConverter.java22 import com.android.internal.telephony.cdma.sms.CdmaSmsAddress;
43 CdmaSmsAddress addr = new CdmaSmsAddress(); in newCdmaSmsMessageFromRil()
79 if (addressDigitMode == CdmaSmsAddress.DIGIT_MODE_4BIT_DTMF) { in newCdmaSmsMessageFromRil()
/frameworks/base/telephony/java/com/android/internal/telephony/cdma/sms/
DCdmaSmsAddress.java26 public class CdmaSmsAddress extends SmsAddress { class
98 public CdmaSmsAddress(){ in CdmaSmsAddress() method in CdmaSmsAddress
202 public static CdmaSmsAddress parse(String address) { in parse()
203 CdmaSmsAddress addr = new CdmaSmsAddress(); in parse()
DSmsEnvelope.java97 public CdmaSmsAddress origAddress;
103 public CdmaSmsAddress destAddress;
DBearerData.java411 public CdmaSmsAddress callbackNumber;
891 private static void encodeCdmaSmsAddress(CdmaSmsAddress addr) throws CodingException { in encodeCdmaSmsAddress()
892 if (addr.digitMode == CdmaSmsAddress.DIGIT_MODE_8BIT_CHAR) { in encodeCdmaSmsAddress()
906 CdmaSmsAddress addr = bData.callbackNumber; in encodeCallbackNumber()
910 if (addr.digitMode == CdmaSmsAddress.DIGIT_MODE_8BIT_CHAR) { in encodeCallbackNumber()
921 if (addr.digitMode == CdmaSmsAddress.DIGIT_MODE_8BIT_CHAR) { in encodeCallbackNumber()
1430 CdmaSmsAddress addr = new CdmaSmsAddress(); in decodeIs91Cli()
1431 addr.digitMode = CdmaSmsAddress.DIGIT_MODE_4BIT_DTMF; in decodeIs91Cli()
1536 private static void decodeSmsAddress(CdmaSmsAddress addr) throws CodingException { in decodeSmsAddress()
1537 if (addr.digitMode == CdmaSmsAddress.DIGIT_MODE_8BIT_CHAR) { in decodeSmsAddress()
[all …]
/frameworks/base/telephony/java/com/android/internal/telephony/cdma/
DSmsMessage.java35 import com.android.internal.telephony.cdma.sms.CdmaSmsAddress;
464 CdmaSmsAddress addr = new CdmaSmsAddress(); in parsePdu()
532 CdmaSmsAddress addr = new CdmaSmsAddress(); in parsePduFromEfRecord()
567 if (addr.digitMode == CdmaSmsAddress.DIGIT_MODE_8BIT_CHAR) { in parsePduFromEfRecord()
571 if (addr.numberMode == CdmaSmsAddress.NUMBER_MODE_NOT_DATA_NETWORK) in parsePduFromEfRecord()
580 if (addr.digitMode == CdmaSmsAddress.DIGIT_MODE_4BIT_DTMF) { in parsePduFromEfRecord()
588 } else if (addr.digitMode == CdmaSmsAddress.DIGIT_MODE_8BIT_CHAR) { in parsePduFromEfRecord()
589 if (addr.numberMode == CdmaSmsAddress.NUMBER_MODE_NOT_DATA_NETWORK) { in parsePduFromEfRecord()
595 } else if (addr.numberMode == CdmaSmsAddress.NUMBER_MODE_DATA_NETWORK) { in parsePduFromEfRecord()
842 } else if (addr.ton == CdmaSmsAddress.TON_INTERNATIONAL_OR_IP) {
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/cdma/
DCdmaSmsCbTest.java30 import com.android.internal.telephony.cdma.sms.CdmaSmsAddress;
69 msg.address.digitMode = CdmaSmsAddress.DIGIT_MODE_4BIT_DTMF; in createBroadcastParcel()
70 msg.address.numberMode = CdmaSmsAddress.NUMBER_MODE_NOT_DATA_NETWORK; in createBroadcastParcel()
71 msg.address.numberType = CdmaSmsAddress.TON_UNKNOWN; in createBroadcastParcel()
72 msg.address.numberPlan = CdmaSmsAddress.NUMBERING_PLAN_ISDN_TELEPHONY; in createBroadcastParcel()
605 msg.address.digitMode = CdmaSmsAddress.DIGIT_MODE_4BIT_DTMF; in createServiceCategoryProgramDataParcel()
606 msg.address.numberMode = CdmaSmsAddress.NUMBER_MODE_NOT_DATA_NETWORK; in createServiceCategoryProgramDataParcel()
607 msg.address.numberType = CdmaSmsAddress.TON_UNKNOWN; in createServiceCategoryProgramDataParcel()
608 msg.address.numberPlan = CdmaSmsAddress.NUMBERING_PLAN_ISDN_TELEPHONY; in createServiceCategoryProgramDataParcel()