Searched defs:mailboxId (Results 1 - 25 of 35) sorted by relevance

12

/packages/apps/Email/emailsync/src/com/android/emailsync/
H A DMessageMoveRequest.java27 public MessageMoveRequest(long messageId, long mailboxId) { argument
29 mMailboxId = mailboxId;
/packages/apps/Exchange/src/com/android/exchange/
H A DMessageMoveRequest.java27 public MessageMoveRequest(long messageId, long mailboxId) { argument
29 mMailboxId = mailboxId;
H A DEasAccountService.java451 private void pushFallback(long mailboxId) { argument
452 Mailbox mailbox = Mailbox.restoreMailboxWithId(mContext, mailboxId);
462 mContentResolver.update(ContentUris.withAppendedId(Mailbox.CONTENT_URI, mailboxId),
547 long mailboxId = c.getLong(Mailbox.CONTENT_ID_COLUMN);
567 pingStatus = ExchangeService.pingStatus(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/src/com/android/email/provider/
H A DWidgetProvider.java93 long mailboxId = loadMailboxIdPref(context, widgetId);
95 if (accountId == Account.NO_ACCOUNT || mailboxId == Mailbox.NO_MAILBOX) {
97 " mailboxId: %d widgetId %d", accountId, mailboxId, widgetId);
102 mailboxId = migrateLegacyWidgetMailboxId(mailboxId, accountId);
106 final Folder uiFolder = EmailProvider.getFolder(context, mailboxId);
133 private static long migrateLegacyWidgetMailboxId(long mailboxId, long accountId) { argument
134 if (mailboxId == Mailbox.QUERY_ALL_INBOXES) {
136 } else if (mailboxId
[all...]
H A DRefreshStatusMonitor.java65 public void monitorRefreshStatus(long mailboxId, Callback callback) { argument
67 if (!mMailboxSync.containsKey(mailboxId))
68 mMailboxSync.put(mailboxId, false);
70 new RemoveRefreshStatusRunnable(mailboxId, callback),
75 public void setSyncStarted(long mailboxId) { argument
78 if (mMailboxSync.containsKey(mailboxId)) {
79 LogUtils.d(TAG, "RefreshStatusMonitor: setSyncStarted: mailboxId=%d", mailboxId);
80 mMailboxSync.put(mailboxId, true);
99 RemoveRefreshStatusRunnable(long mailboxId, Callbac argument
156 onRefreshCompleted(long mailboxId, int result) argument
157 onTimeout(long mailboxId) argument
[all...]
/packages/apps/Email/src/com/android/email/service/
H A DPopImapSyncAdapterService.java101 private static void sync(final Context context, final long mailboxId, argument
105 Mailbox mailbox = Mailbox.restoreMailboxWithId(context, mailboxId);
121 Uri mailboxUri = ContentUris.withAppendedId(Mailbox.CONTENT_URI, mailboxId);
133 EmailServiceStatus.syncMailboxStatus(resolver, extras, mailboxId,
143 EmailServiceStatus.syncMailboxStatus(resolver, extras, mailboxId, status, 0,
152 EmailServiceStatus.syncMailboxStatus(resolver, extras, mailboxId, cause, 0,
157 EmailServiceStatus.syncMailboxStatus(resolver, extras, mailboxId, cause, 0,
163 EmailServiceStatus.syncMailboxStatus(resolver, extras, mailboxId, cause, 0,
202 Long mailboxId = updatesCursor.getLong(0);
203 if (!mailboxesToUpdate.contains(mailboxId)) {
[all...]
H A DEmailServiceStub.java104 public void startSync(long mailboxId, boolean userRequest, int deltaMessageCount) argument
106 final Mailbox mailbox = Mailbox.restoreMailboxWithId(mContext, mailboxId);
114 final Bundle extras = Mailbox.createSyncBundle(mailboxId);
129 public void stopSync(long mailboxId) throws RemoteException { argument
391 final long mailboxId = localFolderCursor.getLong(MAILBOX_COLUMN_ID);
404 mContext, accountId, mailboxId);
408 Mailbox.CONTENT_URI, mailboxId);
/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...]
H A DUIControllerTwoPaneRefreshTaskTest.java179 public boolean isMessageListRefreshing(long mailboxId) { argument
180 Assert.assertEquals(mExpectedMailboxId, mailboxId);
185 public long getLastMessageListRefreshTime(long mailboxId) { argument
186 Assert.assertEquals(mExpectedMailboxId, mailboxId);
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/src/com/android/email/
H A DLegacyConversions.java79 long accountId, long mailboxId) throws MessagingException {
134 localMessage.mMailboxKey = mailboxId;
78 updateMessageFields(EmailContent.Message localMessage, Message message, long accountId, long mailboxId) argument
/packages/apps/Email/src/com/android/email2/ui/
H A DMailActivityEmail.java177 final long mailboxId = IntentUtilities.getMailboxIdFromIntent(intent);
178 final Mailbox mailbox = Mailbox.restoreMailboxWithId(this, mailboxId);
184 final Intent viewIntent = getViewIntent(mailbox.mAccountKey, mailboxId);
272 private Intent getViewIntent(long accountId, long mailboxId) { argument
296 EmailProvider.uiUri("uifolder", mailboxId),
301 accountId, mailboxId);
311 accountId, mailboxId);
/packages/apps/Email/tests/src/com/android/email/provider/
H A DAttachmentProviderTests.java653 * @param mailboxId the mailbox to populate
656 private void populateAccountMailbox(Account account, long mailboxId, int numAttachments) argument
662 "msg1a", accountId, mailboxId, false, true, mMockContext);
664 "msg1b", accountId, mailboxId, false, true, mMockContext);
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();
/packages/apps/Email/tests/src/com/android/emailcommon/provider/
H A DMailboxTests.java71 private int getMessageCount(long mailboxId) { argument
73 ContentUris.withAppendedId(Mailbox.CONTENT_URI, mailboxId),
/packages/apps/UnifiedEmail/src/com/android/emailcommon/service/
H A DSearchParams.java59 public SearchParams(long mailboxId, String filter) { argument
60 mMailboxId = mailboxId;
66 public SearchParams(long mailboxId, String filter, long searchMailboxId) { argument
67 mMailboxId = mailboxId;
74 public SearchParams(long mailboxId, String filter, long searchMailboxId, Date startDate, argument
76 mMailboxId = mailboxId;
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/
H A DMessageStateChange.java72 final long mailboxId) {
78 mMailboxId = mailboxId;
152 final long mailboxId = MessageMove.getLastSyncedMailboxForMessage(cr,
154 if (mailboxId == Mailbox.NO_MAILBOX) {
159 mailboxId));
69 MessageStateChange(final long messageKey,final String serverId, final long id, final int oldFlagRead, final int newFlagRead, final int oldFlagFavorite, final int newFlagFavorite, final long mailboxId) argument
/packages/apps/Email/emailcommon/src/com/android/emailcommon/service/
H A DEmailServiceStatus.java119 * @param mailboxId The mailbox whose status is changing.
124 final long mailboxId, final int statusCode, final int progress, int syncResult) {
125 syncStatus(cr, syncExtras, SYNC_STATUS_TYPE_MAILBOX, mailboxId, statusCode, progress,
123 syncMailboxStatus(final ContentResolver cr, final Bundle syncExtras, final long mailboxId, final int statusCode, final int progress, int syncResult) argument
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
H A DAttachmentUtilities.java339 * @param mailboxId the mailbox for the messages
342 long mailboxId) {
345 new String[] { Long.toString(mailboxId) }, null);
341 deleteAllMailboxAttachmentFiles(Context context, long accountId, long mailboxId) argument
H A DIntentUtilities.java75 public static void setMailboxId(Uri.Builder b, long mailboxId) { argument
76 if (mailboxId != -1) {
77 b.appendQueryParameter(MAILBOX_ID_PARAM, Long.toString(mailboxId));
/packages/apps/Email/src/com/android/email/activity/setup/
H A DMailboxSettings.java88 public static final void start(Activity parent, long mailboxId) { argument
90 i.putExtra(EXTRA_MAILBOX_ID, mailboxId);
98 final long mailboxId = getIntent().getLongExtra(EXTRA_MAILBOX_ID, Mailbox.NO_MAILBOX);
99 if (mailboxId == Mailbox.NO_MAILBOX) {
120 new LoadMailboxTask(mailboxId).executeParallel((Void[]) null);
162 public LoadMailboxTask(long mailboxId) { argument
164 mMailboxId = mailboxId;
/packages/apps/Email/tests/src/com/android/email/
H A DRefreshManagerTest.java449 public void updateMailbox(long accountId, long mailboxId, boolean userRequest) { argument
452 mMailboxId = mailboxId;
462 public void loadMoreMessages(long mailboxId) { argument
465 mMailboxId = mailboxId;
494 public void onRefreshStatusChanged(long accountId, long mailboxId) { argument
496 mMailboxId = mailboxId;
501 public void onMessagingError(long accountId, long mailboxId, String message) { argument
503 mMailboxId = mailboxId;
/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);

Completed in 742 milliseconds

12