Home
last modified time | relevance | path

Searched refs:threadId (Results 1 – 25 of 25) sorted by relevance

/packages/apps/Mms/src/com/android/mms/data/
DConversation.java111 private Conversation(Context context, long threadId, boolean allowQuery) { in Conversation() argument
113 Log.v(TAG, "Conversation constructor threadId: " + threadId); in Conversation()
116 if (!loadFromThreadId(threadId, allowQuery)) { in Conversation()
142 public static Conversation get(Context context, long threadId, boolean allowQuery) { in get() argument
144 Log.v(TAG, "Conversation get by threadId: " + threadId); in get()
146 Conversation conv = Cache.get(threadId); in get()
150 conv = new Conversation(context, threadId, allowQuery); in get()
179 long threadId = getOrCreateThreadId(context, recipients); in get() local
180 conv = new Conversation(context, threadId, allowQuery); in get()
219 long threadId = Long.parseLong(uri.getPathSegments().get(1)); in get() local
[all …]
DWorkingMessage.java1293 long threadId = conv.ensureThreadId(); in preSendSmsWorker() local
1298 if (LogTag.SEVERE_WARNING && ((origThreadId != 0 && origThreadId != threadId) || in preSendSmsWorker()
1300 String msg = origThreadId != 0 && origThreadId != threadId ? in preSendSmsWorker()
1303 origThreadId + " new threadId: " + threadId + in preSendSmsWorker()
1316 sendSmsWorker(msgText, semiSepRecipients, threadId); in preSendSmsWorker()
1319 deleteDraftSmsMessage(threadId); in preSendSmsWorker()
1323 private void sendSmsWorker(String msgText, String semiSepRecipients, long threadId) { in sendSmsWorker() argument
1327 semiSepRecipients + ", threadId=" + threadId); in sendSmsWorker()
1329 MessageSender sender = new SmsMessageSender(mActivity, dests, msgText, threadId); in sendSmsWorker()
1331 sender.sendMessage(threadId); in sendSmsWorker()
[all …]
DRecipientIdCache.java138 public static void updateNumbers(long threadId, ContactList contacts) { in updateNumbers() argument
/packages/apps/Mms/src/com/android/mms/util/
DRecycler.java85 long threadId = getThreadId(cursor); in deleteOldMessages() local
86 deleteMessagesForThread(context, threadId, limit); in deleteOldMessages()
93 public void deleteOldMessagesByThreadId(Context context, long threadId) { in deleteOldMessagesByThreadId() argument
96 " threadId: " + threadId); in deleteOldMessagesByThreadId()
102 deleteMessagesForThread(context, threadId, getMessageLimit(context)); in deleteOldMessagesByThreadId()
127 abstract protected void deleteMessagesForThread(Context context, long threadId, int keep); in deleteMessagesForThread() argument
192 protected void deleteMessagesForThread(Context context, long threadId, int keep) { in deleteMessagesForThread() argument
200 ContentUris.withAppendedId(Sms.Conversations.CONTENT_URI, threadId), in deleteMessagesForThread()
223 ContentUris.withAppendedId(Sms.Conversations.CONTENT_URI, threadId), in deleteMessagesForThread()
258 long threadId = getThreadId(cursor); in anyThreadOverLimit() local
[all …]
DDraftCache.java52 void onDraftChanged(long threadId, boolean hasDraft); in onDraftChanged() argument
107 long threadId = cursor.getLong(COLUMN_DRAFT_THREAD_ID); in rebuildCache() local
108 newDraftSet.add(threadId); in rebuildCache()
110 log("rebuildCache: add tid=" + threadId); in rebuildCache()
147 for (long threadId : added) { in rebuildCache()
148 l.onDraftChanged(threadId, true); in rebuildCache()
150 for (long threadId : removed) { in rebuildCache()
151 l.onDraftChanged(threadId, false); in rebuildCache()
161 public void setDraftState(long threadId, boolean hasDraft) { in setDraftState() argument
162 if (threadId <= 0) { in setDraftState()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapContentObserver.java317 int threadId; // Used for SMS/MMS at delete field in BluetoothMapContentObserver.Msg
323 public Msg(long id, int type, int threadId) { in Msg() argument
326 this.threadId = threadId; in Msg()
467 int threadId = c.getInt(c.getColumnIndex(Sms.THREAD_ID)); in initMsgList() local
469 Msg msg = new Msg(id, type, threadId); in initMsgList()
489 int threadId = c.getInt(c.getColumnIndex(Mms.THREAD_ID)); in initMsgList() local
491 Msg msg = new Msg(id, type, threadId); in initMsgList()
541 int threadId = c.getInt(c.getColumnIndex(Sms.THREAD_ID)); in handleMsgListChangesSms() local
550 msg = new Msg(id, type, threadId); in handleMsgListChangesSms()
570 } else if(threadId != msg.threadId) { in handleMsgListChangesSms()
[all …]
DBluetoothMapContent.java248 long threadId = c.getLong(fi.mEmailColThreadId); in setThreadId() local
249 e.setThreadId(threadId); in setThreadId()
250 if (V) Log.d(TAG, "setThreadId: " + threadId + "\n"); in setThreadId()
1516 private String getFolderName(int type, int threadId) { in getFolderName() argument
1518 if(threadId == -1) in getFolderName()
1620 int type, threadId; in getSmsMessage() local
1647 threadId = c.getInt(c.getColumnIndex(Sms.THREAD_ID)); in getSmsMessage()
1648 message.setFolder(getFolderName(type, threadId)); in getSmsMessage()
1829 int msgBox, threadId; in getMmsMessage() local
1850 threadId = c.getInt(c.getColumnIndex(Mms.THREAD_ID)); in getMmsMessage()
[all …]
DBluetoothMapMessageListingElement.java213 public void setThreadId(long threadId) { in setThreadId() argument
214 if(threadId != -1) { in setThreadId()
215 this.mThreadId = BluetoothMapUtils.getLongAsString(threadId); in setThreadId()
/packages/apps/Mms/src/com/android/mms/transaction/
DMessagingNotification.java206 public static void setCurrentlyDisplayedThreadId(long threadId) { in setCurrentlyDisplayedThreadId() argument
208 sCurrentlyDisplayedThreadId = threadId; in setCurrentlyDisplayedThreadId()
342 public static void blockingUpdateAllNotifications(final Context context, long threadId) { in blockingUpdateAllNotifications() argument
345 threadId); in blockingUpdateAllNotifications()
347 nonBlockingUpdateNewMessageIndicator(context, threadId, false); in blockingUpdateAllNotifications()
399 int attachmentType, long threadId) { in NotificationInfo() argument
410 mThreadId = threadId; in NotificationInfo()
607 long threadId = cursor.getLong(COLUMN_THREAD_ID); in addMmsNotificationInfos() local
612 ", addr = " + address + ", thread_id=" + threadId); in addMmsNotificationInfos()
645 threadId, in addMmsNotificationInfos()
[all …]
DSmsReceiverService.java266 int threadId = c.getInt(SEND_COLUMN_THREAD_ID); in sendFirstQueuedMessage() local
273 address, msgText, threadId, status == Sms.STATUS_PENDING, in sendFirstQueuedMessage()
281 ", threadId: " + threadId); in sendFirstQueuedMessage()
391 long threadId = MessagingNotification.getSmsThreadId(this, messageUri); in handleSmsReceived() local
393 Log.d(TAG, "handleSmsReceived messageUri: " + messageUri + " threadId: " + threadId); in handleSmsReceived()
394 MessagingNotification.blockingUpdateNewMessageIndicator(this, threadId, false); in handleSmsReceived()
579 Long threadId = values.getAsLong(Sms.THREAD_ID); in storeMessage() local
605 if (((threadId == null) || (threadId == 0)) && (address != null)) { in storeMessage()
606 threadId = Conversation.getOrCreateThreadId(context, address); in storeMessage()
607 values.put(Sms.THREAD_ID, threadId); in storeMessage()
[all …]
DSmsMessageSender.java57 public SmsMessageSender(Context context, String[] dests, String msgText, long threadId) { in SmsMessageSender() argument
69 mThreadId = threadId; in SmsMessageSender()
129 private String getOutgoingServiceCenter(long threadId) { in getOutgoingServiceCenter() argument
135 "thread_id = " + threadId, null, "date DESC"); in getOutgoingServiceCenter()
DPushReceiver.java85 long threadId = -1; in doInBackground() local
91 threadId = findThreadId(mContext, pdu, type); in doInBackground()
92 if (threadId == -1) { in doInBackground()
102 values.put(Mms.THREAD_ID, threadId); in doInBackground()
DRetryScheduler.java192 long threadId = -1; in scheduleRetry() local
196 threadId = c.getLong(0); in scheduleRetry()
203 if (threadId != -1) { in scheduleRetry()
205 MessagingNotification.notifyDownloadFailed(mContext, threadId); in scheduleRetry()
DSmsSingleRecipientSender.java28 public SmsSingleRecipientSender(Context context, String dest, String msgText, long threadId, in SmsSingleRecipientSender() argument
30 super(context, null, msgText, threadId); in SmsSingleRecipientSender()
DTransactionService.java483 long threadId = MessagingNotification.getThreadId( in update() local
486 threadId, in update()
/packages/apps/Mms/src/com/android/mms/ui/
DConversationList.java445 public void onDraftChanged(final long threadId, final boolean hasDraft) { in onDraftChanged() argument
451 log("onDraftChanged: threadId=" + threadId + ", hasDraft=" + hasDraft); in onDraftChanged()
630 private void openThread(long threadId) { in openThread() argument
631 startActivity(ComposeMessageActivity.createIntent(this, threadId)); in openThread()
687 long threadId = conv.getThreadId(); in onContextItemSelected() local
690 confirmDeleteThread(threadId, mQueryHandler); in onContextItemSelected()
694 openThread(threadId); in onContextItemSelected()
737 public static void confirmDeleteThread(long threadId, AsyncQueryHandler handler) { in confirmDeleteThread() argument
739 if (threadId != -1) { in confirmDeleteThread()
741 threadIds.add(threadId); in confirmDeleteThread()
[all …]
DComposeMessageActivity.java2016 long threadId = intent.getLongExtra(THREAD_ID, 0); in onNewIntent() local
2020 if (threadId > 0) { in onNewIntent()
2021 conversation = Conversation.get(this, threadId, false); in onNewIntent()
2042 log("onNewIntent: data=" + intentUri + ", thread_id extra is " + threadId + in onNewIntent()
2215 final long threadId = mConversation.getThreadId(); in updateSendFailedNotification() local
2216 if (threadId <= 0) in updateSendFailedNotification()
2225 ComposeMessageActivity.this, threadId); in updateSendFailedNotification()
2807 private void confirmDeleteThread(long threadId) { in confirmDeleteThread() argument
2809 threadId, ConversationList.HAVE_LOCKED_MESSAGES_TOKEN); in confirmDeleteThread()
3590 long threadId = mConversation.getThreadId(); in startMsgListQuery() local
[all …]
DNoConfirmationSendService.java89 long threadId = 0; in onHandleIntent() local
91 message, threadId); in onHandleIntent()
96 smsMessageSender.sendMessage(threadId); in onHandleIntent()
98 Log.e(TAG, "Failed to send SMS message, threadId=" + threadId, e); in onHandleIntent()
DSearchActivity.java250 long threadId = getThreadId(sourceId, whichTable); in onCreate()
255 onClickIntent.putExtra("thread_id", threadId); in onCreate()
330 final long threadId = cursor.getLong(threadIdPos); in onCreate()
336 onClickIntent.putExtra("thread_id", threadId); in onCreate()
DMessageUtils.java736 for (long threadId : threadIds) { in handleReadReport()
741 selectionArgs[i++] = Long.toString(threadId); in handleReadReport()
/packages/apps/Mms/tests/src/com/android/mms/
DRecyclerTest.java161 Long threadId = 0L; in storeMessage() local
167 if (((threadId == null) || (threadId == 0)) && (address != null)) { in storeMessage()
177 threadId = values.getAsLong(Sms.THREAD_ID); in storeMessage()
178 Recycler.getSmsRecycler().deleteOldMessagesByThreadId(context, threadId); in storeMessage()
DInterceptSendSms.java136 final long threadId = intent.getLongExtra(WorkingMessage.EXTRA_SMS_THREAD_ID, 0); in onReceive() local
140 assertTrue(threadId > 0); in onReceive()
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DSmsProvider.java463 Long threadId = values.getAsLong(Sms.THREAD_ID); in insertInner() local
466 if (((threadId == null) || (threadId == 0)) && (!TextUtils.isEmpty(address))) { in insertInner()
683 String threadId = url.getPathSegments().get(1); in update() local
686 Integer.parseInt(threadId); in update()
688 Log.e(TAG, "Bad conversation thread id: " + threadId); in update()
692 extraWhere = "thread_id=" + threadId; in update()
DMmsSmsProvider.java459 long threadId; in query() local
461 threadId = Long.parseLong(uri.getLastPathSegment()); in query()
466 cursor = getFirstLockedMessage(projection, "thread_id=" + Long.toString(threadId), in query()
1182 long threadId; in delete() local
1184 threadId = Long.parseLong(uri.getLastPathSegment()); in delete()
1190 MmsSmsDatabaseHelper.updateThread(db, threadId); in delete()
1221 String threadId = uri.getLastPathSegment(); in deleteConversation() local
1224 String finalSelection = concatSelections(selection, "thread_id = " + threadId); in deleteConversation()
DMmsProvider.java370 Long threadId = values.getAsLong(Mms.THREAD_ID); in insert() local
373 if (((threadId == null) || (threadId == 0)) && (!TextUtils.isEmpty(address))) { in insert()