/packages/apps/Email/provider_src/com/android/email/mail/store/ |
D | ImapFolder.java | 26 import com.android.email.mail.store.imap.ImapConstants; 109 mConnection.executeSimpleCommand(ImapConstants.NOOP); in open() 199 ImapConstants.STATUS + " \"%s\" (" + ImapConstants.UIDVALIDITY + ")", in exists() 245 ImapConstants.CREATE + " \"%s\"", in create() 269 String.format(Locale.US, ImapConstants.UID_COPY + " %s \"%s\"", in copyMessages() 296 if (ImapConstants.COPYUID.equals(responseCode)) { in copyMessages() 359 ImapConstants.STATUS + " \"%s\" (" + ImapConstants.UNSEEN + ")", in getUnreadMessageCount() 363 if (response.isDataResponse(0, ImapConstants.STATUS)) { in getUnreadMessageCount() 365 .getKeyedStringOrEmpty(ImapConstants.UNSEEN).getNumberOrZero(); in getUnreadMessageCount() 385 if (!response.isDataResponse(0, ImapConstants.SEARCH)) { in getSearchUids() [all …]
|
D | ImapConnection.java | 25 import com.android.email.mail.store.imap.ImapConstants; 116 mLoginPhrase = ImapConstants.AUTHENTICATE + " " + ImapConstants.XOAUTH2 + " " + in getLoginPhrase() 124 mLoginPhrase = ImapConstants.LOGIN + " " + mImapStore.getUsername() + " " in getLoginPhrase() 154 capabilities.contains(ImapConstants.STARTTLS); in open() 226 if (capabilities.contains(ImapConstants.ID)) { in setCapabilities() 229 if (capabilities.contains(ImapConstants.NAMESPACE)) { in setCapabilities() 232 if (capabilities.contains(ImapConstants.UIDPLUS)) { in setCapabilities() 235 if (capabilities.contains(ImapConstants.STARTTLS)) { in setCapabilities() 353 if (ImapConstants.UNAVAILABLE.equals(responseCode)) { in getCommandResponses() 401 for (ImapResponse r : executeSimpleCommand(ImapConstants.CAPABILITY)) { in queryCapabilities() [all …]
|
D | ImapStore.java | 29 import com.android.email.mail.store.imap.ImapConstants; 345 if (ImapConstants.INBOX.equalsIgnoreCase(parentPath)) { in createHierarchy() 348 parentPath = ImapConstants.INBOX; in createHierarchy() 427 connection.executeSimpleCommand(ImapConstants.NOOP); in updateFolders() 428 String imapCommand = ImapConstants.LIST + " \"\" \"*\""; in updateFolders() 430 imapCommand = ImapConstants.LIST + " \"\" \"" + mPathPrefix + "*\""; in updateFolders() 435 if (response.isDataResponse(0, ImapConstants.LIST)) { in updateFolders() 442 if (ImapConstants.INBOX.equalsIgnoreCase(folderName)) continue; in updateFolders() 446 !response.getListOrEmpty(1).contains(ImapConstants.FLAG_NO_SELECT); in updateFolders() 463 mailboxes.put(ImapConstants.INBOX, newFolder); in updateFolders() [all …]
|
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/store/ |
D | ImapFolder.java | 40 import com.android.voicemail.impl.mail.store.imap.ImapConstants; 156 if (!response.isDataResponse(0, ImapConstants.SEARCH)) { in getSearchUids() 175 final String command = ImapConstants.UID_SEARCH + " " + searchCriteria; in searchForUids() 196 final String[] uids = searchForUids(ImapConstants.UID + " " + uid); in getMessage() 267 fetchFields.add(ImapConstants.UID); in fetchInternal() 269 fetchFields.add(ImapConstants.FLAGS); in fetchInternal() 272 fetchFields.add(ImapConstants.INTERNALDATE); in fetchInternal() 273 fetchFields.add(ImapConstants.RFC822_SIZE); in fetchInternal() 274 fetchFields.add(ImapConstants.FETCH_FIELD_HEADERS); in fetchInternal() 277 fetchFields.add(ImapConstants.BODYSTRUCTURE); in fetchInternal() [all …]
|
D | ImapConnection.java | 28 import com.android.voicemail.impl.mail.store.imap.ImapConstants; 84 ImapConstants.LOGIN in getLoginPhrase() 141 sendCommand(ImapConstants.LOGOUT, false); in logout() 142 if (!parser.readResponse(true).is(0, ImapConstants.BYE)) { in logout() 172 if (hasCapability(ImapConstants.CAPABILITY_STARTTLS)) { in maybeDoStartTls() 173 executeSimpleCommand(ImapConstants.STARTTLS); in maybeDoStartTls() 184 if (capabilities.contains(ImapConstants.CAPABILITY_AUTH_DIGEST_MD5)) { in doLogin() 195 if (ImapConstants.NO.equals(status)) { in doLogin() 197 case ImapConstants.NO_UNKNOWN_USER: in doLogin() 200 case ImapConstants.NO_UNKNOWN_CLIENT: in doLogin() [all …]
|
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/store/imap/ |
D | ImapResponse.java | 30 return ImapConstants.OK.equalsIgnoreCase(symbol) in isStatusResponse() 31 || ImapConstants.NO.equalsIgnoreCase(symbol) in isStatusResponse() 32 || ImapConstants.BAD.equalsIgnoreCase(symbol) in isStatusResponse() 33 || ImapConstants.PREAUTH.equalsIgnoreCase(symbol) in isStatusResponse() 34 || ImapConstants.BYE.equalsIgnoreCase(symbol); in isStatusResponse() 53 return is(0, ImapConstants.OK); in isOk() 58 return is(0, ImapConstants.BAD); in isBad() 63 return is(0, ImapConstants.NO); in isNo() 91 if (!getResponseCodeOrEmpty().is(ImapConstants.ALERT)) { in getAlertTextOrEmpty()
|
D | ImapConstants.java | 22 public final class ImapConstants { class 23 private ImapConstants() {} in ImapConstants() method in ImapConstants
|
D | ImapResponseParser.java | 149 if (!byeExpected && response.is(0, ImapConstants.BYE)) { in readResponse() 360 if (ImapConstants.NIL.equalsIgnoreCase(s)) { in parseBareString()
|
/packages/apps/Email/provider_src/com/android/email/mail/store/imap/ |
D | ImapResponse.java | 33 return ImapConstants.OK.equalsIgnoreCase(symbol) in isStatusResponse() 34 || ImapConstants.NO.equalsIgnoreCase(symbol) in isStatusResponse() 35 || ImapConstants.BAD.equalsIgnoreCase(symbol) in isStatusResponse() 36 || ImapConstants.PREAUTH.equalsIgnoreCase(symbol) in isStatusResponse() 37 || ImapConstants.BYE.equalsIgnoreCase(symbol); in isStatusResponse() 62 return is(0, ImapConstants.OK); in isOk() 69 return is(0, ImapConstants.BAD); in isBad() 76 return is(0, ImapConstants.NO); in isNo() 106 if (!getResponseCodeOrEmpty().is(ImapConstants.ALERT)) { in getAlertTextOrEmpty()
|
D | ImapConstants.java | 23 public final class ImapConstants { class 24 private ImapConstants() {} in ImapConstants() method in ImapConstants
|
D | ImapResponseParser.java | 179 if (response.is(0, ImapConstants.BYE)) { in readResponse() 387 if (ImapConstants.NIL.equalsIgnoreCase(s)) { in parseBareString()
|
/packages/apps/Email/tests/src/com/android/email/mail/store/imap/ |
D | ImapResponseTest.java | 21 import com.android.email.mail.store.imap.ImapConstants; 52 assertTrue(SEARCH.isDataResponse(0, ImapConstants.SEARCH)); in testIsDataResponse() 53 assertTrue(EXISTS.isDataResponse(1, ImapConstants.EXISTS)); in testIsDataResponse() 56 assertFalse(SEARCH.isDataResponse(1, ImapConstants.SEARCH)); in testIsDataResponse() 57 assertFalse(EXISTS.isDataResponse(0, ImapConstants.EXISTS)); in testIsDataResponse() 59 assertFalse(EXISTS.isDataResponse(1, ImapConstants.FETCH)); in testIsDataResponse() 62 assertFalse(TAGGED_EXISTS.isDataResponse(1, ImapConstants.EXISTS)); in testIsDataResponse()
|
/packages/apps/Dialer/java/com/android/voicemail/impl/imap/ |
D | ImapHelper.java | 50 import com.android.voicemail.impl.mail.store.imap.ImapConstants; 660 ImapFolder folder = new ImapFolder(imapStore, ImapConstants.INBOX); in openImapFolder()
|