Home | History | Annotate | Download | only in email

Lines Matching refs:accountId

70          * @param accountId ID of the account.
74 public void onRefreshStatusChanged(long accountId, long mailboxId);
79 * @param accountId ID of the account, or -1 if unknown.
83 public void onMessagingError(long accountId, long mailboxId, String message);
212 public boolean refreshMailboxList(long accountId) {
213 final Status status = mMailboxListStatus.get(accountId);
217 Log.d(Logging.LOG_TAG, "refreshMailboxList " + accountId);
220 notifyRefreshStatusChanged(accountId, -1);
221 mController.updateMailboxList(accountId);
230 public boolean isMailboxListStale(long accountId) {
231 return mClock.getTime() >= (mMailboxListStatus.get(accountId).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,
255 Log.d(Logging.LOG_TAG, "refreshMessageList " + accountId + ", " + mailboxId + ", "
259 notifyRefreshStatusChanged(accountId, mailboxId);
263 mController.updateMailbox(accountId, mailboxId, userRequest);
271 public boolean sendPendingMessages(long accountId) {
273 Log.d(Logging.LOG_TAG, "sendPendingMessages " + accountId);
275 notifyRefreshStatusChanged(accountId, -1);
276 mController.sendPendingMessages(accountId);
297 protected void performAction(long accountId) {
298 sendPendingMessages(accountId);
302 public long getLastMailboxListRefreshTime(long accountId) {
303 return mMailboxListStatus.get(accountId).getLastRefreshTime();
310 public boolean isMailboxListRefreshing(long accountId) {
311 return mMailboxListStatus.get(accountId).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);
347 /* package */ Status getMailboxListStatusForTest(long accountId) {
348 return mMailboxListStatus.get(accountId);
370 public void updateMailboxListCallback(MessagingException exception, long accountId,
373 Log.d(Logging.LOG_TAG, "updateMailboxListCallback " + accountId + ", " + progress
376 mMailboxListStatus.get(accountId).onCallback(exception, progress, mClock);
378 reportError(accountId, -1,
381 notifyRefreshStatusChanged(accountId, -1);
388 public void updateMailboxCallback(MessagingException exception, long accountId,
392 Log.d(Logging.LOG_TAG, "updateMailboxCallback " + accountId + ", "
395 updateMailboxCallbackInternal(exception, accountId, mailboxId, progress, 0);
408 MessagingException exception, long accountId, long mailboxId, int progress,
411 Log.d(Logging.LOG_TAG, "serviceCheckMailCallback " + accountId + ", "
414 updateMailboxCallbackInternal(exception, accountId, mailboxId, progress, 0);
417 private void updateMailboxCallbackInternal(MessagingException exception, long accountId,
422 reportError(accountId, mailboxId,
425 notifyRefreshStatusChanged(accountId, mailboxId);
436 public void sendMailCallback(MessagingException exception, long accountId, long messageId,
439 Log.d(Logging.LOG_TAG, "sendMailCallback " + accountId + ", "
448 reportError(accountId, messageId,