/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; 52 private static final Uri NOTIFICATION_URI = Uri.parse("content://sms"); 53 private static final Uri ICC_URI = Uri.parse("content://sms/icc"); 54 static final String TABLE_SMS = "sms"; 70 * These are the columns that are available when reading SMS 85 "transport_type", // Always "sms". 104 * Return the proper view of "sms" table for the current access status. 107 * @return the table/view name of the "sms" data 116 // First check if a restricted view of the "sms" table should be used based on the 117 // 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...] |
MmsSmsDatabaseHelper.java | 37 import android.provider.Telephony.Sms; 55 * A {@link SQLiteOpenHelper} that handles DB management of SMS and MMS tables. 57 * From N, SMS and MMS tables are split into two groups with different levels of encryption. 77 " FROM sms" + 78 " WHERE " + Sms.READ + " = 0" + 79 " AND " + Sms.THREAD_ID + " = threads._id)" + 83 " WHERE threads._id = new." + Sms.THREAD_ID + "; "; 87 " (SELECT COUNT(sms._id) FROM sms LEFT JOIN threads " + 88 " ON threads._id = " + Sms.THREAD_ID [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", 117 // Copied from packages/apps/Messaging/src/com/android/messaging/sms/MmsUtils.java. 120 // Copied from packages/apps/Messaging/src/com/android/messaging/sms/MmsUtils.java. 136 // Copied from packages/apps/Messaging/src/com/android/messaging/sms/MmsUtils.java. 190 // Columns from SMS database for backup/restore. 193 Telephony.Sms._ID, 194 Telephony.Sms.SUBSCRIPTION_ID, 195 Telephony.Sms.ADDRESS [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");
|
/packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/ |
SmsProviderTest.java | 74 Uri.withAppendedPath(Telephony.Sms.CONTENT_URI, "raw"); 76 Uri.withAppendedPath(Telephony.Sms.CONTENT_URI, "raw/permanentDelete"); 95 // Add authority="sms" to given smsProvider 97 providerInfo.authority = "sms"; 104 // Add given SmsProvider to mResolver with authority="sms" so that 106 mResolver.addProvider("sms", smsProvider); 165 values.put(Telephony.Sms.SUBSCRIPTION_ID, 1); 166 values.put(Telephony.Sms.ADDRESS, "12345"); 167 values.put(Telephony.Sms.BODY, "test"); 168 values.put(Telephony.Sms.DATE, System.currentTimeMillis()); // millisecond [all...] |
TelephonyBackupAgentTest.java | 59 * Tests for testing backup/restore of SMS and text MMS messages. 71 /* Table being used for sms cursor */ 77 /* Cursors being used to access sms, mms tables */ 79 /* Test data with sms and mms */ 83 /* sms, mms json concatenated as json array */ 118 mCursors.put(Telephony.Sms.CONTENT_URI, mSmsCursor); 126 mSmsRows[0] = createSmsRow(1, 1, "+1232132214124", "sms 1", "sms subject", 9087978987l, 129 "\"+1232132214124\",\"body\":\"sms 1\",\"subject\":\"sms subject\",\"date\":" [all...] |
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
AppSmsManagerTest.java | 21 import android.provider.Telephony.Sms.Intents; 33 * The sms message information represent by the {@link #PDU}.
|
/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; 159 // Text only MMS converted to SMS if sms parts less than or equal to defined count 185 Sms._ID, 186 Sms.THREAD_ID, 187 Sms.ADDRESS, 188 Sms.BODY, 189 Sms.DATE, 190 Sms.READ [all...] |
/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"}; 56 private static final String SMS_SELECTION = Telephony.Sms.ADDRESS + " = ? and " 57 + Telephony.Sms.BODY + " = ?"; 112 mContentResolver.delete(Telephony.Sms.CONTENT_URI, SMS_SELECTION, smsAddressBody1); 113 mContentResolver.delete(Telephony.Sms.CONTENT_URI, SMS_SELECTION, smsAddressBody2); 133 * Test adds 2 SMS messages, 1 text-only MMS messages and 1 non-text-only, runs backup, 147 Log.i(TAG, "Put 2 SMS into the provider"); 148 mContentResolver.bulkInsert(Telephony.Sms.CONTENT_URI, smsContentValues); 164 mContentResolver.delete(Telephony.Sms.CONTENT_URI, SMS_SELECTION, smsAddressBody1)) [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
CellBroadcastHandler.java | 95 log("Dispatching emergency SMS CB, SmsCbMessage is: " + message); 96 intent = new Intent(Telephony.Sms.Intents.SMS_EMERGENCY_CB_RECEIVED_ACTION); 103 log("Dispatching SMS CB, SmsCbMessage is: " + message); 104 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...] |
/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
|