/packages/apps/Email/provider_src/com/android/email/provider/ |
D | RefreshStatusMonitor.java | 65 public void monitorRefreshStatus(long mailboxId, Callback callback) { in monitorRefreshStatus() argument 67 if (!mMailboxSync.containsKey(mailboxId)) in monitorRefreshStatus() 68 mMailboxSync.put(mailboxId, false); in monitorRefreshStatus() 70 new RemoveRefreshStatusRunnable(mailboxId, callback), in monitorRefreshStatus() 75 public void setSyncStarted(long mailboxId) { in setSyncStarted() argument 78 if (mMailboxSync.containsKey(mailboxId)) { in setSyncStarted() 79 LogUtils.d(TAG, "RefreshStatusMonitor: setSyncStarted: mailboxId=%d", mailboxId); in setSyncStarted() 80 mMailboxSync.put(mailboxId, true); in setSyncStarted() 99 RemoveRefreshStatusRunnable(long mailboxId, Callback callback) { in RemoveRefreshStatusRunnable() argument 100 mMailboxId = mailboxId; in RemoveRefreshStatusRunnable() [all …]
|
D | WidgetProvider.java | 93 long mailboxId = loadMailboxIdPref(context, widgetId); in migrateLegacyWidgetInformation() local 95 if (accountId == Account.NO_ACCOUNT || mailboxId == Mailbox.NO_MAILBOX) { in migrateLegacyWidgetInformation() 97 " mailboxId: %d widgetId %d", accountId, mailboxId, widgetId); in migrateLegacyWidgetInformation() 102 mailboxId = migrateLegacyWidgetMailboxId(mailboxId, accountId); in migrateLegacyWidgetInformation() 106 final Folder uiFolder = EmailProvider.getFolder(context, mailboxId); in migrateLegacyWidgetInformation() 133 private static long migrateLegacyWidgetMailboxId(long mailboxId, long accountId) { in migrateLegacyWidgetMailboxId() argument 134 if (mailboxId == Mailbox.QUERY_ALL_INBOXES) { in migrateLegacyWidgetMailboxId() 136 } else if (mailboxId == Mailbox.QUERY_ALL_UNREAD) { in migrateLegacyWidgetMailboxId() 139 return mailboxId; in migrateLegacyWidgetMailboxId() 188 long mailboxId = prefs.getLong(LEGACY_MAILBOX_ID_PREFIX + appWidgetId, Mailbox.NO_MAILBOX); in loadMailboxIdPref() local [all …]
|
D | EmailProvider.java | 595 long mailboxId = c.getLong(ORPHANS_MAILBOX_KEY); in deleteMessageOrphans() local 597 if (notFoundMailboxes.contains(mailboxId)) { in deleteMessageOrphans() 600 } else if (!foundMailboxes.contains(mailboxId)) { in deleteMessageOrphans() 601 bindArray[0] = Long.toString(mailboxId); in deleteMessageOrphans() 607 foundMailboxes.add(mailboxId); in deleteMessageOrphans() 610 notFoundMailboxes.add(mailboxId); in deleteMessageOrphans() 827 String mailboxId = uri.getQueryParameter(MESSAGE_URI_PARAMETER_MAILBOX_ID); in getType() local 828 if (mailboxId != null) { in getType() 829 mimeType += "-" + mailboxId; in getType() 949 final long mailboxId = values.getAsLong(MessageColumns.MAILBOX_KEY); in insert() local [all …]
|
D | EmailConversationCursor.java | 65 final Folder folder, final long mailboxId) { in EmailConversationCursor() argument 67 mMailboxId = mailboxId; in EmailConversationCursor() 70 Mailbox mailbox = Mailbox.restoreMailboxWithId(context, mailboxId); in EmailConversationCursor()
|
/packages/apps/Email/provider_src/com/android/email/service/ |
D | PopImapSyncAdapterService.java | 102 private static void sync(final Context context, final long mailboxId, in sync() argument 106 Mailbox mailbox = Mailbox.restoreMailboxWithId(context, mailboxId); in sync() 122 Uri mailboxUri = ContentUris.withAppendedId(Mailbox.CONTENT_URI, mailboxId); in sync() 138 EmailServiceStatus.syncMailboxStatus(resolver, extras, mailboxId, in sync() 148 EmailServiceStatus.syncMailboxStatus(resolver, extras, mailboxId, status, 0, in sync() 158 EmailServiceStatus.syncMailboxStatus(resolver, extras, mailboxId, in sync() 165 EmailServiceStatus.syncMailboxStatus(resolver, extras, mailboxId, in sync() 172 EmailServiceStatus.syncMailboxStatus(resolver, extras, mailboxId, in sync() 179 EmailServiceStatus.syncMailboxStatus(resolver, extras, mailboxId, in sync() 218 Long mailboxId = updatesCursor.getLong(0); in performSync() local [all …]
|
D | EmailServiceStub.java | 99 protected void requestSync(long mailboxId, boolean userRequest, int deltaMessageCount) { in requestSync() argument 100 final Mailbox mailbox = Mailbox.restoreMailboxWithId(mContext, mailboxId); in requestSync() 108 final Bundle extras = Mailbox.createSyncBundle(mailboxId); in requestSync() 339 final long mailboxId = localFolderCursor.getLong(MAILBOX_COLUMN_ID); in updateFolderList() local 352 mContext, accountId, mailboxId); in updateFolderList() 356 Mailbox.CONTENT_URI, mailboxId); in updateFolderList()
|
D | ImapService.java | 888 long mailboxId = mailboxes.getLong(Mailbox.ID_PROJECTION_COLUMN); in processPendingUploadsSynchronous() local 889 String[] mailboxKeyArgs = new String[] { Long.toString(mailboxId) }; in processPendingUploadsSynchronous() 909 mailbox = Mailbox.restoreMailboxWithId(context, mailboxId); in processPendingUploadsSynchronous()
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/ |
D | Mailbox.java | 109 public static Bundle createSyncBundle(final long mailboxId) { in createSyncBundle() argument 112 bundle.putLong(formatMailboxIdExtra(0), mailboxId); in createSyncBundle() 676 final long mailboxId = findMailboxOfType(context, accountId, type); in restoreMailboxOfType() local 677 if (mailboxId != Mailbox.NO_MAILBOX) { in restoreMailboxOfType() 678 return Mailbox.restoreMailboxWithId(context, mailboxId); in restoreMailboxOfType() 690 final long mailboxId = Message.getKeyColumnLong(context, messageId, in getMailboxForMessageId() local 692 if (mailboxId != -1) { in getMailboxForMessageId() 693 return Mailbox.restoreMailboxWithId(context, mailboxId); in getMailboxForMessageId() 701 public static int getMailboxType(Context context, long mailboxId) { in getMailboxType() argument 702 final Uri url = ContentUris.withAppendedId(Mailbox.CONTENT_URI, mailboxId); in getMailboxType() [all …]
|
D | MessageStateChange.java | 72 final long mailboxId) { in MessageStateChange() argument 78 mMailboxId = mailboxId; in MessageStateChange() 152 final long mailboxId = MessageMove.getLastSyncedMailboxForMessage(cr, in getChanges() local 154 if (mailboxId == Mailbox.NO_MAILBOX) { in getChanges() 159 mailboxId)); in getChanges()
|
D | EmailContent.java | 1243 Context context, long accountId, long mailboxId) { in buildMessageListSelection() argument 1245 if (mailboxId == Mailbox.QUERY_ALL_INBOXES) { in buildMessageListSelection() 1248 if (mailboxId == Mailbox.QUERY_ALL_DRAFTS) { in buildMessageListSelection() 1251 if (mailboxId == Mailbox.QUERY_ALL_OUTBOX) { in buildMessageListSelection() 1254 if (mailboxId == Mailbox.QUERY_ALL_UNREAD) { in buildMessageListSelection() 1259 if (mailboxId == Mailbox.QUERY_ALL_FAVORITES) { in buildMessageListSelection() 1274 selection.append(MessageColumns.MAILBOX_KEY).append('=').append(mailboxId); in buildMessageListSelection() 1276 if (Mailbox.getMailboxType(context, mailboxId) != Mailbox.TYPE_OUTBOX) { in buildMessageListSelection()
|
/packages/apps/Email/src/com/android/email2/ui/ |
D | MailActivityEmail.java | 66 final long mailboxId = IntentUtilities.getMailboxIdFromIntent(intent); in onCreate() local 67 final Mailbox mailbox = Mailbox.restoreMailboxWithId(this, mailboxId); in onCreate() 73 final Intent viewIntent = getViewIntent(mailbox.mAccountKey, mailboxId); in onCreate() 98 private Intent getViewIntent(long accountId, long mailboxId) { in getViewIntent() argument 122 EmailProvider.uiUri("uifolder", mailboxId), in getViewIntent() 127 accountId, mailboxId); in getViewIntent() 137 accountId, mailboxId); in getViewIntent()
|
/packages/apps/UnifiedEmail/src/com/android/emailcommon/service/ |
D | SearchParams.java | 59 public SearchParams(long mailboxId, String filter) { in SearchParams() argument 60 mMailboxId = mailboxId; in SearchParams() 66 public SearchParams(long mailboxId, String filter, long searchMailboxId) { in SearchParams() argument 67 mMailboxId = mailboxId; in SearchParams() 74 public SearchParams(long mailboxId, String filter, long searchMailboxId, Date startDate, in SearchParams() argument 76 mMailboxId = mailboxId; in SearchParams()
|
/packages/apps/Email/src/com/android/email/activity/setup/ |
D | MailboxSettings.java | 244 private static Bundle getArguments(long mailboxId) { in getArguments() argument 246 b.putLong(EXTRA_MAILBOX_ID, mailboxId); in getArguments() 255 final long mailboxId = getArguments().getLong(EXTRA_MAILBOX_ID, Mailbox.NO_MAILBOX); in onActivityCreated() local 256 if (mailboxId == Mailbox.NO_MAILBOX) { in onActivityCreated() 322 private MailboxLoader(Context context, long mailboxId) { in MailboxLoader() argument 324 mMailboxId = mailboxId; in MailboxLoader() 365 final long mailboxId = args.getLong(EXTRA_MAILBOX_ID); in onCreateLoader() local 366 return new MailboxLoader(getActivity(), mailboxId); in onCreateLoader()
|
/packages/apps/Email/tests/src/com/android/email/ |
D | LegacyConversionsTests.java | 85 final long mailboxId = 1; in brokentestAddAttachments() local 89 "local-message", accountId, mailboxId, false, true, mProviderContext); in brokentestAddAttachments() 95 "local-message", accountId, mailboxId, false, true, mProviderContext); in brokentestAddAttachments() 143 final long mailboxId = 1; in brokentestAttachmentDispositions() local 177 "local-message", accountId, mailboxId, false, true, mProviderContext); in brokentestAttachmentDispositions() 193 final long mailboxId = 1; in brokentestAddDuplicateAttachments() local 195 "local-message", accountId, mailboxId, false, true, mProviderContext); in brokentestAddDuplicateAttachments()
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/ |
D | IntentUtilities.java | 75 public static void setMailboxId(Uri.Builder b, long mailboxId) { in setMailboxId() argument 76 if (mailboxId != -1) { in setMailboxId() 77 b.appendQueryParameter(MAILBOX_ID_PARAM, Long.toString(mailboxId)); in setMailboxId()
|
D | AttachmentUtilities.java | 354 long mailboxId) { in deleteAllMailboxAttachmentFiles() argument 357 new String[] { Long.toString(mailboxId) }, null); in deleteAllMailboxAttachmentFiles()
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/service/ |
D | EmailServiceStatus.java | 143 final long mailboxId, final int statusCode, final int progress, int syncResult) { in syncMailboxStatus() argument 144 syncStatus(cr, syncExtras, SYNC_STATUS_TYPE_MAILBOX, mailboxId, statusCode, progress, in syncMailboxStatus()
|
/packages/apps/Email/tests/src/com/android/email/provider/ |
D | ProviderTestUtils.java | 152 public static Message setupMessage(String name, long accountId, long mailboxId, in setupMessage() argument 155 return setupMessage(name, accountId, mailboxId, addBody, saveIt, context, true, true); in setupMessage() 161 public static Message setupMessage(String name, long accountId, long mailboxId, in setupMessage() argument 179 message.mMailboxKey = mailboxId; in setupMessage() 188 message.mMeetingInfo = "123" + accountId + mailboxId + name.length(); in setupMessage()
|
D | AttachmentProviderTests.java | 637 private void populateAccountMailbox(Account account, long mailboxId, int numAttachments) in populateAccountMailbox() argument 643 "msg1a", accountId, mailboxId, false, true, mMockContext); in populateAccountMailbox() 645 "msg1b", accountId, mailboxId, false, true, mMockContext); in populateAccountMailbox()
|
D | ProviderTests.java | 157 private int getMessageCount(long mailboxId) { in getMessageCount() argument 159 ContentUris.withAppendedId(Mailbox.CONTENT_URI, mailboxId), in getMessageCount() 364 private int getUnreadCount(long mailboxId) { in getUnreadCount() argument 370 new String[] {String.valueOf(mailboxId)}, null); in getUnreadCount() 1724 long mailboxId, in setupUnreadMessage() argument 1729 ProviderTestUtils.setupMessage(name, accountId, mailboxId, addBody, false, context); in setupUnreadMessage()
|
/packages/apps/Email/src/com/android/email/ |
D | EmailNotificationController.java | 620 final long mailboxId = in refreshNotificationsForAccountInternal() local 622 if (mailboxId == 0) continue; in refreshNotificationsForAccountInternal() 636 final Uri folderUri = EmailProvider.uiUri("uifolder", mailboxId); in refreshNotificationsForAccountInternal() 640 + mailboxId + ", unreadCount: " + unreadCount + ", unseenCount: " in refreshNotificationsForAccountInternal()
|
/packages/apps/Email/provider_src/com/android/email/ |
D | LegacyConversions.java | 79 final Message message, final long accountId, final long mailboxId) in updateMessageFields() argument 135 localMessage.mMailboxKey = mailboxId; in updateMessageFields()
|
/packages/apps/Bluetooth/tests/src/com/android/bluetooth/tests/ |
D | BluetoothMapContentTest.java | 310 int mailboxId = 0; in callBluetoothProvider() local 321 mailboxId = c.getInt(c.getColumnIndex( in callBluetoothProvider() 333 extras.putLong(BluetoothMapContract.EXTRA_UPDATE_FOLDER_ID, mailboxId); in callBluetoothProvider()
|
/packages/apps/Email/tests/src/com/android/emailcommon/provider/ |
D | MailboxTests.java | 73 private int getMessageCount(long mailboxId) { in getMessageCount() argument 75 ContentUris.withAppendedId(Mailbox.CONTENT_URI, mailboxId), in getMessageCount()
|