Home
last modified time | relevance | path

Searched refs:expect (Results 1 – 19 of 19) sorted by relevance

/packages/apps/Email/tests/src/com/android/email/provider/
DProviderTestUtils.java270 private static void assertEmailContentEqual(String caller, EmailContent expect, in assertEmailContentEqual() argument
272 if (expect == actual) { in assertEmailContentEqual()
276 assertEquals(caller + " mId", expect.mId, actual.mId); in assertEmailContentEqual()
277 assertEquals(caller + " mBaseUri", expect.mBaseUri, actual.mBaseUri); in assertEmailContentEqual()
285 public static void assertAccountEqual(String caller, Account expect, Account actual) { in assertAccountEqual() argument
286 if (expect == actual) { in assertAccountEqual()
290 assertEmailContentEqual(caller, expect, actual); in assertAccountEqual()
291 assertEquals(caller + " mDisplayName", expect.mDisplayName, actual.mDisplayName); in assertAccountEqual()
292 assertEquals(caller + " mEmailAddress", expect.mEmailAddress, actual.mEmailAddress); in assertAccountEqual()
293 assertEquals(caller + " mSyncKey", expect.mSyncKey, actual.mSyncKey); in assertAccountEqual()
[all …]
DAccountBackupRestoreTests.java60 public static void assertRestoredAccountEqual(Account expect, Account actual) { in assertRestoredAccountEqual() argument
61 assertEquals(" mDisplayName", expect.mDisplayName, actual.mDisplayName); in assertRestoredAccountEqual()
62 assertEquals(" mEmailAddress", expect.mEmailAddress, actual.mEmailAddress); in assertRestoredAccountEqual()
64 assertEquals(" mSyncLookback", expect.mSyncLookback, actual.mSyncLookback); in assertRestoredAccountEqual()
65 assertEquals(" mSyncInterval", expect.mSyncInterval, actual.mSyncInterval); in assertRestoredAccountEqual()
66 assertEquals(" mFlags", expect.mFlags, actual.mFlags); in assertRestoredAccountEqual()
67 assertEquals(" mSenderName", expect.mSenderName, actual.mSenderName); in assertRestoredAccountEqual()
68 assertEquals(" mProtocolVersion", expect.mProtocolVersion, in assertRestoredAccountEqual()
70 assertEquals(" mSignature", expect.mSignature, actual.mSignature); in assertRestoredAccountEqual()
/packages/apps/Email/tests/src/com/android/email/mail/transport/
DSmtpSenderUnitTests.java123 mockTransport.expect("Content-Type: text/plain; charset=utf-8"); in testSendMessageWithBody()
124 mockTransport.expect("Content-Transfer-Encoding: base64"); in testSendMessageWithBody()
125 mockTransport.expect(""); in testSendMessageWithBody()
126 mockTransport.expect(TEST_STRING_BASE64); in testSendMessageWithBody()
127 mockTransport.expect("\r\n\\.", "250 2.0.0 kv2f1a00C02Rf8w3Vv mail accepted for delivery"); in testSendMessageWithBody()
151 mockTransport.expect("Content-Type: multipart/mixed; boundary=\".*"); in testSendMessageWithEmptyAttachment()
152 mockTransport.expect(""); in testSendMessageWithEmptyAttachment()
153 mockTransport.expect("----.*"); in testSendMessageWithEmptyAttachment()
155 mockTransport.expect(""); in testSendMessageWithEmptyAttachment()
156 mockTransport.expect("----.*--"); in testSendMessageWithEmptyAttachment()
[all …]
DMockTransport.java108 public void expect(String pattern) { in expect() method in MockTransport
109 expect(pattern, (String[]) null); in expect()
117 public void expect(String pattern, String response) { in expect() method in MockTransport
118 expect(pattern, (response == null) ? null : new String[] {response}); in expect()
126 public void expect(String pattern, String[] responses) { in expect() method in MockTransport
136 expect("^" + Pattern.quote(literal) + "$", responses); in expectLiterally()
192 Transaction expect = mPairs.remove(0); in close() local
193 if (expect.mAction == Transaction.ACTION_CLIENT_CLOSE) { in close()
284 Transaction expect = mPairs.remove(0); in reopenTls() local
285 SmtpSenderUnitTests.assertTrue(expect.mAction == Transaction.ACTION_START_TLS); in reopenTls()
/packages/apps/Email/tests/src/com/android/email/mail/store/
DPop3StoreUnitTests.java205 mockTransport.expect("QUIT", ""); in testCheckSettings()
210 mockTransport.expect("QUIT", ""); in testCheckSettings()
216 mockTransport.expect("UIDL", "-ERR unsupported"); in testCheckSettings()
217 mockTransport.expect("QUIT", ""); in testCheckSettings()
235 mockTransport.expect(null, "-ERR from the Mock Transport."); in testCheckSettingsCapabilities()
249 mockTransport.expect("QUIT", ""); in testCheckSettingsCapabilities()
252 mockTransport.expect("QUIT", ""); in testCheckSettingsCapabilities()
440 mockTransport.expect("UIDL", "+OK sending UIDL list"); in testCatchClosed1b()
441 mockTransport.expect(null, "bad-data" + " " + "THE-UIDL"); in testCatchClosed1b()
442 mockTransport.expect(null, "."); in testCatchClosed1b()
[all …]
DImapStoreUnitTests.java215 mockTransport.expect( in testTlsOpen()
496 mockTransport.expect(null, "* oK Imap 2000 Ready To Assist You"); in testImapIdSecureServerNotSent()
502 mockTransport.expect(getNextTag(false) + " LOGIN user \"password\"", in testImapIdSecureServerNotSent()
613 mockTransport.expect( in expectSelect()
638 mockTransport.expect(null, "* oK Imap 2000 Ready To Assist You"); in expectLogin()
644 mockTransport.expect(getNextTag(false) + " STARTTLS", in expectLogin()
658 mockTransport.expect(getNextTag(false) + " ID \\(.*\\)", imapIdResponse); in expectLogin()
663 mockTransport.expect(getNextTag(false) + " LOGIN user \"password\"", in expectLogin()
673 mockTransport.expect(getNextTag(false) + " CAPABILITY", new String[] { in expectCapability()
680 mockTransport.expect(getNextTag(false) + " NOOP", in expectNoop()
[all …]
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/message/
DMessage.java105 private void expect(Class c) { in expect() method in Message.MessageBuilder
120 expect(Entity.class); in startMessage()
131 expect(Message.class); in endMessage()
146 expect(Header.class); in field()
154 expect(Header.class); in endHeader()
156 expect(Entity.class); in endHeader()
164 expect(Entity.class); in startMultipart()
176 expect(Entity.class); in body()
206 expect(Multipart.class); in startBodyPart()
217 expect(BodyPart.class); in endBodyPart()
[all …]
/packages/services/Telephony/src/com/android/phone/common/mail/store/imap/
DImapResponseParser.java193 /* package for test */ void expect(char expected) throws IOException { in expect() method in ImapResponseParser
222 expect('\n'); // TODO Should this really be error? in readUntilEol()
243 expect(' '); in parseResponse()
258 expect(' '); in parseResponse()
293 expect('\r'); in parseResponse()
294 expect('\n'); in parseResponse()
325 expect('\n'); // Should be followed by LF. in parseElement()
407 expect(opening); in parseList()
410 expect(closing); in parseList()
415 expect('{'); in parseLiteral()
[all …]
/packages/apps/Email/provider_src/com/android/email/mail/store/imap/
DImapResponseParser.java212 /* package for test */ void expect(char expected) throws IOException { in expect() method in ImapResponseParser
241 expect('\n'); // TODO Should this really be error? in readUntilEol()
262 expect(' '); in parseResponse()
277 expect(' '); in parseResponse()
312 expect('\r'); in parseResponse()
313 expect('\n'); in parseResponse()
344 expect('\n'); // Should be followed by LF. in parseElement()
426 expect(opening); in parseList()
429 expect(closing); in parseList()
434 expect('{'); in parseLiteral()
[all …]
/packages/apps/Email/tests/src/com/android/email/
DLegacyConversionsTests.java368 private void checkLegacyMessage(String tag, EmailContent.Message expect, Message actual) in checkLegacyMessage() argument
370 assertEquals(tag, expect.mServerId, actual.getUid()); in checkLegacyMessage()
371 assertEquals(tag, expect.mServerTimeStamp, actual.getInternalDate().getTime()); in checkLegacyMessage()
372 assertEquals(tag, expect.mSubject, actual.getSubject()); in checkLegacyMessage()
373 assertEquals(tag, expect.mFrom, Address.toHeader(actual.getFrom())); in checkLegacyMessage()
374 assertEquals(tag, expect.mTimeStamp, actual.getSentDate().getTime()); in checkLegacyMessage()
375 assertEquals(tag, expect.mTo, Address.toHeader(actual.getRecipients(RecipientType.TO))); in checkLegacyMessage()
376 assertEquals(tag, expect.mCc, Address.toHeader(actual.getRecipients(RecipientType.CC))); in checkLegacyMessage()
377 assertEquals(tag, expect.mBcc, Address.toHeader(actual.getRecipients(RecipientType.BCC))); in checkLegacyMessage()
378 assertEquals(tag, expect.mReplyTo, Address.toHeader(actual.getReplyTo())); in checkLegacyMessage()
[all …]
/packages/apps/UnifiedEmail/src/com/android/emailcommon/internet/
DMimeMessage.java545 private void expect(Class<?> c) { in expect() method in MimeMessage.MimeMessageBuilder
557 expect(Part.class); in startMessage()
570 expect(MimeMessage.class); in endMessage()
576 expect(Part.class); in startHeader()
581 expect(Part.class); in field()
592 expect(Part.class); in endHeader()
597 expect(Part.class); in startMultipart()
611 expect(Part.class); in body()
627 expect(MimeMultipart.class); in startBodyPart()
640 expect(BodyPart.class); in endBodyPart()
[all …]
/packages/services/Telephony/src/com/android/phone/common/mail/internet/
DMimeMessage.java544 private void expect(Class<?> c) { in expect() method in MimeMessage.MimeMessageBuilder
556 expect(Part.class); in startMessage()
569 expect(MimeMessage.class); in endMessage()
575 expect(Part.class); in startHeader()
580 expect(Part.class); in field()
591 expect(Part.class); in endHeader()
596 expect(Part.class); in startMultipart()
610 expect(Part.class); in body()
626 expect(MimeMultipart.class); in startBodyPart()
639 expect(BodyPart.class); in endBodyPart()
[all …]
/packages/apps/Email/tests/src/com/android/email/mail/store/imap/
DImapResponseParserTest.java52 p.expect('a'); in testExpect()
53 p.expect('b'); in testExpect()
55 p.expect('C'); in testExpect()
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapbMessage.java410 public void expect(String subString) throws IllegalArgumentException{ in expect() method in BluetoothMapbMessage.BMsgReader
426 public void expect(String subString, String subString2) throws IllegalArgumentException{ in expect() method in BluetoothMapbMessage.BMsgReader
553 reader.expect("BEGIN:BMSG"); in parse()
554 reader.expect("VERSION"); in parse()
/packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/
Dreadertest.cpp30 template<bool expect>
31 struct ParseBoolHandler : BaseReaderHandler<UTF8<>, ParseBoolHandler<expect> > {
36 bool Bool(bool b) { /*EXPECT_EQ(expect, b); */EXPECT_TRUE(expect == b); ++step_; return true; } in Bool()
/packages/apps/Test/connectivity/sl4n/rapidjson/doc/
Dsax.md272 The usage of `PrettyWriter` is exactly the same as `Writer`, expect that `PrettyWriter` provides a …
/packages/services/Telecomm/libs/
Dguava.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...
/packages/services/Car/bluetooth/bt-map-service/
Dbt_hci_startup_issues.txt69695 [ro.expect.recovery_id]: [0x6adfd2dee93109bf9920ac0c331ccfb4bdb01725000000000000000000000000]
/packages/inputmethods/LatinIME/dictionaries/
Den_US_wordlist.combined.gz