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

12

/packages/apps/Email/provider_src/com/android/email/provider/
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 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 DEmailProvider.java346 private static final String MESSAGE_URI_PARAMETER_MAILBOX_ID = "mailboxId";
595 long mailboxId = c.getLong(ORPHANS_MAILBOX_KEY);
597 if (notFoundMailboxes.contains(mailboxId)) {
600 } else if (!foundMailboxes.contains(mailboxId)) {
601 bindArray[0] = Long.toString(mailboxId);
607 foundMailboxes.add(mailboxId);
610 notFoundMailboxes.add(mailboxId);
823 // If there's a mailboxId parameter in the url, we respond with a mime type that
824 // has -n appended, where n is the mailboxId of the message. The drag & drop code
827 String mailboxId
3196 getVirtualMailboxMessagesCursor(SQLiteDatabase db, String[] uiProjection, long mailboxId, final boolean unseenOnly) argument
3306 getFolderCapabilities(EmailServiceInfo info, int mailboxType, long mailboxId) argument
3713 isVirtualMailbox(long mailboxId) argument
3717 isCombinedMailbox(long mailboxId) argument
3721 getVirtualMailboxAccountId(long mailboxId) argument
3725 getVirtualMailboxAccountIdString(long mailboxId) argument
3729 getVirtualMailboxType(long mailboxId) argument
3861 getVirtualMailboxCursor(long mailboxId, String[] projection) argument
4244 getFolder(Context context, long mailboxId) argument
5241 markAllSeen(final Context context, final String mailboxId) argument
5798 startSync(final android.accounts.Account account, final long mailboxId, final int deltaMessageCount) argument
6138 notifyWidgets(long mailboxId) argument
6254 SyncRequestMessage(final String authority, final android.accounts.Account account, final long mailboxId) argument
[all...]
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
/packages/apps/Email/provider_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);
138 EmailServiceStatus.syncMailboxStatus(resolver, extras, mailboxId,
148 EmailServiceStatus.syncMailboxStatus(resolver, extras, mailboxId, status, 0,
158 EmailServiceStatus.syncMailboxStatus(resolver, extras, mailboxId,
165 EmailServiceStatus.syncMailboxStatus(resolver, extras, mailboxId,
172 EmailServiceStatus.syncMailboxStatus(resolver, extras, mailboxId,
179 EmailServiceStatus.syncMailboxStatus(resolver, extras, mailboxId,
218 Long mailboxId
[all...]
H A DEmailServiceStub.java99 protected void requestSync(long mailboxId, boolean userRequest, int deltaMessageCount) { argument
100 final Mailbox mailbox = Mailbox.restoreMailboxWithId(mContext, mailboxId);
108 final Bundle extras = Mailbox.createSyncBundle(mailboxId);
339 final long mailboxId = localFolderCursor.getLong(MAILBOX_COLUMN_ID);
352 mContext, accountId, mailboxId);
356 Mailbox.CONTENT_URI, mailboxId);
/packages/apps/Email/src/com/android/email2/ui/
H A DMailActivityEmail.java66 final long mailboxId = IntentUtilities.getMailboxIdFromIntent(intent);
67 final Mailbox mailbox = Mailbox.restoreMailboxWithId(this, mailboxId);
73 final Intent viewIntent = getViewIntent(mailbox.mAccountKey, mailboxId);
98 private Intent getViewIntent(long accountId, long mailboxId) { argument
122 EmailProvider.uiUri("uifolder", mailboxId),
127 accountId, mailboxId);
137 accountId, 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/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.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 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 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.java138 * @param mailboxId The mailbox whose status is changing.
143 final long mailboxId, final int statusCode, final int progress, int syncResult) {
144 syncStatus(cr, syncExtras, SYNC_STATUS_TYPE_MAILBOX, mailboxId, statusCode, progress,
142 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 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));
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
/packages/apps/Email/src/com/android/email/activity/setup/
H A DMailboxSettings.java244 private static Bundle getArguments(long mailboxId) { argument
246 b.putLong(EXTRA_MAILBOX_ID, mailboxId);
255 final long mailboxId = getArguments().getLong(EXTRA_MAILBOX_ID, Mailbox.NO_MAILBOX);
256 if (mailboxId == Mailbox.NO_MAILBOX) {
322 private MailboxLoader(Context context, long mailboxId) { argument
324 mMailboxId = mailboxId;
365 final long mailboxId = args.getLong(EXTRA_MAILBOX_ID);
366 return new MailboxLoader(getActivity(), mailboxId);
/packages/apps/Email/tests/src/com/android/email/
H A DLegacyConversionsTests.java85 final long mailboxId = 1;
89 "local-message", accountId, mailboxId, false, true, mProviderContext);
95 "local-message", accountId, mailboxId, false, true, mProviderContext);
143 final long mailboxId = 1;
177 "local-message", accountId, mailboxId, false, true, mProviderContext);
193 final long mailboxId = 1;
195 "local-message", accountId, mailboxId, false, true, mProviderContext);
/packages/apps/Exchange/src/com/android/exchange/eas/
H A DEasOperation.java683 long mailboxId = Mailbox.findMailboxOfType(mContext, account.mId, Mailbox.TYPE_OUTBOX);
685 if (mailboxId == Mailbox.NO_MAILBOX) {
690 mailboxId = outbox.mId;
692 msg.mMailboxKey = mailboxId;
696 Eas.EXCHANGE_ACCOUNT_MANAGER_TYPE), mailboxId);
702 * @param mailboxId The id of the mailbox that needs to sync.
705 final long mailboxId) {
706 final Bundle extras = Mailbox.createSyncBundle(mailboxId);
704 requestSyncForMailbox(final android.accounts.Account amAccount, final long mailboxId) argument
H A DEasFullSyncOperation.java174 for (final long mailboxId : mailboxIds) {
175 result = syncMailbox(mailboxId, hasCallbackMethod, isManual);
281 private int syncOutbox(final long mailboxId) { argument
288 new String[] {Long.toString(mailboxId)}, null);
H A DEasPing.java356 final long mailboxId = c.getLong(Mailbox.CONTENT_ID_COLUMN);
365 emailMailboxIds.add(mailboxId);
367 calendarMailboxIds.add(mailboxId);
369 contactsMailboxIds.add(mailboxId);
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/Email/tests/src/com/android/email/provider/
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();
/packages/apps/Email/src/com/android/email/
H A DEmailNotificationController.java620 final long mailboxId =
622 if (mailboxId == 0) continue;
636 final Uri folderUri = EmailProvider.uiUri("uifolder", mailboxId);
640 + mailboxId + ", unreadCount: " + unreadCount + ", unseenCount: "
/packages/apps/Email/provider_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/Bluetooth/tests/src/com/android/bluetooth/tests/
H A DBluetoothMapContentTest.java310 int mailboxId = 0;
321 mailboxId = c.getInt(c.getColumnIndex(
333 extras.putLong(BluetoothMapContract.EXTRA_UPDATE_FOLDER_ID, mailboxId);

Completed in 382 milliseconds

12