Lines Matching refs:Folder
48 import com.android.emailcommon.mail.Folder;
49 import com.android.emailcommon.mail.Folder.FolderType;
50 import com.android.emailcommon.mail.Folder.OpenMode;
81 /** Default folder name. In order to test for encoding, we use a non-ascii name. */
83 /** Folder name encoded in UTF-7. */
86 * Flag bits to specify whether or not a folder can be selected. This corresponds to
103 private Folder mCopyToFolder;
184 // TODO: inject specific facts in the initial folder SELECT and check them here
505 // Now open the folder. Although the server indicates ID in the capabilities,
511 * Test small Folder functions that don't really do anything in Imap
520 * Lightweight test to confirm that IMAP hasn't implemented any folder roles yet.
526 assertEquals(Folder.FolderRole.UNKNOWN, mFolder.getRole());
610 private void expectSelect(MockTransport mockTransport, String folder, String readWriteMode) {
612 getNextTag(false) + " SELECT \"" + folder + "\"", new String[] {
620 folder + " selected. (Success)"});
710 * Note: the READ_WRITE mode passed to folder.open() does not affect the test
721 * Note: the READ_ONLY mode passed to folder.open() does not affect the test
1267 "* lIST (\\HAsNoChildren) \"/\" \"&ZeVnLIqe-\"", // Japanese folder name
1270 Folder[] folders = mStore.updateFolders();
1448 final Folder folder = mStore.getFolder("test");
1456 folder.open(OpenMode.READ_WRITE);
1469 folder.open(OpenMode.READ_WRITE);
1470 assertTrue(folder.exists());
1471 assertEquals(1, folder.getMessageCount());
1472 assertEquals(OpenMode.READ_WRITE, folder.getMode());
1474 assertTrue(folder.isOpen());
1475 folder.close(false);
1476 assertFalse(folder.isOpen());
1486 folder.open(OpenMode.READ_WRITE);
1487 assertTrue(folder.exists());
1488 assertEquals(2, folder.getMessageCount());
1489 assertEquals(OpenMode.READ_ONLY, folder.getMode());
1499 folder.open(OpenMode.READ_WRITE);
1500 assertTrue(folder.exists());
1501 assertEquals(15, folder.getMessageCount());
1502 assertEquals(OpenMode.READ_WRITE, folder.getMode());
1509 // Folder exists
1510 Folder folder = mStore.getFolder("\u65E5\u672C\u8A9E");
1517 assertTrue(folder.exists());
1523 folder = mStore.getFolder("no such folder");
1524 mock.expect(getNextTag(false) + " STATUS \\\"no such folder\\\" \\(UIDVALIDITY\\)",
1526 getNextTag(true) + " NO No such folder!"
1529 assertFalse(folder.exists());
1537 Folder folder = mStore.getFolder("\u65E5\u672C\u8A9E");
1539 assertTrue(folder.canCreate(FolderType.HOLDS_MESSAGES));
1546 assertTrue(folder.create(FolderType.HOLDS_MESSAGES));
1554 getNextTag(true) + " nO Can't create folder"
1557 assertFalse(folder.create(FolderType.HOLDS_MESSAGES));
1590 private static class MessageUpdateCallbackCounter implements Folder.MessageUpdateCallbacks {
1696 // Select destination folder
1711 // Select the original folder
1731 // Select destination folder
1746 // Select the original folder
1766 // Select destination folder
1779 // Select the original folder
2078 Folder folder = mStore.getFolder("INBOX");
2093 folder.open(OpenMode.READ_WRITE); // shouldn't crash.
2094 assertEquals(6406, folder.getMessageCount());
2129 * Folder name with special chars in it.
2131 * Gmail puts the folder name in the OK response, which crashed the old parser if there's a
2132 * special char in the folder name.
2137 final String FOLDER_2 = "folder test_06";
2150 final Folder[] folders = mStore.updateFolders();
2153 for (Folder f : folders) {
2195 * Set up the usual mock transport, open the folder,
2255 final Folder folder = mStore.getFolder("test");
2257 mFolder.copyMessages(new Message[] { message }, folder, null);
2298 final Folder folder = mStore.getFolder("test");
2299 folder.open(OpenMode.READ_WRITE);
2304 /** Creates a folder & mailbox */
2306 ImapFolder folder = new ImapFolder(null, serverId);
2313 folder.mMailbox = mailbox;
2314 return folder;
2317 /** Tests creating folder hierarchies */
2342 for (ImapFolder folder : folders) {
2343 testMap.put(folder.getName(), folder);