/packages/apps/Contacts/src/com/android/contacts/interactions/ |
SmsInteraction.java | 26 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 | 32 * Loads the most recent sms between the passed in phone numbers. 36 * to retrieve the actual sms. 80 // Query the SMS database for the threads 107 String selection = Telephony.Sms.THREAD_ID + " IN " 111 Telephony.Sms.CONTENT_URI, 115 Telephony.Sms.DEFAULT_SORT_ORDER
|
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/ |
SmsProvider.java | 36 import android.provider.Telephony.Sms; 48 private static final Uri NOTIFICATION_URI = Uri.parse("content://sms"); 49 private static final Uri ICC_URI = Uri.parse("content://sms/icc"); 50 static final String TABLE_SMS = "sms"; 62 * These are the columns that are available when reading SMS 77 "transport_type", // Always "sms". 100 constructQueryForBox(qb, Sms.MESSAGE_TYPE_ALL); 108 constructQueryForBox(qb, Sms.MESSAGE_TYPE_FAILED); 112 constructQueryForBox(qb, Sms.MESSAGE_TYPE_QUEUED); 116 constructQueryForBox(qb, Sms.MESSAGE_TYPE_INBOX) [all...] |
ProviderUtil.java | 65 (!values.containsKey(Telephony.Sms.CREATOR) && 78 (values.containsKey(Telephony.Sms.CREATOR) ||
|
MmsSmsDatabaseHelper.java | 39 import android.provider.Telephony.Sms; 57 " FROM sms" + 58 " WHERE " + Sms.READ + " = 0" + 59 " AND " + Sms.THREAD_ID + " = threads._id)" + 63 " WHERE threads._id = new." + Sms.THREAD_ID + "; "; 67 " (SELECT COUNT(sms._id) FROM sms LEFT JOIN threads " + 68 " ON threads._id = " + Sms.THREAD_ID + 69 " WHERE " + Sms.THREAD_ID + " = new.thread_id" + 70 " AND sms." + Sms.TYPE + " != 3) + " [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, // 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...] |
MessageStatusService.java | 28 import android.provider.Telephony.Sms; 29 import android.provider.Telephony.Sms.Inbox; 41 private static final String[] ID_PROJECTION = new String[] { Sms._ID }; 43 private static final Uri STATUS_URI = Uri.parse("content://sms/status"); 56 Log.d(LOG_TAG, "MessageStatusService: is not the default sms app"); 68 if (message != null && message.getStatus() < Sms.STATUS_PENDING) { 99 contentValues.put(Sms.STATUS, status);
|
SmsMessageSender.java | 28 import android.provider.Telephony.Sms; 29 import android.provider.Telephony.Sms.Inbox; 50 Sms.Conversations.REPLY_PATH_PRESENT, 51 Sms.Conversations.SERVICE_CENTER, 95 Sms.addMessageToUri(mContext.getContentResolver(), 96 Uri.parse("content://sms/queued"), mDests[i],
|
SmsRejectedReceiver.java | 33 * Receive Intent.SMS_REJECTED. Handle notification that received SMS messages are being 44 Telephony.Sms.Intents.SMS_REJECTED_ACTION.equals(intent.getAction())) { 47 boolean outOfMemory = reason == Telephony.Sms.Intents.RESULT_SMS_OUT_OF_MEMORY;
|
SmsSingleRecipientSender.java | 10 import android.provider.Telephony.Sms; 69 boolean moved = Sms.moveMessageToFolder(mContext, mUri, Sms.MESSAGE_TYPE_OUTBOX, 0);
|
SimFullReceiver.java | 41 Telephony.Sms.Intents.SIM_FULL_ACTION.equals(intent.getAction())) {
|
/development/samples/devbytes/telephony/SmsSampleProject/SmsSample/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.
|
/packages/apps/Mms/src/com/android/mms/ui/ |
MessageListAdapter.java | 29 import android.provider.Telephony.Sms; 30 import android.provider.Telephony.Sms.Conversations; 57 // For SMS 58 Sms.ADDRESS, 59 Sms.BODY, 60 Sms.DATE, 61 Sms.DATE_SENT, 62 Sms.READ, 63 Sms.TYPE, 64 Sms.STATUS [all...] |
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...] |
MessageItem.java | 28 import android.provider.Telephony.Sms; 56 * Mostly immutable model for an SMS/MMS message. 80 String mBody; // Body of SMS, first text of MMS. 120 if ("sms".equals(type)) { 121 mReadReport = false; // No read reports in sms 124 if (status == Sms.STATUS_NONE) { 127 } else if (status >= Sms.STATUS_FAILED) { 130 } else if (status >= Sms.STATUS_PENDING) { 138 mMessageUri = ContentUris.withAppendedId(Sms.CONTENT_URI, mMsgId); 142 if (Sms.isOutgoingFolder(mBoxId)) [all...] |
DeliveryReportActivity.java | 34 import android.provider.Telephony.Sms; 56 * message_type String The type of message (Sms or Mms). This is used in 76 Sms.ADDRESS, //0 77 Sms.STATUS, //1 78 Sms.DATE_SENT, //2 79 Sms.TYPE //3 166 if (mMessageType.equals("sms")) { 175 Cursor c = SqliteWrapper.query(this, getContentResolver(), Sms.CONTENT_URI, 193 if (messageType == Sms.MESSAGE_TYPE_SENT && deliveryDate > 0) { 350 if (status == Sms.STATUS_NONE) [all...] |
/frameworks/base/core/tests/coretests/src/android/provider/ |
SmsProviderTest.java | 23 import android.provider.Telephony.Sms; 63 urls[i] = contentResolver.insert(Sms.Inbox.CONTENT_URI, map); 67 Cursor c = contentResolver.query(Sms.Inbox.CONTENT_URI, null, null, null, "date");
|
/packages/apps/Mms/src/com/android/mms/util/ |
Recycler.java | 30 import android.provider.Telephony.Sms; 31 import android.provider.Telephony.Sms.Conversations; 135 Telephony.Sms.Conversations.THREAD_ID, 136 Telephony.Sms.Conversations.MESSAGE_COUNT 145 Sms.ADDRESS, 146 Sms.BODY, 147 Sms.DATE, 148 Sms.READ, 149 Sms.TYPE, 150 Sms.STATUS [all...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/map/ |
BluetoothMapContentObserver.java | 62 import android.provider.Telephony.Sms; 63 import android.provider.Telephony.Sms.Inbox; 115 // Text only MMS converted to SMS if sms parts less than or equal to defined count 128 Sms._ID, 129 Sms.THREAD_ID, 130 Sms.ADDRESS, 131 Sms.BODY, 132 Sms.DATE, 133 Sms.READ [all...] |
BluetoothMapContent.java | 33 import android.provider.Telephony.Sms; 101 Sms.THREAD_ID, 102 Sms.ADDRESS, 103 Sms.BODY, 104 Sms.DATE, 105 Sms.READ, 106 Sms.TYPE, 107 Sms.STATUS, 108 Sms.LOCKED, 109 Sms.ERROR_COD [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
CellBroadcastHandler.java | 83 log("Dispatching emergency SMS CB, SmsCbMessage is: " + message); 84 intent = new Intent(Telephony.Sms.Intents.SMS_EMERGENCY_CB_RECEIVED_ACTION); 88 log("Dispatching SMS CB, SmsCbMessage is: " + message); 89 intent = new Intent(Telephony.Sms.Intents.SMS_CB_RECEIVED_ACTION);
|
/packages/apps/CellBroadcastReceiver/tests/src/com/android/cellbroadcastreceiver/tests/ |
SendCdmaCmasMessages.java | 33 import com.android.internal.telephony.cdma.sms.BearerData; 34 import com.android.internal.telephony.cdma.sms.CdmaSmsAddress; 35 import com.android.internal.telephony.cdma.sms.SmsEnvelope; 36 import com.android.internal.telephony.cdma.sms.UserData; 74 Intent intent = new Intent(Telephony.Sms.Intents.SMS_EMERGENCY_CB_RECEIVED_ACTION); 88 Intent intent = new Intent(Telephony.Sms.Intents.SMS_EMERGENCY_CB_RECEIVED_ACTION); 102 Intent intent = new Intent(Telephony.Sms.Intents.SMS_EMERGENCY_CB_RECEIVED_ACTION); 116 Intent intent = new Intent(Telephony.Sms.Intents.SMS_EMERGENCY_CB_RECEIVED_ACTION); 130 Intent intent = new Intent(Telephony.Sms.Intents.SMS_EMERGENCY_CB_RECEIVED_ACTION);
|
/packages/apps/Mms/tests/src/com/android/mms/ |
RecyclerTest.java | 25 import android.provider.Telephony.Sms; 27 import android.provider.Telephony.Sms.Inbox; 37 import android.provider.Telephony.Sms.Conversations; 144 // values.put(Sms.ERROR_CODE, 0); 152 // if (sms.getPseudoSubject().length() > 0) { 153 // values.put(Inbox.SUBJECT, sms.getPseudoSubject()); 168 values.put(Sms.THREAD_ID, Threads.getOrCreateThreadId( 177 threadId = values.getAsLong(Sms.THREAD_ID); 188 // Put a random message to one of the random recipients in the SMS db. 197 // sms db [all...] |
/packages/apps/Mms/src/com/android/mms/data/ |
Conversation.java | 22 import android.provider.Telephony.Sms; 23 import android.provider.Telephony.Sms.Conversations; 202 * forms: {@value content://mms-sms/conversations/3} or 203 * {@value sms:+12124797990}. 704 * that aren't referenced by any message in the pdu or sms tables. [all...] |
/development/samples/devbytes/telephony/SmsSampleProject/SmsSample/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
|