Lines Matching refs:ImapStore
33 import com.android.email.mail.store.ImapStore.ImapMessage;
67 * This is a series of unit tests for the ImapStore class. These tests must be locally
96 private ImapStore mStore = null;
135 * Setup code. We generate a lightweight ImapStore and ImapStore.ImapFolder.
141 ImapStore.sImapId = ImapStore.makeCommonImapId(realContext.getPackageName(),
159 mStore = (ImapStore) ImapStore.newInstance(testAccount, mTestContext);
165 assertEquals("", ImapStore.joinMessageUids(new Message[] {}));
166 assertEquals("a", ImapStore.joinMessageUids(new Message[] {
169 assertEquals("a,XX", ImapStore.joinMessageUids(new Message[] {
251 String id = ImapStore.getImapId(mTestContext, "user-name", "host-name",
264 id = ImapStore.makeCommonImapId("packageName", "version", "codeName",
277 id = ImapStore.makeCommonImapId("packageName", "", "REL",
290 * Test for the interaction between {@link ImapStore#getImapId} and a vendor policy.
302 String id = ImapStore.getImapId(mTestContext, "user-name", "host-name",
328 String id = ImapStore.makeCommonImapId(
355 ImapStore testStore1A = (ImapStore) ImapStore.newInstance(testAccount, mTestContext);
363 ImapStore testStore1B = (ImapStore) ImapStore.newInstance(testAccount, mTestContext);
371 ImapStore testStore2 = (ImapStore) ImapStore.newInstance(testAccount, mTestContext);
374 String id1a = ImapStore.getImapId(mTestContext, "user1", "host-name", capabilities);
375 String id1b = ImapStore.getImapId(mTestContext, "user1", "host-name", capabilities);
376 String id2 = ImapStore.getImapId(mTestContext, "user2", "host-name", capabilities);
557 // Create mock transport and inject it into the ImapStore that's already set up
1297 ImapStore.encodeFolderName("", null));
1299 ImapStore.encodeFolderName("a", null));
1301 ImapStore.encodeFolderName("XYZ", null));
1303 ImapStore.encodeFolderName("\u65E5\u672C\u8A9E", null));
1305 ImapStore.encodeFolderName("!\u65E5\u672C\u8A9E!", null));
1308 ImapStore.encodeFolderName("", ""));
1310 ImapStore.encodeFolderName("a", ""));
1312 ImapStore.encodeFolderName("XYZ", ""));
1314 ImapStore.encodeFolderName("\u65E5\u672C\u8A9E", ""));
1316 ImapStore.encodeFolderName("!\u65E5\u672C\u8A9E!", ""));
1319 ImapStore.encodeFolderName("", "[Gmail]/"));
1321 ImapStore.encodeFolderName("a", "[Gmail]/"));
1323 ImapStore.encodeFolderName("XYZ", "[Gmail]/"));
1325 ImapStore.encodeFolderName("\u65E5\u672C\u8A9E", "[Gmail]/"));
1327 ImapStore.encodeFolderName("!\u65E5\u672C\u8A9E!", "[Gmail]/"));
1330 ImapStore.encodeFolderName("INBOX", "[Gmail]/"));
1332 ImapStore.encodeFolderName("inbox", "[Gmail]/"));
1334 ImapStore.encodeFolderName("InBoX", "[Gmail]/"));
1340 ImapStore.decodeFolderName("", null));
1342 ImapStore.decodeFolderName("a", null));
1344 ImapStore.decodeFolderName("XYZ", null));
1346 ImapStore.decodeFolderName("&ZeVnLIqe-", null));
1348 ImapStore.decodeFolderName("!&ZeVnLIqe-!", null));
1351 ImapStore.decodeFolderName("", ""));
1353 ImapStore.decodeFolderName("a", ""));
1355 ImapStore.decodeFolderName("XYZ", ""));
1357 ImapStore.decodeFolderName("&ZeVnLIqe-", ""));
1359 ImapStore.decodeFolderName("!&ZeVnLIqe-!", ""));
1362 ImapStore.decodeFolderName("[Gmail]/", "[Gmail]/"));
1364 ImapStore.decodeFolderName("[Gmail]/a", "[Gmail]/"));
1366 ImapStore.decodeFolderName("[Gmail]/XYZ", "[Gmail]/"));
1368 ImapStore.decodeFolderName("[Gmail]/&ZeVnLIqe-", "[Gmail]/"));
1370 ImapStore.decodeFolderName("[Gmail]/!&ZeVnLIqe-!", "[Gmail]/"));
1373 ImapStore.decodeFolderName("INBOX/", "[Gmail]/"));
1375 ImapStore.decodeFolderName("INBOX/a", "[Gmail]/"));
1377 ImapStore.decodeFolderName("INBOX/XYZ", "[Gmail]/"));
1379 ImapStore.decodeFolderName("INBOX/&ZeVnLIqe-", "[Gmail]/"));
1381 ImapStore.decodeFolderName("INBOX/!&ZeVnLIqe-!", "[Gmail]/"));
1985 * Test for {@link ImapStore#getConnection}
2348 ImapStore.createHierarchy(testMap);