/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/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; 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,
|
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
|
CdmaSmsAddress.java | 17 package com.android.internal.telephony.cdma.sms; 22 import com.android.internal.telephony.cdma.sms.UserData;
|
/external/chromium_org/chromeos/dbus/ |
fake_sms_client.cc | 34 base::DictionaryValue* sms = new base::DictionaryValue(); 35 sms->SetString("Number", "000-000-0000"); 36 sms->SetString("Text", "FakeSMSClient: Test Message: " + object_path.value()); 37 sms->SetString("Timestamp", "Fri Jun 8 13:26:04 EDT 2012"); 46 base::Owned(sms), 50 void FakeSMSClient::OnGetAll(base::DictionaryValue* sms, 52 callback.Run(*sms);
|
sms_client.h | 26 // org.freedesktop.ModemManager1.SMS service. All methods should be 31 typedef base::Callback<void(const base::DictionaryValue& sms)> GetAllCallback;
|
fake_sms_client.h | 27 void OnGetAll(base::DictionaryValue* sms, const GetAllCallback& callback);
|
gsm_sms_client.h | 27 // org.freedesktop.ModemManager.Modem.Gsm.SMS service. 34 typedef base::Callback<void(const base::DictionaryValue& sms)> GetCallback;
|
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( 313 sms->SetWithoutPathExpansion( 315 expected_result.Append(sms);
|
/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/gsm/ |
GsmInboundSmsHandler.java | 22 import android.provider.Telephony.Sms.Intents; 33 * This class broadcasts incoming SMS messages to interested apps after storing them in 38 /** Handler for SMS-PP data download messages to UICC. */ 42 * Create a new GSM inbound SMS handler. 53 * Unregister for GSM SMS. 60 if (DBG) log("unregistered for 3GPP SMS"); 84 * Handle type zero, SMS-PP data download, and 3GPP/CPHS MWI type SMS. Normal SMS messages 88 * @return a result code from {@link android.provider.Telephony.Sms.Intents} 93 SmsMessage sms = (SmsMessage) smsb; local [all...] |
GsmSMSDispatcher.java | 25 import android.provider.Telephony.Sms; 26 import android.provider.Telephony.Sms.Intents; 121 SmsMessage sms = SmsMessage.newFromCDS(pduString); local 123 if (sms != null) { 124 int tpStatus = sms.getStatus(); 125 int messageRef = sms.mMessageRef; 130 if(tpStatus >= Sms.STATUS_FAILED || tpStatus < Sms.STATUS_PENDING ) { 225 // per TS 23.040 Section 9.2.3.6: If TP-MTI SMS-SUBMIT (0x01) type 227 // and TP-MR is set to previously failed sms TP-M [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/ |
CdmaInboundSmsHandler.java | 26 import android.provider.Telephony.Sms.Intents; 39 import com.android.internal.telephony.cdma.sms.SmsEnvelope; 58 * Create a new inbound SMS handler for CDMA. 71 * Unregister for CDMA SMS. 78 if (DBG) log("unregistered for 3GPP2 SMS"); 122 SmsMessage sms = (SmsMessage) smsb; local 123 boolean isBroadcastType = (SmsEnvelope.MESSAGE_TYPE_BROADCAST == sms.getMessageType()); 128 SmsCbMessage cbMessage = sms.parseBroadcastSms(); 132 loge("error trying to parse broadcast SMS"); 137 // Initialize fingerprint field, and see if we have a network duplicate SMS [all...] |
CdmaServiceCategoryProgramHandler.java | 27 import android.provider.Telephony.Sms.Intents; 34 import com.android.internal.telephony.cdma.sms.BearerData; 35 import com.android.internal.telephony.cdma.sms.CdmaSmsAddress; 36 import com.android.internal.telephony.cdma.sms.SmsEnvelope; 51 * Create a new CDMA inbound SMS handler. 93 * @param sms the CDMA SmsMessage containing the SCPD request 96 private boolean handleServiceCategoryProgramData(SmsMessage sms) { 97 ArrayList<CdmaSmsCbProgramData> programDataList = sms.getSmsCbProgramData(); 104 intent.putExtra("sender", sms.getOriginatingAddress()); 115 * as a reply SMS, then sends a message to state machine to transition to idle [all...] |
CdmaSMSDispatcher.java | 25 import android.provider.Telephony.Sms; 37 import com.android.internal.telephony.cdma.sms.UserData; 57 * Send the SMS status report to the dispatcher thread to process. 58 * @param sms the CDMA SMS message containing the status report 60 void sendStatusReportMessage(SmsMessage sms) { 62 sendMessage(obtainMessage(EVENT_HANDLE_STATUS_REPORT, sms)); 77 * @param sms the CDMA SMS message to process 79 void handleCdmaStatusReport(SmsMessage sms) { [all...] |
/packages/apps/Mms/src/com/android/mms/ui/ |
ClassZeroActivity.java | 35 import android.provider.Telephony.Sms; 36 import android.provider.Telephony.Sms.Inbox; 48 * Display a class-zero SMS message to the user. Wait for the user to dismiss 56 private static final String[] REPLACE_PROJECTION = new String[] { Sms._ID, 57 Sms.ADDRESS, Sms.PROTOCOL }; 224 private ContentValues extractContentValues(SmsMessage sms) { 228 values.put(Inbox.ADDRESS, sms.getDisplayOriginatingAddress()); 233 values.put(Inbox.PROTOCOL, sms.getProtocolIdentifier()); 237 if (sms.getPseudoSubject().length() > 0) [all...] |
/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, // 376 SmsMessage sms = msgs[0]; local 467 SmsMessage sms = msgs[0]; local 489 SmsMessage sms = msgs[0]; local 548 SmsMessage sms = msgs[0]; local [all...] |
/packages/apps/CellBroadcastReceiver/tests/src/com/android/cellbroadcastreceiver/tests/ |
SendCdmaCmasMessages.java | 30 import com.android.internal.telephony.cdma.sms.BearerData; 31 import com.android.internal.telephony.cdma.sms.CdmaSmsAddress; 32 import com.android.internal.telephony.cdma.sms.SmsEnvelope; 33 import com.android.internal.telephony.cdma.sms.UserData; 71 Intent intent = new Intent(Telephony.Sms.Intents.SMS_EMERGENCY_CB_RECEIVED_ACTION); 83 Intent intent = new Intent(Telephony.Sms.Intents.SMS_EMERGENCY_CB_RECEIVED_ACTION); 95 Intent intent = new Intent(Telephony.Sms.Intents.SMS_EMERGENCY_CB_RECEIVED_ACTION); 107 Intent intent = new Intent(Telephony.Sms.Intents.SMS_EMERGENCY_CB_RECEIVED_ACTION); 119 Intent intent = new Intent(Telephony.Sms.Intents.SMS_EMERGENCY_CB_RECEIVED_ACTION);
|
/development/samples/ApiDemos/src/com/example/android/apis/os/ |
SmsMessagingDemo.java | 79 Log.d(TAG, (isChecked ? "Enabling" : "Disabling") + " SMS receiver"); 113 SmsManager sms = SmsManager.getDefault(); 115 List<String> messages = sms.divideMessage(contentTextEdit.getText().toString()); 119 sms.sendTextMessage(recipient, null, message, PendingIntent.getBroadcast( 125 // Register broadcast receivers for SMS sent and delivered intents
|
/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);
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
InboundSmsHandler.java | 37 import android.provider.Telephony.Sms.Intents; 52 * This class broadcasts incoming SMS messages to interested apps after storing them in 58 * new SMS from the radio, it calls {@link #dispatchNormalMessage}, 63 * <p>After saving the SMS, if the message is complete (either single-part or the final segment 64 * of a multi-part SMS), we broadcast the completed PDUs as an ordered broadcast, then transition to 69 * after all messages are processed. Then the wakelock is released and we wait for the next SMS. 99 /** New SMS received as an AsyncResult. */ 123 /** URI for raw table of SMS provider. */ 124 private static final Uri sRawUri = Uri.withAppendedPath(Telephony.Sms.CONTENT_URI, "raw"); 132 /** Wake lock to ensure device stays awake while dispatching the SMS intents. * 424 SmsMessage sms = (SmsMessage) ar.result; local [all...] |
/packages/apps/Tag/src/com/android/apps/tag/record/ |
UriRecord.java | 69 } else if ("sms".equals(scheme) || "smsto".equals(scheme)) { 79 boolean sms = "sms".equals(scheme) || "smsto".equals(scheme); 80 if (tel || sms) {
|