Home
last modified time | relevance | path

Searched refs:getStringOrEmpty (Results 1 – 7 of 7) sorted by relevance

/packages/apps/Email/src/com/android/email/mail/store/imap/
DImapResponse.java55 return isStatusResponse(getStringOrEmpty(0).getString()); in isStatusResponse()
85 return !isTagged() && getStringOrEmpty(index).is(responseType); in isDataResponse()
97 return getListOrEmpty(1).getStringOrEmpty(0); in getResponseCodeOrEmpty()
110 return getStringOrEmpty(2); in getAlertTextOrEmpty()
120 return getStringOrEmpty(getElementOrNone(1).isList() ? 2 : 1); in getStatusResponseTextOrEmpty()
DImapList.java79 return getStringOrEmpty(index).is(s); in is()
81 return getStringOrEmpty(index).startsWith(s); in is()
106 public final ImapString getStringOrEmpty(int index) { in getStringOrEmpty() method in ImapList
163 if (getStringOrEmpty(i).is(s)) { in contains()
212 sb.append(getStringOrEmpty(i).getString()); in flatten()
/packages/apps/Email/tests/src/com/android/email/mail/store/imap/
DImapListTest.java124 assertElement(ImapString.EMPTY, list.getStringOrEmpty(0)); in testGetStringOrEmpty()
125 assertElement(STRING_1, list.getStringOrEmpty(1)); in testGetStringOrEmpty()
126 assertElement(ImapString.EMPTY, list.getStringOrEmpty(2)); in testGetStringOrEmpty()
127 assertElement(ImapString.EMPTY, list.getStringOrEmpty(3)); in testGetStringOrEmpty()
128 assertElement(ImapString.EMPTY, list.getStringOrEmpty(4)); // Out of index. in testGetStringOrEmpty()
131 assertElement(ImapString.EMPTY, ImapList.EMPTY.getStringOrEmpty(0)); in testGetStringOrEmpty()
DImapResponseParserTest.java255 r.getStringOrEmpty(1).getString()); in testBracket()
258 assertEquals("B[a b c]d", r.getStringOrEmpty(1).getString()); in testBracket()
383 assertEquals("a b c", p.readResponse().getStringOrEmpty(1).getString()); in testLiteralStringConversion()
/packages/apps/Email/src/com/android/email/mail/store/
DImapFolder.java285 String responseCode = copyResponse.getStringOrEmpty(0).getString(); in copyMessages()
288 String origIdSet = copyResponse.getStringOrEmpty(2).getString(); in copyMessages()
289 String newIdSet = copyResponse.getStringOrEmpty(3).getString(); in copyMessages()
378 ImapString s = response.getStringOrEmpty(i); in getSearchUids()
602 final ImapString flag = flags.getStringOrEmpty(i); in fetchInternal()
727 mMessageCount = response.getStringOrEmpty(0).getNumberOrZero(); in handleUntaggedResponse()
756 mp.setSubType(bs.getStringOrEmpty(i).getString().toLowerCase()); in parseBodyStructure()
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()
[all …]
DImapConnection.java430 String namespaceString = namespace.getStringOrEmpty(0).getString(); in doGetNamespace()
433 mImapStore.setPathSeparator(namespace.getStringOrEmpty(1).getString()); in doGetNamespace()
483 mImapStore.setPathSeparator(response.getStringOrEmpty(2).getString()); in doGetPathSeparator()
DImapStore.java402 ImapString encodedFolder = response.getStringOrEmpty(3); in updateFolders()
411 String delimiter = response.getStringOrEmpty(2).getString(); in updateFolders()