/packages/providers/TelephonyProvider/src/com/android/providers/telephony/ |
MmsSmsDatabaseHelper.java | 31 import android.provider.Telephony.Mms; 32 import android.provider.Telephony.Mms.Addr; 33 import android.provider.Telephony.Mms.Part; 34 import android.provider.Telephony.Mms.Rate; 43 import com.google.android.mms.pdu.EncodedStringValue; 44 import com.google.android.mms.pdu.PduHeaders; 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. 92 " ON threads._id = " + Mms.THREAD_ID + 93 " WHERE " + Mms.THREAD_ID + " = new.thread_id" [all...] |
MmsProvider.java | 39 import android.provider.Telephony.Mms; 40 import android.provider.Telephony.Mms.Addr; 41 import android.provider.Telephony.Mms.Part; 42 import android.provider.Telephony.Mms.Rate; 48 import com.google.android.mms.pdu.PduHeaders; 49 import com.google.android.mms.util.DownloadDrmHelper; 56 * The class to provide base facility to access MMS related content, 83 * @return the table/view name of the mms data 94 // of mms data. For other apps, we present a restricted view which only contains sent 110 constructQueryForBox(qb, Mms.MESSAGE_BOX_ALL, pduTable) [all...] |
TelephonyBackupAgent.java | 19 import com.google.android.mms.ContentType; 20 import com.google.android.mms.pdu.CharacterSets; 77 * Backup agent for backup and restore SMS's and text MMS's. 85 * Text MMS's are stored into "mms_backup" file as a JSON array. Example below. 88 * {"type":151,"address":"example@example.com","charset":106}],"mms_body":"Mms to email", 90 * {"self_phone":"+1234567891011","sub":"MMS subject","date":"1451322955","date_sent":"0", 93 * "mms_body":"Mms\nBody\r\n", 105 * NOTE: presently, only MMS's with text are backed up. However, MMS's with attachments are 106 * restored. In other words, this code can restore MMS attachments if the attachment dat [all...] |
MmsSmsProvider.java | 36 import android.provider.Telephony.Mms; 46 import com.google.android.mms.pdu.PduHeaders; 56 * This class provides the ability to query the MMS and SMS databases 61 * requested in the projection for a query. Its value is either "mms" 63 * is an MMS message or an SMS message, respectively. 106 * messages(both MMS and SMS) to be sent/downloaded. 111 * the name of the table that is used to store the canonical addresses for both SMS and MMS. 121 // MMS and SMS base tables. 123 // These are the columns that appear in both the MMS ("pdu") and 126 { BaseColumns._ID, Mms.DATE, Mms.DATE_SENT, Mms.READ, Mms.THREAD_ID, Mms.LOCKED [all...] |
ProviderUtil.java | 62 !values.containsKey(Telephony.Mms.CREATOR)); 75 values.containsKey(Telephony.Mms.CREATOR)); 79 * Notify the default SMS app of an SMS/MMS provider change if the change is being made
|
/cts/tests/tests/provider/src/android/provider/cts/ |
SmsBackupRestoreTest.java | 19 import com.google.android.mms.ContentType; 20 import com.google.android.mms.pdu.CharacterSets; 50 private static final String mmsSubject = "MMS Subject CTS"; 51 private static final String mmsBody = "MMS body CTS"; 55 Telephony.Mms.TEXT_ONLY }; 59 private static final String MMS_SELECTION = Telephony.Mms.SUBJECT + " = ?"; 61 private static final String[] MMS_PART_TEXT_PROJECTION = new String[]{Telephony.Mms.Part.TEXT}; 62 private static final String MMS_PART_SELECTION = Telephony.Mms.Part.MSG_ID + " = ?"; 63 private static final String MMS_PART_TEXT_SELECTION = Telephony.Mms.Part.CONTENT_TYPE + " = ?"; 64 private static final String[] MMS_ADDR_PROJECTION = new String[] { Telephony.Mms.Addr.ADDRESS } [all...] |
/packages/apps/Messaging/src/com/android/messaging/mmslib/pdu/ |
PduPersister.java | 29 import android.provider.Telephony.Mms; 30 import android.provider.Telephony.Mms.Addr; 31 import android.provider.Telephony.Mms.Part; 78 "content://mms/" + Long.MAX_VALUE + "/part"; 109 Mms._ID, 110 Mms.MESSAGE_BOX, 111 Mms.THREAD_ID, 112 Mms.RETRIEVE_TEXT, 113 Mms.SUBJECT, 114 Mms.CONTENT_LOCATION [all...] |
/frameworks/opt/telephony/src/java/com/google/android/mms/pdu/ |
PduPersister.java | 18 package com.google.android.mms.pdu; 31 import android.provider.Telephony.Mms; 32 import android.provider.Telephony.Mms.Addr; 33 import android.provider.Telephony.Mms.Part; 43 import com.google.android.mms.ContentType; 44 import com.google.android.mms.InvalidHeaderValueException; 45 import com.google.android.mms.MmsException; 46 import com.google.android.mms.util.DownloadDrmHelper; 47 import com.google.android.mms.util.DrmConvertSession; 48 import com.google.android.mms.util.PduCache [all...] |
/packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/ |
TelephonyBackupAgentTest.java | 59 * Tests for testing backup/restore of SMS and text MMS messages. 73 /* Table begin used for mms cursor */ 75 /* Table contains parts, addresses of mms */ 77 /* Cursors being used to access sms, mms tables */ 79 /* Test data with sms and mms */ 83 /* sms, mms json concatenated as json array */ 120 mCursors.put(Telephony.Mms.CONTENT_URI, mMmsCursor); 167 11 /*msgBox*/, "location 1" /*contentLocation*/, "MMs body 1" /*body*/, 183 ",\"charset\":103}],\"mms_body\":\"MMs body 1\",\"mms_charset\":111,\"" + 190 222 /*msgBox*/, "location 2" /*contentLocation*/, "MMs body 2" /*body*/ [all...] |
/packages/services/Mms/src/com/android/mms/service/ |
DownloadRequest.java | 17 package com.android.mms.service; 41 import com.android.mms.service.exception.MmsHttpException; 42 import com.google.android.mms.MmsException; 43 import com.google.android.mms.pdu.GenericPdu; 44 import com.google.android.mms.pdu.PduHeaders; 45 import com.google.android.mms.pdu.PduParser; 46 import com.google.android.mms.pdu.PduPersister; 47 import com.google.android.mms.pdu.RetrieveConf; 48 import com.google.android.mms.util.SqliteWrapper; 51 * Request to download an MMS [all...] |
SendRequest.java | 17 package com.android.mms.service; 41 import com.android.mms.service.exception.MmsHttpException; 42 import com.google.android.mms.MmsException; 43 import com.google.android.mms.pdu.EncodedStringValue; 44 import com.google.android.mms.pdu.GenericPdu; 45 import com.google.android.mms.pdu.PduComposer; 46 import com.google.android.mms.pdu.PduHeaders; 47 import com.google.android.mms.pdu.PduParser; 48 import com.google.android.mms.pdu.PduPersister; 49 import com.google.android.mms.pdu.SendConf [all...] |
MmsService.java | 17 package com.android.mms.service; 45 import com.google.android.mms.MmsException; 46 import com.google.android.mms.pdu.DeliveryInd; 47 import com.google.android.mms.pdu.GenericPdu; 48 import com.google.android.mms.pdu.NotificationInd; 49 import com.google.android.mms.pdu.PduParser; 50 import com.google.android.mms.pdu.PduPersister; 51 import com.google.android.mms.pdu.ReadOrigInd; 52 import com.google.android.mms.pdu.RetrieveConf; 53 import com.google.android.mms.pdu.SendReq [all...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/map/ |
BluetoothMapContentObserver.java | 43 import android.provider.Telephony.Mms; 63 import com.google.android.mms.pdu.PduHeaders; 155 // X-Mms-Message-Type field types. These are from PduHeaders.java 158 // Text only MMS converted to SMS if sms parts less than or equal to defined count 214 Mms._ID, 215 Mms.THREAD_ID, 216 Mms.MESSAGE_TYPE, 217 Mms.MESSAGE_BOX, 218 Mms.READ 222 Mms._ID [all...] |
BluetoothMapContent.java | 28 import android.provider.Telephony.Mms; 45 import com.google.android.mms.pdu.CharacterSets; 46 import com.google.android.mms.pdu.PduHeaders; 129 /* Type of MMS address. From Telephony.java it must be one of PduHeaders.BCC, */ 136 /* OMA-TS-MMS-ENC defined many types in X-Mms-Message-Type. 140 .format("( %s = %d OR %s = %d OR %s = %d )", Mms.MESSAGE_TYPE, 141 PduHeaders.MESSAGE_TYPE_SEND_REQ, Mms.MESSAGE_TYPE, 142 PduHeaders.MESSAGE_TYPE_RETRIEVE_CONF, Mms.MESSAGE_TYPE, 173 Mms.THREAD_ID [all...] |
MmsFileProvider.java | 24 import android.provider.Telephony.Mms; 27 import com.google.android.mms.MmsException; 28 import com.google.android.mms.pdu.GenericPdu; 29 import com.google.android.mms.pdu.PduComposer; 30 import com.google.android.mms.pdu.PduPersister; 37 * Provider to let the MMS subsystem read data from it own database from another process. 96 Uri messageUri = Mms.CONTENT_URI.buildUpon().appendEncodedPath(idStr).build();
|
/packages/apps/Messaging/src/com/android/messaging/sms/ |
DatabaseMessages.java | 30 import android.provider.Telephony.Mms; 57 * Class contains various SMS/MMS database entities from telephony provider 260 * MMS message 289 Mms._ID, 290 Mms.MESSAGE_BOX, 291 Mms.SUBJECT, 292 Mms.SUBJECT_CHARSET, 293 Mms.MESSAGE_SIZE, 294 Mms.DATE, 295 Mms.DATE_SENT [all...] |
MmsUtils.java | 36 import android.provider.Telephony.Mms; 102 * Utils for sending sms/mms messages. 115 * MMS request succeeded 119 * MMS request failed with a transient error and can be retried automatically 123 * MMS request failed with an error and can be retried manually 127 * MMS request failed with a specific error and should not be retried 150 // amount of space to leave in a MMS for text and overhead. 175 Mms.MESSAGE_BOX, 176 Mms.MESSAGE_BOX_INBOX, 177 Mms.MESSAGE_BOX_OUTBOX 1635 DatabaseMessages.MmsMessage mms = null; local [all...] |
/frameworks/opt/telephony/src/java/com/google/android/mms/util/ |
PduCache.java | 18 package com.google.android.mms.util; 23 import android.provider.Telephony.Mms; 54 URI_MATCHER.addURI("mms", null, MMS_ALL); 55 URI_MATCHER.addURI("mms", "#", MMS_ALL_ID); 56 URI_MATCHER.addURI("mms", "inbox", MMS_INBOX); 57 URI_MATCHER.addURI("mms", "inbox/#", MMS_INBOX_ID); 58 URI_MATCHER.addURI("mms", "sent", MMS_SENT); 59 URI_MATCHER.addURI("mms", "sent/#", MMS_SENT_ID); 60 URI_MATCHER.addURI("mms", "drafts", MMS_DRAFTS); 61 URI_MATCHER.addURI("mms", "drafts/#", MMS_DRAFTS_ID) [all...] |
/packages/apps/Messaging/src/com/android/messaging/mmslib/util/ |
PduCache.java | 23 import android.provider.Telephony.Mms; 54 URI_MATCHER.addURI("mms", null, MMS_ALL); 55 URI_MATCHER.addURI("mms", "#", MMS_ALL_ID); 56 URI_MATCHER.addURI("mms", "inbox", MMS_INBOX); 57 URI_MATCHER.addURI("mms", "inbox/#", MMS_INBOX_ID); 58 URI_MATCHER.addURI("mms", "sent", MMS_SENT); 59 URI_MATCHER.addURI("mms", "sent/#", MMS_SENT_ID); 60 URI_MATCHER.addURI("mms", "drafts", MMS_DRAFTS); 61 URI_MATCHER.addURI("mms", "drafts/#", MMS_DRAFTS_ID); 62 URI_MATCHER.addURI("mms", "outbox", MMS_OUTBOX) [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
WapPushOverSms.java | 19 import static com.google.android.mms.pdu.PduHeaders.MESSAGE_TYPE_DELIVERY_IND; 20 import static com.google.android.mms.pdu.PduHeaders.MESSAGE_TYPE_NOTIFICATION_IND; 21 import static com.google.android.mms.pdu.PduHeaders.MESSAGE_TYPE_READ_ORIG_IND; 55 import com.google.android.mms.MmsException; 56 import com.google.android.mms.pdu.DeliveryInd; 57 import com.google.android.mms.pdu.GenericPdu; 58 import com.google.android.mms.pdu.NotificationInd; 59 import com.google.android.mms.pdu.PduHeaders; 60 import com.google.android.mms.pdu.PduParser; 61 import com.google.android.mms.pdu.PduPersister [all...] |
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/ |
SendMessageAction.java | 25 import android.provider.Telephony.Mms; 44 * Action used to send an outgoing message. It writes MMS messages to the telephony db 49 * This class is public (not package-private) because the SMS/MMS (e.g. MmsUtils) classes need to 156 // Queue actual sending for MMS 160 LogUtil.d(TAG, "SendMessageAction: Queued MMS message " + messageId 193 LogUtil.i(TAG, "SendMessageAction: Sending " + (isSms ? "SMS" : "MMS") + " message " 219 // For MMS messages first need to write to telephony (resizing images if needed) 234 // Actually send the MMS 242 LogUtil.d(TAG, "SendMessageAction: Sending MMS message " + messageId 254 // When we fast-fail before calling the MMS lib APIs (e.g. airplane mode [all...] |
SyncCursorPair.java | 22 import android.provider.Telephony.Mms; 77 * @return If sms is in sync with telephony sms/mms providers 124 Mms.THREAD_ID, Long.toString(threadId)); 326 // A subquery that selects SMS/MMS messages in Bugle which are also in telephony 390 LogUtil.e(TAG, "SyncCursorPair: failed to query local sms/mms", e); 426 * Since SMS and MMS are stored in different tables in telephony provider, 460 LogUtil.v(TAG, "SyncCursorPair: Querying for remote MMS; selection = " 466 Mms.CONTENT_URI, 472 LogUtil.w(TAG, "SyncCursorPair: Remote MMS query returned null cursor; " 474 throw new RuntimeException("Null cursor from remote MMS query") 623 final MmsMessage mms = (MmsMessage) message; local 624 mmsToAdd.append(mms.getId(), mms); local [all...] |
SyncMessagesAction.java | 26 import android.provider.Telephony.Mms; 231 // Mms messages to store 233 // List of local SMS/MMS to remove 253 final MmsMessage mms = mmsToAdd.valueAt(i); local 254 mmsToAddList.add(mms); 271 * @param mmsToAdd newly found mms messages to add 317 // Batch loading the parts of the MMS messages in this batch 319 // Lookup senders for incoming mms messages 342 + " remote SMS to add, " + mmsToAdd.size() + " MMS to add, " 418 + smsToAdd.size() + " SMS, added " + mmsToAdd.size() + " MMS, deleted 563 final DatabaseMessages.MmsMessage mms = mmses.get(part.mMessageId); local 582 final MmsMessage mms = mmses.valueAt(i); local [all...] |
/packages/services/Mms/ |
Android.mk | 18 # Mms service
|
/frameworks/base/telephony/java/com/android/internal/telephony/ |
SmsMessageBase.java | 350 mIsEmail = Telephony.Mms.isEmailAddress(mEmailFrom);
|