/packages/apps/Email/tests/src/com/android/email/ |
ControllerProviderOpsTests.java | 26 import com.android.emailcommon.provider.Mailbox; 68 Mailbox.getSystemMailboxName(mContext, -1); 69 fail("Mailbox.getSystemMailboxName(mContext, -1) succeeded without an exception"); 74 assertEquals("Inbox", Mailbox.getSystemMailboxName(mContext, Mailbox.TYPE_INBOX)); 75 assertEquals("Outbox", Mailbox.getSystemMailboxName(mContext, Mailbox.TYPE_OUTBOX)); 76 assertEquals("Trash", Mailbox.getSystemMailboxName(mContext, Mailbox.TYPE_TRASH)); 77 assertEquals("Sent", Mailbox.getSystemMailboxName(mContext, Mailbox.TYPE_SENT)) [all...] |
/packages/apps/Email/tests/src/com/android/emailcommon/provider/ |
MailboxTests.java | 40 * Unit tests for the Mailbox inner class. 72 /** Returns the number of messages in a mailbox. */ 75 ContentUris.withAppendedId(Mailbox.CONTENT_URI, mailboxId), 80 private static Message createMessage(Context c, Mailbox b, boolean starred, boolean read, 94 * Test simple mailbox save/retrieve 99 Account account1 = ProviderTestUtils.setupAccount("mailbox-save", true, c); 101 Mailbox box1 = ProviderTestUtils.setupMailbox("box1", account1Id, true, c); 104 Mailbox box2 = Mailbox.restoreMailboxWithId(c, box1Id); 110 * Test delete mailbox [all...] |
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/ |
MailboxUtilities.java | 39 Mailbox.PARENT_KEY_UNINITIALIZED + ")"; 40 // The flag we use in Account to indicate a mailbox change in progress 44 * Recalculate a mailbox's flags and the parent key of any children 46 * @param parentCursor a cursor to a mailbox that requires fixup 55 long parentId = parentCursor.getLong(Mailbox.CONTENT_ID_COLUMN); 57 int parentType = parentCursor.getInt(Mailbox.CONTENT_TYPE_COLUMN); 58 String parentServerId = parentCursor.getString(Mailbox.CONTENT_SERVER_ID_COLUMN); 60 if (parentType <= Mailbox.TYPE_NOT_EMAIL) { 61 parentFlags |= Mailbox.FLAG_HOLDS_MAIL + Mailbox.FLAG_SUPPORTS_SETTINGS [all...] |
Mailbox.java | 44 public class Mailbox extends EmailContent implements EmailContent.MailboxColumns, Parcelable { 52 * which mailbox to sync. Is intentionally private, we have helper functions 66 * Sync extras key to specify that only a specific mailbox type should be synced. 70 * Sync extras key when syncing a mailbox to specify how many additional messages to sync. 76 public static final String TABLE_NAME = "Mailbox"; 83 CONTENT_URI = Uri.parse(EmailContent.CONTENT_URI + "/mailbox"); 244 * Projection to use when reading {@link MailboxColumns#ACCOUNT_KEY} for a mailbox. 264 // Sentinel values for the mSyncInterval field of both Mailbox records 270 // Ping indicates that the EAS mailbox is synced based on a "ping" from the server 273 // Push-Hold indicates an EAS push or ping Mailbox shouldn't sync just ye 521 Mailbox mailbox = null; local 541 Mailbox mailbox = restoreMailboxForPath(context, accountId, path); local [all...] |
/device/linaro/bootloader/edk2/SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgent/ |
DxeDebugAgentLib.c | 46 It will allocate the NVS memory to store Mailbox and install configuration table
58 DEBUG_AGENT_MAILBOX *Mailbox;
100 DEBUG ((EFI_D_ERROR, "DebugAgent: Cannot install configuration table for mailbox!\n"));
108 // Copy Mailbox and Debug Port Handle buffer to new location in ACPI NVS memory, because original Mailbox
111 Mailbox = GetMailboxPointer ();
112 CopyMem (NewMailbox, Mailbox, sizeof (DEBUG_AGENT_MAILBOX));
113 CopyMem (NewMailbox + 1, (VOID *)(UINTN)Mailbox->DebugPortHandle, PcdGet16(PcdDebugPortHandleBufferSize));
115 // Update Debug Port Handle in new Mailbox
124 DEBUG ((EFI_D_ERROR, "DebugAgent: Failed to install configuration for mailbox!\n")); [all...] |
/device/linaro/bootloader/edk2/SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgent/ |
SecPeiDebugAgentLib.c | 119 Get the pointer to location saved Mailbox pointer from IDT entry.
131 // *MailboxLocation is the pointer to Mailbox
138 Set the pointer of Mailbox into IDT entry before memory is ready.
140 @param[in] MailboxLocation Pointer to location saved Mailbox pointer.
152 Get the location of Mailbox pointer from the GUIDed HOB.
154 @return Pointer to the location saved Mailbox pointer.
172 Get Debug Agent Mailbox pointer.
174 @return Mailbox pointer.
185 DEBUG_AGENT_MAILBOX *Mailbox;
188 // Get mailbox from IDT entry firstly [all...] |
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/ |
MailboxField.java | 27 import org.apache.james.mime4j.field.address.Mailbox; 32 private final Mailbox mailbox; field in class:MailboxField 35 protected MailboxField(final String name, final String body, final String raw, final Mailbox mailbox, final ParseException parseException) { 37 this.mailbox = mailbox; 41 public Mailbox getMailbox() { 42 return mailbox; 53 Mailbox mailbox = null local [all...] |
/device/linaro/bootloader/edk2/SourceLevelDebugPkg/Library/DebugAgent/SmmDebugAgent/ |
SmmDebugAgentLib.c | 63 Get the pointer to Mailbox from the GUIDed HOB.
65 @return Pointer to Mailbox.
75 DEBUG_AGENT_MAILBOX *Mailbox;
82 Mailbox = (DEBUG_AGENT_MAILBOX *)(UINTN)(*MailboxLocation);
83 VerifyMailboxChecksum (Mailbox);
85 return Mailbox;
89 Get Debug Agent Mailbox pointer.
91 @return Mailbox pointer.
159 and initialize debug port. It will get debug agent Mailbox from GUIDed HOB,
160 it it exists, debug agent wiil copied it into the local Mailbox in SMM space. [all...] |
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/address/ |
Mailbox.java | 29 public class Mailbox extends Address { 35 * Creates a mailbox without a route. Routes are obsolete. 39 public Mailbox(String localPart, String domain) { 44 * Creates a mailbox with a route. Routes are obsolete. 49 public Mailbox(DomainList route, String localPart, String domain) {
|
MailboxList.java | 25 * An immutable, random-access list of Mailbox objects. 34 * @param mailboxes An ArrayList that contains only Mailbox objects. 54 public Mailbox get(int index) { 57 return (Mailbox)mailboxes.get(index); 61 * Dumps a representation of this mailbox list to 66 Mailbox mailbox = get(i); local 67 System.out.println(mailbox.toString());
|
NamedMailbox.java | 23 * A Mailbox that has a name/description. 27 public class NamedMailbox extends Mailbox { 31 * @see Mailbox#Mailbox(String, String) 39 * @see Mailbox#Mailbox(DomainList, String, String) 47 * Creates a named mailbox based on an unnamed mailbox. 49 public NamedMailbox(String name, Mailbox baseMailbox) { 55 * Returns the name of the mailbox [all...] |
/packages/apps/Email/provider_src/com/android/email/service/ |
PopImapSyncAdapterService.java | 41 import com.android.emailcommon.provider.Mailbox; 82 * @return whether or not this mailbox retrieves its data from the server (as opposed to just 83 * a local mailbox that is never synced). 85 private static boolean loadsFromServer(Context context, Mailbox m, String protocol) { 91 return m.mType != Mailbox.TYPE_DRAFTS 92 && m.mType != Mailbox.TYPE_OUTBOX 93 && m.mType != Mailbox.TYPE_SEARCH; 96 return Mailbox.TYPE_INBOX == m.mType; 106 Mailbox mailbox = Mailbox.restoreMailboxWithId(context, mailboxId) local [all...] |
EmailServiceStub.java | 54 import com.android.emailcommon.provider.Mailbox; 100 final Mailbox mailbox = Mailbox.restoreMailboxWithId(mContext, mailboxId); local 101 if (mailbox == null) return; 102 final Account account = Account.restoreAccountWithId(mContext, mailbox.mAccountKey); 108 final Bundle extras = Mailbox.createSyncBundle(mailboxId); 115 extras.putInt(Mailbox.SYNC_EXTRA_DELTA_MESSAGE_COUNT, deltaMessageCount); 158 Mailbox mailbox = Mailbox.restoreMailboxWithId(mContext, message.mMailboxKey) local 301 final Mailbox mailbox = Mailbox.newSystemMailbox(mContext, accountId, type); local [all...] |
ImapService.java | 59 import com.android.emailcommon.provider.Mailbox; 92 * Simple cache for last search result mailbox by account and serverId, since the most common 93 * case will be repeated use of the same mailbox 97 private static Mailbox mLastSearchRemoteMailbox = null; 165 final Account account, final Mailbox folder, final boolean loadMore, 235 // Note: mailbox key and account key not needed - they are projected for the SELECT 251 * @param toMailbox the destination mailbox we're syncing 255 Folder remoteFolder, ArrayList<Message> messages, final Mailbox toMailbox) 282 final Mailbox mailbox, Folder remoteFolder, ArrayList<Message> unsyncedMessages 796 Mailbox mailbox = new Mailbox(); local 834 Mailbox mailbox = getRemoteMailboxForMessage(context, oldMessage); local 891 Mailbox mailbox = null; local 956 Mailbox mailbox = null; local 1459 final Mailbox mailbox = Mailbox.restoreMailboxWithId(context, searchParams.mMailboxId); local [all...] |
/packages/apps/Email/provider_src/com/android/email/provider/ |
DBHelper.java | 53 import com.android.emailcommon.provider.Mailbox; 82 "create trigger mailbox_delete before delete on " + Mailbox.TABLE_NAME + 94 " begin delete from " + Mailbox.TABLE_NAME + 125 // Version 13: Add messageCount to Mailbox table. 129 // Version 17: Add parentKey to Mailbox table 130 // Version 18: Copy Mailbox.displayName to Mailbox.serverId for all IMAP & POP3 mailboxes. 131 // Column Mailbox.serverId is used for the server-side pathname of a mailbox. 135 // Version 21: Add lastSeenMessageKey column to Mailbox tabl [all...] |
FolderPickerActivity.java | 34 import com.android.emailcommon.provider.Mailbox; 75 mMailboxType = i.getIntExtra(MAILBOX_TYPE_EXTRA, Mailbox.TYPE_TRASH); 76 long trashMailboxId = Mailbox.findMailboxOfType(this, mAccountId, Mailbox.TYPE_TRASH); 77 // If we already have a trash mailbox, we're done (if in setup; a race?) 78 if (trashMailboxId != Mailbox.NO_MAILBOX && mInSetup) { 187 // If we already have a mailbox of this type, change it back to generic mail type 188 Mailbox ofType = Mailbox.restoreMailboxOfType(this, mAccountId, mMailboxType); 190 values.put(MailboxColumns.TYPE, Mailbox.TYPE_MAIL) 197 Mailbox mailbox = Mailbox.restoreMailboxWithId(this, id); local [all...] |
EmailProvider.java | 96 import com.android.emailcommon.provider.Mailbox; 214 private static final int MAILBOX = MAILBOX_BASE; 296 array.put(MAILBOX_BASE >> BASE_SHIFT, Mailbox.TABLE_NAME); 438 * When we sync folders, we do two passes: First to create the mailbox rows, and second 447 // Update the parentKey for each mailbox row to match the _id of the row whose 454 // update mailbox set parentKey = (select _id from mailbox as b where 455 // mailbox.parentServerId=b.serverId and mailbox.parentServerId not null and 456 // mailbox.accountKey=b.accountKey 3373 Mailbox mailbox = Mailbox.restoreMailboxWithId(context, mailboxId); local 4844 Mailbox mailbox = Mailbox.restoreMailboxOfType(getContext(), accountId, mailboxType); local 5033 final Mailbox mailbox = local 5615 Mailbox mailbox = Mailbox.restoreMailboxWithId(getContext(), id); local [all...] |
EmailConversationCursor.java | 34 import com.android.emailcommon.provider.Mailbox; 47 * any pending notifications for the corresponding mailbox should be canceled). We also handle 48 * getExtras() to provide a snapshot of the mailbox's status 70 Mailbox mailbox = Mailbox.restoreMailboxWithId(context, mailboxId); local 72 if (mailbox != null) { 73 mMailboxTypeId = mailbox.mType; 75 mExtras.putInt(UIProvider.CursorExtraKeys.EXTRA_TOTAL_COUNT, mailbox.mTotalCount); 76 if (mailbox.mUiSyncStatus == EmailContent.SYNC_STATUS_BACKGROUN 130 Mailbox mailbox = Mailbox.restoreMailboxWithId(mContext, mMailboxId); local [all...] |
WidgetProvider.java | 26 import com.android.emailcommon.provider.Mailbox; 95 if (accountId == Account.NO_ACCOUNT || mailboxId == Mailbox.NO_MAILBOX) { 96 LogUtils.d(LOG_TAG, "Couldn't load account or mailbox. accountId: %d" + 104 // Get Account and folder objects for the account id and mailbox id 134 if (mailboxId == Mailbox.QUERY_ALL_INBOXES) { 135 return EmailProvider.getVirtualMailboxId(accountId, Mailbox.TYPE_INBOX); 136 } else if (mailboxId == Mailbox.QUERY_ALL_UNREAD) { 137 return EmailProvider.getVirtualMailboxId(accountId, Mailbox.TYPE_UNREAD); 182 * Returns the saved mailbox ID for the given widget. Otherwise, 183 * {@link com.android.emailcommon.provider.Mailbox#NO_MAILBOX} i [all...] |
/packages/apps/Email/tests/src/com/android/email/mail/ |
StoreTests.java | 30 import com.android.emailcommon.provider.Mailbox; 102 Mailbox testMailbox = new Mailbox(); 104 Store.updateMailbox(testMailbox, 1L, "inbox", '/', true, Mailbox.TYPE_MAIL); 110 Store.updateMailbox(testMailbox, 2L, "inbox/a", '/', true, Mailbox.TYPE_MAIL); 116 Store.updateMailbox(testMailbox, 3L, "inbox/a/b/c/d", '/', true, Mailbox.TYPE_MAIL); 122 Store.updateMailbox(testMailbox, 4L, "inbox/a/b/c", '\0', true, Mailbox.TYPE_MAIL);
|
/device/linaro/bootloader/edk2/SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/ |
DebugAgent.c | 296 Calculate Mailbox checksum and update the checksum field.
298 @param[in] Mailbox Debug Agent Mailbox pointer.
303 IN DEBUG_AGENT_MAILBOX *Mailbox
306 Mailbox->CheckSum = CalculateCheckSum8 ((UINT8 *)Mailbox, sizeof (DEBUG_AGENT_MAILBOX) - 2);
310 Verify Mailbox checksum.
314 @param[in] Mailbox Debug Agent Mailbox pointer.
319 IN DEBUG_AGENT_MAILBOX *Mailbox
[all...] |
/packages/apps/Email/provider_src/com/android/email/mail/store/ |
ImapStore.java | 45 import com.android.emailcommon.provider.Mailbox; 139 case Mailbox.TYPE_INBOX: 140 case Mailbox.TYPE_MAIL: 141 case Mailbox.TYPE_SENT: 142 case Mailbox.TYPE_TRASH: 143 case Mailbox.TYPE_JUNK: 145 case Mailbox.TYPE_NONE: 146 case Mailbox.TYPE_PARENT: 147 case Mailbox.TYPE_DRAFTS: 148 case Mailbox.TYPE_OUTBOX 339 final Mailbox mailbox = folder.mMailbox; local [all...] |
/packages/apps/Email/tests/src/com/android/email/provider/ |
ProviderTests.java | 50 import com.android.emailcommon.provider.Mailbox; 153 db.update(Mailbox.TABLE_NAME, values, null, null); 156 /** Returns the number of messages in a mailbox. */ 159 ContentUris.withAppendedId(Mailbox.CONTENT_URI, mailboxId), 169 Context c, Mailbox b, boolean starred, boolean read, int flagLoaded) { 361 * Get the value of the unread count in the mailbox of the account. 362 * This can be different from the actual number of unread messages in that mailbox. 368 c = mMockContext.getContentResolver().query(Mailbox.CONTENT_URI, 410 Mailbox box1 = ProviderTestUtils.setupMailbox("box1", account1Id, true, mMockContext); 454 Mailbox box1 = ProviderTestUtils.setupMailbox("box1", account1Id, true, mMockContext) [all...] |
ContentCacheTests.java | 34 import com.android.emailcommon.provider.Mailbox; 142 Mailbox box = ProviderTestUtils.setupMailbox("box2", acct.mId, true, context); 146 Uri uri = ContentUris.withAppendedId(Mailbox.CONTENT_URI, box.mId); 148 resolver.query(uri, Mailbox.CONTENT_PROJECTION, null, null, null); 165 assertEquals(Mailbox.CONTENT_PROJECTION.length, columnNames.length); 166 for (int i = 0; i < Mailbox.CONTENT_PROJECTION.length; i++) { 167 assertEquals(Mailbox.CONTENT_PROJECTION[i], columnNames[i]); 190 // cursor = resolver.query(Mailbox.CONTENT_URI, Mailbox.CONTENT_PROJECTION, null, null, null);
|
/packages/apps/Email/src/com/android/email/activity/setup/ |
MailboxSettings.java | 46 import com.android.emailcommon.provider.Mailbox; 63 * "Mailbox settings" activity. 65 * It's used to update per-mailbox sync settings. It normally updates Mailbox settings, unless 66 * the target mailbox is Inbox, in which case it updates Account settings instead. 229 private static final String BUNDLE_MAILBOX = "MailboxSettings.mailbox"; 237 private Mailbox mMailbox; 238 /** The maximum lookback allowed for this mailbox, or 0 if no max. */ 255 final long mailboxId = getArguments().getLong(EXTRA_MAILBOX_ID, Mailbox.NO_MAILBOX); 256 if (mailboxId == Mailbox.NO_MAILBOX) 331 final Mailbox mailbox = Mailbox.restoreMailboxWithId(getContext(), mMailboxId); local 372 final Mailbox mailbox = (Mailbox) local [all...] |