Home
last modified time | relevance | path

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

123

/packages/apps/Email/emailcommon/src/com/android/emailcommon/mail/
DFolder.java66 throws MessagingException; in open()
74 public abstract void close(boolean expunge) throws MessagingException; in close()
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()
[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
74 public MessagingException(String message, Throwable throwable) { in MessagingException() method in MessagingException
78 public MessagingException(int exceptionType, String message, Throwable throwable) { in MessagingException() method in MessagingException
88 public MessagingException(int exceptionType) { in MessagingException() method in MessagingException
96 public MessagingException(String message) { in MessagingException() method in MessagingException
104 public MessagingException(int exceptionType, String message) { in MessagingException() method in MessagingException
114 public MessagingException(int exceptionType, String message, Object data) { in MessagingException() method in MessagingException
DCertificateValidationException.java20 public class CertificateValidationException extends MessagingException {
24 super(MessagingException.CERTIFICATE_VALIDATION_ERROR, message); in CertificateValidationException()
28 super(MessagingException.CERTIFICATE_VALIDATION_ERROR, message, throwable); in CertificateValidationException()
/packages/apps/Email/emailcommon/src/com/android/emailcommon/internet/
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()
63 public void addHeader(String name, String value) throws MessagingException { in addHeader()
67 public void setHeader(String name, String value) throws MessagingException { in setHeader()
71 public String[] getHeader(String name) throws MessagingException { in getHeader()
75 public void removeHeader(String name) throws MessagingException { in removeHeader()
79 public Body getBody() throws MessagingException { in getBody()
[all …]
DMimeMessage.java23 import com.android.emailcommon.mail.MessagingException;
118 public MimeMessage(InputStream in) throws IOException, MessagingException { in MimeMessage()
122 protected void parse(InputStream in) throws IOException, MessagingException { in parse()
152 public Date getReceivedDate() throws MessagingException { in getReceivedDate()
157 public Date getSentDate() throws MessagingException { in getSentDate()
171 public void setSentDate(Date sentDate) throws MessagingException { in setSentDate()
177 public String getContentType() throws MessagingException { in getContentType()
186 public String getDisposition() throws MessagingException { in getDisposition()
195 public String getContentId() throws MessagingException { in getContentId()
205 public String getMimeType() throws MessagingException { in getMimeType()
[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()
85 public void writeTo(OutputStream out) throws IOException, MessagingException { in writeTo()
[all …]
DMimeHeader.java19 import com.android.emailcommon.mail.MessagingException;
62 public String getFirstHeader(String name) throws MessagingException { in getFirstHeader()
70 public void addHeader(String name, String value) throws MessagingException { in addHeader()
74 public void setHeader(String name, String value) throws MessagingException { in setHeader()
82 public String[] getHeader(String name) throws MessagingException { in getHeader()
95 public void removeHeader(String name) throws MessagingException { in removeHeader()
124 public void writeTo(OutputStream out) throws IOException, MessagingException { in writeTo()
/packages/apps/Email/src/com/android/email/
DMessagingExceptionStrings.java19 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 …]
DControllerResultUiThreadWrapper.java22 import com.android.emailcommon.mail.MessagingException;
61 public void loadAttachmentCallback(final MessagingException result, final long accountId, in loadAttachmentCallback()
77 public void loadMessageForViewCallback(final MessagingException result, final long accountId, in loadMessageForViewCallback()
88 public void sendMailCallback(final MessagingException result, final long accountId, in sendMailCallback()
99 public void serviceCheckMailCallback(final MessagingException result, final long accountId, in serviceCheckMailCallback()
110 public void updateMailboxCallback(final MessagingException result, final long accountId, in updateMailboxCallback()
123 public void updateMailboxListCallback(final MessagingException result, final long accountId, in updateMailboxListCallback()
DController.java41 import com.android.emailcommon.mail.MessagingException;
315 } catch (MessagingException e) { in loadMessageFromUri()
693 } catch (MessagingException e) { in loadMoreMessages()
965 public void searchMore(long accountId) throws MessagingException {
979 throws MessagingException {
1247 public void updateMailboxListCallback(MessagingException result, long accountId,
1261 public void updateMailboxCallback(MessagingException result, long accountId,
1272 public void loadMessageForViewCallback(MessagingException result, long accountId,
1284 public void loadAttachmentCallback(MessagingException result, long accountId,
1299 public void serviceCheckMailCallback(MessagingException result, long accountId,
[all …]
/packages/apps/Email/src/com/android/email/activity/setup/
DAccountCheckSettingsFragment.java37 import com.android.emailcommon.mail.MessagingException;
83 private MessagingException mProgressException;
213 private void reportProgress(int newState, MessagingException ex) { in reportProgress()
383 public static class AutoDiscoverResults extends MessagingException {
407 private class AccountCheckTask extends AsyncTask<Void, Integer, MessagingException> {
431 protected MessagingException doInBackground(Void... params) { in doInBackground()
453 if (errorCode == MessagingException.AUTODISCOVER_AUTHENTICATION_FAILED) { in doInBackground()
455 } else if (errorCode != MessagingException.NO_ERROR) { in doInBackground()
471 int resultCode = MessagingException.UNSPECIFIED_EXCEPTION; in doInBackground()
476 if (resultCode == MessagingException.SECURITY_POLICIES_REQUIRED) { in doInBackground()
[all …]
/packages/apps/Email/src/com/android/email/mail/transport/
DSmtpSender.java31 import com.android.emailcommon.mail.MessagingException;
56 public static Sender newInstance(Account account, Context context) throws MessagingException { in newInstance()
63 private SmtpSender(Context context, Account account) throws MessagingException { in SmtpSender()
67 throw new MessagingException("Unsupported protocol"); in SmtpSender()
107 public void open() throws MessagingException { in open()
151 throw new MessagingException(MessagingException.TLS_REQUIRED); in open()
173 throw new MessagingException(MessagingException.AUTH_REQUIRED); in open()
185 throw new MessagingException(MessagingException.IOERROR, ioe.toString()); in open()
190 public void sendMessage(long messageId) throws MessagingException { in sendMessage()
196 throw new MessagingException("Trying to send non-existent message id=" in sendMessage()
[all …]
/packages/apps/Email/src/com/android/email/mail/
DSender.java25 import com.android.emailcommon.mail.MessagingException;
41 throws MessagingException { in newInstance()
42 throw new MessagingException("Sender.newInstance: Unknown scheme in " in newInstance()
47 throws MessagingException { in instantiateSender()
59 throw new MessagingException("can not instantiate Sender for " + account.mDisplayName); in instantiateSender()
62 throw new MessagingException( in instantiateSender()
72 throws MessagingException { in findSender()
109 throws MessagingException { in getInstance()
116 throw new MessagingException("Cannot find sender for account " + account.mDisplayName); in getInstance()
130 public abstract void open() throws MessagingException; in open()
[all …]
DStore.java29 import com.android.emailcommon.mail.MessagingException;
70 static Store newInstance(Account account, Context context) throws MessagingException { in newInstance()
71 throw new MessagingException("Store#newInstance: Unknown scheme in " in newInstance()
89 throws MessagingException { in getInstance()
105 throw new MessagingException("Can't instantiate Store for " + account.mDisplayName); in getInstance()
125 throws MessagingException { in removeInstance()
149 public Folder getFolder(String name) throws MessagingException { in getFolder()
160 public Folder[] updateFolders() throws MessagingException { in updateFolders()
164 public abstract Bundle checkSettings() throws MessagingException; in checkSettings()
175 throws MessagingException { in autoDiscover()
/packages/apps/Email/src/com/android/email/mail/store/
DPop3Store.java36 import com.android.emailcommon.mail.MessagingException;
91 public static Store newInstance(Account account, Context context) throws MessagingException { in newInstance()
98 private Pop3Store(Context context, Account account) throws MessagingException { in Pop3Store()
104 throw new MessagingException("Unsupported protocol"); in Pop3Store()
192 public Bundle checkSettings() throws MessagingException { in checkSettings()
234 public Bundle checkSettings() throws MessagingException { in checkSettings()
236 int result = MessagingException.NO_ERROR; in checkSettings()
251 result = MessagingException.IOERROR; in checkSettings()
261 public synchronized void open(OpenMode mode) throws MessagingException { in open()
267 throw new MessagingException("Folder does not exist"); in open()
[all …]
DImapConnection.java35 import com.android.emailcommon.mail.MessagingException;
98 void open() throws IOException, MessagingException { in open()
229 ImapResponse readResponse() throws IOException, MessagingException { in readResponse()
242 throws MessagingException, IOException { in sendCommand()
260 String sendComplexCommand(List<String> commands, boolean sensitive) throws MessagingException, in sendComplexCommand()
275 throw new MessagingException("Expected continuation request"); in sendComplexCommand()
286 MessagingException { in executeSimpleCommand()
297 List<ImapResponse> getCommandResponses() throws IOException, MessagingException { in getCommandResponses()
324 throws IOException, MessagingException { in executeSimpleCommand()
340 throws IOException, MessagingException { in executeComplexCommand()
[all …]
DImapFolder.java47 import com.android.emailcommon.mail.MessagingException;
93 throws MessagingException { in open()
137 } catch (MessagingException e) { in open()
171 public boolean exists() throws MessagingException { in exists()
195 } catch (MessagingException me) { in exists()
197 if (me.getExceptionType() == MessagingException.IOERROR) { in exists()
220 public boolean create(FolderType type) throws MessagingException { in create()
239 } catch (MessagingException me) { in create()
255 MessageUpdateCallbacks callbacks) throws MessagingException { in copyMessages()
273 throw new MessagingException(responseText); in copyMessages()
[all …]
DServiceStore.java24 import com.android.emailcommon.mail.MessagingException;
41 public ServiceStore(Account account, Context context) throws MessagingException { in ServiceStore()
47 public Bundle checkSettings() throws MessagingException { in checkSettings()
61 throw new MessagingException("Call to validate generated an exception", e); in checkSettings()
/packages/apps/Email/tests/src/com/android/email/mail/store/
DPop3StoreUnitTests.java38 import com.android.emailcommon.mail.MessagingException;
179 public void testSimpleLogin() throws MessagingException { in testSimpleLogin()
199 public void testCheckSettings() throws MessagingException { in testCheckSettings()
221 } catch (MessagingException me) { in testCheckSettings()
231 public void testCheckSettingsCapabilities() throws MessagingException { in testCheckSettingsCapabilities()
243 } catch (MessagingException me) { in testCheckSettingsCapabilities()
344 public void testOneUnread() throws MessagingException { in testOneUnread()
354 public void testGetMessageByUid() throws MessagingException { in testGetMessageByUid()
392 public void testCatchClosed1a() throws MessagingException { in testCatchClosed1a()
408 } catch(MessagingException me) { in testCatchClosed1a()
[all …]
/packages/apps/Email/tests/src/com/android/emailcommon/internet/
DMimeMessageTest.java23 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/src/com/android/email/mail/store/imap/
DImapResponseParser.java24 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/tests/src/com/android/emailcommon/mail/
DMessageTestUtils.java77 public static BodyPart bodyPart(String mimeType, String contentId) throws MessagingException { in bodyPart()
93 public static BodyPart textPart(String mimeType, String text) throws MessagingException { in textPart()
147 public Multipart build() throws MessagingException { in build()
160 public BodyPart buildBodyPart() throws MessagingException { in buildBodyPart()
199 public Message build() throws MessagingException { in build()
202 throw new MessagingException("body is not specified"); in build()

123