Home
last modified time | relevance | path

Searched refs:SmsMessage (Results 1 – 25 of 45) sorted by relevance

12

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DGsmSmsTest.java23 import com.android.internal.telephony.gsm.SmsMessage;
33 SmsMessage sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); in testAddressing()
40 sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); in testAddressing()
46 sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); in testAddressing()
58 SmsMessage sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); in testUdh()
74 sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); in testUdh()
92 SmsMessage sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); in testUcs2()
107 SmsMessage sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); in testMultipart()
116 sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); in testMultipart()
126 SmsMessage sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); in testCPHSVoiceMail()
[all …]
DSMSDispatcherTest.java.broken21 import com.android.internal.telephony.gsm.SmsMessage;
37 SmsMessage sms;
50 sms = SmsMessage.newFromCMT(lines);
67 SmsMessage sms;
77 sms = SmsMessage.newFromCMT(lines);
94 SmsMessage sms;
104 sms = SmsMessage.createFromEfRecord(1, data);
DAppSmsManagerTest.java22 import android.telephony.SmsMessage;
67 intent.putExtra("format", SmsMessage.FORMAT_3GPP); in testHandleSmsReceivedIntent()
DSmsMessageBodyTest.java19 import android.telephony.SmsMessage;
558 int[] values = android.telephony.gsm.SmsMessage.calculateLength(msgBody, use7bitOnly); in callGsmLengthMethods()
566 values = android.telephony.SmsMessage.calculateLength(msgBody, use7bitOnly); in callGsmLengthMethods()
574 com.android.internal.telephony.gsm.SmsMessage.calculateLength(msgBody, use7bitOnly); in callGsmLengthMethods()
588 int[] values = android.telephony.SmsMessage.calculateLength(msgBody, use7bitOnly); in callCdmaLengthMethods()
596 … com.android.internal.telephony.cdma.SmsMessage.calculateLength(msgBody, use7bitOnly, true); in callCdmaLengthMethods()
/frameworks/opt/telephony/src/java/android/telephony/gsm/
DSmsMessage.java36 public class SmsMessage { class
138 public SmsMessage() { in SmsMessage() method in SmsMessage
142 private SmsMessage(SmsMessageBase smb) { in SmsMessage() method in SmsMessage
151 public static SmsMessage createFromPdu(byte[] pdu) { in createFromPdu()
156 wrappedMessage = com.android.internal.telephony.cdma.SmsMessage.createFromPdu(pdu); in createFromPdu()
158 wrappedMessage = com.android.internal.telephony.gsm.SmsMessage.createFromPdu(pdu); in createFromPdu()
161 return new SmsMessage(wrappedMessage); in createFromPdu()
174 return com.android.internal.telephony.cdma.SmsMessage.getTPLayerLengthForPDU(pdu); in getTPLayerLengthForPDU()
176 return com.android.internal.telephony.gsm.SmsMessage.getTPLayerLengthForPDU(pdu); in getTPLayerLengthForPDU()
199 com.android.internal.telephony.gsm.SmsMessage in calculateLength()
[all …]
/frameworks/base/telephony/java/android/telephony/
DSmsMessage.java44 public class SmsMessage { class
160 public SmsMessage(SmsMessageBase smb) { in SmsMessage() method in SmsMessage
177 public static SmsMessage createFromPdu(byte[] pdu) { in createFromPdu()
178 SmsMessage message = null; in createFromPdu()
208 public static SmsMessage createFromPdu(byte[] pdu, String format) { in createFromPdu()
215 wrappedMessage = com.android.internal.telephony.cdma.SmsMessage.createFromPdu(pdu); in createFromPdu()
217 wrappedMessage = com.android.internal.telephony.gsm.SmsMessage.createFromPdu(pdu); in createFromPdu()
224 return new SmsMessage(wrappedMessage); in createFromPdu()
240 public static SmsMessage newFromCMT(byte[] pdu) { in newFromCMT()
243 com.android.internal.telephony.gsm.SmsMessage.newFromCMT(pdu); in newFromCMT()
[all …]
DSmsManager.java525 byte[] pdu, @SmsMessage.Format String format, PendingIntent receivedIntent) { in injectSmsPdu()
526 if (!format.equals(SmsMessage.FORMAT_3GPP) && !format.equals(SmsMessage.FORMAT_3GPP2)) { in injectSmsPdu()
556 return SmsMessage.fragmentText(text); in divideMessage()
1078 public ArrayList<SmsMessage> getAllMessagesFromIcc() { in getAllMessagesFromIcc()
1259 private ArrayList<SmsMessage> createMessageListFromRawRecords(List<SmsRawData> records) { in createMessageListFromRawRecords()
1260 ArrayList<SmsMessage> messages = new ArrayList<SmsMessage>(); in createMessageListFromRawRecords()
1267 SmsMessage sms = SmsMessage.createFromEfRecord(i+1, data.getBytes(), in createMessageListFromRawRecords()
/frameworks/opt/telephony/tests/telephonytests/src/android/telephony/
DSmsMessageTest.java31 assertEquals(null, SmsMessage.createFromPdu(null, SmsConstants.FORMAT_3GPP2)); in testCreateInvalidSmsMessage()
32 assertEquals(null, SmsMessage.createFromPdu(null, SmsConstants.FORMAT_3GPP)); in testCreateInvalidSmsMessage()
33 assertEquals(null, SmsMessage.createFromPdu(null)); in testCreateInvalidSmsMessage()
34 assertEquals(null, SmsMessage.newFromCMT(null)); in testCreateInvalidSmsMessage()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/
DSmsMessageConverter.java68 public static SmsMessage newCdmaSmsMessageFromRil( in newCdmaSmsMessageFromRil()
109 data[index] = SmsMessage.convertDtmfToAscii(data[index]); in newCdmaSmsMessageFromRil()
157 SmsMessage msg = new SmsMessage(addr, env); in newCdmaSmsMessageFromRil()
162 public static android.telephony.SmsMessage newSmsMessageFromCdmaSmsMessage( in newSmsMessageFromCdmaSmsMessage()
164 return new android.telephony.SmsMessage((SmsMessageBase)newCdmaSmsMessageFromRil(msg)); in newSmsMessageFromCdmaSmsMessage()
DCdmaSMSDispatcher.java55 public void sendStatusReportMessage(SmsMessage sms) { in sendStatusReportMessage()
62 if (o instanceof SmsMessage) { in handleStatusReport()
64 handleCdmaStatusReport((SmsMessage) o); in handleStatusReport()
99 private void handleCdmaStatusReport(SmsMessage sms) { in handleCdmaStatusReport()
DCdmaServiceCategoryProgramHandler.java83 if (message.obj instanceof SmsMessage) { in handleSmsMessage()
84 return handleServiceCategoryProgramData((SmsMessage) message.obj); in handleSmsMessage()
97 private boolean handleServiceCategoryProgramData(SmsMessage sms) { in handleServiceCategoryProgramData()
153 bData.messageId = SmsMessage.getNextMessageId();
DCdmaInboundSmsHandler.java107 SmsMessage sms = (SmsMessage) smsb; in dispatchMessageRadioSpecific()
233 private void handleVoicemailTeleservice(SmsMessage sms) { in handleVoicemailTeleservice()
/frameworks/base/telephony/java/android/telephony/ims/stub/
DImsSmsImplBase.java23 import android.telephony.SmsMessage;
219 SmsMessage message = SmsMessage.createFromPdu(pdu, format); in onSmsReceived()
320 return SmsMessage.FORMAT_3GPP; in getSmsFormat()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DSmsDispatchersController.java35 import android.telephony.SmsMessage;
192 android.telephony.SmsMessage msg = in injectSmsPdu()
193 android.telephony.SmsMessage.createFromPdu(pdu, format); in injectSmsPdu()
208 public void injectSmsPdu(SmsMessage msg, String format, SmsInjectionCallback callback, in injectSmsPdu()
219 && msg.getMessageClass() != android.telephony.SmsMessage.MessageClass.CLASS_1) { in injectSmsPdu()
297 pdu = com.android.internal.telephony.cdma.SmsMessage.getSubmitPdu( in sendRetrySms()
301 pdu = com.android.internal.telephony.gsm.SmsMessage.getSubmitPdu( in sendRetrySms()
311 pdu = com.android.internal.telephony.cdma.SmsMessage.getSubmitPdu( in sendRetrySms()
316 pdu = com.android.internal.telephony.gsm.SmsMessage.getSubmitPdu( in sendRetrySms()
596 com.android.internal.telephony.gsm.SmsMessage sms = in handleGsmStatusReport()
[all …]
DVisualVoicemailSmsFilter.java25 import android.telephony.SmsMessage;
99 public SmsMessage firstMessage;
266 SmsMessage message = SmsMessage.createFromPdu(pdu, format); in getFullMessage()
304 private static boolean isSmsFromNumbers(SmsMessage message, List<String> numbers) { in isSmsFromNumbers()
DAppSmsManager.java25 import android.telephony.SmsMessage;
126 SmsMessage[] messages = Intents.getMessagesFromIntent(intent); in findAppRequestInfoSmsIntentLocked()
131 for (SmsMessage message : messages) { in findAppRequestInfoSmsIntentLocked()
DInboundSmsHandler.java59 import android.telephony.SmsMessage;
543 SmsMessage sms = (SmsMessage) ar.result; in handleNewSms()
567 SmsMessage sms = (SmsMessage) ar.result; in handleInjectSms()
873 SmsMessage msg = SmsMessage.createFromPdu(pdu, SmsConstants.FORMAT_3GPP); in processMessagePart()
1476 final SmsMessage[] messages = Telephony.Sms.Intents.getMessagesFromIntent(intent); in writeInboxMessage()
1484 for (final SmsMessage sms : messages) { in writeInboxMessage()
1510 private static ContentValues parseSmsMessage(SmsMessage[] msgs) { in parseSmsMessage()
1511 final SmsMessage sms = msgs[0]; in parseSmsMessage()
1535 private static String buildMessageBodyFromPdus(SmsMessage[] msgs) { in buildMessageBodyFromPdus()
1542 for (SmsMessage msg: msgs) { in buildMessageBodyFromPdus()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/cdma/
DCdmaSmsCbTest.java118 private static SmsMessage createMessageFromParcel(CdmaSmsMessage msg, byte[] bearerData) { in createMessageFromParcel()
122 SmsMessage message = SmsMessageConverter.newCdmaSmsMessageFromRil(msg); in createMessageFromParcel()
141 private static SmsMessage createCmasSmsMessage(int serviceCategory, int messageId, int priority, in createCmasSmsMessage()
189 private static SmsMessage createBroadcastSmsMessage(int serviceCategory, int messageId, in createBroadcastSmsMessage()
352 SmsMessage msg = createBroadcastSmsMessage(123, 456, BearerData.PRIORITY_NORMAL, in doTestNonEmergencyBroadcast()
384 SmsMessage msg = createBroadcastSmsMessage(987, 654, -1, -1, in testNonEmergencyBroadcastIs91Extended()
400 SmsMessage msg = createCmasSmsMessage( in doTestCmasBroadcast()
454 SmsMessage msg = createCmasSmsMessage(SmsEnvelope.SERVICE_CATEGORY_CMAS_EXTREME_THREAT, in testCmasExtremeAlertType1Elements()
486 SmsMessage msg = createCmasSmsMessage(SmsEnvelope.SERVICE_CATEGORY_CMAS_EXTREME_THREAT, in testCmasUnsupportedCharSet()
498 SmsMessage msg = createCmasSmsMessage(SmsEnvelope.SERVICE_CATEGORY_CMAS_EXTREME_THREAT, in testCmasUnsupportedCharSet2()
[all …]
DCdmaSmsDispatcherTest.java36 private android.telephony.SmsMessage mSmsMessage;
38 private SmsMessage mCdmaSmsMessage;
/frameworks/base/telephony/java/com/android/internal/telephony/gsm/
DSmsMessage.java51 public class SmsMessage extends SmsMessageBase { class
110 public static SmsMessage createFromPdu(byte[] pdu) { in createFromPdu()
112 SmsMessage msg = new SmsMessage(); in createFromPdu()
141 public static SmsMessage newFromCMT(byte[] pdu) { in newFromCMT()
143 SmsMessage msg = new SmsMessage(); in newFromCMT()
153 public static SmsMessage newFromCDS(byte[] pdu) { in newFromCDS()
155 SmsMessage msg = new SmsMessage(); in newFromCDS()
174 public static SmsMessage createFromEfRecord(int index, byte[] data) { in createFromEfRecord()
176 SmsMessage msg = new SmsMessage(); in createFromEfRecord()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/
DUsimDataDownloadHandler.java75 int handleUsimDataDownload(UsimServiceTable ust, SmsMessage smsMessage) { in handleUsimDataDownload()
104 public int startDataDownload(SmsMessage smsMessage) { in startDataDownload()
113 private void handleDataDownload(SmsMessage smsMessage) { in handleDataDownload()
286 handleDataDownload((SmsMessage) msg.obj); in handleMessage()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/
DUsimDataDownloadTest.java.broken111 SmsMessage message = SmsMessage.createFromPdu(SMS_PP_MESSAGE_3_1_1);
131 SmsMessage message = SmsMessage.createFromPdu(SMS_PP_MESSAGE_3_1_5);
DGsmSmsDispatcherTest.java75 private android.telephony.SmsMessage mSmsMessage;
77 private SmsMessage mGsmSmsMessage;
188 vp = SmsMessage.getRelativeValidityPeriod(-5); in testSmsMessageValidityPeriod()
191 vp = SmsMessage.getRelativeValidityPeriod(100); in testSmsMessageValidityPeriod()
DGsmCellBroadcastHandlerTest.java60 private android.telephony.SmsMessage mSmsMessage;
62 private SmsMessage mGsmSmsMessage;
/frameworks/base/telephony/java/com/android/internal/telephony/cdma/
DSmsMessage.java75 public class SmsMessage extends SmsMessageBase { class
115 public SmsMessage(SmsAddress addr, SmsEnvelope env) { in SmsMessage() method in SmsMessage
121 public SmsMessage() {} in SmsMessage() method in SmsMessage
130 public static SmsMessage createFromPdu(byte[] pdu) { in createFromPdu()
131 SmsMessage msg = new SmsMessage(); in createFromPdu()
155 public static SmsMessage createFromEfRecord(int index, byte[] data) { in createFromEfRecord()
157 SmsMessage msg = new SmsMessage(); in createFromEfRecord()

12