/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/ |
QuickResponse.java | 22 import com.android.emailcommon.provider.EmailContent.QuickResponseColumns; 28 public abstract class QuickResponse extends EmailContent 35 CONTENT_URI = Uri.parse(EmailContent.CONTENT_URI + "/quickresponse"); 36 ACCOUNT_ID_URI = Uri.parse(EmailContent.CONTENT_URI + "/quickresponse/account");
|
EmailContent.java | 56 * EmailContent is the superclass of the various classes of content stored by EmailProvider. 74 public abstract class EmailContent { 87 * This projection can be used with any of the EmailContent classes, when all you need 176 LogUtils.d("EmailContent", "init for " + AUTHORITY); 227 * Restore a subclass of EmailContent from the database 230 * @param contentUri the content uri of the EmailContent subclass 231 * @param contentProjection the content projection for the EmailContent subclass 235 public static <T extends EmailContent> T restoreContentWithId(Context context, 240 public static <T extends EmailContent> T restoreContentWithId(final Context context, 338 WeakReference<EmailContent> mContent [all...] |
/packages/apps/Email/provider_src/com/android/email/provider/ |
Utilities.java | 34 import com.android.emailcommon.provider.EmailContent; 35 import com.android.emailcommon.provider.EmailContent.Attachment; 36 import com.android.emailcommon.provider.EmailContent.MessageColumns; 37 import com.android.emailcommon.provider.EmailContent.SyncColumns; 55 * EmailContent.Message.LOADED) 59 EmailContent.Message localMessage = null; 63 EmailContent.Message.CONTENT_URI, 64 EmailContent.Message.CONTENT_PROJECTION, 65 EmailContent.MessageColumns.ACCOUNT_KEY + "=?" + 77 localMessage = EmailContent.getContent(context, c, EmailContent.Message.class) [all...] |
EmailConversationCursor.java | 33 import com.android.emailcommon.provider.EmailContent; 76 if (mailbox.mUiSyncStatus == EmailContent.SYNC_STATUS_BACKGROUND 77 || mailbox.mUiSyncStatus == EmailContent.SYNC_STATUS_USER 78 || mailbox.mUiSyncStatus == EmailContent.SYNC_STATUS_LIVE 79 || mailbox.mUiSyncStatus == EmailContent.SYNC_STATUS_INITIAL_SYNC_NEEDED) { 82 } else if (mailbox.mUiSyncStatus == EmailContent.SYNC_STATUS_NONE) { 141 final Uri refreshUri = Uri.parse(EmailContent.CONTENT_URI + 180 final String senderString = getString(getColumnIndex(EmailContent.MessageColumns.DISPLAY_NAME)); 182 final String fromString = getString(getColumnIndex(EmailContent.MessageColumns.FROM_LIST)); 206 EmailContent.MessageColumns.TO_LIST)) [all...] |
/packages/apps/Email/tests/src/com/android/emailcommon/provider/ |
AccountTest.java | 30 json.put(EmailContent.AccountColumns.DISPLAY_NAME, "David Hasselhoff"); 31 json.put(EmailContent.AccountColumns.EMAIL_ADDRESS, "dhoff@example.com"); 32 json.put(EmailContent.AccountColumns.SYNC_LOOKBACK, 42); 33 json.put(EmailContent.AccountColumns.SYNC_INTERVAL, 99); 36 json.put(EmailContent.AccountColumns.FLAGS, 22); 37 json.put(EmailContent.AccountColumns.SENDER_NAME, "Friend of Kitt"); 38 json.put(EmailContent.AccountColumns.PROTOCOL_VERSION, "protocol version 3.14"); 39 json.put(EmailContent.AccountColumns.SIGNATURE, "David with a heart over the i"); 40 json.put(EmailContent.AccountColumns.PING_DURATION, 77);
|
QuickResponseTests.java | 37 super(EmailProvider.class, EmailContent.AUTHORITY);
|
HostAuthTests.java | 225 json.put(EmailContent.HostAuthColumns.PROTOCOL, "IMAP"); 226 json.put(EmailContent.HostAuthColumns.ADDRESS, "dhoff@example.com"); 227 json.put(EmailContent.HostAuthColumns.PORT, 1337); 228 json.put(EmailContent.HostAuthColumns.FLAGS, 293847); 229 json.put(EmailContent.HostAuthColumns.LOGIN, "dhoff"); 230 json.put(EmailContent.HostAuthColumns.PASSWORD, "daknightrida"); 231 json.put(EmailContent.HostAuthColumns.DOMAIN, "example.com"); 232 json.put(EmailContent.HostAuthColumns.CLIENT_CERT_ALIAS, "I'm a client cert alias");
|
/packages/apps/Email/tests/src/com/android/email/provider/ |
AccountBackupRestoreTests.java | 27 import com.android.emailcommon.provider.EmailContent; 43 super(EmailProvider.class, EmailContent.AUTHORITY); 98 assertEquals(2, EmailContent.count(mMockContext, Account.CONTENT_URI)); 99 assertEquals(4, EmailContent.count(mMockContext, HostAuth.CONTENT_URI)); 110 assertEquals(0, EmailContent.count(mMockContext, Account.CONTENT_URI)); 111 assertEquals(0, EmailContent.count(mMockContext, HostAuth.CONTENT_URI)); 119 assertEquals(2, EmailContent.count(mMockContext, Account.CONTENT_URI)); 120 assertEquals(4, EmailContent.count(mMockContext, HostAuth.CONTENT_URI));
|
PolicyTests.java | 27 import com.android.emailcommon.provider.EmailContent; 28 import com.android.emailcommon.provider.EmailContent.Attachment; 29 import com.android.emailcommon.provider.EmailContent.AttachmentColumns; 30 import com.android.emailcommon.provider.EmailContent.Message; 52 super(EmailProvider.class, EmailContent.AUTHORITY); 95 assertEquals(0, EmailContent.count(mMockContext, Policy.CONTENT_URI)); 112 assertEquals(0, EmailContent.count(mMockContext, Policy.CONTENT_URI)); 148 assertEquals(4, EmailContent.count(mMockContext, Attachment.CONTENT_URI)); 150 assertEquals(0, EmailContent.count(mMockContext, Attachment.CONTENT_URI, 155 assertEquals(4, EmailContent.count(mMockContext, Attachment.CONTENT_URI [all...] |
ProviderTests.java | 39 import com.android.emailcommon.provider.EmailContent; 40 import com.android.emailcommon.provider.EmailContent.AccountColumns; 41 import com.android.emailcommon.provider.EmailContent.Attachment; 42 import com.android.emailcommon.provider.EmailContent.AttachmentColumns; 43 import com.android.emailcommon.provider.EmailContent.Body; 44 import com.android.emailcommon.provider.EmailContent.BodyColumns; 45 import com.android.emailcommon.provider.EmailContent.MailboxColumns; 46 import com.android.emailcommon.provider.EmailContent.Message; 47 import com.android.emailcommon.provider.EmailContent.MessageColumns; 48 import com.android.emailcommon.provider.EmailContent.PolicyColumns [all...] |
/packages/apps/Email/tests/src/com/android/email/ |
LegacyConversionsTests.java | 40 import com.android.emailcommon.provider.EmailContent; 41 import com.android.emailcommon.provider.EmailContent.Attachment; 63 super(EmailProvider.class, EmailContent.AUTHORITY); 88 final EmailContent.Message localMessage = ProviderTestUtils.setupMessage( 94 final EmailContent.Message localMessage2 = ProviderTestUtils.setupMessage( 103 private void convertAndCheckcheckAddedAttachments(final EmailContent.Message localMessage, 176 final EmailContent.Message localMessage = ProviderTestUtils.setupMessage( 194 final EmailContent.Message localMessage = ProviderTestUtils.setupMessage( 208 assertEquals(2, EmailContent.count(mProviderContext, uri, null, null)); 212 assertEquals(2, EmailContent.count(mProviderContext, uri, null, null)) [all...] |
LegacyConversionsTest.java | 32 import com.android.emailcommon.provider.EmailContent; 33 import com.android.emailcommon.provider.EmailContent.Attachment; 64 final EmailContent.Message localMessage = new EmailContent.Message(); 101 final EmailContent.Message localMessage = new EmailContent.Message(); 143 final EmailContent.Message localMessage = new EmailContent.Message(); 172 final EmailContent.Message localMessage = new EmailContent.Message() [all...] |
ControllerProviderOpsTests.java | 25 import com.android.emailcommon.provider.EmailContent; 46 super(EmailProvider.class, EmailContent.AUTHORITY);
|
SecurityPolicyTests.java | 31 import com.android.emailcommon.provider.EmailContent; 32 import com.android.emailcommon.provider.EmailContent.Message; 52 super(EmailProvider.class, EmailContent.AUTHORITY); 411 assertEquals(2, EmailContent.count(mMockContext, Account.CONTENT_URI)); 412 assertEquals(2, EmailContent.count(mMockContext, Mailbox.CONTENT_URI)); 413 assertEquals(4, EmailContent.count(mMockContext, Message.CONTENT_URI)); 429 assertEquals(3, EmailContent.count(mMockContext, Account.CONTENT_URI)); 430 assertEquals(3, EmailContent.count(mMockContext, Mailbox.CONTENT_URI)); 431 assertEquals(6, EmailContent.count(mMockContext, Message.CONTENT_URI)); 437 assertEquals(3, EmailContent.count(mMockContext, Account.CONTENT_URI)) [all...] |
/packages/apps/Email/provider_src/com/android/email/service/ |
EmailServiceStub.java | 47 import com.android.emailcommon.provider.EmailContent; 48 import com.android.emailcommon.provider.EmailContent.Attachment; 49 import com.android.emailcommon.provider.EmailContent.AttachmentColumns; 50 import com.android.emailcommon.provider.EmailContent.Body; 51 import com.android.emailcommon.provider.EmailContent.BodyColumns; 52 import com.android.emailcommon.provider.EmailContent.MailboxColumns; 53 import com.android.emailcommon.provider.EmailContent.MessageColumns; 117 ContentResolver.requestSync(acct, EmailContent.AUTHORITY, extras); 137 final EmailContent.Message message = 138 EmailContent.Message.restoreMessageWithId(mContext, attachment.mMessageKey) [all...] |
PopImapSyncAdapterService.java | 37 import com.android.emailcommon.provider.EmailContent; 38 import com.android.emailcommon.provider.EmailContent.AccountColumns; 39 import com.android.emailcommon.provider.EmailContent.Message; 40 import com.android.emailcommon.provider.EmailContent.MessageColumns; 125 final int syncStatus = uiRefresh ? EmailContent.SYNC_STATUS_USER : 126 EmailContent.SYNC_STATUS_BACKGROUND; 137 EmailContent.LAST_SYNC_RESULT_SUCCESS); 157 EmailContent.LAST_SYNC_RESULT_CONNECTION_ERROR); 164 EmailContent.LAST_SYNC_RESULT_AUTH_ERROR); 171 EmailContent.LAST_SYNC_RESULT_SERVER_ERROR) [all...] |
ImapService.java | 55 import com.android.emailcommon.provider.EmailContent; 56 import com.android.emailcommon.provider.EmailContent.MailboxColumns; 57 import com.android.emailcommon.provider.EmailContent.MessageColumns; 58 import com.android.emailcommon.provider.EmailContent.SyncColumns; 277 EmailContent.Message.FLAG_LOADED_COMPLETE); 313 final EmailContent.Message localMessage; 315 localMessage = new EmailContent.Message(); 317 localMessage = EmailContent.Message.restoreMessageWithId( 403 localOldestCursor = resolver.query(EmailContent.Message.CONTENT_URI, 405 EmailContent.MessageColumns.ACCOUNT_KEY + "=?" + " AND " [all...] |
Pop3Service.java | 45 import com.android.emailcommon.provider.EmailContent; 46 import com.android.emailcommon.provider.EmailContent.Attachment; 47 import com.android.emailcommon.provider.EmailContent.AttachmentColumns; 48 import com.android.emailcommon.provider.EmailContent.Message; 49 import com.android.emailcommon.provider.EmailContent.MessageColumns; 50 import com.android.emailcommon.provider.EmailContent.SyncColumns; 144 EmailContent.RECORD_ID, MessageColumns.FLAG_LOADED, SyncColumns.SERVER_ID 184 int flag = EmailContent.Message.FLAG_LOADED_COMPLETE; 191 flag = EmailContent.Message.FLAG_LOADED_PARTIAL; 247 EmailContent.Message.CONTENT_URI [all...] |
AuthenticatorService.java | 21 import com.android.emailcommon.provider.EmailContent; 98 ContentResolver.setIsSyncable(account, EmailContent.AUTHORITY, 1); 99 ContentResolver.setSyncAutomatically(account, EmailContent.AUTHORITY,
|
/packages/apps/Email/provider_src/com/android/email/ |
NotificationController.java | 22 import com.android.emailcommon.provider.EmailContent.Attachment;
|
LegacyConversions.java | 41 import com.android.emailcommon.provider.EmailContent; 42 import com.android.emailcommon.provider.EmailContent.Attachment; 43 import com.android.emailcommon.provider.EmailContent.AttachmentColumns; 78 public static boolean updateMessageFields(final EmailContent.Message localMessage, 105 localMessage.mFlags |= EmailContent.Message.FLAG_REPLIED_TO; 110 if (localMessage.mFlagLoaded != EmailContent.Message.FLAG_LOADED_COMPLETE) { 112 localMessage.mFlagLoaded = EmailContent.Message.FLAG_LOADED_UNLOADED; 114 localMessage.mFlagLoaded = EmailContent.Message.FLAG_LOADED_PARTIAL; 166 final EmailContent.Message localMessage, final ArrayList<Part> attachments) 175 final EmailContent.Message localMessage, final ArrayList<Part> inlineAttachments [all...] |
/packages/apps/Email/src/com/android/email/activity/setup/ |
AccountFinalizeFragment.java | 29 import com.android.emailcommon.provider.EmailContent; 121 cv.put(EmailContent.AccountColumns.DISPLAY_NAME, mAccount.getDisplayName()); 122 cv.put(EmailContent.AccountColumns.SENDER_NAME, mAccount.getSenderName());
|
HeadlessAccountSettingsLoader.java | 13 import com.android.emailcommon.provider.EmailContent; 25 final Uri.Builder baseUri = Uri.parse("auth://" + EmailContent.EMAIL_PACKAGE_NAME +
|
/packages/apps/Email/src/com/android/email/activity/ |
ComposeActivityEmail.java | 26 import com.android.emailcommon.provider.EmailContent; 75 return EmailContent.AUTHORITY;
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/service/ |
ServiceProxy.java | 31 import com.android.emailcommon.provider.EmailContent; 68 * see who is the EmailContent.AUTHORITY as there is only one app that can implement 71 final Intent intent = new Intent(EmailContent.EMAIL_PACKAGE_NAME + "." + actionName); 73 EmailContent.AUTHORITY, 0);
|