/packages/apps/UnifiedEmail/src/com/android/emailcommon/internet/ |
D | MimeMessage.java | 23 import com.android.emailcommon.mail.MessagingException; 120 public MimeMessage(InputStream in) throws IOException, MessagingException { in MimeMessage() 142 protected void parse(InputStream in) throws IOException, MessagingException { in parse() 149 throws IOException, MessagingException { in parse() 167 public Date getReceivedDate() throws MessagingException { in getReceivedDate() 172 public Date getSentDate() throws MessagingException { in getSentDate() 200 public void setSentDate(Date sentDate) throws MessagingException { in setSentDate() 206 public String getContentType() throws MessagingException { in getContentType() 216 public String getDisposition() throws MessagingException { in getDisposition() 226 public String getContentId() throws MessagingException { in getContentId() [all …]
|
D | MimeBodyPart.java | 21 import com.android.emailcommon.mail.MessagingException; 44 public MimeBodyPart() throws MessagingException { in MimeBodyPart() 48 public MimeBodyPart(Body body) throws MessagingException { in MimeBodyPart() 52 public MimeBodyPart(Body body, String mimeType) throws MessagingException { in MimeBodyPart() 59 protected String getFirstHeader(String name) throws MessagingException { in getFirstHeader() 64 public void addHeader(String name, String value) throws MessagingException { in addHeader() 69 public void setHeader(String name, String value) throws MessagingException { in setHeader() 74 public String[] getHeader(String name) throws MessagingException { in getHeader() 79 public void removeHeader(String name) throws MessagingException { in removeHeader() 84 public Body getBody() throws MessagingException { in getBody() [all …]
|
D | MimeMultipart.java | 20 import com.android.emailcommon.mail.MessagingException; 38 public MimeMultipart() throws MessagingException { in MimeMultipart() 43 public MimeMultipart(String contentType) throws MessagingException { in MimeMultipart() 49 throw new MessagingException("MultiPart does not contain boundary: " + contentType); in MimeMultipart() 52 throw new MessagingException( in MimeMultipart() 67 public String getPreamble() throws MessagingException { in getPreamble() 71 public void setPreamble(String preamble) throws MessagingException { in setPreamble() 76 public String getContentType() throws MessagingException { in getContentType() 80 public void setSubType(String subType) throws MessagingException { in setSubType() 86 public void writeTo(OutputStream out) throws IOException, MessagingException { in writeTo() [all …]
|
/packages/apps/Email/src/com/android/email/activity/setup/ |
D | AccountCheckSettingsFragment.java | 38 import com.android.emailcommon.mail.MessagingException; 78 private MessagingException mProgressException; 220 private void reportProgress(int newState, MessagingException ex) { in reportProgress() 393 public static class AutoDiscoverResults extends MessagingException { 417 private class AccountCheckTask extends AsyncTask<Void, Integer, MessagingException> { 441 protected MessagingException doInBackground(Void... params) { in doInBackground() 459 if (errorCode == MessagingException.AUTODISCOVER_AUTHENTICATION_FAILED) { in doInBackground() 461 } else if (errorCode != MessagingException.NO_ERROR) { in doInBackground() 478 return new MessagingException(MessagingException.UNSPECIFIED_EXCEPTION); in doInBackground() 489 if (resultCode == MessagingException.SECURITY_POLICIES_REQUIRED && in doInBackground() [all …]
|
/packages/apps/Email/src/com/android/email/mail/store/ |
D | Pop3Store.java | 33 import com.android.emailcommon.mail.MessagingException; 67 public static Store newInstance(Account account, Context context) throws MessagingException { in newInstance() 74 private Pop3Store(Context context, Account account) throws MessagingException { in Pop3Store() 128 public Bundle checkSettings() throws MessagingException { in checkSettings() 170 public Bundle checkSettings() throws MessagingException { in checkSettings() 172 int result = MessagingException.NO_ERROR; in checkSettings() 186 result = MessagingException.IOERROR; in checkSettings() 195 public synchronized void open(OpenMode mode) throws MessagingException { in open() 201 throw new MessagingException("Folder does not exist"); in open() 220 throw new MessagingException(MessagingException.TLS_REQUIRED); in open() [all …]
|
D | ImapFolder.java | 45 import com.android.emailcommon.mail.MessagingException; 97 throws MessagingException { in open() 141 } catch (MessagingException e) { in open() 175 public boolean exists() throws MessagingException { in exists() 199 } catch (MessagingException me) { in exists() 201 if (me.getExceptionType() == MessagingException.IOERROR) { in exists() 224 public boolean create(FolderType type) throws MessagingException { in create() 244 } catch (MessagingException me) { in create() 260 MessageUpdateCallbacks callbacks) throws MessagingException { in copyMessages() 278 throw new MessagingException(responseText); in copyMessages() [all …]
|
D | ImapConnection.java | 33 import com.android.emailcommon.mail.MessagingException; 97 void open() throws IOException, MessagingException { in open() 227 ImapResponse readResponse() throws IOException, MessagingException { in readResponse() 240 throws MessagingException, IOException { in sendCommand() 258 String sendComplexCommand(List<String> commands, boolean sensitive) throws MessagingException, in sendComplexCommand() 273 throw new MessagingException("Expected continuation request"); in sendComplexCommand() 284 MessagingException { in executeSimpleCommand() 295 List<ImapResponse> getCommandResponses() throws IOException, MessagingException { in getCommandResponses() 322 throws IOException, MessagingException { in executeSimpleCommand() 338 throws IOException, MessagingException { in executeComplexCommand() [all …]
|
D | ImapStore.java | 40 import com.android.emailcommon.mail.MessagingException; 95 public static Store newInstance(Account account, Context context) throws MessagingException { in newInstance() 103 private ImapStore(Context context, Account account) throws MessagingException { in ImapStore() 109 throw new MessagingException("No HostAuth in ImapStore?"); in ImapStore() 371 public Folder[] updateFolders() throws MessagingException { in updateFolders() 423 throw new MessagingException("Unable to get folder list.", ioe); in updateFolders() 438 public Bundle checkSettings() throws MessagingException { in checkSettings() 439 int result = MessagingException.NO_ERROR; in checkSettings() 447 result = MessagingException.IOERROR; in checkSettings() 506 } catch (MessagingException e) { in getConnection() [all …]
|
/packages/apps/UnifiedEmail/src/com/android/emailcommon/mail/ |
D | Folder.java | 66 throws MessagingException; in open() 87 public abstract OpenMode getMode() throws MessagingException; in getMode() 101 public abstract boolean create(FolderType type) throws MessagingException; in create() 103 public abstract boolean exists() throws MessagingException; in exists() 108 public abstract int getMessageCount() throws MessagingException; in getMessageCount() 110 public abstract int getUnreadMessageCount() throws MessagingException; in getUnreadMessageCount() 112 public abstract Message getMessage(String uid) throws MessagingException; in getMessage() 121 throws MessagingException; in getMessages() 124 throws MessagingException; in getMessages() 127 throws MessagingException; in getMessages() [all …]
|
D | Message.java | 49 public abstract String getSubject() throws MessagingException; in getSubject() 51 public abstract void setSubject(String subject) throws MessagingException; in setSubject() 61 public abstract Date getReceivedDate() throws MessagingException; in getReceivedDate() 63 public abstract Date getSentDate() throws MessagingException; in getSentDate() 65 public abstract void setSentDate(Date sentDate) throws MessagingException; in setSentDate() 67 public abstract Address[] getRecipients(RecipientType type) throws MessagingException; in getRecipients() 70 throws MessagingException; in setRecipients() 72 public void setRecipient(RecipientType type, Address address) throws MessagingException { in setRecipient() 78 public abstract Address[] getFrom() throws MessagingException; in getFrom() 80 public abstract void setFrom(Address from) throws MessagingException; in setFrom() [all …]
|
D | Part.java | 23 public void addHeader(String name, String value) throws MessagingException; in addHeader() 25 public void removeHeader(String name) throws MessagingException; in removeHeader() 27 public void setHeader(String name, String value) throws MessagingException; in setHeader() 29 public Body getBody() throws MessagingException; in getBody() 31 public String getContentType() throws MessagingException; in getContentType() 33 public String getDisposition() throws MessagingException; in getDisposition() 35 public String getContentId() throws MessagingException; in getContentId() 37 public String[] getHeader(String name) throws MessagingException; in getHeader() 39 public void setExtendedHeader(String name, String value) throws MessagingException; in setExtendedHeader() 41 public String getExtendedHeader(String name) throws MessagingException; in getExtendedHeader() [all …]
|
D | Multipart.java | 28 public void addBodyPart(BodyPart part) throws MessagingException { in addBodyPart() 32 public void addBodyPart(BodyPart part, int index) throws MessagingException { in addBodyPart() 36 public BodyPart getBodyPart(int index) throws MessagingException { in getBodyPart() 40 public String getContentType() throws MessagingException { in getContentType() 44 public int getCount() throws MessagingException { in getCount() 48 public boolean removeBodyPart(BodyPart part) throws MessagingException { in removeBodyPart() 52 public void removeBodyPart(int index) throws MessagingException { in removeBodyPart() 56 public Part getParent() throws MessagingException { in getParent() 60 public void setParent(Part parent) throws MessagingException { in setParent()
|
/packages/apps/Email/tests/src/com/android/email/mail/store/ |
D | Pop3StoreUnitTests.java | 37 import com.android.emailcommon.mail.MessagingException; 178 public void testSimpleLogin() throws MessagingException { in testSimpleLogin() 198 public void testCheckSettings() throws MessagingException { in testCheckSettings() 220 } catch (MessagingException me) { in testCheckSettings() 230 public void testCheckSettingsCapabilities() throws MessagingException { in testCheckSettingsCapabilities() 242 } catch (MessagingException me) { in testCheckSettingsCapabilities() 343 public void testOneUnread() throws MessagingException { in testOneUnread() 353 public void testGetMessageByUid() throws MessagingException { in testGetMessageByUid() 391 public void testCatchClosed1a() throws MessagingException { in testCatchClosed1a() 407 } catch(MessagingException me) { in testCatchClosed1a() [all …]
|
D | ImapStoreUnitTests.java | 53 import com.android.emailcommon.mail.MessagingException; 178 public void testSimpleLogin() throws MessagingException { in testSimpleLogin() 207 public void testTlsOpen() throws MessagingException { in testTlsOpen() 345 public void testImapIdDeviceId() throws MessagingException { in testImapIdDeviceId() 411 public void testServerId() throws MessagingException { in testServerId() 426 public void testImapIdOkParsing() throws MessagingException { in testImapIdOkParsing() 439 public void testImapIdBad() throws MessagingException { in testImapIdBad() 453 public void testImapIdNotSupported() throws MessagingException { in testImapIdNotSupported() 478 } catch (MessagingException expected) { in testImapIdSecureServerParseFail() 486 public void testImapIdSecureServerNotSent() throws MessagingException { in testImapIdSecureServerNotSent() [all …]
|
/packages/apps/Email/src/com/android/email/mail/transport/ |
D | SmtpSender.java | 29 import com.android.emailcommon.mail.MessagingException; 55 public static Sender newInstance(Account account, Context context) throws MessagingException { in newInstance() 83 public void open() throws MessagingException { in open() 127 throw new MessagingException(MessagingException.TLS_REQUIRED); in open() 149 throw new MessagingException(MessagingException.AUTH_REQUIRED); in open() 161 throw new MessagingException(MessagingException.IOERROR, ioe.toString()); in open() 166 public void sendMessage(long messageId) throws MessagingException { in sendMessage() 172 throw new MessagingException("Trying to send non-existent message id=" in sendMessage() 200 throw new MessagingException("Unable to send message", ioe); in sendMessage() 222 private String executeSimpleCommand(String command) throws IOException, MessagingException { in executeSimpleCommand() [all …]
|
D | MailTransport.java | 24 import com.android.emailcommon.mail.MessagingException; 105 public void open() throws MessagingException, CertificateValidationException { in open() 136 throw new MessagingException(MessagingException.IOERROR, ioe.toString()); in open() 141 throw new MessagingException(MessagingException.UNSPECIFIED_EXCEPTION, iae.toString()); in open() 153 public void reopenTls() throws MessagingException { in reopenTls() 170 throw new MessagingException(MessagingException.IOERROR, ioe.toString()); in reopenTls()
|
/packages/apps/Exchange/src/com/android/exchange/eas/ |
D | EasFolderSync.java | 22 import com.android.emailcommon.mail.MessagingException; 150 MessagingException.CLIENT_CERTIFICATE_ERROR); in validate() 235 messagingExceptionCode = MessagingException.IOERROR; in writeResultCode() 238 messagingExceptionCode = MessagingException.IOERROR; in writeResultCode() 241 messagingExceptionCode = MessagingException.UNSPECIFIED_EXCEPTION; in writeResultCode() 244 messagingExceptionCode = MessagingException.IOERROR; in writeResultCode() 247 messagingExceptionCode = MessagingException.ACCESS_DENIED; in writeResultCode() 251 messagingExceptionCode = MessagingException.UNSPECIFIED_EXCEPTION; in writeResultCode() 255 MessagingException.SECURITY_POLICIES_REQUIRED : in writeResultCode() 256 MessagingException.SECURITY_POLICIES_UNSUPPORTED; in writeResultCode() [all …]
|
/packages/apps/Email/tests/src/com/android/emailcommon/internet/ |
D | MimeMessageTest.java | 23 import com.android.emailcommon.mail.MessagingException; 80 public void testSetSentDate() throws MessagingException, ParseException { in testSetSentDate() 89 private void doTestSetSentDate() throws MessagingException, ParseException { in doTestSetSentDate() 108 public void testMessageId() throws MessagingException { in testMessageId() 134 public void testGetContentId() throws MessagingException { in testGetContentId() 153 public void testSetSubjectPlain() throws MessagingException { in testSetSubjectPlain() 186 public void testSetSubject() throws MessagingException { in testSetSubject() 202 public void testSetLongSubject() throws MessagingException { in testSetLongSubject() 228 public void testEncodingAddressField() throws MessagingException { in testEncodingAddressField() 273 public void brokentestParsingAddressField() throws MessagingException { in brokentestParsingAddressField() [all …]
|
/packages/apps/Exchange/src/com/android/exchange/ |
D | EasSyncService.java | 41 import com.android.emailcommon.mail.MessagingException; 344 throws MessagingException { in setupProtocolVersion() 365 throw new MessagingException(MessagingException.PROTOCOL_VERSION_UNSUPPORTED); in setupProtocolVersion() 459 int resultCode = MessagingException.NO_ERROR; in validateAccount() 485 throw new MessagingException(0); in validateAccount() 488 } catch (MessagingException e) { in validateAccount() 490 MessagingException.PROTOCOL_VERSION_UNSUPPORTED); in validateAccount() 512 resultCode = MessagingException.ACCESS_DENIED; in validateAccount() 518 resultCode = MessagingException.PROTOCOL_VERSION_UNSUPPORTED; in validateAccount() 521 ? MessagingException.CLIENT_CERTIFICATE_REQUIRED in validateAccount() [all …]
|
/packages/apps/Email/src/com/android/email/ |
D | MessagingExceptionStrings.java | 19 import com.android.emailcommon.mail.MessagingException; 27 public static String getErrorString(Context context, MessagingException e) { in getErrorString() 34 private static int getErrorStringResourceId(MessagingException e) { in getErrorStringResourceId() 36 case MessagingException.IOERROR: in getErrorStringResourceId() 38 case MessagingException.ATTACHMENT_NOT_FOUND: in getErrorStringResourceId() 40 case MessagingException.TLS_REQUIRED: in getErrorStringResourceId() 42 case MessagingException.AUTH_REQUIRED: in getErrorStringResourceId() 44 case MessagingException.GENERAL_SECURITY: in getErrorStringResourceId() 48 case MessagingException.SECURITY_POLICIES_REQUIRED: in getErrorStringResourceId() 50 case MessagingException.ACCESS_DENIED: in getErrorStringResourceId() [all …]
|
/packages/apps/Email/src/com/android/email/mail/ |
D | Sender.java | 24 import com.android.emailcommon.mail.MessagingException; 40 public static Sender newInstance(Account account) throws MessagingException { in newInstance() 41 throw new MessagingException("Sender.newInstance: Unknown scheme in " in newInstance() 46 throws MessagingException { in instantiateSender() 58 throw new MessagingException("can not instantiate Sender for " + account.mDisplayName); in instantiateSender() 61 throw new MessagingException( in instantiateSender() 71 throws MessagingException { in findSender() 108 throws MessagingException { in getInstance() 115 throw new MessagingException("Cannot find sender for account " + account.mDisplayName); in getInstance() 129 public abstract void open() throws MessagingException; in open() [all …]
|
D | Store.java | 29 import com.android.emailcommon.mail.MessagingException; 65 static Store newInstance(Account account) throws MessagingException { in newInstance() 66 throw new MessagingException("Store#newInstance: Unknown scheme in " in newInstance() 84 throws MessagingException { in getInstance() 107 throw new MessagingException("Can't instantiate Store for " + account.mDisplayName); in getInstance() 127 throws MessagingException { in removeInstance() 142 public Folder getFolder(String name) throws MessagingException { in getFolder() 153 public Folder[] updateFolders() throws MessagingException { in updateFolders() 157 public abstract Bundle checkSettings() throws MessagingException; in checkSettings() 168 throws MessagingException { in autoDiscover()
|
/packages/apps/Email/tests/src/com/android/email/ |
D | LegacyConversionsTests.java | 41 import com.android.emailcommon.mail.MessagingException; 104 public void testUpdateMessageFields() throws MessagingException { in testUpdateMessageFields() 118 public void testUpdateMessageFieldsNoMessageId() throws MessagingException { in testUpdateMessageFieldsNoMessageId() 136 String sender, String subject, String content) throws MessagingException { in buildTestMessage() 181 public void testUpdateBodyFieldsNullText() throws MessagingException { in testUpdateBodyFieldsNullText() 197 public void testAddAttachments() throws MessagingException, IOException { in testAddAttachments() 219 final Message legacyMessage) throws MessagingException, IOException { in convertAndCheckcheckAddedAttachments() 254 public void testAttachmentDispositions() throws MessagingException, IOException { in testAttachmentDispositions() 304 public void testAddDuplicateAttachments() throws MessagingException, IOException { in testAddDuplicateAttachments() 344 boolean filenameInDisposition) throws MessagingException { in prepareLegacyMessageWithAttachments() [all …]
|
/packages/apps/Email/src/com/android/email/mail/store/imap/ |
D | ImapResponseParser.java | 26 import com.android.emailcommon.mail.MessagingException; 160 public ImapResponse readResponse() throws IOException, MessagingException { in readResponse() 248 private ImapResponse parseResponse() throws IOException, MessagingException { in parseResponse() 330 private ImapElement parseElement() throws IOException, MessagingException { in parseElement() 363 private ImapString parseBareString() throws IOException, MessagingException { in parseBareString() 382 throw new MessagingException("Expected string, none found."); in parseBareString() 403 throws IOException, MessagingException { in parseElements() 425 throws IOException, MessagingException { in parseList() 433 private ImapString parseLiteral() throws IOException, MessagingException { in parseLiteral() 439 throw new MessagingException("Invalid length in literal"); in parseLiteral()
|
/packages/apps/Email/src/com/android/email/service/ |
D | ImapService.java | 50 import com.android.emailcommon.mail.MessagingException; 120 } catch (MessagingException e) { 142 final boolean uiRefresh) throws MessagingException { in synchronizeMailboxSynchronous() 150 } catch (MessagingException e) { in synchronizeMailboxSynchronous() 221 throws MessagingException { in loadUnsyncedMessages() 249 throws MessagingException { in downloadFlagAndEnvelope() 289 } catch (MessagingException me) { in downloadFlagAndEnvelope() 322 throws MessagingException { in synchronizeMailboxGeneric() 684 throws MessagingException { in processPendingActionsSynchronous() 785 } catch (MessagingException me) { in processPendingDeletesSynchronous() [all …]
|