Home
last modified time | relevance | path

Searched refs:sms (Results 1 – 4 of 4) sorted by relevance

/cts/tests/tests/telephony/src/android/telephony/cts/
DSmsMessageTest.java89 SmsMessage sms = SmsMessage.createFromPdu(hexStringToByteArray(pdu), in testCreateFromPdu() local
91 assertEquals(SCA1, sms.getServiceCenterAddress()); in testCreateFromPdu()
92 assertEquals(OA1, sms.getOriginatingAddress()); in testCreateFromPdu()
93 assertEquals(MESSAGE_BODY1, sms.getMessageBody()); in testCreateFromPdu()
95 int[] result = SmsMessage.calculateLength(sms.getMessageBody(), true); in testCreateFromPdu()
97 assertEquals(sms.getMessageBody().length(), result[1]); in testCreateFromPdu()
98 assertRemaining(sms.getMessageBody().length(), result[2], SmsMessage.MAX_USER_DATA_SEPTETS); in testCreateFromPdu()
100 assertEquals(pdu, toHexString(sms.getPdu())); in testCreateFromPdu()
102 assertEquals(NOT_CREATE_FROM_SIM, sms.getIndexOnSim()); in testCreateFromPdu()
103 assertEquals(NOT_CREATE_FROM_ICC, sms.getIndexOnIcc()); in testCreateFromPdu()
[all …]
DMockVisualVoicemailService.java44 public void onSmsReceived(VisualVoicemailTask task, VisualVoicemailSms sms) { in onSmsReceived() argument
46 sSmsFuture.complete(sms); in onSmsReceived()
DVisualVoicemailServiceTest.java503 VisualVoicemailSms sms; in getSmsFromText() local
505 sms = future.get(EVENT_RECEIVED_TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in getSmsFromText()
511 return sms; in getSmsFromText()
540 VisualVoicemailSms sms; in getSmsFromData() local
542 sms = future.get(EVENT_RECEIVED_TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in getSmsFromData()
547 return sms; in getSmsFromData()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/voicemail/
DCtsVisualVoicemailService.java54 public void onSmsReceived(VisualVoicemailTask task, VisualVoicemailSms sms) { in onSmsReceived() argument