HomeSort by relevance Sort by last modified time
    Searched refs:mailboxId (Results 1 - 25 of 62) sorted by null

1 2 3

  /packages/apps/Exchange/src/com/android/exchange/
MailboxAlarmReceiver.java 32 long mailboxId = intent.getLongExtra("mailbox", ExchangeService.EXTRA_MAILBOX_ID);
34 if (mailboxId == ExchangeService.EXCHANGE_SERVICE_MAILBOX_ID) {
37 ExchangeService.alert(context, mailboxId);
MessageMoveRequest.java 25 public MessageMoveRequest(long messageId, long mailboxId) {
27 mMailboxId = mailboxId;
EmailSyncAlarmReceiver.java 80 long mailboxId = c.getLong(0);
81 if (!mailboxesToNotify.contains(mailboxId)) {
82 mailboxesToNotify.add(mailboxId);
97 long mailboxId = c.getLong(0);
98 if (!mailboxesToNotify.contains(mailboxId)) {
99 mailboxesToNotify.add(mailboxId);
107 for (Long mailboxId: mailboxesToNotify) {
108 ExchangeService.serviceRequest(mailboxId, ExchangeService.SYNC_UPSYNC);
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...]
  /packages/apps/Email/tests/src/com/android/email/
MessageListContextTests.java 28 long mailboxId = 456;
29 MessageListContext original = MessageListContext.forMailbox(accountId, mailboxId);
42 long mailboxId = 456;
43 SearchParams params = new SearchParams(mailboxId, "search terms");
44 MessageListContext original = MessageListContext.forSearch(accountId, mailboxId, params);
  /packages/apps/Email/src/com/android/email/
RefreshManager.java 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)
    [all...]
FolderProperties.java 76 public String getCombinedMailboxName(long mailboxId) {
81 if (mailboxId == Mailbox.QUERY_ALL_INBOXES) {
83 } else if (mailboxId == Mailbox.QUERY_ALL_FAVORITES) {
85 } else if (mailboxId == Mailbox.QUERY_ALL_DRAFTS) {
87 } else if (mailboxId == Mailbox.QUERY_ALL_OUTBOX) {
99 private String getDisplayName(int type, long mailboxId) {
100 String name = getCombinedMailboxName(mailboxId);
114 * @param mailboxId ID of a mailbox.
117 public String getDisplayName(int mailboxType, long mailboxId, String originalDisplayName) {
118 String name = getDisplayName(mailboxType, mailboxId);
    [all...]
MessagingListener.java 45 public void synchronizeMailboxStarted(long accountId, long mailboxId) {
53 * @param mailboxId The mailbox that was synchronized
59 public void synchronizeMailboxFinished(long accountId, long mailboxId,
63 public void synchronizeMailboxFailed(long accountId, long mailboxId, Exception e) {
78 public void checkMailFinished(Context context, long accountId, long mailboxId, long tag) {
90 public void messageUidChanged(long accountId, long mailboxId, String oldUid, String newUid) {
GroupMessagingListener.java 76 synchronized public void synchronizeMailboxStarted(long accountId, long mailboxId) {
78 l.synchronizeMailboxStarted(accountId, mailboxId);
83 synchronized public void synchronizeMailboxFinished(long accountId, long mailboxId,
86 l.synchronizeMailboxFinished(accountId, mailboxId,
92 synchronized public void synchronizeMailboxFailed(long accountId, long mailboxId, Exception e) {
94 l.synchronizeMailboxFailed(accountId, mailboxId, e);
157 synchronized public void messageUidChanged(long accountId, long mailboxId,
160 l.messageUidChanged(accountId, mailboxId, oldUid, newUid);
MessageListContext.java 71 long mailboxId = intent.getLongExtra(EmailActivity.EXTRA_MAILBOX_ID, Mailbox.NO_MAILBOX);
77 return forSearch(accountId, searchMailboxId, new SearchParams(mailboxId, queryTerm));
85 if (mailboxId == Mailbox.NO_MAILBOX) {
86 mailboxId = (accountId == Account.ACCOUNT_ID_COMBINED_VIEW)
91 return forMailbox(accountId, mailboxId);
109 public static MessageListContext forMailbox(long accountId, long mailboxId) {
111 Preconditions.checkArgument(mailboxId != Mailbox.NO_MAILBOX, "Must specify a mailbox");
112 return new MessageListContext(accountId, mailboxId, null);
ControllerResultUiThreadWrapper.java 100 final long mailboxId, final int progress, final long tag) {
104 mWrappee.serviceCheckMailCallback(result, accountId, mailboxId, progress, tag);
111 final long mailboxId, final int progress, final int numNewMessages,
116 mWrappee.updateMailboxCallback(result, accountId, mailboxId, progress,
  /packages/apps/Email/tests/src/com/android/email/activity/
MessagesAdapterTests.java 60 private MessagesAdapter.MessagesCursor getLoaderResult(long accountId, long mailboxId) {
64 MessageListContext.forMailbox(accountId, mailboxId)));
72 final long mailboxId = createMailbox(accountId, Mailbox.TYPE_MAIL);
74 MessagesAdapter.MessagesCursor result = getLoaderResult(accountId, mailboxId);
77 assertEquals(mailboxId, result.mMailbox.mId);
87 final long mailboxId = createMailbox(accountId, Mailbox.TYPE_MAIL);
89 MessagesAdapter.MessagesCursor result = getLoaderResult(accountId, mailboxId);
92 assertEquals(mailboxId, result.mMailbox.mId);
102 final long mailboxId = createMailbox(accountId, Mailbox.TYPE_DRAFTS);
104 MessagesAdapter.MessagesCursor result = getLoaderResult(accountId, mailboxId);
    [all...]
  /packages/apps/Email/emailcommon/src/com/android/emailcommon/service/
IEmailServiceCallback.aidl 46 * mailboxId = the mailbox being synced
50 void syncMailboxStatus(long mailboxId, int statusCode, int progress);
IEmailService.aidl 28 oneway void startSync(long mailboxId, boolean userRequest);
29 oneway void stopSync(long mailboxId);
  /packages/apps/Email/src/com/android/email/activity/
MoveMessageToDialog.java 172 final long mailboxId = mAdapter.getItemId(position);
174 ((Callback) getTargetFragment()).onMoveToMailboxSelected(mailboxId, mMessageIds);
278 long mailboxId = Mailbox.NO_MAILBOX;
297 mailboxId = message.mMailboxKey;
299 if (!Mailbox.restoreMailboxWithId(c, mailboxId).canHaveMessagesMoved()) {
302 mailboxId = Mailbox.NO_MAILBOX;
307 if (message.mAccountKey != accountId || message.mMailboxKey != mailboxId) {
310 mailboxId = Mailbox.NO_MAILBOX;
315 return new IdContainer(accountId, mailboxId);
340 private IdContainer(long accountId, long mailboxId) {
    [all...]
MailboxFinder.java 66 public void onMailboxFound(long accountId, long mailboxId);
181 long mailboxId = Mailbox.findMailboxOfType(mContext, mAccountId, mMailboxType);
182 if (mailboxId != Mailbox.NO_MAILBOX) {
184 return mailboxId; // Found
203 protected void onSuccess(Long mailboxId) {
231 Log.d(Logging.LOG_TAG, "MailboxFinder: mailbox found: id=" + mailboxId);
234 mCallback.onMailboxFound(mAccountId, mailboxId);
MailboxMoveToAdapter.java 117 static Loader<Cursor> createLoader(Context context, long accountId, long mailboxId) {
120 + ", mailboxId=" + mailboxId);
122 return new MailboxMoveToLoader(context, accountId, mailboxId);
132 final long mailboxId = cursor.getLong(COLUMN_ID);
133 return FolderProperties.getInstance(context).getDisplayName(type, mailboxId,
140 public MailboxMoveToLoader(Context context, long accountId, long mailboxId) {
143 new String[] { Long.toString(accountId), Long.toString(mailboxId) }, null);
ShortcutPicker.java 90 public void onSelected(Account account, long mailboxId) {
93 (Mailbox.getMailboxType(this, mailboxId) != Mailbox.TYPE_INBOX)) {
94 shortcutName = Mailbox.getDisplayName(this, mailboxId);
98 setupShortcut(account, mailboxId, shortcutName);
135 private void setupShortcut(Account account, long mailboxId, String shortcutName) {
146 myActivity, account.mId, mailboxId, Message.NO_MESSAGE);
149 shortcutIntent = Welcome.createAccountShortcutIntent(myActivity, uuid, mailboxId);
RecentMailboxManager.java 96 public EmailAsyncTask<Void, Void, Void> touch(long accountId, long mailboxId) {
97 return fireAndForget(accountId, mailboxId, sClock.getTime());
131 final long accountId, final long mailboxId, final long time) {
136 touchMailboxSynchronous(accountId, mailboxId, time);
141 private void touchMailboxSynchronous(long accountId, long mailboxId, long time) {
145 ContentUris.withAppendedId(Mailbox.CONTENT_URI, mailboxId),
EmailActivity.java 98 * @param mailboxId must not be -1. Magic mailboxes IDs (such as
102 long mailboxId) {
103 if (accountId == -1 || mailboxId == -1) {
108 i.putExtra(EXTRA_MAILBOX_ID, mailboxId);
116 * @param mailboxId must not be -1. Magic mailboxes IDs (such as
121 long mailboxId, long messageId) {
122 if (accountId == -1 || mailboxId == -1 || messageId == -1) {
127 i.putExtra(EXTRA_MAILBOX_ID, mailboxId);
136 * @param mailboxId ID of the mailbox to search, or {@link Mailbox#NO_MAILBOX} to perform
141 long mailboxId, String query)
    [all...]
  /packages/apps/Email/src/com/android/email/widget/
WidgetConfiguration.java 101 public void onSelected(Account account, long mailboxId) {
102 setupWidget(account, mailboxId);
115 private void setupWidget(Account account, long mailboxId) {
117 WidgetManager.saveWidgetPrefs(this, mAppWidgetId, account.mId, mailboxId);
  /packages/apps/Exchange/tests/src/com/android/exchange/provider/
EmailContentSetupUtils.java 86 public static Message setupMessage(String name, long accountId, long mailboxId,
89 return setupMessage(name, accountId, mailboxId, addBody, saveIt, context, true, true);
95 public static Message setupMessage(String name, long accountId, long mailboxId,
100 message.mMailboxKey = mailboxId;
  /packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/
Mailbox.java 354 Long mailboxId = c.getLong(ID_PROJECTION_COLUMN);
355 if (mailboxId != null
356 && mailboxId != 0L
357 && mailboxId != NO_MAILBOX) {
358 return mailboxId;
375 long mailboxId = findMailboxOfType(context, accountId, type);
376 if (mailboxId != Mailbox.NO_MAILBOX) {
377 return Mailbox.restoreMailboxWithId(context, mailboxId);
412 long mailboxId = Message.getKeyColumnLong(context, messageId,
414 if (mailboxId != -1)
    [all...]
  /packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
IntentUtilities.java 62 public static void setMailboxId(Uri.Builder b, long mailboxId) {
63 if (mailboxId != -1) {
64 b.appendQueryParameter(MAILBOX_ID_PARAM, Long.toString(mailboxId));
  /packages/apps/Email/src/com/android/email/service/
PopImapSyncAdapterService.java 97 long mailboxId = Mailbox.findMailboxOfType(context, accountId,
99 if (mailboxId > 0) {
101 Controller.getInstance(context).updateMailbox(accountId, mailboxId, false);

Completed in 5398 milliseconds

1 2 3