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

/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 DEmailConversationCursor.java65 final Folder folder, final long mailboxId) {
67 mMailboxId = mailboxId;
70 Mailbox mailbox = Mailbox.restoreMailboxWithId(context, mailboxId);
64 EmailConversationCursor(final Context context, final Cursor cursor, final Folder folder, final long mailboxId) argument
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...]
H A DEmailProvider.java340 private static final String MESSAGE_URI_PARAMETER_MAILBOX_ID = "mailboxId";
583 long mailboxId = c.getLong(ORPHANS_MAILBOX_KEY);
585 if (notFoundMailboxes.contains(mailboxId)) {
588 } else if (!foundMailboxes.contains(mailboxId)) {
589 bindArray[0] = Long.toString(mailboxId);
595 foundMailboxes.add(mailboxId);
598 notFoundMailboxes.add(mailboxId);
817 // If there's a mailboxId parameter in the url, we respond with a mime type that
818 // has -n appended, where n is the mailboxId of the message. The drag & drop code
821 String mailboxId
3087 getVirtualMailboxMessagesCursor(SQLiteDatabase db, String[] uiProjection, long mailboxId, final boolean unseenOnly) argument
3197 getFolderCapabilities(EmailServiceInfo info, int mailboxType, long mailboxId) argument
3592 isVirtualMailbox(long mailboxId) argument
3596 isCombinedMailbox(long mailboxId) argument
3600 getVirtualMailboxAccountId(long mailboxId) argument
3604 getVirtualMailboxAccountIdString(long mailboxId) argument
3608 getVirtualMailboxType(long mailboxId) argument
3733 getVirtualMailboxCursor(long mailboxId, String[] projection) argument
4116 getFolder(Context context, long mailboxId) argument
5113 markAllSeen(final Context context, final String mailboxId) argument
5670 startSync(final android.accounts.Account account, final long mailboxId, final int deltaMessageCount) argument
6000 notifyWidgets(long mailboxId) argument
6116 SyncRequestMessage(final String authority, final android.accounts.Account account, final long mailboxId) argument
[all...]
/packages/apps/Email/src/com/android/email/service/
H A DPopImapSyncAdapterService.java102 private static void sync(final Context context, final long mailboxId, argument
106 Mailbox mailbox = Mailbox.restoreMailboxWithId(context, mailboxId);
122 Uri mailboxUri = ContentUris.withAppendedId(Mailbox.CONTENT_URI, mailboxId);
134 EmailServiceStatus.syncMailboxStatus(resolver, extras, mailboxId,
144 EmailServiceStatus.syncMailboxStatus(resolver, extras, mailboxId, status, 0,
152 EmailServiceStatus.syncMailboxStatus(resolver, extras, mailboxId, type, 0,
157 EmailServiceStatus.syncMailboxStatus(resolver, extras, mailboxId, type, 0,
162 EmailServiceStatus.syncMailboxStatus(resolver, extras, mailboxId, type, 0,
167 EmailServiceStatus.syncMailboxStatus(resolver, extras, mailboxId, type, 0,
206 Long mailboxId
[all...]
H A DEmailServiceStub.java98 protected void requestSync(long mailboxId, boolean userRequest, int deltaMessageCount) { argument
99 final Mailbox mailbox = Mailbox.restoreMailboxWithId(mContext, mailboxId);
107 final Bundle extras = Mailbox.createSyncBundle(mailboxId);
331 final long mailboxId = localFolderCursor.getLong(MAILBOX_COLUMN_ID);
344 mContext, accountId, mailboxId);
348 Mailbox.CONTENT_URI, mailboxId);
/packages/apps/Email/src/com/android/email2/ui/
H A DMailActivityEmail.java163 final long mailboxId = IntentUtilities.getMailboxIdFromIntent(intent);
164 final Mailbox mailbox = Mailbox.restoreMailboxWithId(this, mailboxId);
170 final Intent viewIntent = getViewIntent(mailbox.mAccountKey, mailboxId);
221 private Intent getViewIntent(long accountId, long mailboxId) { argument
245 EmailProvider.uiUri("uifolder", mailboxId),
250 accountId, mailboxId);
260 accountId, mailboxId);
/packages/apps/Email/src/com/android/email/
H A DLegacyConversions.java79 final Message message, final long accountId, final long mailboxId)
135 localMessage.mMailboxKey = mailboxId;
78 updateMessageFields(final EmailContent.Message localMessage, final Message message, final long accountId, final long mailboxId) argument
/packages/apps/Email/tests/src/com/android/email/provider/
H A DAttachmentProviderTests.java634 * @param mailboxId the mailbox to populate
637 private void populateAccountMailbox(Account account, long mailboxId, int numAttachments) argument
643 "msg1a", accountId, mailboxId, false, true, mMockContext);
645 "msg1b", accountId, mailboxId, false, true, mMockContext);
H A DProviderTestUtils.java152 public static Message setupMessage(String name, long accountId, long mailboxId, argument
155 return setupMessage(name, accountId, mailboxId, addBody, saveIt, context, true, true);
161 public static Message setupMessage(String name, long accountId, long mailboxId, argument
179 message.mMailboxKey = mailboxId;
188 message.mMeetingInfo = "123" + accountId + mailboxId + name.length();
H A DProviderTests.java157 private int getMessageCount(long mailboxId) { argument
159 ContentUris.withAppendedId(Mailbox.CONTENT_URI, mailboxId),
364 private int getUnreadCount(long mailboxId) { argument
370 new String[] {String.valueOf(mailboxId)}, null);
1724 long mailboxId,
1729 ProviderTestUtils.setupMessage(name, accountId, mailboxId, addBody, false, context);
1722 setupUnreadMessage(String name, long accountId, long mailboxId, boolean addBody, boolean saveIt, Context context) argument
/packages/apps/Email/tests/src/com/android/emailcommon/provider/
H A DMailboxTests.java73 private int getMessageCount(long mailboxId) { argument
75 ContentUris.withAppendedId(Mailbox.CONTENT_URI, mailboxId),
/packages/apps/Exchange/src/com/android/exchange/eas/
H A DEasFullSyncOperation.java174 for (final long mailboxId : mailboxIds) {
175 result = syncMailbox(mailboxId, hasCallbackMethod, isManual);
278 private int syncOutbox(final long mailboxId) { argument
285 new String[] {Long.toString(mailboxId)}, null);
H A DEasOperation.java722 long mailboxId = Mailbox.findMailboxOfType(mContext, account.mId, Mailbox.TYPE_OUTBOX);
724 if (mailboxId == Mailbox.NO_MAILBOX) {
729 mailboxId = outbox.mId;
731 msg.mMailboxKey = mailboxId;
735 Eas.EXCHANGE_ACCOUNT_MANAGER_TYPE), mailboxId);
741 * @param mailboxId The id of the mailbox that needs to sync.
744 final long mailboxId) {
745 final Bundle extras = Mailbox.createSyncBundle(mailboxId);
743 requestSyncForMailbox(final android.accounts.Account amAccount, final long mailboxId) argument
H A DEasSyncCalendar.java1078 long mailboxId = Mailbox.findMailboxOfType(context, account.mId, Mailbox.TYPE_OUTBOX);
1080 if (mailboxId == Mailbox.NO_MAILBOX) {
1085 mailboxId = outbox.mId;
1087 msg.mMailboxKey = mailboxId;
1090 requestSyncForMailbox(EmailContent.AUTHORITY, mailboxId);
1096 * @param mailboxId The id of the mailbox that needs to sync.
1098 protected void requestSyncForMailbox(final String authority, final long mailboxId) { argument
1099 final Bundle extras = Mailbox.createSyncBundle(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
H A DMailbox.java109 public static Bundle createSyncBundle(final long mailboxId) { argument
112 bundle.putLong(formatMailboxIdExtra(0), mailboxId);
676 final long mailboxId = findMailboxOfType(context, accountId, type);
677 if (mailboxId != Mailbox.NO_MAILBOX) {
678 return Mailbox.restoreMailboxWithId(context, mailboxId);
690 final long mailboxId = Message.getKeyColumnLong(context, messageId,
692 if (mailboxId != -1) {
693 return Mailbox.restoreMailboxWithId(context, mailboxId);
701 public static int getMailboxType(Context context, long mailboxId) { argument
702 final Uri url = ContentUris.withAppendedId(Mailbox.CONTENT_URI, mailboxId);
710 getDisplayName(Context context, long mailboxId) argument
721 isRefreshable(Context context, long mailboxId) argument
920 getAccountIdForMailbox(final Context context, final String mailboxId) argument
943 resyncMailbox(final ContentResolver cr, final android.accounts.Account account, final long mailboxId) argument
[all...]
H A DEmailContent.java1243 Context context, long accountId, long mailboxId) {
1245 if (mailboxId == Mailbox.QUERY_ALL_INBOXES) {
1248 if (mailboxId == Mailbox.QUERY_ALL_DRAFTS) {
1251 if (mailboxId == Mailbox.QUERY_ALL_OUTBOX) {
1254 if (mailboxId == Mailbox.QUERY_ALL_UNREAD) {
1259 if (mailboxId == Mailbox.QUERY_ALL_FAVORITES) {
1274 selection.append(MessageColumns.MAILBOX_KEY).append('=').append(mailboxId);
1276 if (Mailbox.getMailboxType(context, mailboxId) != Mailbox.TYPE_OUTBOX) {
1242 buildMessageListSelection( Context context, long accountId, long mailboxId) argument
/packages/apps/Email/emailcommon/src/com/android/emailcommon/service/
H A DEmailServiceStatus.java137 * @param mailboxId The mailbox whose status is changing.
142 final long mailboxId, final int statusCode, final int progress, int syncResult) {
143 syncStatus(cr, syncExtras, SYNC_STATUS_TYPE_MAILBOX, mailboxId, statusCode, progress,
141 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.java351 * @param mailboxId the mailbox for the messages
354 long mailboxId) {
357 new String[] { Long.toString(mailboxId) }, null);
353 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.java241 private static Bundle getArguments(long mailboxId) { argument
243 b.putLong(EXTRA_MAILBOX_ID, mailboxId);
252 final long mailboxId = getArguments().getLong(EXTRA_MAILBOX_ID, Mailbox.NO_MAILBOX);
253 if (mailboxId == Mailbox.NO_MAILBOX) {
319 private MailboxLoader(Context context, long mailboxId) { argument
321 mMailboxId = mailboxId;
362 final long mailboxId = args.getLong(EXTRA_MAILBOX_ID);
363 return new MailboxLoader(getActivity(), mailboxId);

Completed in 848 milliseconds