/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
D | AddableFolderSelectorAdapter.java | 26 import com.android.mail.providers.UIProvider; 58 final int projectionSize = UIProvider.FOLDERS_PROJECTION.length; in filterFolders() 60 new MatrixCursorWithCachedColumns(UIProvider.FOLDERS_PROJECTION); in filterFolders() 64 final int type = folderCursor.getInt(UIProvider.FOLDER_TYPE_COLUMN); in filterFolders() 80 UIProvider.FOLDER_URI_COLUMN))).getComparisonUri().toString(); in filterFolders() 92 if (Folder.isType(type, UIProvider.FolderType.INBOX) in filterFolders() 93 || Folder.isType(type, UIProvider.FolderType.DEFAULT)) { in filterFolders() 94 folder[UIProvider.FOLDER_ID_COLUMN] = folderCursor in filterFolders() 95 .getLong(UIProvider.FOLDER_ID_COLUMN); in filterFolders() 96 folder[UIProvider.FOLDER_PERSISTENT_ID_COLUMN] = folderCursor in filterFolders() [all …]
|
D | SuppressNotificationReceiver.java | 22 import com.android.mail.providers.UIProvider; 57 final IntentFilter filter = new IntentFilter(UIProvider.ACTION_UPDATE_NOTIFICATION); in activate() 111 if (!UIProvider.ACTION_UPDATE_NOTIFICATION.equals(action)) { in onReceive() 142 (Uri)intent.getParcelableExtra(UIProvider.UpdateNotificationExtras.EXTRA_ACCOUNT); in onReceive() 147 (Uri)intent.getParcelableExtra(UIProvider.UpdateNotificationExtras.EXTRA_FOLDER); in onReceive() 153 UIProvider.UpdateNotificationExtras.EXTRA_UPDATED_UNREAD_COUNT, 0); in onReceive()
|
D | ActionBarController.java | 36 import com.android.mail.providers.UIProvider; 37 import com.android.mail.providers.UIProvider.AccountCapabilities; 38 import com.android.mail.providers.UIProvider.FolderCapabilities; 39 import com.android.mail.providers.UIProvider.FolderType; 90 mResolver.call(mAccount, UIProvider.AccountCallMethods.SET_CURRENT_ACCOUNT, in doInBackground() 159 bundle.putParcelable(UIProvider.SetCurrentAccountColumns.ACCOUNT, account); in updateAccount() 395 && mAccount.supportsCapability(UIProvider.AccountCapabilities.MARK_IMPORTANT)); in setConversationModeOptions() 397 && mAccount.supportsCapability(UIProvider.AccountCapabilities.MARK_IMPORTANT)); in setConversationModeOptions() 402 mFolder.supportsCapability(UIProvider.FolderCapabilities.DELETE); in setConversationModeOptions() 423 UIProvider.AccountCapabilities.MULTIPLE_FOLDERS_PER_CONV)); in setConversationModeOptions()
|
/packages/apps/UnifiedEmail/tests/src/com/android/mail/providers/ |
D | UIProviderTest.java | 23 packAndUnpackLastSyncResult(UIProvider.SyncStatus.NO_SYNC, in testReadAndWriteOfLastSyncResult() 24 UIProvider.LastSyncResult.STORAGE_ERROR); in testReadAndWriteOfLastSyncResult() 25 packAndUnpackLastSyncResult(UIProvider.SyncStatus.NO_SYNC, in testReadAndWriteOfLastSyncResult() 26 UIProvider.LastSyncResult.SECURITY_ERROR); in testReadAndWriteOfLastSyncResult() 27 packAndUnpackLastSyncResult(UIProvider.SyncStatus.USER_REFRESH, in testReadAndWriteOfLastSyncResult() 28 UIProvider.LastSyncResult.SUCCESS); in testReadAndWriteOfLastSyncResult() 29 packAndUnpackLastSyncResult(UIProvider.SyncStatus.USER_REFRESH, in testReadAndWriteOfLastSyncResult() 30 UIProvider.LastSyncResult.AUTH_ERROR); in testReadAndWriteOfLastSyncResult() 31 packAndUnpackLastSyncResult(UIProvider.SyncStatus.BACKGROUND_SYNC, in testReadAndWriteOfLastSyncResult() 32 UIProvider.LastSyncResult.SUCCESS); in testReadAndWriteOfLastSyncResult() [all …]
|
D | AccountTests.java | 65 json.put(UIProvider.AccountColumns.NAME, "name"); in testDeserializeNullSenderNameUsingJSON() 66 json.put(UIProvider.AccountColumns.TYPE, "type"); in testDeserializeNullSenderNameUsingJSON() 67 json.put(UIProvider.AccountColumns.PROVIDER_VERSION, 1); in testDeserializeNullSenderNameUsingJSON() 68 json.put(UIProvider.AccountColumns.CAPABILITIES, 2); in testDeserializeNullSenderNameUsingJSON() 71 json.put(UIProvider.AccountColumns.SENDER_NAME, null); in testDeserializeNullSenderNameUsingJSON()
|
/packages/apps/Email/provider_src/com/android/email/provider/ |
D | EmailProvider.java | 117 import com.android.mail.providers.UIProvider; 118 import com.android.mail.providers.UIProvider.AccountCapabilities; 119 import com.android.mail.providers.UIProvider.AccountColumns.SettingsColumns; 120 import com.android.mail.providers.UIProvider.AccountCursorExtraKeys; 121 import com.android.mail.providers.UIProvider.ConversationPriority; 122 import com.android.mail.providers.UIProvider.ConversationSendingState; 123 import com.android.mail.providers.UIProvider.DraftType; 522 "=" + UIProvider.SyncStatus.NO_SYNC); in initUiProvider() 1341 final String seenParam = uri.getQueryParameter(UIProvider.SEEN_QUERY_PARAMETER); in query() 2291 if (TextUtils.equals(method, UIProvider.AccountCallMethods.SEND_MESSAGE)) { in call() [all …]
|
D | EmailConversationCursor.java | 40 import com.android.mail.providers.UIProvider; 41 import com.android.mail.providers.UIProvider.ConversationColumns; 75 mExtras.putInt(UIProvider.CursorExtraKeys.EXTRA_TOTAL_COUNT, mailbox.mTotalCount); in EmailConversationCursor() 80 mExtras.putInt(UIProvider.CursorExtraKeys.EXTRA_STATUS, in EmailConversationCursor() 81 UIProvider.CursorStatus.LOADING); in EmailConversationCursor() 92 mExtras.putInt(UIProvider.CursorExtraKeys.EXTRA_STATUS, in EmailConversationCursor() 93 UIProvider.CursorStatus.LOADING); in EmailConversationCursor() 95 mExtras.putInt(UIProvider.CursorExtraKeys.EXTRA_STATUS, in EmailConversationCursor() 96 UIProvider.CursorStatus.COMPLETE); in EmailConversationCursor() 101 mExtras.putInt(UIProvider.CursorExtraKeys.EXTRA_STATUS, in EmailConversationCursor() [all …]
|
/packages/apps/UnifiedEmail/src/com/android/mail/providers/ |
D | Message.java | 41 import com.android.mail.providers.UIProvider.MessageColumns; 364 id = cursor.getLong(UIProvider.MESSAGE_ID_COLUMN); in Message() 365 serverId = cursor.getString(UIProvider.MESSAGE_SERVER_ID_COLUMN); in Message() 366 final String messageUriStr = cursor.getString(UIProvider.MESSAGE_URI_COLUMN); in Message() 368 final String convUriStr = cursor.getString(UIProvider.MESSAGE_CONVERSATION_URI_COLUMN); in Message() 370 subject = cursor.getString(UIProvider.MESSAGE_SUBJECT_COLUMN); in Message() 371 snippet = cursor.getString(UIProvider.MESSAGE_SNIPPET_COLUMN); in Message() 372 mFrom = cursor.getString(UIProvider.MESSAGE_FROM_COLUMN); in Message() 373 mTo = cursor.getString(UIProvider.MESSAGE_TO_COLUMN); in Message() 374 mCc = cursor.getString(UIProvider.MESSAGE_CC_COLUMN); in Message() [all …]
|
D | Folder.java | 37 import com.android.mail.providers.UIProvider.FolderType; 379 id = cursor.getInt(UIProvider.FOLDER_ID_COLUMN); in Folder() 380 persistentId = cursor.getString(UIProvider.FOLDER_PERSISTENT_ID_COLUMN); in Folder() 382 new FolderUri(Uri.parse(cursor.getString(UIProvider.FOLDER_URI_COLUMN))); in Folder() 383 name = cursor.getString(UIProvider.FOLDER_NAME_COLUMN); in Folder() 384 capabilities = cursor.getInt(UIProvider.FOLDER_CAPABILITIES_COLUMN); in Folder() 386 hasChildren = cursor.getInt(UIProvider.FOLDER_HAS_CHILDREN_COLUMN) == 1; in Folder() 387 syncWindow = cursor.getInt(UIProvider.FOLDER_SYNC_WINDOW_COLUMN); in Folder() 388 String convList = cursor.getString(UIProvider.FOLDER_CONVERSATION_LIST_URI_COLUMN); in Folder() 390 String childList = cursor.getString(UIProvider.FOLDER_CHILD_FOLDERS_LIST_COLUMN); in Folder() [all …]
|
D | Conversation.java | 32 import com.android.mail.providers.UIProvider.ConversationColumns; 33 import com.android.mail.providers.UIProvider.ConversationCursorCommand; 273 id = cursor.getLong(UIProvider.CONVERSATION_ID_COLUMN); in Conversation() 274 uri = Uri.parse(cursor.getString(UIProvider.CONVERSATION_URI_COLUMN)); in Conversation() 275 dateMs = cursor.getLong(UIProvider.CONVERSATION_DATE_RECEIVED_MS_COLUMN); in Conversation() 276 final String subj = cursor.getString(UIProvider.CONVERSATION_SUBJECT_COLUMN); in Conversation() 283 hasAttachments = cursor.getInt(UIProvider.CONVERSATION_HAS_ATTACHMENTS_COLUMN) != 0; in Conversation() 284 String messageList = cursor.getString(UIProvider.CONVERSATION_MESSAGE_LIST_URI_COLUMN); in Conversation() 286 sendingState = cursor.getInt(UIProvider.CONVERSATION_SENDING_STATE_COLUMN); in Conversation() 287 priority = cursor.getInt(UIProvider.CONVERSATION_PRIORITY_COLUMN); in Conversation() [all …]
|
D | Account.java | 30 import com.android.mail.providers.UIProvider.AccountCapabilities; 31 import com.android.mail.providers.UIProvider.AccountColumns; 32 import com.android.mail.providers.UIProvider.SyncStatus; 379 displayName = (String) json.get(UIProvider.AccountColumns.NAME); in Account() 380 type = (String) json.get(UIProvider.AccountColumns.TYPE); in Account() 390 accountId = json.optString(UIProvider.AccountColumns.ACCOUNT_ID, accountManagerName); in Account() 446 displayName = cursor.getString(cursor.getColumnIndex(UIProvider.AccountColumns.NAME)); in Account() 447 senderName = cursor.getString(cursor.getColumnIndex(UIProvider.AccountColumns.SENDER_NAME)); in Account() 448 type = cursor.getString(cursor.getColumnIndex(UIProvider.AccountColumns.TYPE)); in Account() 450 cursor.getColumnIndex(UIProvider.AccountColumns.ACCOUNT_MANAGER_NAME)); in Account() [all …]
|
D | UIProviderValidator.java | 38 return getValidProjection(projection, UIProvider.ACCOUNTS_PROJECTION); in validateAccountProjection() 45 return getValidProjection(projection, UIProvider.FOLDERS_PROJECTION); in validateFolderProjection() 52 return getValidProjection(projection, UIProvider.ACCOUNT_COOKIE_PROJECTION); in validateAccountCookieProjection() 59 return getValidProjection(projection, UIProvider.CONVERSATION_PROJECTION); in validateConversationProjection() 66 return getValidProjection(projection, UIProvider.MESSAGE_PROJECTION); in validateMessageProjection() 73 return getValidProjection(projection, UIProvider.ATTACHMENT_PROJECTION); in validateAttachmentProjection()
|
D | MessageModification.java | 22 import com.android.mail.providers.UIProvider.DraftType; 23 import com.android.mail.providers.UIProvider.MessageColumns; 51 values.put(MessageColumns.TO, TextUtils.join(UIProvider.EMAIL_SEPARATOR, toAddresses)); in putToAddresses() 61 values.put(MessageColumns.CC, TextUtils.join(UIProvider.EMAIL_SEPARATOR, ccAddresses)); in putCcAddresses() 71 values.put(MessageColumns.BCC, TextUtils.join(UIProvider.EMAIL_SEPARATOR, bccAddresses)); in putBccAddresses()
|
D | Settings.java | 25 import com.android.mail.providers.UIProvider.AccountColumns.SettingsColumns; 26 import com.android.mail.providers.UIProvider.AutoAdvance; 27 import com.android.mail.providers.UIProvider.ConversationListIcon; 28 import com.android.mail.providers.UIProvider.DefaultReplyBehavior; 29 import com.android.mail.providers.UIProvider.SnapHeaderValue; 30 import com.android.mail.providers.UIProvider.Swipe; 136 conversationViewMode = UIProvider.ConversationViewMode.UNDEFINED; in Settings() 226 UIProvider.ConversationViewMode.UNDEFINED); in Settings() 403 final int val = (conversationViewMode != UIProvider.ConversationViewMode.UNDEFINED) ? in isOverviewMode() 404 conversationViewMode : UIProvider.ConversationViewMode.DEFAULT; in isOverviewMode() [all …]
|
/packages/apps/UnifiedEmail/tests/src/com/android/mail/providers/protos/mock/ |
D | MockUiProviderTests.java | 19 import com.android.mail.providers.UIProvider; 62 Cursor cursor = provider.query(accountsUri, UIProvider.ACCOUNTS_PROJECTION, null, null, in testGetFolders() 67 int folderUriIndex = cursor.getColumnIndex(UIProvider.AccountColumns.FOLDER_LIST_URI); in testGetFolders() 80 Cursor foldersCursor = provider.query(u, UIProvider.FOLDERS_PROJECTION, null, null, in testGetFolders() 86 int name = foldersCursor.getColumnIndex(UIProvider.FolderColumns.NAME); in testGetFolders() 88 .getColumnIndex(UIProvider.FolderColumns.CHILD_FOLDERS_LIST_URI); in testGetFolders() 90 .getColumnIndex(UIProvider.FolderColumns.CONVERSATION_LIST_URI); in testGetFolders() 92 .getColumnIndex(UIProvider.FolderColumns.HAS_CHILDREN); in testGetFolders() 134 Cursor childFoldersCursor = provider.query(u, UIProvider.FOLDERS_PROJECTION, null, in testGetFolders() 137 int name = childFoldersCursor.getColumnIndex(UIProvider.FolderColumns.NAME); in testGetFolders() [all …]
|
/packages/apps/UnifiedEmail/src/com/android/mail/browse/ |
D | SelectedConversationsActionMenu.java | 37 import com.android.mail.providers.UIProvider; 38 import com.android.mail.providers.UIProvider.AccountCapabilities; 39 import com.android.mail.providers.UIProvider.ConversationColumns; 40 import com.android.mail.providers.UIProvider.FolderCapabilities; 41 import com.android.mail.providers.UIProvider.FolderType; 172 if (mFolder.isType(UIProvider.FolderType.STARRED)) { in onActionItemClicked() 230 if (mFolder.supportsCapability(UIProvider.FolderCapabilities.ONLY_IMPORTANT)) { in onActionItemClicked() 329 final int priority = important ? UIProvider.ConversationPriority.HIGH in markConversationsImportant() 330 : UIProvider.ConversationPriority.LOW; in markConversationsImportant() 428 UIProvider.AccountCapabilities.MULTIPLE_FOLDERS_PER_CONV)); in onPrepareActionMode() [all …]
|
D | MessageInviteView.java | 30 import com.android.mail.providers.UIProvider; 76 command = UIProvider.MessageOperations.RESPOND_ACCEPT; in onClick() 78 command = UIProvider.MessageOperations.RESPOND_TENTATIVE; in onClick() 80 command = UIProvider.MessageOperations.RESPOND_DECLINE; in onClick() 86 params.put(UIProvider.MessageOperations.RESPOND_COLUMN, command); in onClick()
|
D | ConversationItemViewModel.java | 34 import com.android.mail.providers.UIProvider; 158 (conv.convFlags & UIProvider.ConversationFlags.FORWARDED) in forConversation() 159 == UIProvider.ConversationFlags.FORWARDED; in forConversation() 161 (conv.convFlags & UIProvider.ConversationFlags.REPLIED) in forConversation() 162 == UIProvider.ConversationFlags.REPLIED; in forConversation() 164 (conv.convFlags & UIProvider.ConversationFlags.CALENDAR_INVITE) in forConversation() 165 == UIProvider.ConversationFlags.CALENDAR_INVITE; in forConversation()
|
D | ConversationListFooterView.java | 29 import com.android.mail.providers.UIProvider; 84 final int cursorStatus = extras.getInt(UIProvider.CursorExtraKeys.EXTRA_STATUS); in updateStatus() 85 final int totalCount = extras.getInt(UIProvider.CursorExtraKeys.EXTRA_TOTAL_COUNT); in updateStatus() 87 if (UIProvider.CursorStatus.isWaitingForResults(cursorStatus)) { in updateStatus()
|
D | AttachmentActionHandler.java | 35 import com.android.mail.providers.UIProvider; 36 import com.android.mail.providers.UIProvider.AttachmentColumns; 37 import com.android.mail.providers.UIProvider.AttachmentContentValueKeys; 38 import com.android.mail.providers.UIProvider.AttachmentDestination; 39 import com.android.mail.providers.UIProvider.AttachmentState; 114 startDownloadingAttachment(destination, UIProvider.AttachmentRendition.BEST, 0, false); in startDownloadingAttachment()
|
/packages/apps/Email/src/com/android/email/preferences/ |
D | EmailPreferenceMigrator.java | 31 import com.android.mail.providers.UIProvider; 50 UIProvider.ACCOUNTS_PROJECTION_NO_CAPABILITIES, null, null, null); in migrate() 126 UIProvider.FOLDERS_PROJECTION, null, null, null); in migrate() 190 mailPrefs.setAutoAdvanceMode(UIProvider.AutoAdvance.OLDER); in migrate() 192 mailPrefs.setAutoAdvanceMode(UIProvider.AutoAdvance.NEWER); in migrate() 195 mailPrefs.setAutoAdvanceMode(UIProvider.AutoAdvance.LIST); in migrate()
|
/packages/apps/Email/src/com/android/email/ |
D | EmailNotificationController.java | 51 import com.android.mail.providers.UIProvider; 328 "uiaccount", account.mId), UIProvider.ACCOUNTS_PROJECTION, null, null, null); in setupSoundAndVibration() 342 UIProvider.FOLDERS_PROJECTION, null, null, null); in setupSoundAndVibration() 643 final Intent intent = new Intent(UIProvider.ACTION_UPDATE_NOTIFICATION); in refreshNotificationsForAccountInternal() 647 intent.putExtra(UIProvider.UpdateNotificationExtras.EXTRA_ACCOUNT, accountUri); in refreshNotificationsForAccountInternal() 648 intent.putExtra(UIProvider.UpdateNotificationExtras.EXTRA_FOLDER, folderUri); in refreshNotificationsForAccountInternal() 649 intent.putExtra(UIProvider.UpdateNotificationExtras.EXTRA_UPDATED_UNREAD_COUNT, in refreshNotificationsForAccountInternal() 651 intent.putExtra(UIProvider.UpdateNotificationExtras.EXTRA_UPDATED_UNSEEN_COUNT, in refreshNotificationsForAccountInternal() 664 intent.getParcelableExtra(UIProvider.UpdateNotificationExtras.EXTRA_ACCOUNT); in handleUpdateNotificationIntent() 666 intent.getParcelableExtra(UIProvider.UpdateNotificationExtras.EXTRA_FOLDER); in handleUpdateNotificationIntent() [all …]
|
/packages/apps/UnifiedEmail/tests/src/com/android/mail/ui/settings/ |
D | GeneralPrefsFragmentTest.java | 29 import com.android.mail.providers.UIProvider; 30 import com.android.mail.providers.UIProvider.AutoAdvance; 73 fragment.onPreferenceChange(autoAdvancePref, UIProvider.AUTO_ADVANCE_MODE_OLDER); in testChangeAutoAdvance() 76 fragment.onPreferenceChange(autoAdvancePref, UIProvider.AUTO_ADVANCE_MODE_NEWER); in testChangeAutoAdvance()
|
/packages/apps/Email/src/com/android/email/activity/setup/ |
D | AccountSettingsEditQuickResponsesFragment.java | 22 import com.android.mail.providers.UIProvider; 80 new String[] {UIProvider.QuickResponseColumns.TEXT}, in onActivityCreated() 91 UIProvider.QUICK_RESPONSE_PROJECTION, null, null, null); in onActivityCreated() 132 c.getString(c.getColumnIndex(UIProvider.QuickResponseColumns.TEXT)); in onCreateView() 134 c.getString(c.getColumnIndex(UIProvider.QuickResponseColumns.URI))); in onCreateView()
|
/packages/apps/UnifiedEmail/tests/src/com/android/mail/compose/ |
D | ComposeActivityTest.java | 36 import com.android.mail.providers.UIProvider; 69 UIProvider.FOLDERS_PROJECTION, null, null, null); in getRefMessage() 74 .getString(UIProvider.FOLDER_CONVERSATION_LIST_URI_COLUMN)); in getRefMessage() 79 UIProvider.CONVERSATION_PROJECTION, null, null, null); in getRefMessage() 84 .getString(UIProvider.CONVERSATION_MESSAGE_LIST_URI_COLUMN)); in getRefMessage() 89 UIProvider.MESSAGE_PROJECTION, null, null, null); in getRefMessage() 419 MatrixCursor cursor = new MatrixCursorWithCachedColumns(UIProvider.MESSAGE_PROJECTION); in getRefMessageWithCc() 421 Object[] messageValues = new Object[UIProvider.MESSAGE_PROJECTION.length]; in getRefMessageWithCc() 422 messageValues[UIProvider.MESSAGE_ID_COLUMN] = Long.valueOf(messageId); in getRefMessageWithCc() 423 messageValues[UIProvider.MESSAGE_URI_COLUMN] = messageUri; in getRefMessageWithCc() [all …]
|