/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 | 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,
|
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...] |
/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; 36 import com.android.internal.telephony.cdma.sms.BearerData; 37 import com.android.internal.telephony.cdma.sms.CdmaSmsAddress; 38 import com.android.internal.telephony.cdma.sms.SmsEnvelope; 53 * Create a new CDMA inbound SMS handler. 95 * @param sms the CDMA SmsMessage containing the SCPD request 98 private boolean handleServiceCategoryProgramData(SmsMessage sms) { 99 ArrayList<CdmaSmsCbProgramData> programDataList = sms.getSmsCbProgramData(); 106 intent.putExtra("sender", sms.getOriginatingAddress()); 117 * as a reply SMS, then sends a message to state machine to transition to idle [all...] |
CdmaSMSDispatcher.java | 28 import android.provider.Telephony.Sms; 29 import android.provider.Telephony.Sms.Intents; 43 import com.android.internal.telephony.cdma.sms.UserData; 67 * Send the SMS status report to the dispatcher thread to process. 68 * @param sms the CDMA SMS message containing the status report 70 void sendStatusReportMessage(SmsMessage sms) { 72 sendMessage(obtainMessage(EVENT_HANDLE_STATUS_REPORT, sms)); 87 * @param sms the CDMA SMS message to proces [all...] |
/packages/apps/Mms/src/com/android/mms/ui/ |
ClassZeroActivity.java | 35 import android.provider.Telephony.Sms; 36 import android.provider.Telephony.Sms.Inbox; 49 * Display a class-zero SMS message to the user. Wait for the user to dismiss 55 private static final String[] REPLACE_PROJECTION = new String[] { Sms._ID, 56 Sms.ADDRESS, Sms.PROTOCOL }; 223 private ContentValues extractContentValues(SmsMessage sms) { 227 values.put(Inbox.ADDRESS, sms.getDisplayOriginatingAddress()); 232 values.put(Inbox.PROTOCOL, sms.getProtocolIdentifier()); 236 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);
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
InboundSmsHandler.java | 46 import android.provider.Telephony.Sms.Intents; 68 * This class broadcasts incoming SMS messages to interested apps after storing them in 74 * new SMS from the radio, it calls {@link #dispatchNormalMessage}, 79 * <p>After saving the SMS, if the message is complete (either single-part or the final segment 80 * of a multi-part SMS), we broadcast the completed PDUs as an ordered broadcast, then transition to 85 * after all messages are processed. Then the wakelock is released and we wait for the next SMS. 115 /** New SMS received as an AsyncResult. */ 136 /** New SMS received as an AsyncResult. */ 142 /** URI for raw table of SMS provider. */ 143 private static final Uri sRawUri = Uri.withAppendedPath(Telephony.Sms.CONTENT_URI, "raw") 470 SmsMessage sms = (SmsMessage) ar.result; local 494 SmsMessage sms = (SmsMessage) ar.result; local 1105 final SmsMessage sms = msgs[0]; local [all...] |
/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);
|
/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");
|
/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) {
|