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

1 2 3 4

  /packages/apps/Contacts/src/com/android/contacts/interactions/
SmsInteraction.java 23 import android.provider.Telephony.Sms;
32 * Represents an sms interaction, wrapping the columns in
33 * {@link android.provider.Telephony.Sms}.
63 if (getType() == Sms.MESSAGE_TYPE_SENT) {
97 final String address = mValues.getAsString(Sms.ADDRESS);
103 return mValues.getAsString(Sms.BODY);
107 return mValues.getAsLong(Sms.DATE);
112 return mValues.getAsLong(Sms.DATE_SENT);
116 return mValues.getAsInteger(Sms.ERROR_CODE);
120 return mValues.getAsBoolean(Sms.LOCKED)
    [all...]
SmsInteractionsLoader.java 34 * Loads the most recent sms between the passed in phone numbers.
38 * to retrieve the actual sms.
86 // Query the SMS database for the threads
113 String selection = Telephony.Sms.THREAD_ID + " IN "
117 Telephony.Sms.CONTENT_URI,
121 Telephony.Sms.DEFAULT_SORT_ORDER
  /packages/apps/Messaging/src/com/android/messaging/datamodel/action/
ReceiveSmsMessageAction.java 24 import android.provider.Telephony.Sms;
36 import com.android.messaging.sms.MmsSmsUtils;
62 Integer subId = messageValues.getAsInteger(Sms.SUBSCRIPTION_ID);
67 String address = messageValues.getAsString(Sms.ADDRESS);
69 LogUtil.w(TAG, "Received an SMS without an address; using unknown sender.");
71 messageValues.put(Sms.ADDRESS, address);
77 final long received = messageValues.getAsLong(Sms.DATE);
84 messageValues.put(Sms.THREAD_ID, threadId);
102 final boolean read = messageValues.getAsBoolean(Sms.Inbox.READ)
106 messageValues.put(Sms.Inbox.READ, read ? Integer.valueOf(1) : Integer.valueOf(0))
    [all...]
SyncMessageBatch.java 23 import android.provider.Telephony.Sms;
36 import com.android.messaging.sms.DatabaseMessages.LocalDatabaseMessage;
37 import com.android.messaging.sms.DatabaseMessages.MmsMessage;
38 import com.android.messaging.sms.DatabaseMessages.SmsMessage;
39 import com.android.messaging.sms.MmsUtils;
60 // Set of SMS messages to add
83 // Store all the SMS messages
84 for (final SmsMessage sms : mSmsToAdd) {
85 storeSms(db, sms);
102 + " for SMS/MMS " + message.getUri() + " with timestamp
    [all...]
SendMessageAction.java 26 import android.provider.Telephony.Sms;
37 import com.android.messaging.sms.MmsUtils;
45 * ({@link InsertNewMessageAction}) writes SMS messages to the telephony db). It also
49 * This class is public (not package-private) because the SMS/MMS (e.g. MmsUtils) classes need to
73 // For sms messages a few extra values are included in the bundle
144 // Queue actual sending for SMS
148 LogUtil.d(TAG, "SendMessageAction: Queued SMS message " + messageId
153 LogUtil.wtf(TAG, "Trying to resend a broadcast SMS - not allowed");
193 LogUtil.i(TAG, "SendMessageAction: Sending " + (isSms ? "SMS" : "MMS") + " message "
305 * @param isSms whether this is an SMS or MM
    [all...]
  /development/samples/devbytes/telephony/SmsSampleProject/app/src/main/java/com/example/android/smssample/
Utils.java 24 import android.provider.Telephony.Sms.Intents;
43 * Check if your app is the default system SMS app.
49 return context.getPackageName().equals(Telephony.Sms.getDefaultSmsPackage(context));
57 * SMS app.
  /cts/tests/tests/telephony/src/android/telephony/cts/
SmsReceiver.java 27 if (intent != null && intent.getAction().equals(Telephony.Sms.Intents.SMS_DELIVER_ACTION)) {
  /packages/providers/TelephonyProvider/src/com/android/providers/telephony/
SmsProvider.java 38 import android.provider.Telephony.Sms;
50 private static final Uri NOTIFICATION_URI = Uri.parse("content://sms");
51 private static final Uri ICC_URI = Uri.parse("content://sms/icc");
52 static final String TABLE_SMS = "sms";
68 * These are the columns that are available when reading SMS
83 "transport_type", // Always "sms".
100 * Return the proper view of "sms" table for the current access status.
103 * @return the table/view name of the "sms" data
112 // First check if a restricted view of the "sms" table should be used based on the
113 // caller's identity. Only system, phone or the default sms app can have full acces
    [all...]
ProviderUtil.java 39 * i.e. being non-system, non-phone, non-default SMS app
44 * @return true if the caller is not system, or phone or default sms app, false otherwise
61 (!values.containsKey(Telephony.Sms.CREATOR) &&
74 (values.containsKey(Telephony.Sms.CREATOR) ||
79 * Notify the default SMS app of an SMS/MMS provider change if the change is being made
80 * by a package other than the default SMS app itself.
88 if (TextUtils.equals(callingPackage, Telephony.Sms.getDefaultSmsPackage(context))) {
90 Log.d(TAG, "notifyIfNotDefaultSmsApp - called from default sms app");
94 // Direct the intent to only the default SMS app, and only if the SMS app has a receive
    [all...]
TelephonyBackupAgent.java 77 * Backup agent for backup and restore SMS's and text MMS's.
79 * This backup agent stores SMS's into "sms_backup" file as a JSON array. Example below.
80 * [{"self_phone":"+1234567891011","address":"+1234567891012","body":"Example sms",
108 // Copied from packages/apps/Messaging/src/com/android/messaging/sms/MmsUtils.java.
111 // Copied from packages/apps/Messaging/src/com/android/messaging/sms/MmsUtils.java.
127 // Copied from packages/apps/Messaging/src/com/android/messaging/sms/MmsUtils.java.
171 // Columns from SMS database for backup/restore.
174 Telephony.Sms._ID,
175 Telephony.Sms.SUBSCRIPTION_ID,
176 Telephony.Sms.ADDRESS
    [all...]
MmsSmsDatabaseHelper.java 37 import android.provider.Telephony.Sms;
54 * A {@link SQLiteOpenHelper} that handles DB management of SMS and MMS tables.
56 * From N, SMS and MMS tables are split into two groups with different levels of encryption.
76 " FROM sms" +
77 " WHERE " + Sms.READ + " = 0" +
78 " AND " + Sms.THREAD_ID + " = threads._id)" +
82 " WHERE threads._id = new." + Sms.THREAD_ID + "; ";
86 " (SELECT COUNT(sms._id) FROM sms LEFT JOIN threads " +
87 " ON threads._id = " + Sms.THREAD_ID
    [all...]
  /frameworks/base/core/tests/coretests/src/android/provider/
SmsProviderTest.java 23 import android.provider.Telephony.Sms;
65 urls[i] = contentResolver.insert(Sms.Inbox.CONTENT_URI, map);
69 Cursor c = contentResolver.query(Sms.Inbox.CONTENT_URI, null, null, null, "date");
  /cts/tests/tests/provider/src/android/provider/cts/
SmsBackupRestoreTest.java 47 private static final String[] smsAddressBody1 = new String[] {"+123" , "sms CTS text"};
48 private static final String[] smsAddressBody2 = new String[] {"+456" , "sms CTS text 2"};
54 private static final String SMS_SELECTION = Telephony.Sms.ADDRESS + " = ? and "
55 + Telephony.Sms.BODY + " = ?";
110 mContentResolver.delete(Telephony.Sms.CONTENT_URI, SMS_SELECTION, smsAddressBody1);
111 mContentResolver.delete(Telephony.Sms.CONTENT_URI, SMS_SELECTION, smsAddressBody2);
131 * Test adds 2 SMS messages, 1 text-only MMS messages and 1 non-text-only, runs backup,
145 Log.i(TAG, "Put 2 SMS into the provider");
146 mContentResolver.bulkInsert(Telephony.Sms.CONTENT_URI, smsContentValues);
162 mContentResolver.delete(Telephony.Sms.CONTENT_URI, SMS_SELECTION, smsAddressBody1))
    [all...]
  /packages/apps/Messaging/src/com/android/messaging/receiver/
AbortMmsWapPushReceiver.java 29 * This receiver is used to abort MMS WAP broadcasts pre-KLP when SMS is enabled.
34 if (Telephony.Sms.Intents.WAP_PUSH_RECEIVED_ACTION.equals(intent.getAction())
MmsWapPushDeliverReceiver.java 34 if (Telephony.Sms.Intents.WAP_PUSH_DELIVER_ACTION.equals(intent.getAction())
MmsWapPushReceiver.java 37 if (Telephony.Sms.Intents.WAP_PUSH_RECEIVED_ACTION.equals(intent.getAction())
SmsReceiver.java 29 import android.provider.Telephony.Sms;
45 import com.android.messaging.sms.MmsUtils;
56 * Class that receives incoming SMS messages through android.provider.Telephony.SMS_RECEIVED
59 * - Process phone verification SMS messages
60 * - Handle SMS messages when the user has enabled us to be the default SMS app (Pre-KLP)
69 * receiving incoming SMS messages. For KLP+ this receiver is not used when running as the
70 * primary user and the SmsDeliverReceiver is used for receiving incoming SMS messages.
84 // for both sms and mms notification. For the primary user on KLP (and above), we don't
89 // On KLP we need to always enable this handler to show in the list of sms app
    [all...]
  /packages/apps/Messaging/src/com/android/messaging/ui/
ClassZeroActivity.java 29 import android.provider.Telephony.Sms;
41 * Display a class-zero SMS message to the user. Wait for the user to dismiss
83 final String message = messageValues.getAsString(Sms.BODY);
106 mMessageValues.put(Sms.Inbox.READ, mRead ? Integer.valueOf(1) : Integer.valueOf(0));
135 final String message = messageValues.getAsString(Sms.BODY);;
  /packages/apps/Bluetooth/src/com/android/bluetooth/map/
BluetoothMapContentObserver.java 45 import android.provider.Telephony.Sms;
46 import android.provider.Telephony.Sms.Inbox;
158 // Text only MMS converted to SMS if sms parts less than or equal to defined count
184 Sms._ID,
185 Sms.THREAD_ID,
186 Sms.ADDRESS,
187 Sms.BODY,
188 Sms.DATE,
189 Sms.READ
    [all...]
  /packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/
TelephonyBackupAgentTest.java 58 * Tests for testing backup/restore of SMS and text MMS messages.
68 /* Table being used for sms cursor */
74 /* Cursors being used to access sms, mms tables */
76 /* Test data with sms and mms */
80 /* sms, mms json concatenated as json array */
115 mCursors.put(Telephony.Sms.CONTENT_URI, mSmsCursor);
123 mSmsRows[0] = createSmsRow(1, 1, "+1232132214124", "sms 1", "sms subject", 9087978987l,
126 "\"+1232132214124\",\"body\":\"sms 1\",\"subject\":\"sms subject\",\"date\":"
    [all...]
  /frameworks/opt/telephony/src/java/com/android/internal/telephony/
CellBroadcastHandler.java 87 log("Dispatching emergency SMS CB, SmsCbMessage is: " + message);
88 intent = new Intent(Telephony.Sms.Intents.SMS_EMERGENCY_CB_RECEIVED_ACTION);
95 log("Dispatching SMS CB, SmsCbMessage is: " + message);
96 intent = new Intent(Telephony.Sms.Intents.SMS_CB_RECEIVED_ACTION);
  /packages/apps/Messaging/src/com/android/messaging/sms/
MmsUtils.java 17 package com.android.messaging.sms;
37 import android.provider.Telephony.Sms;
69 import com.android.messaging.sms.SmsSender.SendResult;
102 * Utils for sending sms/mms messages.
165 Sms.TYPE,
166 Sms.MESSAGE_TYPE_INBOX,
167 Sms.MESSAGE_TYPE_OUTBOX,
168 Sms.MESSAGE_TYPE_QUEUED,
169 Sms.MESSAGE_TYPE_FAILED,
170 Sms.MESSAGE_TYPE_SENT)
1022 final SmsMessage sms = msgs[0]; local
    [all...]
DatabaseMessages.java 17 package com.android.messaging.sms;
31 import android.provider.Telephony.Sms;
57 * Class contains various SMS/MMS database entities from telephony provider
87 * SMS message
108 Sms._ID,
109 Sms.TYPE,
110 Sms.ADDRESS,
111 Sms.BODY,
112 Sms.DATE,
113 Sms.THREAD_ID
    [all...]
  /development/samples/devbytes/telephony/SmsSampleProject/app/src/main/java/com/example/android/smssample/receiver/
MessagingReceiver.java 21 import android.provider.Telephony.Sms.Intents;
55 // TODO: Handle SMS here
56 // As an example, we'll start a wakeful service to handle the SMS
  /packages/services/Mms/src/com/android/mms/service/
MmsService.java 488 insertUri = Telephony.Sms.Inbox.CONTENT_URI;
492 insertUri = Telephony.Sms.Sent.CONTENT_URI;
500 values.put(Telephony.Sms.ADDRESS, address);
501 values.put(Telephony.Sms.DATE, timestampMillis);
502 values.put(Telephony.Sms.SEEN, seen ? 1 : 0);
503 values.put(Telephony.Sms.READ, read ? 1 : 0);
504 values.put(Telephony.Sms.BODY, text);
592 if (!uriString.startsWith("content://sms/") && !uriString.startsWith("content://mms/")) {
615 values.put(Telephony.Sms.READ, val);
621 values.put(Telephony.Sms.SEEN, val)
    [all...]

Completed in 437 milliseconds

1 2 3 4