/packages/apps/Email/src/com/android/email/ |
D | RefreshManager.java | 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() [all …]
|
D | FolderProperties.java | 76 public String getCombinedMailboxName(long mailboxId) { in getCombinedMailboxName() argument 81 if (mailboxId == Mailbox.QUERY_ALL_INBOXES) { in getCombinedMailboxName() 83 } else if (mailboxId == Mailbox.QUERY_ALL_FAVORITES) { in getCombinedMailboxName() 85 } else if (mailboxId == Mailbox.QUERY_ALL_DRAFTS) { in getCombinedMailboxName() 87 } else if (mailboxId == Mailbox.QUERY_ALL_OUTBOX) { in getCombinedMailboxName() 99 private String getDisplayName(int type, long mailboxId) { in getDisplayName() argument 100 String name = getCombinedMailboxName(mailboxId); in getDisplayName() 117 public String getDisplayName(int mailboxType, long mailboxId, String originalDisplayName) { in getDisplayName() argument 118 String name = getDisplayName(mailboxType, mailboxId); in getDisplayName() 185 public static int getMessageCountForCombinedMailbox(Context context, long mailboxId) { in getMessageCountForCombinedMailbox() argument [all …]
|
D | MessagingListener.java | 45 public void synchronizeMailboxStarted(long accountId, long mailboxId) { in synchronizeMailboxStarted() argument 59 public void synchronizeMailboxFinished(long accountId, long mailboxId, in synchronizeMailboxFinished() argument 63 public void synchronizeMailboxFailed(long accountId, long mailboxId, Exception e) { in synchronizeMailboxFailed() argument 78 public void checkMailFinished(Context context, long accountId, long mailboxId, long tag) { in checkMailFinished() argument 90 public void messageUidChanged(long accountId, long mailboxId, String oldUid, String newUid) { in messageUidChanged() argument
|
D | MessageListContext.java | 71 long mailboxId = intent.getLongExtra(EmailActivity.EXTRA_MAILBOX_ID, Mailbox.NO_MAILBOX); in forIntent() local 77 return forSearch(accountId, searchMailboxId, new SearchParams(mailboxId, queryTerm)); in forIntent() 82 if (mailboxId == Mailbox.NO_MAILBOX) { in forIntent() 83 mailboxId = (accountId == Account.ACCOUNT_ID_COMBINED_VIEW) in forIntent() 88 return forMailbox(accountId, mailboxId); in forIntent() 106 public static MessageListContext forMailbox(long accountId, long mailboxId) { in forMailbox() argument 108 Preconditions.checkArgument(mailboxId != Mailbox.NO_MAILBOX, "Must specify a mailbox"); in forMailbox() 109 return new MessageListContext(accountId, mailboxId, null); in forMailbox()
|
D | GroupMessagingListener.java | 76 synchronized public void synchronizeMailboxStarted(long accountId, long mailboxId) { in synchronizeMailboxStarted() argument 78 l.synchronizeMailboxStarted(accountId, mailboxId); in synchronizeMailboxStarted() 83 synchronized public void synchronizeMailboxFinished(long accountId, long mailboxId, in synchronizeMailboxFinished() argument 86 l.synchronizeMailboxFinished(accountId, mailboxId, in synchronizeMailboxFinished() 92 synchronized public void synchronizeMailboxFailed(long accountId, long mailboxId, Exception e) { in synchronizeMailboxFailed() argument 94 l.synchronizeMailboxFailed(accountId, mailboxId, e); in synchronizeMailboxFailed() 157 synchronized public void messageUidChanged(long accountId, long mailboxId, in messageUidChanged() argument 160 l.messageUidChanged(accountId, mailboxId, oldUid, newUid); in messageUidChanged()
|
D | ControllerResultUiThreadWrapper.java | 100 final long mailboxId, final int progress, final long tag) { in serviceCheckMailCallback() argument 104 mWrappee.serviceCheckMailCallback(result, accountId, mailboxId, progress, tag); in serviceCheckMailCallback() 111 final long mailboxId, final int progress, final int numNewMessages, in updateMailboxCallback() argument 116 mWrappee.updateMailboxCallback(result, accountId, mailboxId, progress, in updateMailboxCallback()
|
D | Controller.java | 217 long mailboxId = c.getLong(EmailContent.ID_PROJECTION_COLUMN); in deleteAttachmentMessages() local 220 mailboxId); in deleteAttachmentMessages() 222 new String[] {Long.toString(mailboxId)}); in deleteAttachmentMessages() 370 public void serviceCheckMail(final long accountId, final long mailboxId, final long tag) { in serviceCheckMail() argument 378 mLegacyListener.checkMailFinished(mContext, accountId, mailboxId, tag); in serviceCheckMail() 401 public void updateMailbox(final long accountId, final long mailboxId, boolean userRequest) { in updateMailbox() argument 406 service.startSync(mailboxId, userRequest); in updateMailbox() 420 Mailbox.restoreMailboxWithId(mProviderContext, mailboxId); in updateMailbox() 479 long mailboxId = findOrCreateMailboxOfType(accountId, mailboxType); in saveToMailbox() local 480 message.mMailboxKey = mailboxId; in saveToMailbox() [all …]
|
/packages/apps/Email/tests/src/com/android/email/activity/ |
D | MessagesAdapterTests.java | 60 private MessagesAdapter.MessagesCursor getLoaderResult(long accountId, long mailboxId) { in getLoaderResult() argument 64 MessageListContext.forMailbox(accountId, mailboxId))); in getLoaderResult() 72 final long mailboxId = createMailbox(accountId, Mailbox.TYPE_MAIL); in testLoad() local 74 MessagesAdapter.MessagesCursor result = getLoaderResult(accountId, mailboxId); in testLoad() 77 assertEquals(mailboxId, result.mMailbox.mId); in testLoad() 87 final long mailboxId = createMailbox(accountId, Mailbox.TYPE_MAIL); in testLoadEas() local 89 MessagesAdapter.MessagesCursor result = getLoaderResult(accountId, mailboxId); in testLoadEas() 92 assertEquals(mailboxId, result.mMailbox.mId); in testLoadEas() 102 final long mailboxId = createMailbox(accountId, Mailbox.TYPE_DRAFTS); in testLoadNotRefreshable() local 104 MessagesAdapter.MessagesCursor result = getLoaderResult(accountId, mailboxId); in testLoadNotRefreshable() [all …]
|
/packages/apps/Exchange/src/com/android/exchange/ |
D | EmailSyncAlarmReceiver.java | 80 long mailboxId = c.getLong(0); in handleReceive() local 81 if (!mailboxesToNotify.contains(mailboxId)) { in handleReceive() 82 mailboxesToNotify.add(mailboxId); in handleReceive() 97 long mailboxId = c.getLong(0); in handleReceive() local 98 if (!mailboxesToNotify.contains(mailboxId)) { in handleReceive() 99 mailboxesToNotify.add(mailboxId); in handleReceive() 107 for (Long mailboxId: mailboxesToNotify) { in handleReceive() 108 ExchangeService.serviceRequest(mailboxId, ExchangeService.SYNC_UPSYNC); in handleReceive()
|
D | ExchangeService.java | 316 public void syncMailboxStatus(final long mailboxId, final int status, 321 cb.syncMailboxStatus(mailboxId, status, progress); 345 public void startSync(long mailboxId, boolean userRequest) throws RemoteException { 349 Mailbox m = Mailbox.restoreMailboxWithId(exchangeService, mailboxId); 367 sCallbackProxy.syncMailboxStatus(mailboxId, EmailServiceStatus.IN_PROGRESS, 369 sCallbackProxy.syncMailboxStatus(mailboxId, 383 cv, WHERE_MAILBOX_KEY, new String[] {Long.toString(mailboxId)}); 385 exchangeService.mSyncErrorMap.remove(mailboxId); 392 sCallbackProxy.syncMailboxStatus(mailboxId, EmailServiceStatus.IN_PROGRESS, 0); 393 sCallbackProxy.syncMailboxStatus(mailboxId, EmailServiceStatus.SUCCESS, 0); [all …]
|
D | MailboxAlarmReceiver.java | 32 long mailboxId = intent.getLongExtra("mailbox", ExchangeService.EXTRA_MAILBOX_ID); in onReceive() local 34 if (mailboxId == ExchangeService.EXCHANGE_SERVICE_MAILBOX_ID) { in onReceive() 37 ExchangeService.alert(context, mailboxId); in onReceive()
|
D | MessageMoveRequest.java | 25 public MessageMoveRequest(long messageId, long mailboxId) { in MessageMoveRequest() argument 27 mMailboxId = mailboxId; in MessageMoveRequest()
|
/packages/apps/Email/tests/src/com/android/email/ |
D | MessageListContextTests.java | 28 long mailboxId = 456; in testParcellingMailboxes() local 29 MessageListContext original = MessageListContext.forMailbox(accountId, mailboxId); in testParcellingMailboxes() 42 long mailboxId = 456; in testParcellingSearches() local 43 SearchParams params = new SearchParams(mailboxId, "search terms"); in testParcellingSearches() 44 MessageListContext original = MessageListContext.forSearch(accountId, mailboxId, params); in testParcellingSearches()
|
/packages/apps/Email/src/com/android/email/activity/ |
D | MoveMessageToDialog.java | 172 final long mailboxId = mAdapter.getItemId(position); in onClick() local 174 ((Callback) getTargetFragment()).onMoveToMailboxSelected(mailboxId, mMessageIds); in onClick() 278 long mailboxId = Mailbox.NO_MAILBOX; in loadInBackground() local 297 mailboxId = message.mMailboxKey; in loadInBackground() 299 if (!Mailbox.restoreMailboxWithId(c, mailboxId).canHaveMessagesMoved()) { in loadInBackground() 302 mailboxId = Mailbox.NO_MAILBOX; in loadInBackground() 307 if (message.mAccountKey != accountId || message.mMailboxKey != mailboxId) { in loadInBackground() 310 mailboxId = Mailbox.NO_MAILBOX; in loadInBackground() 315 return new IdContainer(accountId, mailboxId); in loadInBackground() 340 private IdContainer(long accountId, long mailboxId) { in IdContainer() argument [all …]
|
D | ShortcutPicker.java | 90 public void onSelected(Account account, long mailboxId) { in onSelected() argument 93 (Mailbox.getMailboxType(this, mailboxId) != Mailbox.TYPE_INBOX)) { in onSelected() 94 shortcutName = Mailbox.getDisplayName(this, mailboxId); in onSelected() 98 setupShortcut(account, mailboxId, shortcutName); in onSelected() 135 private void setupShortcut(Account account, long mailboxId, String shortcutName) { in setupShortcut() argument 146 myActivity, account.mId, mailboxId, Message.NO_MESSAGE); in setupShortcut() 149 shortcutIntent = Welcome.createAccountShortcutIntent(myActivity, uuid, mailboxId); in setupShortcut()
|
D | MailboxFinder.java | 66 public void onMailboxFound(long accountId, long mailboxId); in onMailboxFound() argument 181 long mailboxId = Mailbox.findMailboxOfType(mContext, mAccountId, mMailboxType); in doInBackground() local 182 if (mailboxId != Mailbox.NO_MAILBOX) { in doInBackground() 184 return mailboxId; // Found in doInBackground() 203 protected void onSuccess(Long mailboxId) { in onSuccess() argument 231 Log.d(Logging.LOG_TAG, "MailboxFinder: mailbox found: id=" + mailboxId); in onSuccess() 234 mCallback.onMailboxFound(mAccountId, mailboxId); in onSuccess()
|
D | MailboxMoveToAdapter.java | 117 static Loader<Cursor> createLoader(Context context, long accountId, long mailboxId) { in createLoader() argument 120 + ", mailboxId=" + mailboxId); in createLoader() 122 return new MailboxMoveToLoader(context, accountId, mailboxId); in createLoader() 132 final long mailboxId = cursor.getLong(COLUMN_ID); in getDisplayText() local 133 return FolderProperties.getInstance(context).getDisplayName(type, mailboxId, in getDisplayText() 140 public MailboxMoveToLoader(Context context, long accountId, long mailboxId) { in MailboxMoveToLoader() argument 143 new String[] { Long.toString(accountId), Long.toString(mailboxId) }, null); in MailboxMoveToLoader()
|
D | RecentMailboxManager.java | 96 public EmailAsyncTask<Void, Void, Void> touch(long accountId, long mailboxId) { in touch() argument 97 return fireAndForget(accountId, mailboxId, sClock.getTime()); in touch() 131 final long accountId, final long mailboxId, final long time) { in fireAndForget() argument 136 touchMailboxSynchronous(accountId, mailboxId, time); in fireAndForget() 141 private void touchMailboxSynchronous(long accountId, long mailboxId, long time) { 145 ContentUris.withAppendedId(Mailbox.CONTENT_URI, mailboxId),
|
D | EmailActivity.java | 99 long mailboxId) { in createOpenMailboxIntent() argument 100 if (accountId == -1 || mailboxId == -1) { in createOpenMailboxIntent() 105 i.putExtra(EXTRA_MAILBOX_ID, mailboxId); in createOpenMailboxIntent() 118 long mailboxId, long messageId) { in createOpenMessageIntent() argument 119 if (accountId == -1 || mailboxId == -1 || messageId == -1) { in createOpenMessageIntent() 124 i.putExtra(EXTRA_MAILBOX_ID, mailboxId); in createOpenMessageIntent() 138 long mailboxId, String query) { in createSearchIntent() argument 146 i.putExtra(EXTRA_MAILBOX_ID, mailboxId); in createSearchIntent() 346 MessagingException result, long accountId, long mailboxId, int progress, long tag) { in serviceCheckMailCallback() argument 351 public void updateMailboxCallback(MessagingException result, long accountId, long mailboxId, in updateMailboxCallback() argument
|
D | UIControllerTwoPane.java | 88 public void onMailboxSelected(long accountId, long mailboxId, boolean nestedNavigation) { in onMailboxSelected() argument 89 setListContext(MessageListContext.forMailbox(accountId, mailboxId)); in onMailboxSelected() 361 long mailboxId = mListContext.getMailboxId(); in updateMailboxList() local 362 if ((getUIAccountId() != accountId) || (getMailboxListMailboxId() != mailboxId)) { in updateMailboxList() 366 MailboxListFragment.newInstance(accountId, mailboxId, enableHighlight)); in updateMailboxList() 546 long mailboxId) { in RefreshTask() argument 547 this(tracker, context, accountId, mailboxId, Clock.INSTANCE, in RefreshTask() 553 long mailboxId, Clock clock, RefreshManager refreshManager) { in RefreshTask() argument 559 mMailboxId = mailboxId; in RefreshTask() 655 public void onMailboxSelected(long accountId, long mailboxId) { in onMailboxSelected() argument [all …]
|
D | AccountSelectorAdapter.java | 106 public static Loader<Cursor> createLoader(Context context, long accountId, long mailboxId) { in createLoader() argument 107 return new AccountsLoader(context, accountId, mailboxId, UiUtilities.useTwoPane(context)); in createLoader() 309 AccountsLoader(Context context, long accountId, long mailboxId, boolean useTwoPane) { in AccountsLoader() argument 315 mMailboxId = mailboxId; in AccountsLoader() 510 void setAccountMailboxInfo(Context context, long accountId, long mailboxId) { in setAccountMailboxInfo() argument 512 mMailboxId = mailboxId; in setAccountMailboxInfo() 519 if (mailboxId != Mailbox.NO_MAILBOX) { in setAccountMailboxInfo() 520 setCombinedMailboxInfo(context, mailboxId); in setAccountMailboxInfo() 543 setCombinedMailboxInfo(context, mailboxId); in setAccountMailboxInfo() 550 ContentUris.withAppendedId(Mailbox.CONTENT_URI, mailboxId), in setAccountMailboxInfo() [all …]
|
D | UIControllerBase.java | 115 public void onMessagingError(final long accountId, long mailboxId, final String message) { in onMessagingError() argument 120 public void onRefreshStatusChanged(long accountId, long mailboxId) { in onRefreshStatusChanged() argument 586 protected final void openMailbox(long accountId, long mailboxId) { in openMailbox() argument 587 open(MessageListContext.forMailbox(accountId, mailboxId), Message.NO_MESSAGE); in openMailbox() 733 final long mailboxId = searchableMailbox.mId; in onSearchSubmit() local 737 "Submitting search: [" + queryTerm + "] in mailboxId=" + mailboxId); in onSearchSubmit() 741 mActivity, accountId, mailboxId, queryTerm)); in onSearchSubmit() 834 final long mailboxId = getMailboxSettingsMailboxId(); in onOptionsItemSelected() local 835 if (mailboxId != Mailbox.NO_MAILBOX) { in onOptionsItemSelected() 836 MailboxSettings.start(mActivity, mailboxId); in onOptionsItemSelected() [all …]
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/ |
D | Mailbox.java | 354 Long mailboxId = c.getLong(ID_PROJECTION_COLUMN); in findMailboxOfType() local 355 if (mailboxId != null in findMailboxOfType() 356 && mailboxId != 0L in findMailboxOfType() 357 && mailboxId != NO_MAILBOX) { in findMailboxOfType() 358 return mailboxId; in findMailboxOfType() 375 long mailboxId = findMailboxOfType(context, accountId, type); in restoreMailboxOfType() local 376 if (mailboxId != Mailbox.NO_MAILBOX) { in restoreMailboxOfType() 377 return Mailbox.restoreMailboxWithId(context, mailboxId); in restoreMailboxOfType() 412 long mailboxId = Message.getKeyColumnLong(context, messageId, in getMailboxForMessageId() local 414 if (mailboxId != -1) { in getMailboxForMessageId() [all …]
|
/packages/apps/Exchange/tests/src/com/android/exchange/provider/ |
D | EmailContentSetupUtils.java | 86 public static Message setupMessage(String name, long accountId, long mailboxId, in setupMessage() argument 89 return setupMessage(name, accountId, mailboxId, addBody, saveIt, context, true, true); in setupMessage() 95 public static Message setupMessage(String name, long accountId, long mailboxId, in setupMessage() argument 100 message.mMailboxKey = mailboxId; in setupMessage()
|
/packages/apps/Email/src/com/android/email/widget/ |
D | WidgetConfiguration.java | 101 public void onSelected(Account account, long mailboxId) { in onSelected() argument 102 setupWidget(account, mailboxId); in onSelected() 115 private void setupWidget(Account account, long mailboxId) { in setupWidget() argument 117 WidgetManager.saveWidgetPrefs(this, mAppWidgetId, account.mId, mailboxId); in setupWidget()
|