Lines Matching refs:mailboxId
74 public void onRefreshStatusChanged(long accountId, long mailboxId); in onRefreshStatusChanged() argument
83 public void onMessagingError(long accountId, long mailboxId, String message); in onMessagingError() argument
225 public boolean isMailboxStale(long mailboxId) { in isMailboxStale() argument
226 return mClock.getTime() >= (mMessageListStatus.get(mailboxId).getLastRefreshTime() in isMailboxStale()
238 public boolean refreshMessageList(long accountId, long mailboxId, boolean userRequest) { in refreshMessageList() argument
239 return refreshMessageList(accountId, mailboxId, false, userRequest); in refreshMessageList()
245 public boolean loadMoreMessages(long accountId, long mailboxId) { in loadMoreMessages() argument
246 return refreshMessageList(accountId, mailboxId, true, true); in loadMoreMessages()
249 private boolean refreshMessageList(long accountId, long mailboxId, boolean loadMoreMessages, in refreshMessageList() argument
251 final Status status = mMessageListStatus.get(mailboxId); in refreshMessageList()
255 Log.d(Logging.LOG_TAG, "refreshMessageList " + accountId + ", " + mailboxId + ", " in refreshMessageList()
259 notifyRefreshStatusChanged(accountId, mailboxId); in refreshMessageList()
261 mController.loadMoreMessages(mailboxId); in refreshMessageList()
263 mController.updateMailbox(accountId, mailboxId, userRequest); in refreshMessageList()
306 public long getLastMessageListRefreshTime(long mailboxId) { in getLastMessageListRefreshTime() argument
307 return mMessageListStatus.get(mailboxId).getLastRefreshTime(); in getLastMessageListRefreshTime()
314 public boolean isMessageListRefreshing(long mailboxId) { in isMessageListRefreshing() argument
315 return mMessageListStatus.get(mailboxId).isRefreshing(); in isMessageListRefreshing()
330 private void notifyRefreshStatusChanged(long accountId, long mailboxId) { in notifyRefreshStatusChanged() argument
332 l.onRefreshStatusChanged(accountId, mailboxId); in notifyRefreshStatusChanged()
336 private void reportError(long accountId, long mailboxId, String errorMessage) { in reportError() argument
339 l.onMessagingError(accountId, mailboxId, mErrorMessage); in reportError()
351 /* package */ Status getMessageListStatusForTest(long mailboxId) { in getMessageListStatusForTest() argument
352 return mMessageListStatus.get(mailboxId); in getMessageListStatusForTest()
389 long mailboxId, int progress, int dontUseNumNewMessages, in updateMailboxCallback() argument
393 + mailboxId + ", " + progress + ", " + exceptionToString(exception)); in updateMailboxCallback()
395 updateMailboxCallbackInternal(exception, accountId, mailboxId, progress, 0); in updateMailboxCallback()
408 MessagingException exception, long accountId, long mailboxId, int progress, in serviceCheckMailCallback() argument
412 + mailboxId + ", " + progress + ", " + exceptionToString(exception)); in serviceCheckMailCallback()
414 updateMailboxCallbackInternal(exception, accountId, mailboxId, progress, 0); in serviceCheckMailCallback()
418 long mailboxId, int progress, int dontUseNumNewMessages) { in updateMailboxCallbackInternal() argument
420 mMessageListStatus.get(mailboxId).onCallback(exception, progress, mClock); in updateMailboxCallbackInternal()
422 reportError(accountId, mailboxId, in updateMailboxCallbackInternal()
425 notifyRefreshStatusChanged(accountId, mailboxId); in updateMailboxCallbackInternal()