/frameworks/base/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
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...] |
GsmSmsTest.java | 33 SmsMessage sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); local 34 assertEquals("+14155551212", sms.getServiceCenterAddress()); 35 assertEquals("+16505551111", sms.getOriginatingAddress()); 36 assertEquals("Test", sms.getMessageBody()); 40 sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); 41 assertEquals("+14155551212", sms.getServiceCenterAddress()); 42 assertEquals("+16505551111", sms.getOriginatingAddress()); 43 assertEquals("(Subject)Test", sms.getMessageBody()); 54 SmsMessage sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); local 55 SmsHeader header = sms.getUserDataHeader() 88 SmsMessage sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); local 103 SmsMessage sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); local 122 SmsMessage sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); local 154 SmsMessage sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); local 173 SmsMessage sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); local 205 SmsMessage sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); local [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 | 183 SmsMessage sms = SmsMessage.createFromPdu(hexStringToByteArray(pdu)); local 184 assertEquals(SCA1, sms.getServiceCenterAddress()); 185 assertEquals(OA1, sms.getOriginatingAddress()); 186 assertEquals(MESSAGE_BODY1, sms.getMessageBody()); 188 int[] result = SmsMessage.calculateLength(sms.getMessageBody(), true); 190 assertEquals(sms.getMessageBody().length(), result[1]); 191 assertEquals(getNumSeptets() - sms.getMessageBody().length(), result[2]); 193 assertEquals(pdu, toHexString(sms.getPdu())); 195 assertEquals(NOT_CREATE_FROM_SIM, sms.getIndexOnSim()); 196 assertEquals(NOT_CREATE_FROM_ICC, sms.getIndexOnIcc()) 279 SmsMessage sms = SmsMessage.createFromPdu(hexStringToByteArray(pdu)); local 332 SmsMessage sms = SmsMessage.createFromPdu(hexStringToByteArray(pdu)); local 435 SmsMessage sms = SmsMessage.createFromPdu(hexStringToByteArray(pdu)); local [all...] |
/frameworks/base/telephony/java/com/android/internal/telephony/cdma/sms/ |
CdmaSmsSubaddress.java | 18 package com.android.internal.telephony.cdma.sms;
|
SmsEnvelope.java | 17 package com.android.internal.telephony.cdma.sms; 20 import com.android.internal.telephony.cdma.sms.CdmaSmsSubaddress; 59 * Provides the type of a SMS message like point to point, broadcast or acknowledge 72 * by the SMS message. 78 * The origination address identifies the originator of the SMS message. 84 * The destination address identifies the target of the SMS message. 90 * The origination subaddress identifies the originator of the SMS message. 97 * SMS Acknowledge Message. 104 * 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; 43 * An object to encode and decode CDMA SMS bearer data. 46 private final static String LOG_TAG = "SMS"; 79 * Supported message types for CDMA SMS messages 101 * Supported priority modes for CDMA SMS messages 113 * Supported privacy modes for CDMA SMS messages 125 * Supported alert priority modes for CDMA SMS messages 137 * Supported display modes for CDMA SMS messages. Display mode is 169 * SMS Message Status Codes. The first component of the Message 220 * The User Response Code subparameter is used in the SMS Use [all...] |
/packages/apps/BasicSmsReceiver/tests/src/com/android/basicsmsreceiver/ |
DialogSmsDisplayTests.java | 32 import android.provider.Telephony.Sms.Intents; 85 assertTrue("SMS must be enabled on the device", mHasSms); 89 // Register broadcast receivers for SMS sent and delivered intents 104 message = "Error: No SMS service."; 119 // Register broadcast receivers for received SMS 146 new IntentFilter(Telephony.Sms.Intents.SMS_RECEIVED_ACTION)); 167 fail("no sms on device"); 170 SmsManager sms = SmsManager.getDefault(); local 172 List<String> messages = sms.divideMessage(messageOut); 179 sms.sendTextMessage(mMyNumber, null, message, PendingIntent.getBroadcast [all...] |
/frameworks/base/telephony/java/com/android/internal/telephony/cdma/ |
CdmaSMSDispatcher.java | 32 import android.provider.Telephony.Sms.Intents; 46 import com.android.internal.telephony.cdma.sms.SmsEnvelope; 47 import com.android.internal.telephony.cdma.sms.UserData; 82 private void handleCdmaStatusReport(SmsMessage sms) { 85 if (tracker.mMessageRef == sms.messageRef) { 90 fillIn.putExtra("pdu", sms.getPdu()); 104 // If sms is null, means there was a parsing error. 116 // Device doesn't support receiving SMS, 118 + "receiving SMS. Ignored."); 122 // See if we have a network duplicate SMS 123 SmsMessage sms = (SmsMessage) smsb; local [all...] |
/frameworks/base/telephony/java/android/telephony/ |
SmsManager.java | 40 * 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 481 SmsMessage sms = SmsMessage.createFromEfRecord(i+1, data.getBytes()); local [all...] |
/packages/apps/Mms/src/com/android/mms/transaction/ |
SmsReceiverService.java | 21 import static android.provider.Telephony.Sms.Intents.SMS_RECEIVED_ACTION; 49 import android.provider.Telephony.Sms; 51 import android.provider.Telephony.Sms.Inbox; 52 import android.provider.Telephony.Sms.Intents; 53 import android.provider.Telephony.Sms.Outbox; 88 Sms._ID, //0 89 Sms.THREAD_ID, //1 90 Sms.ADDRESS, //2 91 Sms.BODY, //3 92 Sms.STATUS, // 358 SmsMessage sms = msgs[0]; local 428 SmsMessage sms = msgs[0]; local 450 SmsMessage sms = msgs[0]; local 509 SmsMessage sms = msgs[0]; local [all...] |
/frameworks/base/media/libstagefright/tests/ |
SurfaceMediaSource_test.cpp | 110 sp<SurfaceMediaSource> sms = new SurfaceMediaSource( local 112 sp<SurfaceTextureClient> stc = new SurfaceTextureClient(sms); 395 LOGV("SMS-GLTest::SetUp()"); [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/telephony/java/com/android/internal/telephony/gsm/ |
GsmSMSDispatcher.java | 26 import android.provider.Telephony.Sms; 27 import android.provider.Telephony.Sms.Intents; 56 /** New broadcast SMS */ 59 /** Result of writing SM to UICC (when SMS-PP service is not available). */ 62 /** Handler for SMS-PP data download messages to UICC. */ 106 Log.d(TAG, "Successfully wrote SMS-PP message to UICC"); 109 Log.d(TAG, "Failed to write SMS-PP message to UICC", ar.exception); 129 SmsMessage sms = SmsMessage.newFromCDS(pduString); local 131 if (sms != null) { 132 int tpStatus = sms.getStatus() 167 SmsMessage sms = (SmsMessage) smsb; local [all...] |
SIMRecords.java | 1374 String sms = "0107912160130310f20404d0110041007030208054832b0120" local [all...] |
/frameworks/base/telephony/java/com/android/internal/telephony/ |
SMSDispatcher.java | 40 import android.provider.Telephony.Sms.Intents; 66 static final String TAG = "SMS"; // accessed from inner class 69 /** Default timeout for SMS sent query */ 72 /** Permission required to receive SMS and SMS-CB messages. */ 95 /** New SMS received. */ 98 /** SMS send complete. */ 101 /** Retry sending a previously failed SMS message */ 104 /** SMS confirm required */ 107 /** Send the user confirmed SMS */ 247 SmsMessage sms; local [all...] |
RIL.java | 250 // The number of the required config values for broadcast SMS stored in the C struct 2475 SmsMessage sms; local 2649 SmsMessage sms = (SmsMessage) ret; local 2854 SmsMessage sms; local [all...] |
/frameworks/base/core/tests/coretests/src/com/android/internal/util/ |
StateMachineTest.java | 1449 StateMachineSharedThread sms[] = new StateMachineSharedThread[10]; local [all...] |