HomeSort by relevance Sort by last modified time
    Searched refs:sms (Results 1 - 25 of 46) sorted by null

1 2

  /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;
  /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. */
46 * Create a new GSM inbound SMS handler.
59 * Unregister for GSM SMS.
66 if (DBG) log("unregistered for 3GPP SMS");
90 * Handle type zero, SMS-PP data download, and 3GPP/CPHS MWI type SMS. Normal SMS messages
94 * @return a result code from {@link android.provider.Telephony.Sms.Intents}
99 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;
60 * Create a new inbound SMS handler for CDMA.
74 * Unregister for CDMA SMS.
81 if (DBG) log("unregistered for 3GPP2 SMS");
125 SmsMessage sms = (SmsMessage) smsb; local
126 boolean isBroadcastType = (SmsEnvelope.MESSAGE_TYPE_BROADCAST == sms.getMessageType());
131 SmsCbMessage cbMessage = sms.parseBroadcastSms();
135 loge("error trying to parse broadcast SMS");
140 // 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;
52 * Create a new CDMA inbound SMS handler.
94 * @param sms the CDMA SmsMessage containing the SCPD request
97 private boolean handleServiceCategoryProgramData(SmsMessage sms) {
98 ArrayList<CdmaSmsCbProgramData> programDataList = sms.getSmsCbProgramData();
105 intent.putExtra("sender", sms.getOriginatingAddress());
116 * as a reply SMS, then sends a message to state machine to transition to idle
    [all...]
CdmaSMSDispatcher.java 26 import android.provider.Telephony.Sms;
39 import com.android.internal.telephony.cdma.sms.UserData;
56 * Send the SMS status report to the dispatcher thread to process.
57 * @param sms the CDMA SMS message containing the status report
59 void sendStatusReportMessage(SmsMessage sms) {
61 sendMessage(obtainMessage(EVENT_HANDLE_STATUS_REPORT, sms));
80 * @param sms the CDMA SMS message to process
82 void handleCdmaStatusReport(SmsMessage sms) {
    [all...]
  /packages/apps/Mms/src/com/android/mms/ui/
ClassZeroActivity.java 34 import android.provider.Telephony.Sms;
35 import android.provider.Telephony.Sms.Inbox;
45 * Display a class-zero SMS message to the user. Wait for the user to dismiss
53 private static final String[] REPLACE_PROJECTION = new String[] { Sms._ID,
54 Sms.ADDRESS, Sms.PROTOCOL };
184 private ContentValues extractContentValues(SmsMessage sms) {
188 values.put(Inbox.ADDRESS, sms.getDisplayOriginatingAddress());
193 values.put(Inbox.PROTOCOL, sms.getProtocolIdentifier());
197 if (sms.getPseudoSubject().length() > 0)
    [all...]
  /external/chromium_org/chromeos/dbus/
sms_client.cc 29 // org.freedesktop.ModemManager1.SMS service. All methods should be
95 base::DictionaryValue *sms = new base::DictionaryValue();
96 sms->SetString("Number", "000-000-0000");
97 sms->SetString("Text",
99 sms->SetString("Timestamp", "Fri Jun 8 13:26:04 EDT 2012");
108 base::Owned(sms),
113 void OnGetAll(base::DictionaryValue *sms,
115 callback.Run(*sms);
sms_client.h 27 // org.freedesktop.ModemManager1.SMS service. All methods should be
32 typedef base::Callback<void(const base::DictionaryValue& sms)> GetAllCallback;
gsm_sms_client.h 28 // org.freedesktop.ModemManager.Modem.Gsm.SMS service.
35 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);
  /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...]
  /external/chromium_org/chromeos/network/
sms_watcher.cc 29 void decode_timestamp(const std::string& sms_timestamp, SMS *sms) {
42 sms->timestamp = base::Time::FromUTCExploded(exp);
46 sms->timestamp -= base::TimeDelta::FromHours(hours);
119 // Callback for SmsReceived signal from ModemManager.Modem.Gsm.SMS
131 // Runs |callback_| with a SMS.
133 SMS sms; local
136 &sms.number))
137 LOG(WARNING) << "SMS did not contain a number"
307 SMS sms; local
    [all...]
cros_network_functions_unittest.cc 30 // Matcher to match SMS.
31 MATCHER_P(IsSMSEqualTo, sms, "") {
32 return sms.timestamp == arg.timestamp &&
33 std::string(sms.number) == arg.number &&
34 std::string(sms.text) == arg.text &&
35 sms.validity == arg.validity &&
36 sms.msgclass == arg.msgclass;
166 void(const std::string& modem_device_path, const SMS& message));
377 SMS sms; 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. */
120 /** URI for raw table of SMS provider. */
121 private static final Uri sRawUri = Uri.withAppendedPath(Telephony.Sms.CONTENT_URI, "raw");
129 /** Wake lock to ensure device stays awake while dispatching the SMS intents. *
397 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) {

Completed in 1235 milliseconds

1 2