/frameworks/base/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
GsmSmsTest.java | 34 SmsMessage sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); local 35 assertEquals("+14155551212", sms.getServiceCenterAddress()); 36 assertEquals("+16505551111", sms.getOriginatingAddress()); 37 assertEquals("Test", sms.getMessageBody()); 41 sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); 42 assertEquals("+14155551212", sms.getServiceCenterAddress()); 43 assertEquals("+16505551111", sms.getOriginatingAddress()); 44 assertEquals("(Subject)Test", sms.getMessageBody()); 55 SmsMessage sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); local 56 SmsHeader header = sms.getUserDataHeader() 89 SmsMessage sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); local 104 SmsMessage sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); local 123 SmsMessage sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); local 155 SmsMessage sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); local 174 SmsMessage sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); local 206 SmsMessage sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); local [all...] |
SMSDispatcherTest.java | 35 SmsMessage sms; local 48 sms = SmsMessage.newFromCMT(lines); 49 header = sms.getUserDataHeader(); 51 assertNotNull(sms.getUserData()); 65 SmsMessage sms; local 75 sms = SmsMessage.newFromCMT(lines); 76 header = sms.getUserDataHeader(); 78 assertNotNull(sms.getUserData()); 92 SmsMessage sms; local 102 sms = SmsMessage.createFromEfRecord(1, data) [all...] |
SimSmsTest.java | 33 ISms sms = ISms.Stub.asInterface(ServiceManager.getService("isms")); local 34 assertNotNull(sms); 36 List<SmsRawData> records = sms.getAllMessagesFromIccEf();
|
/cts/tests/tests/telephony/src/android/telephony/cts/ |
SmsMessageTest.java | 179 SmsMessage sms = SmsMessage.createFromPdu(hexStringToByteArray(pdu)); local 180 assertEquals(SCA1, sms.getServiceCenterAddress()); 181 assertEquals(OA1, sms.getOriginatingAddress()); 182 assertEquals(MESSAGE_BODY1, sms.getMessageBody()); 184 int[] result = SmsMessage.calculateLength(sms.getMessageBody(), true); 186 assertEquals(sms.getMessageBody().length(), result[1]); 187 assertEquals(SmsMessage.MAX_USER_DATA_SEPTETS - sms.getMessageBody().length(), result[2]); 189 assertEquals(pdu, toHexString(sms.getPdu())); 191 assertEquals(NOT_CREATE_FROM_SIM, sms.getIndexOnSim()); 192 assertEquals(NOT_CREATE_FROM_ICC, sms.getIndexOnIcc()) 264 SmsMessage sms = SmsMessage.createFromPdu(hexStringToByteArray(pdu)); local 316 SmsMessage sms = SmsMessage.createFromPdu(hexStringToByteArray(pdu)); local 413 SmsMessage sms = SmsMessage.createFromPdu(hexStringToByteArray(pdu)); local [all...] |
/cts/tests/tests/telephony/src/android/telephony/gsm/cts/ |
SmsMessageTest.java | 178 SmsMessage sms = SmsMessage.createFromPdu(hexStringToByteArray(pdu)); local 179 assertEquals(SCA1, sms.getServiceCenterAddress()); 180 assertEquals(OA1, sms.getOriginatingAddress()); 181 assertEquals(MESSAGE_BODY1, sms.getMessageBody()); 183 int[] result = SmsMessage.calculateLength(sms.getMessageBody(), true); 185 assertEquals(sms.getMessageBody().length(), result[1]); 186 assertEquals(SmsMessage.MAX_USER_DATA_SEPTETS - sms.getMessageBody().length(), result[2]); 188 assertEquals(pdu, toHexString(sms.getPdu())); 190 assertEquals(NOT_CREATE_FROM_SIM, sms.getIndexOnSim()); 191 assertEquals(PROTOCOL_IDENTIFIER, sms.getProtocolIdentifier()) 261 SmsMessage sms = SmsMessage.createFromPdu(hexStringToByteArray(pdu)); local 313 SmsMessage sms = SmsMessage.createFromPdu(hexStringToByteArray(pdu)); local 410 SmsMessage sms = SmsMessage.createFromPdu(hexStringToByteArray(pdu)); local [all...] |
/frameworks/base/telephony/java/com/android/internal/telephony/cdma/sms/ |
SmsEnvelope.java | 17 package com.android.internal.telephony.cdma.sms; 57 * Provides the type of a SMS message like point to point, broadcast or acknowledge 70 * by the SMS message. 76 * The origination address identifies the originator of the SMS message. 82 * The destination address identifies the target of the SMS message. 89 * SMS Acknowledge Message. 96 * The cause code parameters are an indication whether an SMS error has occurred and if so,
|
CdmaSmsAddress.java | 17 package com.android.internal.telephony.cdma.sms; 22 import com.android.internal.telephony.cdma.sms.UserData;
|
UserData.java | 17 package com.android.internal.telephony.cdma.sms; 129 * Contains the data encoding type for the SMS message 144 * Contains the user data of a SMS message
|
BearerData.java | 17 package com.android.internal.telephony.cdma.sms; 33 import com.android.internal.telephony.cdma.sms.UserData; 42 * An object to encode and decode CDMA SMS bearer data. 45 private final static String LOG_TAG = "SMS"; 78 * Supported message types for CDMA SMS messages 100 * Supported priority modes for CDMA SMS messages 112 * Supported privacy modes for CDMA SMS messages 124 * Supported alert priority modes for CDMA SMS messages 136 * Supported display modes for CDMA SMS messages. Display mode is 168 * SMS Message Status Codes. The first component of the Messag [all...] |
/frameworks/base/telephony/java/com/android/internal/telephony/cdma/ |
CdmaSMSDispatcher.java | 33 import android.provider.Telephony.Sms.Intents; 45 import com.android.internal.telephony.cdma.sms.SmsEnvelope; 46 import com.android.internal.telephony.cdma.sms.UserData; 77 private void handleCdmaStatusReport(SmsMessage sms) { 80 if (tracker.mMessageRef == sms.messageRef) { 85 fillIn.putExtra("pdu", sms.getPdu()); 97 // If sms is null, means there was a parsing error. 108 // See if we have a network duplicate SMS. 109 SmsMessage sms = (SmsMessage) smsb; local 110 mLastDispatchedSmsFingerprint = sms.getIncomingSmsFingerprint() [all...] |
/frameworks/base/telephony/java/android/telephony/ |
SmsManager.java | 41 * Manages SMS operations such as sending data, text, and pdu SMS messages. 48 * Send a text based SMS. 64 * The per-application based SMS control checks sentIntent. If sentIntent 66 * which cause smaller number of SMS to be sent in checking period. 96 * the maximum SMS message size. 107 * Send a multi-part text based SMS. The callee should have already 127 * The per-application based SMS control checks sentIntent. If sentIntent 129 * which cause smaller number of SMS to be sent in checking period. 173 * Send a data based SMS to a specific application port 362 SmsMessage sms = SmsMessage.createFromEfRecord(i+1, data.getBytes()); local [all...] |
/frameworks/base/telephony/java/com/android/internal/telephony/gsm/ |
GsmSMSDispatcher.java | 25 import android.provider.Telephony.Sms.Intents; 61 SmsMessage sms = SmsMessage.newFromCDS(pduString); local 63 if (sms != null) { 64 int messageRef = sms.messageRef; 89 // If sms is null, means there was a parsing error. 93 SmsMessage sms = (SmsMessage) smsb; local 96 if (sms.isTypeZero()) { 104 if (sms.isMWISetMessage()) { 106 handled = sms.isMwiDontStore(); 108 Log.d(TAG, "Received voice mail indicator set SMS shouldStore=" + !handled) [all...] |
SIMRecords.java | 851 Log.i("ENF", "marked read: sms " + msg.arg1); 1257 String sms = "0107912160130310f20404d0110041007030208054832b0120" local [all...] |
/packages/apps/Mms/src/com/android/mms/transaction/ |
SmsReceiverService.java | 21 import static android.provider.Telephony.Sms.Intents.SMS_RECEIVED_ACTION; 46 import android.provider.Telephony.Sms; 48 import android.provider.Telephony.Sms.Inbox; 49 import android.provider.Telephony.Sms.Intents; 50 import android.provider.Telephony.Sms.Outbox; 86 Sms._ID, //0 87 Sms.THREAD_ID, //1 88 Sms.ADDRESS, //2 89 Sms.BODY, //3 90 Sms.STATUS, // 317 SmsMessage sms = msgs[0]; local 369 SmsMessage sms = msgs[0]; local 391 SmsMessage sms = msgs[0]; local 429 SmsMessage sms = msgs[0]; local [all...] |
/frameworks/base/telephony/tests/telephonytests/src/com/android/internal/telephony/cdma/sms/ |
CdmaSmsTest.java | 17 package com.android.internal.telephony.cdma.sms; 24 import com.android.internal.telephony.cdma.sms.BearerData; 25 import com.android.internal.telephony.cdma.sms.UserData; 26 import com.android.internal.telephony.cdma.sms.CdmaSmsAddress; 117 assertEquals("Test standard SMS", bearerData.userData.payloadStr); 131 assertEquals("SMS Rulz", bearerData.userData.payloadStr); 138 assertEquals("SMS Rulz", bearerData.userData.payloadStr); 148 userData.payloadStr = "Test standard SMS"; 160 userData.payloadStr = "Test \u007f standard \u0000 SMS"; 162 assertEquals("Test standard SMS", revBearerData.userData.payloadStr) [all...] |
/frameworks/base/core/tests/coretests/src/android/os/ |
HierarchicalStateMachineTest.java | 1407 StateMachineSharedThread sms[] = new StateMachineSharedThread[10]; local [all...] |
/frameworks/base/telephony/java/com/android/internal/telephony/ |
SMSDispatcher.java | 41 import android.provider.Telephony.Sms.Intents; 67 private static final String TAG = "SMS"; 69 /** Default checking period for SMS sent without user permit */ 72 /** Default number of SMS sent in checking period without user permit */ 75 /** Default timeout for SMS sent query */ 88 /** Retry sending a previously failed SMS message */ 97 /** SMS confirm required */ 100 /** Send the user confirmed SMS */ 122 protected final Uri mRawUri = Uri.withAppendedPath(Telephony.Sms.CONTENT_URI, "raw"); 124 /** Maximum number of times to retry sending a failed SMS. * 287 SmsMessage sms; local [all...] |
RIL.java | 254 // The number of the required config values for broadcast SMS stored in the C struct 2388 SmsMessage sms; local 2562 SmsMessage sms = (SmsMessage) ret; local 2715 SmsMessage sms; local [all...] |