Home | History | Annotate | Download | only in data

Lines Matching refs:Mms

17 package com.android.mms.data;
34 import android.provider.Telephony.Mms;
45 import com.android.mms.ExceedMessageSizeException;
46 import com.android.mms.LogTag;
47 import com.android.mms.MmsApp;
48 import com.android.mms.MmsConfig;
49 import com.android.mms.ResolutionException;
50 import com.android.mms.UnsupportContentTypeException;
51 import com.android.mms.model.ImageModel;
52 import com.android.mms.model.SlideModel;
53 import com.android.mms.model.SlideshowModel;
54 import com.android.mms.model.TextModel;
55 import com.android.mms.transaction.MessageSender;
56 import com.android.mms.transaction.MmsMessageSender;
57 import com.android.mms.transaction.SmsMessageSender;
58 import com.android.mms.ui.ComposeMessageActivity;
59 import com.android.mms.ui.MessageUtils;
60 import com.android.mms.ui.SlideshowEditor;
61 import com.android.mms.util.DraftCache;
62 import com.android.mms.util.Recycler;
63 import com.android.mms.util.ThumbnailManager;
64 import com.android.mms.widget.MmsWidgetProvider;
65 import com.google.android.mms.ContentType;
66 import com.google.android.mms.MmsException;
67 import com.google.android.mms.pdu.EncodedStringValue;
68 import com.google.android.mms.pdu.PduBody;
69 import com.google.android.mms.pdu.PduHeaders;
70 import com.google.android.mms.pdu.PduPersister;
71 import com.google.android.mms.pdu.SendReq;
84 public static final String EXTRA_SMS_MESSAGE = "android.mms.extra.MESSAGE";
85 public static final String EXTRA_SMS_RECIPIENTS = "android.mms.extra.RECIPIENTS";
86 public static final String EXTRA_SMS_THREAD_ID = "android.mms.extra.THREAD_ID";
92 // States that can require us to save or send a message as MMS.
100 // any bit set will require the message to be sent via MMS.
128 // Data URI of an MMS message if we have had to save it.
130 // MMS subject line for this message
140 // Cached value of mms enabled flag
149 Mms._ID, // 0
150 Mms.MESSAGE_SIZE // 1
162 * to MMS, and vice versa.
164 * @param mms If true, it changed to MMS. If false, to SMS.
166 void onProtocolChanged(boolean mms);
187 * any more Mms's to be sent.
216 * contains an MMS message.
220 if (!uri.toString().startsWith(Mms.Draft.CONTENT_URI.toString())) {
226 uri = persister.move(uri, Mms.Draft.CONTENT_URI);
245 // If we get an empty slideshow, tear down all MMS
304 // second - non-null String representing the text of an MMS subject
312 // No SMS draft so look for an MMS draft.
317 // If there was an MMS message, readDraftMmsMessage
404 // HACK: the keys to the thumbnail cache are the part uris, such as mms/part/3
408 // fixed in the next release in the mms provider.
431 // the working message from an MMS back to a simple SMS. The various attachment types
485 // an sms longer than one segment, we have to turn the message into an mms.
683 * Sets the MMS subject of the message. Passing null indicates that there
685 * to the message, possibly triggering a conversion to MMS. This extra
687 * MMS when the user adds a subject. An empty subject will be removed
696 * Returns the MMS subject of the message.
703 * Returns true if this message has an MMS subject. A subject has to be more than just
796 // into a Mms message. At this point we either have the goods to make the message a Mms
803 * Force the message to be saved as MMS and return the Uri of the message.
818 // is sticky until the last other MMS bit is removed, at which
891 // might have been a previous mms draft for this message. This can happen when a
892 // user turns an mms back into a sms, such as creating an mms draft with a picture,
1032 // Convert to MMS if there are any email addresses in the recipient list.
1053 * Returns true if this message would require MMS to send.
1060 * Set whether or not we want to send this message via MMS in order to
1090 * Sets the current state of our various "MMS required" bits.
1098 // If Mms isn't enabled, the rest of the Messaging UI should not be using any
1099 // feature that would cause us to to turn on any Mms flag and show the
1116 // Notify the listener if we are moving from SMS to MMS
1138 * @throws ContentRestrictionException if sending an MMS and uaProfUrl is not defined
1153 // We need the recipient list for both SMS and MMS.
1158 // uaProfUrl setting in mms_config.xml must be present to send an MMS.
1161 String err = "WorkingMessage.send MMS sending failure. mms_config.xml is " +
1162 "missing uaProfUrl setting. uaProfUrl is required for MMS service, " +
1196 }, "WorkingMessage.send MMS").start();
1231 if (Mms.isEmailAddress(dests[i]) || MessageUtils.isAlias(dests[i])) {
1321 LogTag.debug("sendMmsWorker: update draft MMS message " + mmsUri +
1326 String[] dests = conv.getRecipients().getNumbers(true /* scrub for MMS address */);
1353 values.put(Mms.MESSAGE_BOX, Mms.MESSAGE_BOX_OUTBOX);
1354 values.put(Mms.THREAD_ID, threadId);
1355 values.put(Mms.MESSAGE_TYPE, PduHeaders.MESSAGE_TYPE_SEND_REQ);
1356 mmsUri = SqliteWrapper.insert(mActivity, mContentResolver, Mms.Outbox.CONTENT_URI,
1367 Mms.Outbox.CONTENT_URI, MMS_OUTBOX_PROJECTION, null, null, null);
1390 // Create a new MMS message if one hasn't been made yet.
1393 // Otherwise, sync the MMS message in progress to disk.
1423 // delete the copy which was previously saved in MMS drafts.
1438 // Move the message into MMS Outbox. A trigger will create an entry in
1440 p.move(mmsUri, Mms.Outbox.CONTENT_URI);
1459 Mms._ID, // 0
1460 Mms.SUBJECT, // 1
1461 Mms.SUBJECT_CHARSET // 2
1475 final String selection = Mms.THREAD_ID + " = " + conv.getThreadId();
1477 Mms.Draft.CONTENT_URI, MMS_DRAFT_PROJECTION,
1483 uri = ContentUris.withAppendedId(Mms.Draft.CONTENT_URI,
1507 String[] dests = conv.getRecipients().getNumbers(true /* scrub for MMS address */);
1532 Uri res = persister.persist(sendReq, preUri == null ? Mms.Draft.CONTENT_URI : preUri);
1751 final String where = Mms.THREAD_ID + (threadId > 0 ? " = " + threadId : " IS NULL");
1752 asyncDelete(Mms.Draft.CONTENT_URI, where, null);