Home
last modified time | relevance | path

Searched refs:MessagingException (Results 1 – 25 of 60) sorted by relevance

123

/packages/apps/UnifiedEmail/src/com/android/emailcommon/internet/
DMimeMessage.java23 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()
221 public String getContentId() throws MessagingException { in getContentId()
[all …]
DMimeBodyPart.java21 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 …]
DMimeMultipart.java20 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/provider_src/com/android/email/mail/store/
DPop3Store.java33 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()
126 public Bundle checkSettings() throws MessagingException { in checkSettings()
168 public Bundle checkSettings() throws MessagingException { in checkSettings()
170 int result = MessagingException.NO_ERROR; in checkSettings()
184 result = MessagingException.IOERROR; in checkSettings()
193 public synchronized void open(OpenMode mode) throws MessagingException { in open()
199 throw new MessagingException("Folder does not exist"); in open()
218 throw new MessagingException(MessagingException.TLS_REQUIRED); in open()
[all …]
DImapConnection.java35 import com.android.emailcommon.mail.MessagingException;
105 String getLoginPhrase() throws MessagingException, IOException { in getLoginPhrase()
132 void open() throws IOException, MessagingException { in open()
262 ImapResponse readResponse() throws IOException, MessagingException { in readResponse()
275 throws MessagingException, IOException { in sendCommand()
282 throws MessagingException, IOException { in sendCommandInternal()
301 String sendComplexCommand(List<String> commands, boolean sensitive) throws MessagingException, in sendComplexCommand()
316 throw new MessagingException("Expected continuation request"); in sendComplexCommand()
326 List<ImapResponse> executeSimpleCommand(String command) throws IOException, MessagingException { in executeSimpleCommand()
337 List<ImapResponse> getCommandResponses() throws IOException, MessagingException { in getCommandResponses()
[all …]
DImapFolder.java45 import com.android.emailcommon.mail.MessagingException;
102 throws MessagingException { in open()
146 } catch (MessagingException e) { in open()
180 public boolean exists() throws MessagingException { in exists()
204 } catch (MessagingException me) { in exists()
206 if (me.getExceptionType() == MessagingException.IOERROR) { in exists()
229 public boolean create(FolderType type) throws MessagingException { in create()
249 } catch (MessagingException me) { in create()
265 MessageUpdateCallbacks callbacks) throws MessagingException { in copyMessages()
283 throw new MessagingException(responseText); in copyMessages()
[all …]
DImapStore.java40 import com.android.emailcommon.mail.MessagingException;
99 public static Store newInstance(Account account, Context context) throws MessagingException { in newInstance()
107 private ImapStore(Context context, Account account) throws MessagingException { in ImapStore()
113 throw new MessagingException("No HostAuth in ImapStore?"); in ImapStore()
418 public Folder[] updateFolders() throws MessagingException { in updateFolders()
470 throw new MessagingException("Unable to get folder list", ioe); in updateFolders()
487 public Bundle checkSettings() throws MessagingException { in checkSettings()
488 int result = MessagingException.NO_ERROR; in checkSettings()
499 result = MessagingException.IOERROR; in checkSettings()
561 } catch (MessagingException e) { in getConnection()
[all …]
/packages/apps/UnifiedEmail/src/com/android/emailcommon/mail/
DFolder.java68 throws MessagingException; in open()
89 public abstract OpenMode getMode() throws MessagingException; in getMode()
103 public abstract boolean create(FolderType type) throws MessagingException; in create()
105 public abstract boolean exists() throws MessagingException; in exists()
110 public abstract int getMessageCount() throws MessagingException; in getMessageCount()
112 public abstract int getUnreadMessageCount() throws MessagingException; in getUnreadMessageCount()
114 public abstract Message getMessage(String uid) throws MessagingException; in getMessage()
123 throws MessagingException; in getMessages()
126 throws MessagingException; in getMessages()
129 throws MessagingException; in getMessages()
[all …]
DMessage.java49 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 …]
DPart.java23 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 …]
DMultipart.java28 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()
DMessagingException.java29 public class MessagingException extends Exception { class
78 public MessagingException(String message, Throwable throwable) { in MessagingException() method in MessagingException
82 public MessagingException(int exceptionType, String message, Throwable throwable) { in MessagingException() method in MessagingException
92 public MessagingException(int exceptionType) { in MessagingException() method in MessagingException
100 public MessagingException(String message) { in MessagingException() method in MessagingException
108 public MessagingException(int exceptionType, String message) { in MessagingException() method in MessagingException
118 public MessagingException(int exceptionType, String message, Object data) { in MessagingException() method in MessagingException
/packages/apps/Email/src/com/android/email/mail/transport/
DSmtpSender.java30 import com.android.emailcommon.mail.MessagingException;
59 public static Sender newInstance(Account account, Context context) throws MessagingException { in newInstance()
90 public void open() throws MessagingException { in open()
134 throw new MessagingException(MessagingException.TLS_REQUIRED); in open()
148 throw new MessagingException(MessagingException.OAUTH_NOT_SUPPORTED); in open()
161 throw new MessagingException(MessagingException.AUTH_REQUIRED); in open()
175 throw new MessagingException(MessagingException.IOERROR, ioe.toString()); in open()
180 public void sendMessage(long messageId) throws MessagingException { in sendMessage()
186 throw new MessagingException("Trying to send non-existent message id=" in sendMessage()
214 throw new MessagingException("Unable to send message", ioe); in sendMessage()
[all …]
/packages/apps/Email/src/com/android/email/activity/setup/
DAccountCheckSettingsFragment.java32 import com.android.emailcommon.mail.MessagingException;
76 private MessagingException mProgressException;
218 private void reportProgress(int newState, MessagingException ex) { in reportProgress()
286 public static class AutoDiscoverResults extends MessagingException {
310 private static class AccountCheckTask extends AsyncTask<Void, Integer, MessagingException> {
344 protected MessagingException doInBackground(Void... params) { in doInBackground()
362 if (errorCode == MessagingException.AUTODISCOVER_AUTHENTICATION_FAILED) { in doInBackground()
364 } else if (errorCode != MessagingException.NO_ERROR) { in doInBackground()
385 return new MessagingException(MessagingException.UNSPECIFIED_EXCEPTION); in doInBackground()
396 if (resultCode == MessagingException.SECURITY_POLICIES_REQUIRED && in doInBackground()
[all …]
DCheckSettingsErrorDialogFragment.java28 import com.android.emailcommon.mail.MessagingException;
134 public static int getReasonFromException (MessagingException ex) { in getReasonFromException()
137 case MessagingException.AUTODISCOVER_AUTHENTICATION_FAILED: in getReasonFromException()
138 case MessagingException.AUTHENTICATION_FAILED: in getReasonFromException()
140 case MessagingException.CLIENT_CERTIFICATE_REQUIRED: in getReasonFromException()
146 public static String getErrorString(Context context, MessagingException ex) { in getErrorString()
155 case MessagingException.CERTIFICATE_VALIDATION_ERROR: in getErrorString()
160 case MessagingException.AUTHENTICATION_FAILED: in getErrorString()
163 case MessagingException.AUTODISCOVER_AUTHENTICATION_FAILED: in getErrorString()
166 case MessagingException.AUTHENTICATION_FAILED_OR_SERVER_ERROR: in getErrorString()
[all …]
/packages/apps/Email/tests/src/com/android/email/mail/store/
DPop3StoreUnitTests.java37 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()
340 public void testOneUnread() throws MessagingException { in testOneUnread()
350 public void testGetMessageByUid() throws MessagingException { in testGetMessageByUid()
388 public void testCatchClosed1a() throws MessagingException { in testCatchClosed1a()
404 } catch(MessagingException me) { in testCatchClosed1a()
[all …]
DImapStoreUnitTests.java53 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/Exchange/src/com/android/exchange/eas/
DEasFolderSync.java22 import com.android.emailcommon.mail.MessagingException;
128 MessagingException.CLIENT_CERTIFICATE_ERROR); in validate()
203 messagingExceptionCode = MessagingException.IOERROR; in writeResultCode()
206 messagingExceptionCode = MessagingException.IOERROR; in writeResultCode()
209 messagingExceptionCode = MessagingException.UNSPECIFIED_EXCEPTION; in writeResultCode()
212 messagingExceptionCode = MessagingException.IOERROR; in writeResultCode()
215 messagingExceptionCode = MessagingException.ACCESS_DENIED; in writeResultCode()
219 messagingExceptionCode = MessagingException.UNSPECIFIED_EXCEPTION; in writeResultCode()
223 MessagingException.SECURITY_POLICIES_REQUIRED : in writeResultCode()
224 MessagingException.SECURITY_POLICIES_UNSUPPORTED; in writeResultCode()
[all …]
/packages/apps/Email/tests/src/com/android/emailcommon/internet/
DMimeMessageTest.java27 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 testParsingAddressField() throws MessagingException { in testParsingAddressField()
[all …]
/packages/apps/Email/provider_src/com/android/email/mail/
DSender.java24 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()
120 public abstract void open() throws MessagingException; in open()
[all …]
DStore.java29 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()
85 throws MessagingException { in getInstance()
109 throws MessagingException { in createInstanceInternal()
125 throw new MessagingException("Can't instantiate Store for " + account.mDisplayName); in createInstanceInternal()
144 throws MessagingException { in removeInstance()
169 public Folder getFolder(String name) throws MessagingException { in getFolder()
180 public Folder[] updateFolders() throws MessagingException { in updateFolders()
184 public abstract Bundle checkSettings() throws MessagingException; in checkSettings()
[all …]
/packages/apps/Email/provider_src/com/android/email/mail/store/imap/
DImapResponseParser.java26 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()
[all …]
/packages/apps/Email/provider_src/com/android/email/service/
DImapService.java52 import com.android.emailcommon.mail.MessagingException;
144 } catch (MessagingException e) {
166 final boolean uiRefresh) throws MessagingException { in synchronizeMailboxSynchronous()
177 } catch (MessagingException e) { in synchronizeMailboxSynchronous()
256 throws MessagingException { in loadUnsyncedMessages()
284 throws MessagingException { in downloadFlagAndEnvelope()
332 } catch (MessagingException me) { in downloadFlagAndEnvelope()
365 throws MessagingException { in synchronizeMailboxGeneric()
758 throws MessagingException { in processPendingActionsSynchronous()
852 } catch (MessagingException me) { in processPendingDeletesSynchronous()
[all …]
/packages/apps/Email/provider_src/com/android/email/mail/transport/
DMailTransport.java24 import com.android.emailcommon.mail.MessagingException;
106 public void open() throws MessagingException, CertificateValidationException { in open()
147 throw new MessagingException(MessagingException.IOERROR, ioe.toString()); in open()
152 throw new MessagingException(MessagingException.UNSPECIFIED_EXCEPTION, iae.toString()); in open()
164 public void reopenTls() throws MessagingException { in reopenTls()
190 throw new MessagingException(MessagingException.IOERROR, ioe.toString()); in reopenTls()
/packages/apps/Email/tests/src/com/android/email/
DLegacyConversionsTests.java38 import com.android.emailcommon.mail.MessagingException;
82 public void brokentestAddAttachments() throws MessagingException, IOException { in brokentestAddAttachments()
104 final Message legacyMessage) throws MessagingException, IOException { in convertAndCheckcheckAddedAttachments()
140 public void brokentestAttachmentDispositions() throws MessagingException, IOException { in brokentestAttachmentDispositions()
190 public void brokentestAddDuplicateAttachments() throws MessagingException, IOException { in brokentestAddDuplicateAttachments()
230 boolean filenameInDisposition) throws MessagingException { in prepareLegacyMessageWithAttachments()
264 throws MessagingException { in prepareLegacyMessageWithAttachments()
289 long accountKey) throws MessagingException { in checkAttachment()
327 public void brokentestMakeLegacyMessage() throws MessagingException { in brokentestMakeLegacyMessage()
369 throws MessagingException { in checkLegacyMessage()

123