/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | GsmSmsTest.java | 23 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 …]
|
D | SMSDispatcherTest.java.broken | 21 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);
|
D | AppSmsManagerTest.java | 22 import android.telephony.SmsMessage; 67 intent.putExtra("format", SmsMessage.FORMAT_3GPP); in testHandleSmsReceivedIntent()
|
D | SmsMessageBodyTest.java | 19 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/ |
D | SmsMessage.java | 36 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/ |
D | SmsMessage.java | 44 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 …]
|
D | SmsManager.java | 525 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/ |
D | SmsMessageTest.java | 31 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/ |
D | SmsMessageConverter.java | 68 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()
|
D | CdmaSMSDispatcher.java | 55 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()
|
D | CdmaServiceCategoryProgramHandler.java | 83 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();
|
D | CdmaInboundSmsHandler.java | 107 SmsMessage sms = (SmsMessage) smsb; in dispatchMessageRadioSpecific() 233 private void handleVoicemailTeleservice(SmsMessage sms) { in handleVoicemailTeleservice()
|
/frameworks/base/telephony/java/android/telephony/ims/stub/ |
D | ImsSmsImplBase.java | 23 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/ |
D | SmsDispatchersController.java | 35 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 …]
|
D | VisualVoicemailSmsFilter.java | 25 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()
|
D | AppSmsManager.java | 25 import android.telephony.SmsMessage; 126 SmsMessage[] messages = Intents.getMessagesFromIntent(intent); in findAppRequestInfoSmsIntentLocked() 131 for (SmsMessage message : messages) { in findAppRequestInfoSmsIntentLocked()
|
D | InboundSmsHandler.java | 59 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/ |
D | CdmaSmsCbTest.java | 118 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 …]
|
D | CdmaSmsDispatcherTest.java | 36 private android.telephony.SmsMessage mSmsMessage; 38 private SmsMessage mCdmaSmsMessage;
|
/frameworks/base/telephony/java/com/android/internal/telephony/gsm/ |
D | SmsMessage.java | 51 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/ |
D | UsimDataDownloadHandler.java | 75 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/ |
D | UsimDataDownloadTest.java.broken | 111 SmsMessage message = SmsMessage.createFromPdu(SMS_PP_MESSAGE_3_1_1); 131 SmsMessage message = SmsMessage.createFromPdu(SMS_PP_MESSAGE_3_1_5);
|
D | GsmSmsDispatcherTest.java | 75 private android.telephony.SmsMessage mSmsMessage; 77 private SmsMessage mGsmSmsMessage; 188 vp = SmsMessage.getRelativeValidityPeriod(-5); in testSmsMessageValidityPeriod() 191 vp = SmsMessage.getRelativeValidityPeriod(100); in testSmsMessageValidityPeriod()
|
D | GsmCellBroadcastHandlerTest.java | 60 private android.telephony.SmsMessage mSmsMessage; 62 private SmsMessage mGsmSmsMessage;
|
/frameworks/base/telephony/java/com/android/internal/telephony/cdma/ |
D | SmsMessage.java | 75 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()
|