/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() 53 SmsMessage sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); in testRecipientAddress() 60 assertTrue(SmsMessage.isEmailAddress("\"First Last\" <name@example.com>")); in testIsEmailAddress() 61 assertTrue(SmsMessage.isEmailAddress("FirstLast <name@sub.example.com>")); in testIsEmailAddress() 62 assertFalse(SmsMessage.isEmailAddress("FirstLast 1112223333")); in testIsEmailAddress() 63 assertFalse(SmsMessage.isEmailAddress("")); in testIsEmailAddress() 64 assertFalse(SmsMessage.isEmailAddress("nmg5gj945j")); in testIsEmailAddress() [all …]
|
D | ImsSmsDispatcherTest.java | 32 import android.telephony.SmsMessage; 75 byte[] pdu = com.android.internal.telephony.gsm.SmsMessage.getSubmitPdu(null, in testSendSms() 78 when(mImsManager.getSmsFormat()).thenReturn(SmsMessage.FORMAT_3GPP); in testSendSms() 86 verify(mImsManager).sendSms(eq(token + 1), anyInt(), eq(SmsMessage.FORMAT_3GPP), in testSendSms() 98 mTrackerData.put("pdu", com.android.internal.telephony.gsm.SmsMessage.getSubmitPdu(null, in testFallbackGsmRetry() 124 mTrackerData.put("pdu", com.android.internal.telephony.gsm.SmsMessage.getSubmitPdu(null, in testErrorImsRetry() 126 when(mImsManager.getSmsFormat()).thenReturn(SmsMessage.FORMAT_3GPP); in testErrorImsRetry() 160 when(mSmsDispatchersController.handleSmsStatusReport(eq(SmsMessage.FORMAT_3GPP), eq(pdu))) in testReceiveGsmSmsStatusReport() 166 .onSmsStatusReportReceived(statusReportToken, SmsMessage.FORMAT_3GPP, pdu); in testReceiveGsmSmsStatusReport() 184 mTrackerData.put("pdu", com.android.internal.telephony.gsm.SmsMessage.getSubmitPdu(null, in testNetworkError() [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 | 551 int[] values = android.telephony.gsm.SmsMessage.calculateLength(msgBody, use7bitOnly); in callGsmLengthMethods() 559 values = android.telephony.SmsMessage.calculateLength(msgBody, use7bitOnly); in callGsmLengthMethods() 567 com.android.internal.telephony.gsm.SmsMessage.calculateLength(msgBody, use7bitOnly); in callGsmLengthMethods() 581 int[] values = android.telephony.SmsMessage.calculateLength(msgBody, use7bitOnly); in callCdmaLengthMethods() 589 … 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 | 53 public class SmsMessage { class 183 public SmsMessage(SmsMessageBase smb) { in SmsMessage() method in SmsMessage 200 public static SmsMessage createFromPdu(byte[] pdu) { in createFromPdu() 201 SmsMessage message = null; in createFromPdu() 223 public static SmsMessage createFromPdu(byte[] pdu, String format) { in createFromPdu() 227 private static SmsMessage createFromPdu(byte[] pdu, String format, in createFromPdu() 237 wrappedMessage = com.android.internal.telephony.cdma.SmsMessage.createFromPdu(pdu); in createFromPdu() 239 wrappedMessage = com.android.internal.telephony.gsm.SmsMessage.createFromPdu(pdu); in createFromPdu() 246 return new SmsMessage(wrappedMessage); in createFromPdu() 266 public static SmsMessage createFromEfRecord(int index, byte[] data) { in createFromEfRecord() [all …]
|
D | SmsManager.java | 744 byte[] pdu, @SmsMessage.Format String format, PendingIntent receivedIntent) { in injectSmsPdu() 745 if (!format.equals(SmsMessage.FORMAT_3GPP) && !format.equals(SmsMessage.FORMAT_3GPP2)) { in injectSmsPdu() 778 return SmsMessage.fragmentText(text, getSubscriptionId()); in divideMessage() 1748 public @NonNull List<SmsMessage> getMessagesFromIcc() { in getMessagesFromIcc() 1761 public ArrayList<SmsMessage> getAllMessagesFromIcc() { in getAllMessagesFromIcc() 1909 private ArrayList<SmsMessage> createMessageListFromRawRecords(List<SmsRawData> records) { in createMessageListFromRawRecords() 1910 ArrayList<SmsMessage> messages = new ArrayList<SmsMessage>(); in createMessageListFromRawRecords() 1917 SmsMessage sms = SmsMessage.createFromEfRecord(i + 1, data.getBytes(), in createMessageListFromRawRecords()
|
/frameworks/base/telephony/java/android/telephony/ims/stub/ |
D | ImsSmsImplBase.java | 25 import android.telephony.SmsMessage; 163 @SmsMessage.Format String format, String smsc, boolean isRetry, in sendSms() 222 public final void onSmsReceived(int token, @SmsMessage.Format String format, byte[] pdu) in onSmsReceived() 232 SmsMessage message = SmsMessage.createFromPdu(pdu, format); in onSmsReceived() 360 @IntRange(from = 0, to = 65535) int messageRef, @SmsMessage.Format String format, in onSmsStatusReportReceived() 389 public final void onSmsStatusReportReceived(int token, @SmsMessage.Format String format, in onSmsStatusReportReceived() 399 SmsMessage message = SmsMessage.createFromPdu(pdu, format); in onSmsStatusReportReceived() 418 public @SmsMessage.Format String getSmsFormat() { in getSmsFormat() 419 return SmsMessage.FORMAT_3GPP; in getSmsFormat()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/util/ |
D | SMSDispatcherUtil.java | 109 return com.android.internal.telephony.gsm.SmsMessage.getSubmitPdu(scAddr, destAddr, message, in getSubmitPduGsm() 130 return com.android.internal.telephony.gsm.SmsMessage.getSubmitPdu(scAddr, destAddr, message, in getSubmitPduGsm() 147 return com.android.internal.telephony.cdma.SmsMessage.getSubmitPdu(scAddr, destAddr, in getSubmitPduCdma() 175 return com.android.internal.telephony.cdma.SmsMessage.getSubmitPdu(scAddr, destAddr, in getSubmitPduCdma() 211 return com.android.internal.telephony.cdma.SmsMessage.getSubmitPdu(scAddr, destAddr, in getSubmitPduCdma() 227 return com.android.internal.telephony.gsm.SmsMessage.getSubmitPdu(scAddr, destAddr, in getSubmitPduGsm() 259 return com.android.internal.telephony.gsm.SmsMessage.calculateLength(messageBody, in calculateLengthGsm() 273 return com.android.internal.telephony.cdma.SmsMessage.calculateLength(messageBody, in calculateLengthCdma()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/ |
D | SmsMessageConverter.java | 39 public static SmsMessage newCdmaSmsMessageFromRil( in newCdmaSmsMessageFromRil() 80 data[index] = SmsMessage.convertDtmfToAscii(data[index]); in newCdmaSmsMessageFromRil() 128 SmsMessage msg = new SmsMessage(addr, env); in newCdmaSmsMessageFromRil() 133 public static android.telephony.SmsMessage newSmsMessageFromCdmaSmsMessage( in newSmsMessageFromCdmaSmsMessage() 135 return new android.telephony.SmsMessage((SmsMessageBase)newCdmaSmsMessageFromRil(msg)); in newSmsMessageFromCdmaSmsMessage()
|
D | CdmaInboundSmsHandler.java | 104 bData.messageId = SmsMessage.getNextMessageId(); in CdmaInboundSmsHandler() 195 SmsMessage sms = (SmsMessage) smsb; in dispatchMessageRadioSpecific() 312 private void handleVoicemailTeleservice(SmsMessage sms) { in handleVoicemailTeleservice() 436 android.telephony.SmsMessage.FORMAT_3GPP2); in addVoicemailSmsToMetrics() 486 SmsMessage sms = new SmsMessage(new CdmaSmsAddress(), envelope); in handleTestAction() 530 SmsMessage sms = new SmsMessage(origAddr, envelope); in handleTestAction()
|
D | CdmaSMSDispatcher.java | 57 public void sendStatusReportMessage(SmsMessage sms) { in sendStatusReportMessage() 64 if (o instanceof SmsMessage) { in handleStatusReport() 66 byte[] pdu = ((SmsMessage) o).getPdu(); in handleStatusReport()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | CellBroadcastServiceManager.java | 40 import com.android.internal.telephony.cdma.SmsMessage; 89 public void sendCdmaMessageToHandler(SmsMessage sms) { in sendCdmaMessageToHandler() 100 public void sendCdmaScpMessageToHandler(SmsMessage sms, RemoteCallback callback) { in sendCdmaScpMessageToHandler() 162 SmsMessage sms = (SmsMessage) msg.obj; in initCellBroadcastServiceModule() 167 Pair<SmsMessage, RemoteCallback> smsAndCallback = in initCellBroadcastServiceModule() 168 (Pair<SmsMessage, RemoteCallback>) msg.obj; in initCellBroadcastServiceModule() 169 SmsMessage sms = smsAndCallback.first; in initCellBroadcastServiceModule()
|
D | SmsDispatchersController.java | 41 import android.telephony.SmsMessage; 392 android.telephony.SmsMessage msg = in injectSmsPdu() 393 android.telephony.SmsMessage.createFromPdu(pdu, format); in injectSmsPdu() 408 public void injectSmsPdu(SmsMessage msg, String format, SmsInjectionCallback callback, in injectSmsPdu() 419 && msg.getMessageClass() != android.telephony.SmsMessage.MessageClass.CLASS_1) { in injectSmsPdu() 495 pdu = com.android.internal.telephony.cdma.SmsMessage.getSubmitPdu( in sendRetrySms() 498 pdu = com.android.internal.telephony.gsm.SmsMessage.getSubmitPdu( in sendRetrySms() 507 pdu = com.android.internal.telephony.cdma.SmsMessage.getSubmitPdu( in sendRetrySms() 511 pdu = com.android.internal.telephony.gsm.SmsMessage.getSubmitPdu( in sendRetrySms() 792 com.android.internal.telephony.cdma.SmsMessage sms = in handleSmsStatusReport() [all …]
|
D | MissedIncomingCallSmsFilter.java | 30 import android.telephony.SmsMessage; 100 SmsMessage message = SmsMessage.createFromPdu(pdus[0], format); in filter() 150 private boolean processSms(SmsMessage message) { in processSms()
|
D | VisualVoicemailSmsFilter.java | 25 import android.telephony.SmsMessage; 99 public SmsMessage firstMessage; 288 SmsMessage message = SmsMessage.createFromPdu(pdu, format); in getFullMessage() 326 private static boolean isSmsFromNumbers(SmsMessage message, List<String> numbers) { in isSmsFromNumbers()
|
/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()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/cdma/ |
D | CdmaSmsCbTest.java | 119 private static SmsMessage createMessageFromParcel(CdmaSmsMessage msg, byte[] bearerData) { in createMessageFromParcel() 123 SmsMessage message = SmsMessageConverter.newCdmaSmsMessageFromRil(msg); in createMessageFromParcel() 142 private static SmsMessage createCmasSmsMessage(int serviceCategory, int messageId, int priority, in createCmasSmsMessage() 190 private static SmsMessage createBroadcastSmsMessage(int serviceCategory, int messageId, in createBroadcastSmsMessage() 353 SmsMessage msg = createBroadcastSmsMessage(123, 456, BearerData.PRIORITY_NORMAL, in doTestNonEmergencyBroadcast() 385 SmsMessage msg = createBroadcastSmsMessage(987, 654, -1, -1, in testNonEmergencyBroadcastIs91Extended() 401 SmsMessage msg = createCmasSmsMessage( in doTestCmasBroadcast() 455 SmsMessage msg = createCmasSmsMessage(SmsEnvelope.SERVICE_CATEGORY_CMAS_EXTREME_THREAT, in testCmasExtremeAlertType1Elements() 487 SmsMessage msg = createCmasSmsMessage(SmsEnvelope.SERVICE_CATEGORY_CMAS_EXTREME_THREAT, in testCmasUnsupportedCharSet() 499 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/opt/telephony/src/java/com/android/internal/telephony/gsm/ |
D | UsimDataDownloadHandler.java | 78 int handleUsimDataDownload(UsimServiceTable ust, SmsMessage smsMessage) { in handleUsimDataDownload() 108 public int startDataDownload(SmsMessage smsMessage) { in startDataDownload() 117 private void handleDataDownload(SmsMessage smsMessage) { in handleDataDownload() 289 metrics.writeIncomingSMSPP(mPhoneId, android.telephony.SmsMessage.FORMAT_3GPP, result); in addUsimDataDownloadToMetrics() 303 handleDataDownload((SmsMessage) msg.obj); in handleMessage()
|
D | GsmInboundSmsHandler.java | 161 SmsMessage sms = (SmsMessage) smsb; in dispatchMessageRadioSpecific() 263 android.telephony.SmsMessage.FORMAT_3GPP); in addSmsTypeZeroToMetrics() 271 android.telephony.SmsMessage.FORMAT_3GPP); in addVoicemailSmsToMetrics()
|
/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 | 76 private android.telephony.SmsMessage mSmsMessage; 78 private SmsMessage mGsmSmsMessage; 188 vp = SmsMessage.getRelativeValidityPeriod(-5); in testSmsMessageValidityPeriod() 191 vp = SmsMessage.getRelativeValidityPeriod(100); in testSmsMessageValidityPeriod()
|
/frameworks/base/telephony/java/com/android/internal/telephony/cdma/ |
D | SmsMessage.java | 72 public class SmsMessage extends SmsMessageBase { class 114 public SmsMessage(SmsAddress addr, SmsEnvelope env) { in SmsMessage() method in SmsMessage 121 public SmsMessage() {} in SmsMessage() method in SmsMessage 134 public static SmsMessage createFromPdu(byte[] pdu) { in createFromPdu() 135 SmsMessage msg = new SmsMessage(); in createFromPdu() 160 public static SmsMessage createFromEfRecord(int index, byte[] data) { in createFromEfRecord() 162 SmsMessage msg = new SmsMessage(); in createFromEfRecord()
|