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

123

/packages/apps/Exchange/exchange2/src/com/android/exchange/
H A DMailboxAlarmReceiver.java32 long mailboxId = intent.getLongExtra("mailbox", ExchangeService.EXTRA_MAILBOX_ID);
34 if (mailboxId == ExchangeService.EXCHANGE_SERVICE_MAILBOX_ID) {
37 ExchangeService.alert(context, mailboxId);
H A DMessageMoveRequest.java25 public MessageMoveRequest(long messageId, long mailboxId) { argument
27 mMailboxId = mailboxId;
H A DEmailSyncAlarmReceiver.java80 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);
H A 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, EmailServiceStatu
2113 releaseMailbox(long mailboxId) argument
2385 serviceRequest(long mailboxId, int reason) argument
2398 serviceRequest(long mailboxId, long ms, int reason) argument
2416 serviceRequestImmediate(long mailboxId) argument
2471 pingStatus(long mailboxId) argument
2490 startManualSync(long mailboxId, int reason, Request req) argument
2512 stopManualSync(long mailboxId) argument
2561 removeFromSyncErrorMap(long mailboxId) argument
2568 isRunningInServiceThread(long mailboxId) argument
[all...]
/packages/apps/Email/tests/src/com/android/email/
H A DMessageListContextTests.java28 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/
H A DRefreshManager.java71 * @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); argument
80 * @param mailboxId ID of the mailbox, or -1 if unknown.
83 public void onMessagingError(long accountId, long mailboxId, String message); argument
225 public boolean isMailboxStale(long mailboxId) { argument
226 return mClock.getTime() >= (mMessageListStatus.get(mailboxId).getLastRefreshTime()
238 public boolean refreshMessageList(long accountId, long mailboxId, boolean userRequest) { argument
239 return refreshMessageList(accountId, mailboxId, false, userRequest);
245 public boolean loadMoreMessages(long accountId, long mailboxId) { argument
246 return refreshMessageList(accountId, mailboxId, tru
249 refreshMessageList(long accountId, long mailboxId, boolean loadMoreMessages, boolean userRequest) argument
306 getLastMessageListRefreshTime(long mailboxId) argument
314 isMessageListRefreshing(long mailboxId) argument
330 notifyRefreshStatusChanged(long accountId, long mailboxId) argument
336 reportError(long accountId, long mailboxId, String errorMessage) argument
351 getMessageListStatusForTest(long mailboxId) argument
388 updateMailboxCallback(MessagingException exception, long accountId, long mailboxId, int progress, int dontUseNumNewMessages, ArrayList<Long> addedMessages) argument
407 serviceCheckMailCallback( MessagingException exception, long accountId, long mailboxId, int progress, long tag) argument
417 updateMailboxCallbackInternal(MessagingException exception, long accountId, long mailboxId, int progress, int dontUseNumNewMessages) argument
[all...]
H A DFolderProperties.java76 public String getCombinedMailboxName(long mailboxId) { argument
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) { argument
100 String name = getCombinedMailboxName(mailboxId);
114 * @param mailboxId ID of a mailbox.
117 public String getDisplayName(int mailboxType, long mailboxId, String originalDisplayName) { argument
118 String name = getDisplayName(mailboxType, mailboxId);
185 getMessageCountForCombinedMailbox(Context context, long mailboxId) argument
206 getIcon(int type, long mailboxId, int mailboxFlags) argument
[all...]
H A DMessagingListener.java45 public void synchronizeMailboxStarted(long accountId, long mailboxId) { argument
53 * @param mailboxId The mailbox that was synchronized
59 public void synchronizeMailboxFinished(long accountId, long mailboxId, argument
63 public void synchronizeMailboxFailed(long accountId, long mailboxId, Exception e) { argument
78 public void checkMailFinished(Context context, long accountId, long mailboxId, long tag) { argument
90 public void messageUidChanged(long accountId, long mailboxId, String oldUid, String newUid) { argument
H A DGroupMessagingListener.java76 synchronized public void synchronizeMailboxStarted(long accountId, long mailboxId) { argument
78 l.synchronizeMailboxStarted(accountId, mailboxId);
83 synchronized public void synchronizeMailboxFinished(long accountId, long mailboxId, argument
86 l.synchronizeMailboxFinished(accountId, mailboxId,
92 synchronized public void synchronizeMailboxFailed(long accountId, long mailboxId, Exception e) { argument
94 l.synchronizeMailboxFailed(accountId, mailboxId, e);
157 synchronized public void messageUidChanged(long accountId, long mailboxId, argument
160 l.messageUidChanged(accountId, mailboxId, oldUid, newUid);
H A DMessageListContext.java71 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) { argument
111 Preconditions.checkArgument(mailboxId != Mailbox.NO_MAILBOX, "Must specify a mailbox");
112 return new MessageListContext(accountId, mailboxId, null);
H A DControllerResultUiThreadWrapper.java100 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,
99 serviceCheckMailCallback(final MessagingException result, final long accountId, final long mailboxId, final int progress, final long tag) argument
110 updateMailboxCallback(final MessagingException result, final long accountId, final long mailboxId, final int progress, final int numNewMessages, final ArrayList<Long> addedMessages) argument
/packages/apps/Email/tests/src/com/android/email/activity/
H A DMessagesAdapterTests.java60 private MessagesAdapter.MessagesCursor getLoaderResult(long accountId, long mailboxId) { argument
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/
H A DIEmailServiceCallback.aidl46 * mailboxId = the mailbox being synced
50 void syncMailboxStatus(long mailboxId, int statusCode, int progress);
H A DSearchParams.java56 public SearchParams(long mailboxId, String filter) { argument
57 mMailboxId = mailboxId;
61 public SearchParams(long mailboxId, String filter, long searchMailboxId) { argument
62 mMailboxId = mailboxId;
H A DIEmailService.aidl28 oneway void startSync(long mailboxId, boolean userRequest);
29 oneway void stopSync(long mailboxId);
/packages/apps/Email/src/com/android/email/activity/
H A DMoveMessageToDialog.java172 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) { argument
[all...]
H A DMailboxFinder.java66 public void onMailboxFound(long accountId, long mailboxId); argument
181 long mailboxId = Mailbox.findMailboxOfType(mContext, mAccountId, mMailboxType);
182 if (mailboxId != Mailbox.NO_MAILBOX) {
184 return mailboxId; // Found
203 protected void onSuccess(Long mailboxId) { argument
231 Log.d(Logging.LOG_TAG, "MailboxFinder: mailbox found: id=" + mailboxId);
234 mCallback.onMailboxFound(mAccountId, mailboxId);
H A DMailboxMoveToAdapter.java117 static Loader<Cursor> createLoader(Context context, long accountId, long mailboxId) { argument
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) { argument
143 new String[] { Long.toString(accountId), Long.toString(mailboxId) }, null);
H A DShortcutPicker.java90 public void onSelected(Account account, long mailboxId) { argument
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) { argument
146 myActivity, account.mId, mailboxId, Message.NO_MESSAGE);
149 shortcutIntent = Welcome.createAccountShortcutIntent(myActivity, uuid, mailboxId);
H A DRecentMailboxManager.java96 public EmailAsyncTask<Void, Void, Void> touch(long accountId, long mailboxId) { argument
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) { argument
145 ContentUris.withAppendedId(Mailbox.CONTENT_URI, mailboxId),
130 fireAndForget( final long accountId, final long mailboxId, final long time) argument
H A DEmailActivity.java99 * @param mailboxId must not be -1. Magic mailboxes IDs (such as
103 long mailboxId) {
104 if (accountId == -1 || mailboxId == -1) {
109 i.putExtra(EXTRA_MAILBOX_ID, mailboxId);
117 * @param mailboxId must not be -1. Magic mailboxes IDs (such as
122 long mailboxId, long messageId) {
123 if (accountId == -1 || mailboxId == -1 || messageId == -1) {
128 i.putExtra(EXTRA_MAILBOX_ID, mailboxId);
137 * @param mailboxId ID of the mailbox to search, or {@link Mailbox#NO_MAILBOX} to perform
142 long mailboxId, Strin
102 createOpenMailboxIntent(Activity fromActivity, long accountId, long mailboxId) argument
121 createOpenMessageIntent(Activity fromActivity, long accountId, long mailboxId, long messageId) argument
141 createSearchIntent(Activity fromActivity, long accountId, long mailboxId, String query) argument
370 serviceCheckMailCallback( MessagingException result, long accountId, long mailboxId, int progress, long tag) argument
376 updateMailboxCallback(MessagingException result, long accountId, long mailboxId, int progress, int numNewMessages, ArrayList<Long> addedMessages) argument
[all...]
/packages/apps/Exchange/exchange2/tests/src/com/android/exchange/provider/
H A DEmailContentSetupUtils.java86 public static Message setupMessage(String name, long accountId, long mailboxId, argument
89 return setupMessage(name, accountId, mailboxId, addBody, saveIt, context, true, true);
95 public static Message setupMessage(String name, long accountId, long mailboxId, argument
100 message.mMailboxKey = mailboxId;
/packages/apps/Exchange/tests/src/com/android/exchange/provider/
H A DEmailContentSetupUtils.java86 public static Message setupMessage(String name, long accountId, long mailboxId, argument
89 return setupMessage(name, accountId, mailboxId, addBody, saveIt, context, true, true);
95 public static Message setupMessage(String name, long accountId, long mailboxId, argument
100 message.mMailboxKey = mailboxId;
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/
H A DMailbox.java384 Long mailboxId = c.getLong(ID_PROJECTION_COLUMN);
385 if (mailboxId != null
386 && mailboxId != 0L
387 && mailboxId != NO_MAILBOX) {
388 return mailboxId;
405 long mailboxId = findMailboxOfType(context, accountId, type);
406 if (mailboxId != Mailbox.NO_MAILBOX) {
407 return Mailbox.restoreMailboxWithId(context, mailboxId);
442 long mailboxId = Message.getKeyColumnLong(context, messageId,
444 if (mailboxId !
453 getMailboxType(Context context, long mailboxId) argument
462 getDisplayName(Context context, long mailboxId) argument
473 isRefreshable(Context context, long mailboxId) argument
[all...]
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
H A DIntentUtilities.java62 public static void setMailboxId(Uri.Builder b, long mailboxId) { argument
63 if (mailboxId != -1) {
64 b.appendQueryParameter(MAILBOX_ID_PARAM, Long.toString(mailboxId));

Completed in 538 milliseconds

123