/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
SMSDispatcherTest.java | 37 SmsMessage sms; local 50 sms = SmsMessage.newFromCMT(lines); 51 header = sms.getUserDataHeader(); 53 assertNotNull(sms.getUserData()); 67 SmsMessage sms; local 77 sms = SmsMessage.newFromCMT(lines); 78 header = sms.getUserDataHeader(); 80 assertNotNull(sms.getUserData()); 94 SmsMessage sms; local 104 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 | 34 ISms sms = ISms.Stub.asInterface(ServiceManager.getService("isms")); local 35 assertNotNull(sms); 37 List<SmsRawData> records = sms.getAllMessagesFromIccEf(ActivityThread.currentPackageName());
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/sms/ |
CdmaSmsSubaddress.java | 17 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; 63 * Provides the type of a SMS message like point to point, broadcast or acknowledge 76 * by the SMS message. 82 * The origination address identifies the originator of the SMS message. 88 * The destination address identifies the target of the SMS message. 94 * The origination subaddress identifies the originator of the SMS message. 101 * SMS Acknowledge Message. 108 * 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; 38 * An object to encode and decode CDMA SMS bearer data. 77 * Supported message types for CDMA SMS messages 99 * Supported priority modes for CDMA SMS messages 111 * Supported privacy modes for CDMA SMS messages 123 * Supported alert priority modes for CDMA SMS messages 135 * Supported display modes for CDMA SMS messages. Display mode is 167 * SMS Message Status Codes. The first component of the Message 218 * The User Response Code subparameter is used in the SMS User 303 * indicate whether SMS acknowledgment is requested or not. (Se [all...] |
/cts/tests/tests/telephony/src/android/telephony/cts/ |
SmsMessageTest.java | 83 SmsMessage sms = SmsMessage.createFromPdu(hexStringToByteArray(pdu)); local 84 assertEquals(SCA1, sms.getServiceCenterAddress()); 85 assertEquals(OA1, sms.getOriginatingAddress()); 86 assertEquals(MESSAGE_BODY1, sms.getMessageBody()); 88 int[] result = SmsMessage.calculateLength(sms.getMessageBody(), true); 90 assertEquals(sms.getMessageBody().length(), result[1]); 91 assertRemaining(sms.getMessageBody().length(), result[2]); 93 assertEquals(pdu, toHexString(sms.getPdu())); 95 assertEquals(NOT_CREATE_FROM_SIM, sms.getIndexOnSim()); 96 assertEquals(NOT_CREATE_FROM_ICC, sms.getIndexOnIcc()) 163 SmsMessage sms = SmsMessage.createFromPdu(hexStringToByteArray(pdu)); local 209 SmsMessage sms = SmsMessage.createFromPdu(hexStringToByteArray(pdu)); local 268 SmsMessage sms = SmsMessage.createFromPdu(hexStringToByteArray(pdu)); local [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/ |
GsmInboundSmsHandler.java | 22 import android.provider.Telephony.Sms.Intents; 35 * This class broadcasts incoming SMS messages to interested apps after storing them in 40 /** Handler for SMS-PP data download messages to UICC. */ 44 * Create a new GSM inbound SMS handler. 55 * Unregister for GSM SMS. 62 if (DBG) log("unregistered for 3GPP SMS"); 86 * Handle type zero, SMS-PP data download, and 3GPP/CPHS MWI type SMS. Normal SMS messages 90 * @return a result code from {@link android.provider.Telephony.Sms.Intents} 95 SmsMessage sms = (SmsMessage) smsb; local [all...] |
GsmSMSDispatcher.java | 26 import android.provider.Telephony.Sms; 27 import android.provider.Telephony.Sms.Intents; 120 SmsMessage sms = SmsMessage.newFromCDS(pduString); local 122 if (sms != null) { 123 int tpStatus = sms.getStatus(); 124 int messageRef = sms.mMessageRef; 129 if(tpStatus >= Sms.STATUS_FAILED || tpStatus < Sms.STATUS_PENDING ) { 254 // per TS 23.040 Section 9.2.3.6: If TP-MTI SMS-SUBMIT (0x01) type 256 // and TP-MR is set to previously failed sms TP-M [all...] |
/development/tools/emulator/test-apps/SmokeTests/src/com/android/emulator/smoketests/sms/ |
SmsTest.java | 16 package com.android.emulator.smoketests.sms; 31 * Sms Test 33 * Test that an SMS message has been received 38 * Prior to running this test an sms must be sent 42 public final static String BODY = "test sms"; 49 * Verify that an SMS has been received with the correct number and body 67 Uri message = Uri.parse("content://sms/"); 80 Assert.fail("Did not find any SMS messages. Giving up");
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/ |
CdmaInboundSmsHandler.java | 24 import android.provider.Telephony.Sms.Intents; 37 import com.android.internal.telephony.cdma.sms.SmsEnvelope; 56 * Create a new inbound SMS handler for CDMA. 69 * Unregister for CDMA SMS. 76 if (DBG) log("unregistered for 3GPP2 SMS"); 120 SmsMessage sms = (SmsMessage) smsb; local 121 boolean isBroadcastType = (SmsEnvelope.MESSAGE_TYPE_BROADCAST == sms.getMessageType()); 126 SmsCbMessage cbMessage = sms.parseBroadcastSms(); 130 loge("error trying to parse broadcast SMS"); 135 // Initialize fingerprint field, and see if we have a network duplicate SMS [all...] |
/packages/apps/BasicSmsReceiver/tests/src/com/android/basicsmsreceiver/ |
DialogSmsDisplayTests.java | 84 assertTrue("SMS must be enabled on the device", mHasSms); 88 // Register broadcast receivers for SMS sent and delivered intents 103 message = "Error: No SMS service."; 118 // Register broadcast receivers for received SMS 145 new IntentFilter(Telephony.Sms.Intents.SMS_RECEIVED_ACTION)); 166 fail("no sms on device"); 169 SmsManager sms = SmsManager.getDefault(); local 171 List<String> messages = sms.divideMessage(messageOut); 178 sms.sendTextMessage(mMyNumber, null, message, PendingIntent.getBroadcast( 184 // returns true if "messageCount" sms messages are received, false if timeou [all...] |
/external/chromium_org/chromeos/dbus/ |
gsm_sms_client_unittest.cc | 42 MOCK_METHOD1(Run, void(const base::DictionaryValue& sms)); 56 // Keys of SMS dictionary. 60 // Example values of SMS dictionary. 310 base::DictionaryValue* sms = new base::DictionaryValue; local 311 sms->SetWithoutPathExpansion(kNumberKey, 313 sms->SetWithoutPathExpansion(kTextKey, new base::StringValue(kExampleText)); 314 expected_result.Append(sms);
|
/packages/apps/Mms/tests/SmsAutoReply/src/com/android/smsautoreply/ |
AutoReplyActivity.java | 38 * A sms reply activity which auto-replies the received sms message to the sender 39 * This is used as the receiver for 1:M sms stress test. 67 Log.d(TAG, String.format("SMS received from %s, body: %s", 74 // Log received sms message into an output file 78 String logMsg = String.format("SMS: from: %s body: %s", 89 Log.e(TAG, "failed to log SMS", ioe); 95 SmsManager sms = SmsManager.getDefault(); local 97 sms.sendTextMessage(msg.getOriginatingAddress(), null, message, null, null);
|
/packages/apps/Mms/src/com/android/mms/transaction/ |
SmsReceiverService.java | 21 import static android.provider.Telephony.Sms.Intents.SMS_DELIVER_ACTION; 43 import android.provider.Telephony.Sms; 44 import android.provider.Telephony.Sms.Inbox; 45 import android.provider.Telephony.Sms.Intents; 46 import android.provider.Telephony.Sms.Outbox; 91 Sms._ID, //0 92 Sms.THREAD_ID, //1 93 Sms.ADDRESS, //2 94 Sms.BODY, //3 95 Sms.STATUS, // 383 SmsMessage sms = msgs[0]; local 474 SmsMessage sms = msgs[0]; local 496 SmsMessage sms = msgs[0]; local 555 SmsMessage sms = msgs[0]; local [all...] |
/frameworks/av/media/libstagefright/tests/ |
SurfaceMediaSource_test.cpp | 111 sp<IGraphicBufferProducer> sms = (new SurfaceMediaSource( local 113 sp<Surface> stc = new Surface(sms); 395 ALOGV("SMS-GLTest::SetUp()"); [all...] |
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/cdma/sms/ |
CdmaSmsTest.java | 17 package com.android.internal.telephony.cdma.sms; 121 assertEquals("Test standard SMS", bearerData.userData.payloadStr); 135 assertEquals("SMS Rulz", bearerData.userData.payloadStr); 142 assertEquals("SMS Rulz", bearerData.userData.payloadStr); 152 userData.payloadStr = "Test standard SMS"; 164 userData.payloadStr = "Test \u007f standard \u0000 SMS"; 166 assertEquals("Test standard SMS", revBearerData.userData.payloadStr); 167 userData.payloadStr = "Test \n standard \r SMS"; 182 userData.payloadStr = "Test standard SMS"; 206 userData.payloadStr = "Test \u007f illegal \u0000 SMS chars" [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
InboundSmsHandler.java | 53 import android.provider.Telephony.Sms.Intents; 78 * This class broadcasts incoming SMS messages to interested apps after storing them in 84 * new SMS from the radio, it calls {@link #dispatchNormalMessage}, 89 * <p>After saving the SMS, if the message is complete (either single-part or the final segment 90 * of a multi-part SMS), we broadcast the completed PDUs as an ordered broadcast, then transition to 95 * after all messages are processed. Then the wakelock is released and we wait for the next SMS. 125 /** New SMS received as an AsyncResult. */ 146 /** New SMS received as an AsyncResult. */ 152 /** URI for raw table of SMS provider. */ 153 private static final Uri sRawUri = Uri.withAppendedPath(Telephony.Sms.CONTENT_URI, "raw") 480 SmsMessage sms = (SmsMessage) ar.result; local 504 SmsMessage sms = (SmsMessage) ar.result; local 1262 final SmsMessage sms = msgs[0]; local [all...] |
RIL.java | 277 // The number of the required config values for broadcast SMS stored in the C struct 2806 SmsMessage sms; local 2987 SmsMessage sms = (SmsMessage) ret; local 3280 SmsMessage sms; local [all...] |
/frameworks/opt/telephony/src/java/android/telephony/ |
SmsManager.java | 51 * Manages SMS operations such as sending data, text, and pdu SMS messages. 54 * <p>For information about how to behave as the default SMS app on Android 4.4 (API level 19) 82 * Some of the values are used by the system in processing SMS or MMS messages. Others 83 * are provided for the convenience of SMS applications. 113 * Whether multipart SMS is enabled (boolean type) 117 * Whether SMS delivery report is enabled (boolean type) 126 * Whether multipart SMS should be sent as separate messages 163 * When the number of parts of a multipart SMS reaches this threshold, it should be 168 * Some carriers require SMS to be converted into MMS when text length reaches this threshol 845 SmsMessage sms = SmsMessage.createFromEfRecord(i+1, data.getBytes()); local [all...] |
/frameworks/base/core/tests/coretests/src/com/android/internal/util/ |
StateMachineTest.java | 1599 StateMachineSharedThread sms[] = new StateMachineSharedThread[10]; local [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/ |
SIMRecords.java | 1598 String sms = "0107912160130310f20404d0110041007030208054832b0120" local [all...] |