Home
last modified time | relevance | path

Searched refs:getElementOrNone (Results 1 – 4 of 4) sorted by relevance

/packages/apps/Email/src/com/android/email/mail/store/imap/
DImapList.java89 public final ImapElement getElementOrNone(int index) { in getElementOrNone() method in ImapList
98 ImapElement el = getElementOrNone(index); in getListOrEmpty()
107 ImapElement el = getElementOrNone(index); in getStringOrEmpty()
208 final ImapElement e = getElementOrNone(i); in flatten()
229 if (!mList.get(i).equalsForTest(thatList.getElementOrNone(i))) { in equalsForTest()
DImapResponse.java120 return getStringOrEmpty(getElementOrNone(1).isList() ? 2 : 1); in getStatusResponseTextOrEmpty()
/packages/apps/Email/tests/src/com/android/email/mail/store/imap/
DImapListTest.java98 assertElement(ImapList.EMPTY, list.getElementOrNone(0)); in testGetElementOrNone()
99 assertElement(STRING_1, list.getElementOrNone(1)); in testGetElementOrNone()
100 assertElement(LIST_1, list.getElementOrNone(2)); in testGetElementOrNone()
101 assertElement(ImapString.EMPTY, list.getElementOrNone(3)); in testGetElementOrNone()
102 assertElement(ImapElement.NONE, list.getElementOrNone(4)); // Out of index. in testGetElementOrNone()
105 assertElement(ImapElement.NONE, ImapList.EMPTY.getElementOrNone(0)); in testGetElementOrNone()
/packages/apps/Email/src/com/android/email/mail/store/
DImapFolder.java733 if (bs.getElementOrNone(0).isList()) { in parseBodyStructure()
739 ImapElement e = bs.getElementOrNone(i); in parseBodyStructure()
826 if (type.is(ImapConstants.TEXT) && bs.getElementOrNone(9).isList()) { in parseBodyStructure()