/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/ |
D | Mailbox.java | 30 import com.android.emailcommon.provider.EmailContent.MailboxColumns; 34 public class Mailbox extends EmailContent implements SyncColumns, MailboxColumns, Parcelable { 95 RECORD_ID, MailboxColumns.DISPLAY_NAME, MailboxColumns.SERVER_ID, 96 MailboxColumns.PARENT_SERVER_ID, MailboxColumns.ACCOUNT_KEY, MailboxColumns.TYPE, 97 MailboxColumns.DELIMITER, MailboxColumns.SYNC_KEY, MailboxColumns.SYNC_LOOKBACK, 98 MailboxColumns.SYNC_INTERVAL, MailboxColumns.SYNC_TIME, 99 MailboxColumns.FLAG_VISIBLE, MailboxColumns.FLAGS, MailboxColumns.VISIBLE_LIMIT, 100 MailboxColumns.SYNC_STATUS, MailboxColumns.PARENT_KEY, MailboxColumns.LAST_TOUCHED_TIME, 101 MailboxColumns.UI_SYNC_STATUS, MailboxColumns.UI_LAST_SYNC_RESULT, 102 MailboxColumns.LAST_NOTIFIED_MESSAGE_KEY, MailboxColumns.LAST_NOTIFIED_MESSAGE_COUNT, [all …]
|
D | EmailContent.java | 77 new String[] {MailboxColumns.ID, MailboxColumns.UNREAD_COUNT, MailboxColumns.MESSAGE_COUNT}; 649 + "SELECT " + MailboxColumns.ID + " FROM " + Mailbox.TABLE_NAME + "" 650 + " WHERE " + MailboxColumns.TYPE + " = " + Mailbox.TYPE_TRASH 657 + "SELECT " + MailboxColumns.ID + " FROM " + Mailbox.TABLE_NAME 658 + " WHERE " + MailboxColumns.TYPE + " = " + Mailbox.TYPE_INBOX 665 + "SELECT " + MailboxColumns.ID + " FROM " + Mailbox.TABLE_NAME 666 + " WHERE " + MailboxColumns.TYPE + " = " + Mailbox.TYPE_DRAFTS 673 + "SELECT " + MailboxColumns.ID + " FROM " + Mailbox.TABLE_NAME 674 + " WHERE " + MailboxColumns.TYPE + " = " + Mailbox.TYPE_OUTBOX 1451 public interface MailboxColumns { interface in EmailContent
|
/packages/apps/Email/src/com/android/email/activity/ |
D | MailboxFragmentAdapter.java | 46 import com.android.emailcommon.provider.EmailContent.MailboxColumns; 111 private static final String[] PROJECTION = new String[] { MailboxColumns.ID, 112 MailboxColumns.ID + " AS " + ORIGINAL_ID, 113 MailboxColumns.DISPLAY_NAME, MailboxColumns.TYPE, MailboxColumns.UNREAD_COUNT, 114 MailboxColumns.MESSAGE_COUNT, ROW_TYPE_MAILBOX + " AS " + ROW_TYPE, 115 MailboxColumns.FLAGS, MailboxColumns.ACCOUNT_KEY }; 121 private static final String[] SUBMAILBOX_PROJECTION = new String[] { MailboxColumns.ID, 122 MailboxColumns.ID + " AS " + ORIGINAL_ID, 123 MailboxColumns.DISPLAY_NAME, MailboxColumns.TYPE, MailboxColumns.UNREAD_COUNT, 124 MailboxColumns.MESSAGE_COUNT, ROW_TYPE_SUBMAILBOX + " AS " + ROW_TYPE, [all …]
|
D | MailboxMoveToAdapter.java | 34 import com.android.emailcommon.provider.EmailContent.MailboxColumns; 47 private static final String ALL_MAILBOX_SELECTION = MailboxColumns.ACCOUNT_KEY + "=?" 51 MailboxColumns.TYPE + " NOT IN (" + Mailbox.TYPE_DRAFTS + "," 53 + MailboxColumns.FLAGS + " & " + Mailbox.FLAG_ACCEPTS_MOVED_MAIL + " != 0)"; 56 MailboxColumns.ID + "!=?"; 64 MailboxColumns.ID, 65 MailboxColumns.ID + " AS org_mailbox_id", 66 MailboxColumns.SERVER_ID, 67 MailboxColumns.TYPE, 71 MailboxColumns.ID, [all …]
|
D | RecentMailboxManager.java | 27 import com.android.emailcommon.provider.EmailContent.MailboxColumns; 45 public static String RECENT_MAILBOXES_SORT_ORDER = MailboxColumns.DISPLAY_NAME; 51 MailboxColumns.ID + " IN " + 52 "( SELECT " + MailboxColumns.ID 54 + " WHERE ( " + MailboxColumns.ACCOUNT_KEY + "=? " 56 + " AND " + MailboxColumns.TYPE + "!=" + Mailbox.TYPE_INBOX 57 + " AND " + MailboxColumns.LAST_TOUCHED_TIME + ">0 )" 58 + " ORDER BY " + MailboxColumns.LAST_TOUCHED_TIME + " DESC" 62 MailboxColumns.ID + " IN " + 63 "( SELECT " + MailboxColumns.ID [all …]
|
D | ShortcutPickerFragment.java | 22 import com.android.emailcommon.provider.EmailContent.MailboxColumns; 297 MailboxColumns.DISPLAY_NAME, 301 MailboxColumns.ID, MailboxColumns.ID + " as " + REAL_ID, 302 MailboxColumns.SERVER_ID + " as " + MailboxColumns.DISPLAY_NAME 306 MailboxColumns.ID, MailboxColumns.ID + " as " + REAL_ID, 307 MailboxColumns.DISPLAY_NAME 311 MailboxColumns.ID, REAL_ID, MailboxColumns.DISPLAY_NAME 316 private final static String ALL_MAILBOX_SELECTION = MailboxColumns.ACCOUNT_KEY + "=?" + 320 " AND " + MailboxColumns.TYPE + " = " + Mailbox.TYPE_INBOX; 383 orderBy = MailboxColumns.DISPLAY_NAME; in onCreateLoader() [all …]
|
D | AccountSelectorAdapter.java | 40 import com.android.emailcommon.provider.EmailContent.MailboxColumns; 432 MailboxColumns.ID, MailboxColumns.DISPLAY_NAME, MailboxColumns.TYPE, 433 MailboxColumns.UNREAD_COUNT, MailboxColumns.MESSAGE_COUNT 440 Utility.buildInSelection(MailboxColumns.ID, mailboxIds), null, in addMailboxRows() 446 c.getLong(c.getColumnIndex(MailboxColumns.ID)), in addMailboxRows() 507 MailboxColumns.ID, MailboxColumns.DISPLAY_NAME, MailboxColumns.TYPE, 508 MailboxColumns.UNREAD_COUNT, MailboxColumns.MESSAGE_COUNT
|
/packages/apps/Email/src/com/android/email/provider/ |
D | DBHelper.java | 42 import com.android.emailcommon.provider.EmailContent.MailboxColumns; 74 " where " + MailboxColumns.ACCOUNT_KEY + "=old." + EmailContent.RECORD_ID + 225 " begin update " + Mailbox.TABLE_NAME + " set " + MailboxColumns.UNREAD_COUNT + in createMessageTable() 226 '=' + MailboxColumns.UNREAD_COUNT + "+1" + in createMessageTable() 233 " begin update " + Mailbox.TABLE_NAME + " set " + MailboxColumns.UNREAD_COUNT + in createMessageTable() 234 '=' + MailboxColumns.UNREAD_COUNT + "-1" + in createMessageTable() 242 " begin update " + Mailbox.TABLE_NAME + " set " + MailboxColumns.UNREAD_COUNT + in createMessageTable() 243 '=' + MailboxColumns.UNREAD_COUNT + "-1" + in createMessageTable() 245 "; update " + Mailbox.TABLE_NAME + " set " + MailboxColumns.UNREAD_COUNT + in createMessageTable() 246 '=' + MailboxColumns.UNREAD_COUNT + "+1" + in createMessageTable() [all …]
|
D | EmailProvider.java | 50 import com.android.emailcommon.provider.EmailContent.MailboxColumns; 269 private static final String MAILBOX_PRE_CACHE_SELECTION = MailboxColumns.TYPE + " IN (" + 492 deleteUnlinked(mDatabase, Mailbox.TABLE_NAME, MailboxColumns.ACCOUNT_KEY, AccountColumns.ID, in getDatabase() 923 values.put(MailboxColumns.UNREAD_COUNT, 0); in insert() 924 values.put(MailboxColumns.MESSAGE_COUNT, 0); in insert() 947 if (values.containsKey(MailboxColumns.TYPE)) { in insert() 949 int type = values.getAsInteger(MailboxColumns.TYPE); in insert() 1003 values.put(MailboxColumns.ACCOUNT_KEY, longId); in insert() 1465 values.remove(MailboxColumns.UNREAD_COUNT); in update() 1466 values.remove(MailboxColumns.MESSAGE_COUNT); in update() [all …]
|
/packages/apps/Exchange/exchange2/src/com/android/exchange/adapter/ |
D | FolderSyncParser.java | 31 import com.android.emailcommon.provider.EmailContent.MailboxColumns; 82 public static final String ALL_BUT_ACCOUNT_MAILBOX = MailboxColumns.ACCOUNT_KEY + "=? and " + 83 MailboxColumns.TYPE + "!=" + Mailbox.TYPE_EAS_ACCOUNT_MAILBOX; 85 private static final String WHERE_SERVER_ID_AND_ACCOUNT = MailboxColumns.SERVER_ID + "=? and " + 86 MailboxColumns.ACCOUNT_KEY + "=?"; 88 private static final String WHERE_DISPLAY_NAME_AND_ACCOUNT = MailboxColumns.DISPLAY_NAME + 89 "=? and " + MailboxColumns.ACCOUNT_KEY + "=?"; 92 MailboxColumns.PARENT_SERVER_ID +"=? and " + MailboxColumns.ACCOUNT_KEY + "=?"; 95 new String[] {MailboxColumns.ID, MailboxColumns.SERVER_ID, MailboxColumns.PARENT_SERVER_ID}; 120 UNINITIALIZED_PARENT_KEY.put(MailboxColumns.PARENT_KEY, Mailbox.PARENT_KEY_UNINITIALIZED); in UNINITIALIZED_PARENT_KEY.put() [all …]
|
D | AbstractSyncParser.java | 25 import com.android.emailcommon.provider.EmailContent.MailboxColumns; 180 cv.put(MailboxColumns.SYNC_KEY, newKey); in parse() 205 cv.put(MailboxColumns.SYNC_INTERVAL, mMailbox.mSyncInterval); in parse() 212 cv.put(MailboxColumns.SYNC_INTERVAL, Mailbox.CHECK_INTERVAL_PING); in parse()
|
/packages/apps/Email/src/com/android/email/ |
D | FolderProperties.java | 19 import com.android.emailcommon.provider.EmailContent.MailboxColumns; 134 c.getInt(c.getColumnIndex(MailboxColumns.TYPE)), in getDisplayName() 135 c.getLong(c.getColumnIndex(MailboxColumns.ID)), in getDisplayName() 136 c.getString(c.getColumnIndex(MailboxColumns.DISPLAY_NAME)) in getDisplayName() 173 c.getInt(c.getColumnIndex(MailboxColumns.TYPE)), in getMessageCount() 174 c.getInt(c.getColumnIndex(MailboxColumns.UNREAD_COUNT)), in getMessageCount() 175 c.getInt(c.getColumnIndex(MailboxColumns.MESSAGE_COUNT)) in getMessageCount()
|
D | Controller.java | 46 import com.android.emailcommon.provider.EmailContent.MailboxColumns; 95 MailboxColumns.TYPE + "=" + Mailbox.TYPE_ATTACHMENT; 109 private static final String MAILBOXES_FOR_ACCOUNT_SELECTION = MailboxColumns.ACCOUNT_KEY + "=?"; 111 MAILBOXES_FOR_ACCOUNT_SELECTION + " AND " + MailboxColumns.TYPE + "!=" + 662 cv.put(MailboxColumns.VISIBLE_LIMIT, Email.VISIBLE_LIMIT_DEFAULT); in resetVisibleLimits() 664 MailboxColumns.ACCOUNT_KEY + "=?", in resetVisibleLimits() 705 cv.put(EmailContent.FIELD_COLUMN_NAME, MailboxColumns.VISIBLE_LIMIT); in loadMoreMessages()
|
/packages/apps/Email/tests/src/com/android/email/ |
D | FolderPropertiesTests.java | 19 import com.android.emailcommon.provider.EmailContent.MailboxColumns; 103 String[] columns = new String[] {MailboxColumns.ID, MailboxColumns.TYPE, in testGetDisplayNameWithCursor() 104 MailboxColumns.DISPLAY_NAME}; in testGetDisplayNameWithCursor() 150 String[] columns = new String[] {MailboxColumns.TYPE, MailboxColumns.UNREAD_COUNT, in testGetMessageCountWithCursor() 151 MailboxColumns.MESSAGE_COUNT}; in testGetMessageCountWithCursor()
|
/packages/apps/Exchange/exchange2/src/com/android/exchange/ |
D | CalendarSyncAdapterService.java | 36 import com.android.emailcommon.provider.EmailContent.MailboxColumns; 45 MailboxColumns.ACCOUNT_KEY + "=? AND " + MailboxColumns.TYPE + '=' + Mailbox.TYPE_CALENDAR; 49 new String[] {MailboxColumns.ID, MailboxColumns.SYNC_KEY};
|
D | EmailSyncAdapterService.java | 21 import com.android.emailcommon.provider.EmailContent.MailboxColumns; 45 MailboxColumns.ACCOUNT_KEY + "=? AND " + MailboxColumns.TYPE + '=' + Mailbox.TYPE_INBOX;
|
D | EasAccountService.java | 38 import com.android.emailcommon.provider.EmailContent.MailboxColumns; 70 MailboxColumns.ACCOUNT_KEY + "=? and " + MailboxColumns.SYNC_INTERVAL + 73 MailboxColumns.SYNC_INTERVAL + " IN (" + Mailbox.CHECK_INTERVAL_PING + 74 ',' + Mailbox.CHECK_INTERVAL_PUSH + ") AND " + MailboxColumns.TYPE + "!=\"" + 77 MailboxColumns.ACCOUNT_KEY + "=? and " + MailboxColumns.SYNC_INTERVAL + 80 MailboxColumns.ACCOUNT_KEY + "=? and " + MailboxColumns.SERVER_ID + "=?"; 553 MailboxColumns.ACCOUNT_KEY + '=' + mAccount.mId + in runPingLoop()
|
D | ContactsSyncAdapterService.java | 20 import com.android.emailcommon.provider.EmailContent.MailboxColumns; 47 MailboxColumns.ACCOUNT_KEY + "=? AND " + MailboxColumns.TYPE + '=' + Mailbox.TYPE_CONTACTS;
|
D | ExchangeService.java | 59 import com.android.emailcommon.provider.EmailContent.MailboxColumns; 147 MailboxColumns.ACCOUNT_KEY + "=? and " + MailboxColumns.TYPE + "!=" + 148 Mailbox.TYPE_EAS_ACCOUNT_MAILBOX + " and " + MailboxColumns.SYNC_INTERVAL + 151 MailboxColumns.ACCOUNT_KEY + "=? and type in (" + Mailbox.TYPE_INBOX + ',' 155 MailboxColumns.ACCOUNT_KEY + "=? and type = " + Mailbox.TYPE_INBOX ; 160 "(" + MailboxColumns.TYPE + '=' + Mailbox.TYPE_OUTBOX 161 + " or " + MailboxColumns.SYNC_INTERVAL + "!=" + Mailbox.CHECK_INTERVAL_NEVER + ')' 162 + " and " + MailboxColumns.ACCOUNT_KEY + " in ("; 163 private static final String ACCOUNT_KEY_IN = MailboxColumns.ACCOUNT_KEY + " in ("; 571 cv.put(MailboxColumns.FLAGS, in collectEasAccounts() [all …]
|
/packages/apps/Exchange/exchange2/src/com/android/exchange/provider/ |
D | MailboxUtilities.java | 28 import com.android.emailcommon.provider.EmailContent.MailboxColumns; 33 "(" + MailboxColumns.PARENT_KEY + " isnull OR " + MailboxColumns.PARENT_KEY + "=" + 69 Mailbox.ID_PROJECTION, MailboxColumns.PARENT_SERVER_ID + "=? AND " + in setFlagsAndChildrensParentKey() 106 Mailbox.CONTENT_PROJECTION, MailboxColumns.SERVER_ID + "=? AND " + accountSelector, in setFlagsAndChildrensParentKey()
|
/packages/apps/Exchange/exchange2/tests/src/com/android/exchange/provider/ |
D | MailboxUtilitiesTests.java | 20 import com.android.emailcommon.provider.EmailContent.MailboxColumns; 88 String accountSelector = MailboxColumns.ACCOUNT_KEY + " IN (" + mAccount.mId + ")"; in testSetupParentKeyAndFlag() 132 String accountSelector = MailboxColumns.ACCOUNT_KEY + " IN (" + mAccount.mId + ")"; in testParentKeyAddFolder1() 183 String accountSelector = MailboxColumns.ACCOUNT_KEY + " IN (" + mAccount.mId + ")"; in testParentKeyAddFolder2() 227 String accountSelector = MailboxColumns.ACCOUNT_KEY + " IN (" + mAccount.mId + ")"; in testParentKeyAddFolder3() 271 String accountSelector = MailboxColumns.ACCOUNT_KEY + " IN (" + mAccount.mId + ")"; in testParentKeyRemoveFolder1() 324 String accountSelector = MailboxColumns.ACCOUNT_KEY + " IN (" + mAccount.mId + ")"; in testParentKeyRemoveFolder2() 377 String accountSelector = MailboxColumns.ACCOUNT_KEY + " IN (" + mAccount.mId + ")"; in testParentKeyRemoveFolder3() 430 String accountSelector = MailboxColumns.ACCOUNT_KEY + " IN (" + mAccount.mId + ")"; in testChangeFromNoParentToParent() 487 String accountSelector = MailboxColumns.ACCOUNT_KEY + " IN (" + mAccount.mId + ")"; in testChangeFromParentToNoParent() [all …]
|
/packages/apps/Exchange/tests/src/com/android/exchange/provider/ |
D | MailboxUtilitiesTests.java | 20 import com.android.emailcommon.provider.EmailContent.MailboxColumns; 88 String accountSelector = MailboxColumns.ACCOUNT_KEY + " IN (" + mAccount.mId + ")"; in testSetupParentKeyAndFlag() 132 String accountSelector = MailboxColumns.ACCOUNT_KEY + " IN (" + mAccount.mId + ")"; in testParentKeyAddFolder1() 183 String accountSelector = MailboxColumns.ACCOUNT_KEY + " IN (" + mAccount.mId + ")"; in testParentKeyAddFolder2() 227 String accountSelector = MailboxColumns.ACCOUNT_KEY + " IN (" + mAccount.mId + ")"; in testParentKeyAddFolder3() 271 String accountSelector = MailboxColumns.ACCOUNT_KEY + " IN (" + mAccount.mId + ")"; in testParentKeyRemoveFolder1() 324 String accountSelector = MailboxColumns.ACCOUNT_KEY + " IN (" + mAccount.mId + ")"; in testParentKeyRemoveFolder2() 377 String accountSelector = MailboxColumns.ACCOUNT_KEY + " IN (" + mAccount.mId + ")"; in testParentKeyRemoveFolder3() 430 String accountSelector = MailboxColumns.ACCOUNT_KEY + " IN (" + mAccount.mId + ")"; in testChangeFromNoParentToParent() 487 String accountSelector = MailboxColumns.ACCOUNT_KEY + " IN (" + mAccount.mId + ")"; in testChangeFromParentToNoParent() [all …]
|
/packages/apps/Email/src/com/android/email/activity/setup/ |
D | MailboxSettings.java | 43 import com.android.emailcommon.provider.EmailContent.MailboxColumns; 359 cv.put(MailboxColumns.SYNC_INTERVAL, mailbox.mSyncInterval); in saveToDatabase() 360 cv.put(MailboxColumns.SYNC_LOOKBACK, mailbox.mSyncLookback); in saveToDatabase()
|
/packages/apps/Email/tests/src/com/android/email/activity/ |
D | RecentMailboxManagerTest.java | 29 import com.android.emailcommon.provider.EmailContent.MailboxColumns; 241 cv.put(MailboxColumns.FLAG_VISIBLE, false); in testDoesNotIncludeExtraMailboxes()
|
/packages/apps/Email/tests/src/com/android/emailcommon/provider/ |
D | MailboxTests.java | 22 import com.android.emailcommon.provider.EmailContent.MailboxColumns; 74 new String[] {MailboxColumns.MESSAGE_COUNT}, null, null, null, 0); in getMessageCount() 120 String selection = EmailContent.MailboxColumns.ACCOUNT_KEY + "=?"; in testDelete() 491 cv.put(EmailContent.FIELD_COLUMN_NAME, MailboxColumns.SYNC_INTERVAL); in testUpdateCacheMailboxIdAddToField()
|