Searched defs:mailboxId (Results 26 - 50 of 54) sorted by relevance

123

/packages/apps/Email/src/com/android/email/activity/setup/
H A DMailboxSettings.java79 public static final void start(Activity parent, long mailboxId) { argument
81 i.putExtra(EXTRA_MAILBOX_ID, mailboxId);
89 final long mailboxId = getIntent().getLongExtra(EXTRA_MAILBOX_ID, Mailbox.NO_MAILBOX);
90 if (mailboxId == Mailbox.NO_MAILBOX) {
112 new LoadMailboxTask(mailboxId).executeParallel((Void[]) null);
155 public LoadMailboxTask(long mailboxId) { argument
157 mMailboxId = mailboxId;
/packages/apps/Email/src/com/android/email/service/
H A DEmailServiceUtils.java127 public void startSync(long mailboxId, boolean userRequest) throws RemoteException { argument
130 public void stopSync(long mailboxId) throws RemoteException { argument
H A DMailService.java620 long mailboxId, int progress, int numNewMessages,
628 if (mailboxId == inboxId) {
640 long mailboxId, int progress, long tag) {
619 updateMailboxCallback(MessagingException result, long accountId, long mailboxId, int progress, int numNewMessages, ArrayList<Long> addedMessages) argument
639 serviceCheckMailCallback(MessagingException result, long accountId, long mailboxId, int progress, long tag) argument
H A DAttachmentDownloadService.java690 public void syncMailboxStatus(long mailboxId, int statusCode, int progress) argument
/packages/apps/Email/tests/src/com/android/email/
H A DRefreshManagerTest.java450 public void updateMailbox(long accountId, long mailboxId, boolean userRequest) { argument
453 mMailboxId = mailboxId;
463 public void loadMoreMessages(long mailboxId) { argument
466 mMailboxId = mailboxId;
495 public void onRefreshStatusChanged(long accountId, long mailboxId) { argument
497 mMailboxId = mailboxId;
502 public void onMessagingError(long accountId, long mailboxId, String message) { argument
504 mMailboxId = mailboxId;
/packages/apps/Email/tests/src/com/android/email/activity/
H A DMailboxFinderTest.java187 final long mailboxId = createMailbox(accountId, Mailbox.TYPE_INBOX);
199 assertEquals(mailboxId, mCallback.mMailboxId);
267 final long mailboxId = createMailbox(accountId, Mailbox.TYPE_INBOX);
288 assertEquals(mailboxId, mCallback.mMailboxId);
354 final long mailboxId = createMailbox(accountId, Mailbox.TYPE_DRAFTS);
442 public void onMailboxFound(long accountId, long mailboxId) { argument
445 mMailboxId = mailboxId;
H A DMessageOrderManagerTest.java311 public MessageOrderManagerForTest(Context context, long mailboxId, Callback callback) { argument
312 super(context, MessageListContext.forMailbox(1, mailboxId),
/packages/apps/Email/tests/src/com/android/email/provider/
H A DProviderTestUtils.java157 public static Message setupMessage(String name, long accountId, long mailboxId, argument
160 return setupMessage(name, accountId, mailboxId, addBody, saveIt, context, true, true);
166 public static Message setupMessage(String name, long accountId, long mailboxId, argument
184 message.mMailboxKey = mailboxId;
193 message.mMeetingInfo = "123" + accountId + mailboxId + name.length();
H A DProviderTests.java156 private int getMessageCount(long mailboxId) { argument
158 ContentUris.withAppendedId(Mailbox.CONTENT_URI, mailboxId),
384 private int getUnreadCount(long mailboxId) { argument
392 new String[] { String.valueOf(mailboxId) },
1606 public static Message setupUnreadMessage(String name, long accountId, long mailboxId, argument
1609 ProviderTestUtils.setupMessage(name, accountId, mailboxId, addBody, false, context);
/packages/apps/Email/tests/src/com/android/emailcommon/utility/
H A DUtilityUnitTests.java311 private long getLastUpdateKey(Context mockContext, long mailboxId) { argument
314 new String[] { Long.toString(mailboxId) }, null, 0, -1L);
/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 DNotificationController.java412 Notification createNewMessageNotification(long accountId, long mailboxId, long messageId, argument
444 intent = Welcome.createOpenMessageIntent(mContext, accountId, mailboxId, messageId);
629 Handler handler, Context context, long mailboxId, long accountId) {
632 mMailboxId = mailboxId;
628 MessageContentObserver( Handler handler, Context context, long mailboxId, long accountId) argument
H A DMessagingController.java289 long mailboxId = localFolderCursor.getLong(MAILBOX_COLUMN_ID);
302 mContext, accountId, mailboxId);
306 Mailbox.CONTENT_URI, mailboxId);
1232 long mailboxId = mailboxes.getLong(Mailbox.ID_PROJECTION_COLUMN);
1233 String[] mailboxKeyArgs = new String[] { Long.toString(mailboxId) };
1253 mailbox = Mailbox.restoreMailboxWithId(mContext, mailboxId);
1282 mailbox = Mailbox.restoreMailboxWithId(mContext, mailboxId);
1909 public void loadAttachment(final long accountId, final long messageId, final long mailboxId, argument
1933 Mailbox mailbox = Mailbox.restoreMailboxWithId(mContext, mailboxId);
/packages/apps/Email/src/com/android/email/activity/
H A DEmailActivity.java98 * @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, Strin
101 createOpenMailboxIntent(Activity fromActivity, long accountId, long mailboxId) argument
120 createOpenMessageIntent(Activity fromActivity, long accountId, long mailboxId, long messageId) argument
140 createSearchIntent(Activity fromActivity, long accountId, long mailboxId, String query) argument
360 serviceCheckMailCallback( MessagingException result, long accountId, long mailboxId, int progress, long tag) argument
366 updateMailboxCallback(MessagingException result, long accountId, long mailboxId, int progress, int numNewMessages, ArrayList<Long> addedMessages) argument
[all...]
H A DShortcutPickerFragment.java60 public void onSelected(Account account, long mailboxId); argument
68 @Override public void onSelected(Account account, long mailboxId){ getActivity().finish(); }
368 long mailboxId = cursor.getLong(cursor.getColumnIndex(REAL_ID));
369 mCallback.onSelected(mAccount, mailboxId);
408 long mailboxId = data.getLong(data.getColumnIndex(REAL_ID));
409 mCallback.onSelected(mAccount, mailboxId);
H A DUIControllerOnePane.java67 public void onMailboxSelected(long accountId, long mailboxId, boolean nestedNavigation) { argument
71 openMailbox(accountId, mailboxId);
204 public void onMailboxSelected(long accountId, long mailboxId) { argument
205 if (mailboxId == Mailbox.NO_MAILBOX) {
208 openMailbox(accountId, mailboxId);
H A DAccountSelectorAdapter.java106 public static Loader<Cursor> createLoader(Context context, long accountId, long mailboxId) { argument
107 return new AccountsLoader(context, accountId, mailboxId, UiUtilities.useTwoPane(context));
309 AccountsLoader(Context context, long accountId, long mailboxId, boolean useTwoPane) { argument
315 mMailboxId = mailboxId;
510 void setAccountMailboxInfo(Context context, long accountId, long mailboxId) { argument
512 mMailboxId = mailboxId;
519 if (mailboxId != Mailbox.NO_MAILBOX) {
520 setCombinedMailboxInfo(context, mailboxId);
543 setCombinedMailboxInfo(context, mailboxId);
550 ContentUris.withAppendedId(Mailbox.CONTENT_URI, mailboxId),
563 setCombinedMailboxInfo(Context context, long mailboxId) argument
[all...]
H A DActionBarController.java168 * @param mailboxId The ID of the selected mailbox, or {@link Mailbox#NO_MAILBOX} if the
171 public void onMailboxSelected(long accountId, long mailboxId); argument
368 final long mailboxId = mCallback.getMailboxId();
370 || (mLastMailboxIdForDirtyCheck != mailboxId)) {
372 mLastMailboxIdForDirtyCheck = mailboxId;
375 loadAccountMailboxInfo(accountId, mailboxId);
385 private void loadAccountMailboxInfo(final long accountId, final long mailboxId) { argument
390 return AccountSelectorAdapter.createLoader(mContext, accountId, mailboxId);
H A DMailboxFragmentAdapter.java475 private static void addMailboxRow(MatrixCursor cursor, long mailboxId, String displayName, argument
478 long listId = mailboxId;
479 if (mailboxId < 0) {
480 listId = Long.MAX_VALUE + mailboxId; // IDs for the list view must be positive
484 row.add(mailboxId);
574 for (long mailboxId : recentList) {
575 final Mailbox mailbox = Mailbox.restoreMailboxWithId(mContext, mailboxId);
578 ContentUris.withAppendedId(Mailbox.CONTENT_URI, mailboxId),
581 ContentUris.withAppendedId(Mailbox.CONTENT_URI, mailboxId),
583 addMailboxRow(recentCursor, mailboxId, mailbo
[all...]
H A DUIControllerTwoPane.java88 public void onMailboxSelected(long accountId, long mailboxId, boolean nestedNavigation) { argument
89 setListContext(MessageListContext.forMailbox(accountId, mailboxId));
362 long mailboxId = mListContext.getMailboxId();
363 if ((getUIAccountId() != accountId) || (getMailboxListMailboxId() != mailboxId)) {
367 MailboxListFragment.newInstance(accountId, mailboxId, enableHighlight));
547 long mailboxId) {
548 this(tracker, context, accountId, mailboxId, Clock.INSTANCE,
554 long mailboxId, Clock clock, RefreshManager refreshManager) {
560 mMailboxId = mailboxId;
656 public void onMailboxSelected(long accountId, long mailboxId) { argument
546 RefreshTask(EmailAsyncTask.Tracker tracker, Context context, long accountId, long mailboxId) argument
553 RefreshTask(EmailAsyncTask.Tracker tracker, Context context, long accountId, long mailboxId, Clock clock, RefreshManager refreshManager) argument
[all...]
H A DMailboxListFragment.java80 * - Initialized using the {@code mailboxId} parameter for {@link #newInstance}
87 * - Initialized using the {@code mailboxId} parameter for {@link #newInstance}
236 * @param mailboxId
242 public void onMailboxSelected(long accountId, long mailboxId, boolean nestedNavigation); argument
255 @Override public void onMailboxSelected(long accountId, long mailboxId, argument
731 * @param mailboxId The ID of the mailbox to highlight.
733 public void setHighlightedMailbox(long mailboxId) { argument
735 Log.d(Logging.LOG_TAG, this + " setHighlightedMailbox mailbox=" + mailboxId);
740 if (mHighlightedMailboxId == mailboxId) {
746 mNextHighlightedMailboxId = mailboxId;
[all...]
H A DUIControllerBase.java116 public void onMessagingError(final long accountId, long mailboxId, final String message) { argument
121 public void onRefreshStatusChanged(long accountId, long mailboxId) { argument
592 protected final void openMailbox(long accountId, long mailboxId) { argument
593 open(MessageListContext.forMailbox(accountId, mailboxId), Message.NO_MESSAGE);
739 final long mailboxId = searchableMailbox.mId;
743 "Submitting search: [" + queryTerm + "] in mailboxId=" + mailboxId);
747 mActivity, accountId, mailboxId, queryTerm));
840 final long mailboxId = getMailboxSettingsMailboxId();
841 if (mailboxId !
[all...]
/packages/apps/Email/src/com/android/email/widget/
H A DEmailWidget.java73 * arguments (e.g. messageId, mailboxId, etc.) in an Uri which is added to the Intent via
161 long mailboxId = WidgetManager.loadMailboxIdPref(mContext, mWidgetId);
165 mailboxId = Mailbox.QUERY_ALL_INBOXES;
168 mLoader.load(mAccountId, mailboxId);
260 private static void openMessage(final Context context, final long mailboxId, argument
265 Mailbox mailbox = Mailbox.restoreMailboxWithId(context, mailboxId);
268 mailboxId, messageId));
470 String mailboxId = mCursor.getString(EmailWidgetLoader.WIDGET_COLUMN_MAILBOX_KEY);
472 messageId, mailboxId);
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/
H A DMailbox.java354 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 !
423 getMailboxType(Context context, long mailboxId) argument
432 getDisplayName(Context context, long mailboxId) argument
443 isRefreshable(Context context, long mailboxId) argument
[all...]
/packages/apps/Exchange/src/com/android/exchange/
H A DEasSyncService.java1892 private void pushFallback(long mailboxId) { argument
1893 Mailbox mailbox = Mailbox.restoreMailboxWithId(mContext, mailboxId);
1903 mContentResolver.update(ContentUris.withAppendedId(Mailbox.CONTENT_URI, mailboxId),
1962 long mailboxId = c.getLong(Mailbox.CONTENT_ID_COLUMN);
1963 int pingStatus = ExchangeService.pingStatus(mailboxId);

Completed in 288 milliseconds

123