Home | History | Annotate | Download | only in email

Lines Matching refs:mailboxId

71          * @param mailboxId -1 if it's about the mailbox list, or the ID of the mailbox list in
74 public void onRefreshStatusChanged(long accountId, long mailboxId);
80 * @param mailboxId ID of the mailbox, or -1 if unknown.
83 public void onMessagingError(long accountId, long mailboxId, String message);
225 public boolean isMailboxStale(long mailboxId) {
226 return mClock.getTime() >= (mMessageListStatus.get(mailboxId).getLastRefreshTime()
238 public boolean refreshMessageList(long accountId, long mailboxId, boolean userRequest) {
239 return refreshMessageList(accountId, mailboxId, false, userRequest);
245 public boolean loadMoreMessages(long accountId, long mailboxId) {
246 return refreshMessageList(accountId, mailboxId, true, true);
249 private boolean refreshMessageList(long accountId, long mailboxId, boolean loadMoreMessages,
251 final Status status = mMessageListStatus.get(mailboxId);
255 Log.d(Logging.LOG_TAG, "refreshMessageList " + accountId + ", " + mailboxId + ", "
259 notifyRefreshStatusChanged(accountId, mailboxId);
261 mController.loadMoreMessages(mailboxId);
263 mController.updateMailbox(accountId, mailboxId, userRequest);
306 public long getLastMessageListRefreshTime(long mailboxId) {
307 return mMessageListStatus.get(mailboxId).getLastRefreshTime();
314 public boolean isMessageListRefreshing(long mailboxId) {
315 return mMessageListStatus.get(mailboxId).isRefreshing();
330 private void notifyRefreshStatusChanged(long accountId, long mailboxId) {
332 l.onRefreshStatusChanged(accountId, mailboxId);
336 private void reportError(long accountId, long mailboxId, String errorMessage) {
339 l.onMessagingError(accountId, mailboxId, mErrorMessage);
351 /* package */ Status getMessageListStatusForTest(long mailboxId) {
352 return mMessageListStatus.get(mailboxId);
389 long mailboxId, int progress, int dontUseNumNewMessages,
393 + mailboxId + ", " + progress + ", " + exceptionToString(exception));
395 updateMailboxCallbackInternal(exception, accountId, mailboxId, progress, 0);
408 MessagingException exception, long accountId, long mailboxId, int progress,
412 + mailboxId + ", " + progress + ", " + exceptionToString(exception));
414 updateMailboxCallbackInternal(exception, accountId, mailboxId, progress, 0);
418 long mailboxId, int progress, int dontUseNumNewMessages) {
420 mMessageListStatus.get(mailboxId).onCallback(exception, progress, mClock);
422 reportError(accountId, mailboxId,
425 notifyRefreshStatusChanged(accountId, mailboxId);