Home
last modified time | relevance | path

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

123

/packages/apps/Email/src/com/android/email/
DRefreshManager.java74 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 …]
DFolderProperties.java76 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 …]
DMessagingListener.java45 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
DMessageListContext.java71 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()
85 if (mailboxId == Mailbox.NO_MAILBOX) { in forIntent()
86 mailboxId = (accountId == Account.ACCOUNT_ID_COMBINED_VIEW) in forIntent()
91 return forMailbox(accountId, mailboxId); in forIntent()
109 public static MessageListContext forMailbox(long accountId, long mailboxId) { in forMailbox() argument
111 Preconditions.checkArgument(mailboxId != Mailbox.NO_MAILBOX, "Must specify a mailbox"); in forMailbox()
112 return new MessageListContext(accountId, mailboxId, null); in forMailbox()
DGroupMessagingListener.java76 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()
DControllerResultUiThreadWrapper.java100 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()
DController.java217 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/
DMessagesAdapterTests.java60 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/exchange2/src/com/android/exchange/
DEmailSyncAlarmReceiver.java80 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()
DExchangeService.java325 public void syncMailboxStatus(final long mailboxId, final int status,
330 cb.syncMailboxStatus(mailboxId, status, progress);
363 public void startSync(long mailboxId, boolean userRequest) throws RemoteException {
367 Mailbox m = Mailbox.restoreMailboxWithId(exchangeService, mailboxId);
385 sCallbackProxy.syncMailboxStatus(mailboxId, EmailServiceStatus.IN_PROGRESS,
387 sCallbackProxy.syncMailboxStatus(mailboxId,
401 cv, WHERE_MAILBOX_KEY, new String[] {Long.toString(mailboxId)});
403 exchangeService.mSyncErrorMap.remove(mailboxId);
410 sCallbackProxy.syncMailboxStatus(mailboxId, EmailServiceStatus.IN_PROGRESS, 0);
411 sCallbackProxy.syncMailboxStatus(mailboxId, EmailServiceStatus.SUCCESS, 0);
[all …]
DMailboxAlarmReceiver.java32 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()
/packages/apps/Email/tests/src/com/android/email/
DMessageListContextTests.java28 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/
DMoveMessageToDialog.java172 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 …]
DShortcutPicker.java90 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()
DMailboxFinder.java66 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()
DMailboxMoveToAdapter.java117 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()
DRecentMailboxManager.java96 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),
DEmailActivity.java102 long mailboxId) { in createOpenMailboxIntent() argument
103 if (accountId == -1 || mailboxId == -1) { in createOpenMailboxIntent()
108 i.putExtra(EXTRA_MAILBOX_ID, mailboxId); in createOpenMailboxIntent()
121 long mailboxId, long messageId) { in createOpenMessageIntent() argument
122 if (accountId == -1 || mailboxId == -1 || messageId == -1) { in createOpenMessageIntent()
127 i.putExtra(EXTRA_MAILBOX_ID, mailboxId); in createOpenMessageIntent()
141 long mailboxId, String query) { in createSearchIntent() argument
149 i.putExtra(EXTRA_MAILBOX_ID, mailboxId); in createSearchIntent()
370 MessagingException result, long accountId, long mailboxId, int progress, long tag) { in serviceCheckMailCallback() argument
375 public void updateMailboxCallback(MessagingException result, long accountId, long mailboxId, in updateMailboxCallback() argument
DAccountSelectorAdapter.java106 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()
314 AccountsLoader(Context context, long accountId, long mailboxId, boolean useTwoPane) { in AccountsLoader() argument
320 mMailboxId = mailboxId; in AccountsLoader()
515 void setAccountMailboxInfo(Context context, long accountId, long mailboxId) { in setAccountMailboxInfo() argument
517 mMailboxId = mailboxId; in setAccountMailboxInfo()
524 if (mailboxId != Mailbox.NO_MAILBOX) { in setAccountMailboxInfo()
525 setCombinedMailboxInfo(context, mailboxId); in setAccountMailboxInfo()
548 setCombinedMailboxInfo(context, mailboxId); in setAccountMailboxInfo()
555 ContentUris.withAppendedId(Mailbox.CONTENT_URI, mailboxId), in setAccountMailboxInfo()
[all …]
DUIControllerTwoPane.java92 public void onMailboxSelected(long accountId, long mailboxId, boolean nestedNavigation) { in onMailboxSelected() argument
93 setListContext(MessageListContext.forMailbox(accountId, mailboxId)); in onMailboxSelected()
398 long mailboxId = mListContext.getMailboxId(); in updateMailboxList() local
399 if ((getUIAccountId() != accountId) || (getMailboxListMailboxId() != mailboxId)) { in updateMailboxList()
403 MailboxListFragment.newInstance(accountId, mailboxId, enableHighlight)); in updateMailboxList()
574 long mailboxId) { in RefreshTask() argument
575 this(tracker, context, accountId, mailboxId, Clock.INSTANCE, in RefreshTask()
581 long mailboxId, Clock clock, RefreshManager refreshManager) { in RefreshTask() argument
587 mMailboxId = mailboxId; in RefreshTask()
683 public void onMailboxSelected(long accountId, long mailboxId) { in onMailboxSelected() argument
[all …]
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/
DMailbox.java384 Long mailboxId = c.getLong(ID_PROJECTION_COLUMN); in findMailboxOfType() local
385 if (mailboxId != null in findMailboxOfType()
386 && mailboxId != 0L in findMailboxOfType()
387 && mailboxId != NO_MAILBOX) { in findMailboxOfType()
388 return mailboxId; in findMailboxOfType()
405 long mailboxId = findMailboxOfType(context, accountId, type); in restoreMailboxOfType() local
406 if (mailboxId != Mailbox.NO_MAILBOX) { in restoreMailboxOfType()
407 return Mailbox.restoreMailboxWithId(context, mailboxId); in restoreMailboxOfType()
442 long mailboxId = Message.getKeyColumnLong(context, messageId, in getMailboxForMessageId() local
444 if (mailboxId != -1) { in getMailboxForMessageId()
[all …]
/packages/apps/Email/emailcommon/src/com/android/emailcommon/service/
DSearchParams.java56 public SearchParams(long mailboxId, String filter) { in SearchParams() argument
57 mMailboxId = mailboxId; in SearchParams()
61 public SearchParams(long mailboxId, String filter, long searchMailboxId) { in SearchParams() argument
62 mMailboxId = mailboxId; in SearchParams()
/packages/apps/Exchange/exchange2/tests/src/com/android/exchange/provider/
DEmailContentSetupUtils.java86 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/Exchange/tests/src/com/android/exchange/provider/
DEmailContentSetupUtils.java86 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/
DWidgetConfiguration.java101 public void onSelected(Account account, long mailboxId) { in onSelected() argument
102 setupWidget(account, mailboxId); in onSelected()
123 private void setupWidget(Account account, long mailboxId) { in setupWidget() argument
125 WidgetManager.saveWidgetPrefs(this, mAppWidgetId, account.mId, mailboxId); in setupWidget()

123