Searched refs:ImapString (Results 1 – 13 of 13) sorted by relevance
/packages/apps/Email/tests/src/com/android/email/mail/store/imap/ |
D | ImapListTest.java | 24 import com.android.email.mail.store.imap.ImapString; 64 final ImapString ABC = new ImapSimpleString("AbC"); in testIs() 65 ImapList list = buildList(ImapList.EMPTY, ABC, LIST_1, ImapString.EMPTY); in testIs() 96 ImapList list = buildList(ImapList.EMPTY, STRING_1, LIST_1, ImapString.EMPTY); in testGetElementOrNone() 101 assertElement(ImapString.EMPTY, list.getElementOrNone(3)); in testGetElementOrNone() 109 ImapList list = buildList(ImapList.EMPTY, STRING_1, LIST_1, ImapString.EMPTY); in testGetListOrEmpty() 122 ImapList list = buildList(ImapList.EMPTY, STRING_1, LIST_1, ImapString.EMPTY); in testGetStringOrEmpty() 124 assertElement(ImapString.EMPTY, list.getStringOrEmpty(0)); in testGetStringOrEmpty() 126 assertElement(ImapString.EMPTY, list.getStringOrEmpty(2)); in testGetStringOrEmpty() 127 assertElement(ImapString.EMPTY, list.getStringOrEmpty(3)); in testGetStringOrEmpty() [all …]
|
D | ImapStringTest.java | 47 assertTrue(ImapString.EMPTY.isEmpty()); in testEmpty() 48 assertEquals("", ImapString.EMPTY.getString()); in testEmpty() 49 assertEquals("", Utility.fromAscii(IOUtils.toByteArray(ImapString.EMPTY.getAsStream()))); in testEmpty() 50 assertFalse(ImapString.EMPTY.isNumber()); in testEmpty() 51 assertFalse(ImapString.EMPTY.isDate()); in testEmpty() 53 assertTrue(ImapString.EMPTY.is("")); in testEmpty() 54 assertTrue(ImapString.EMPTY.startsWith("")); in testEmpty() 55 assertFalse(ImapString.EMPTY.is("a")); in testEmpty() 56 assertFalse(ImapString.EMPTY.startsWith("a")); in testEmpty() 95 final ImapString date = new ImapSimpleString("01-Jan-2009 11:34:56 -0100"); in testGetDateOrNull() [all …]
|
D | ImapTestUtils.java | 24 import com.android.email.mail.store.imap.ImapString; 39 public static final ImapString STRING_1 = new ImapSimpleString("aBc"); 40 public static final ImapString STRING_2 = new ImapSimpleString("X y z");
|
D | ImapResponseParserTest.java | 155 ImapString.EMPTY, in testNil() 156 ImapString.EMPTY, in testNil() 157 ImapString.EMPTY, in testNil()
|
/packages/apps/Email/src/com/android/email/mail/store/imap/ |
D | ImapResponse.java | 93 public ImapString getResponseCodeOrEmpty() { in getResponseCodeOrEmpty() 95 return ImapString.EMPTY; // Not a status response. in getResponseCodeOrEmpty() 105 public ImapString getAlertTextOrEmpty() { in getAlertTextOrEmpty() 107 return ImapString.EMPTY; // Not an ALERT in getAlertTextOrEmpty() 116 public ImapString getStatusResponseTextOrEmpty() { in getStatusResponseTextOrEmpty() 118 return ImapString.EMPTY; in getStatusResponseTextOrEmpty()
|
D | ImapList.java | 106 public final ImapString getStringOrEmpty(int index) { in getStringOrEmpty() 108 return el.isString() ? (ImapString) el : ImapString.EMPTY; in getStringOrEmpty() 145 public final ImapString getKeyedStringOrEmpty(String key) { in getKeyedStringOrEmpty() 153 public final ImapString getKeyedStringOrEmpty(String key, boolean prefixMatch) { in getKeyedStringOrEmpty() 155 return (e != null) ? ((ImapString) e) : ImapString.EMPTY; in getKeyedStringOrEmpty()
|
D | ImapString.java | 37 public abstract class ImapString extends ImapElement { class 40 public static final ImapString EMPTY = new ImapString() { 184 ImapString thatString = (ImapString) that; in equalsForTest()
|
D | ImapResponseParser.java | 283 final ImapString firstString = parseBareString(); in parseResponse() 363 private ImapString parseBareString() throws IOException, MessagingException { in parseBareString() 388 return ImapString.EMPTY; in parseBareString() 433 private ImapString parseLiteral() throws IOException, MessagingException { in parseLiteral()
|
D | ImapSimpleString.java | 27 public class ImapSimpleString extends ImapString {
|
D | ImapMemoryLiteral.java | 32 public class ImapMemoryLiteral extends ImapString {
|
D | ImapTempFileLiteral.java | 40 public class ImapTempFileLiteral extends ImapString {
|
/packages/apps/Email/src/com/android/email/mail/store/ |
D | ImapFolder.java | 31 import com.android.email.mail.store.imap.ImapString; 378 ImapString s = response.getStringOrEmpty(i); in getSearchUids() 602 final ImapString flag = flags.getStringOrEmpty(i); in fetchInternal() 645 ImapString body = fetchList.getKeyedStringOrEmpty("BODY[]", true); in fetchInternal() 778 final ImapString type = bs.getStringOrEmpty(0); in parseBodyStructure() 779 final ImapString subType = bs.getStringOrEmpty(1); in parseBodyStructure() 784 final ImapString cid = bs.getStringOrEmpty(3); in parseBodyStructure() 785 final ImapString encoding = bs.getStringOrEmpty(5); in parseBodyStructure() 1087 final ImapString responseCode = response.getResponseCodeOrEmpty(); in doSelect()
|
D | ImapStore.java | 34 import com.android.email.mail.store.imap.ImapString; 402 ImapString encodedFolder = response.getStringOrEmpty(3); in updateFolders()
|