Lines Matching defs: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;
84 for (final SmsMessage sms : mSmsToAdd) {
85 storeSms(db, sms);
127 * @param sms
129 private void storeSms(final DatabaseWrapper db, final SmsMessage sms) {
130 if (sms.mBody == null) {
131 LogUtil.w(TAG, "SyncMessageBatch: SMS " + sms.mUri + " has no body; adding empty one");
133 sms.mBody = "";
136 if (TextUtils.isEmpty(sms.mAddress)) {
139 sms.mAddress = ParticipantData.getUnknownSenderDestination();
143 final boolean isOutgoing = sms.mType != Sms.MESSAGE_TYPE_INBOX;
145 final String otherPhoneNumber = sms.mAddress;
150 final String conversationId = mCache.getOrCreateConversation(db, sms.mThreadId, sms.mSubId,
151 DataModel.get().getSyncManager().getCustomizationForThread(sms.mThreadId));
155 + sms.mThreadId);
158 final ParticipantData self = ParticipantData.getSelfParticipant(sms.getSubId());
163 ParticipantData.getFromRawPhoneBySimLocale(otherPhoneNumber, sms.getSubId());
167 final int bugleStatus = bugleStatusForSms(isOutgoing, sms.mType, sms.mStatus);
170 sms.mUri,
175 sms.mSeen,
176 sms.mRead,
177 sms.mTimestampSentInMillis,
178 sms.mTimestampInMillis,
179 sms.mBody);
181 // Inserting sms content into messages table
185 rethrowSQLiteConstraintExceptionWithDetails(e, db, sms.mUri, sms.mThreadId,