Home
last modified time | relevance | path

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

12

/packages/apps/Dialer/java/com/android/voicemail/impl/mail/store/imap/
DImapResponseParser.java181 /* package for test */ void expect(char expected) throws IOException { in expect() method in ImapResponseParser
209 expect('\n'); // TODO Should this really be error? in readUntilEol()
228 expect(' '); in parseResponse()
243 expect(' '); in parseResponse()
278 expect('\r'); in parseResponse()
279 expect('\n'); in parseResponse()
310 expect('\n'); // Should be followed by LF. in parseElement()
397 expect(opening); in parseList()
400 expect(closing); in parseList()
405 expect('{'); in parseLiteral()
[all …]
DDigestMd5Utils.java246 expect(','); in parse()
258 expect('='); in parsePair()
263 private void expect(char c) { in expect() method in DigestMd5Utils.DigestMessageParser
300 expect('"'); in parseQuotedValue()
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/internet/
DMimeMessage.java554 private void expect(Class<?> c) { in expect() method in MimeMessage.MimeMessageBuilder
571 expect(Part.class); in startMessage()
584 expect(MimeMessage.class); in endMessage()
590 expect(Part.class); in startHeader()
595 expect(Part.class); in field()
606 expect(Part.class); in endHeader()
611 expect(Part.class); in startMultipart()
625 expect(Part.class); in body()
641 expect(MimeMultipart.class); in startBodyPart()
654 expect(BodyPart.class); in endBodyPart()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/pm/
DVendorServiceInfoTest.java39 exception.expect(IllegalArgumentException.class); in emptyString()
45 exception.expect(IllegalArgumentException.class); in multipleHashTags()
51 exception.expect(IllegalArgumentException.class); in unknownArg()
57 exception.expect(IllegalArgumentException.class); in invalidComponentName()
110 exception.expect(IllegalArgumentException.class); in triggerUnknown()
137 exception.expect(IllegalArgumentException.class); in userUnknown()
/packages/services/Car/tests/carservice_test/src/com/android/car/
DVmsOperationRecorderTest.java204 JSONObject expect = new JSONObject(expectJson.replace("'", "\"")); in assertJsonMsgEquals() local
206 assertTrue(similar(expect, got)); in assertJsonMsgEquals()
214 private boolean similar(JSONObject expect, JSONObject got) { in similar() argument
216 if (!expect.keySet().equals(got.keySet())) { in similar()
220 for (String key : expect.keySet()) { in similar()
221 Object valueExpect = expect.get(key); in similar()
/packages/apps/Car/libs/car-settings-lib/tests/robotests/src/com/android/car/settingslib/log/
DLoggerBaseTest.java36 mExpectedException.expect(IllegalStateException.class); in testNullTag()
43 mExpectedException.expect(IllegalStateException.class); in testEmptyTag()
50 mExpectedException.expect(IllegalStateException.class); in testTooLongTag()
/packages/services/Car/tests/obd2_test/src/com/android/car/obd2/test/
DIntegerArrayStreamTest.java58 assertTrue(stream.expect(1, 2, 3)); in testExpect()
59 assertFalse(stream.expect(4, 6)); in testExpect()
67 stream.expect(1, 2, 3, 4, 5); in testIsEmpty()
/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/util/
DDnsUtilsTest.kt60 private fun assertIpAddressArrayEquals(expect: Array<String>, actual: Array<InetAddress>) = in assertIpAddressArrayEquals()
61 assertArrayEquals("Array of IP addresses differs", expect, in assertIpAddressArrayEquals()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/services/
DTestNotificationManager.java89 void assertNumberOfNotifications(int expect) { in assertNumberOfNotifications() argument
95 assertEquals(expect, count); in assertNumberOfNotifications()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
DDragAndDropManagerTests.java665 final DocumentStack expect = in testDrop_Copies_DifferentRoot_DropOnRoot() local
667 mClipper.copyFromClip.assertLastArgument(Pair.create(expect, mClipData)); in testDrop_Copies_DifferentRoot_DropOnRoot()
691 final DocumentStack expect = in testDrop_Moves_SameRoot_DropOnRoot() local
693 mClipper.copyFromClip.assertLastArgument(Pair.create(expect, mClipData)); in testDrop_Moves_SameRoot_DropOnRoot()
724 final DocumentStack expect = in testDrop_Copies_SameRoot_DropOnRoot_ReleasesCtrlBeforeGettingRootDocument() local
726 mClipper.copyFromClip.assertLastArgument(Pair.create(expect, mClipData)); in testDrop_Copies_SameRoot_DropOnRoot_ReleasesCtrlBeforeGettingRootDocument()
/packages/services/Car/obd2-lib/src/com/android/car/obd2/
DObd2Command.java162 if (stream.expect(RESPONSE_MARKER, mSemanticHandler.getPid())) { in run()
190 if (stream.expect(RESPONSE_MARKER, mSemanticHandler.getPid(), mFrameId)) { in run()
DIntegerArrayStream.java86 public boolean expect(int... values) { in expect() method in IntegerArrayStream
DObd2Connection.java328 if (!stream.expect(0x43)) in getDiagnosticTroubleCodes()
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapbMessage.java413 public void expect(String subString) throws IllegalArgumentException { in expect() method in BluetoothMapbMessage.BMsgReader
430 public void expect(String subString, String subString2) throws IllegalArgumentException { in expect() method in BluetoothMapbMessage.BMsgReader
565 reader.expect("BEGIN:BMSG"); in parse()
566 reader.expect("VERSION"); in parse()
/packages/modules/DnsResolver/
Dresolv_cache_unit_test.cpp676 CacheStats expect = { in TEST_F() local
684 expect.setup.domains = {validDomain1, validDomain2}; in TEST_F()
687 expectCacheStats("ResolverSetup_Domains drop overlength", TEST_NETID, expect); in TEST_F()
691 expect.setup.domains = {validDomain1, validDomain2}; in TEST_F()
694 expectCacheStats("ResolverSetup_Domains drop duplicates", TEST_NETID, expect); in TEST_F()
/packages/apps/Contacts/tests/src/com/android/contacts/
DDynamicShortcutsTests.java277 provider.expect(MockContentProvider.Query.forAnyUri())
307 provider.expect(query);
/packages/apps/Contacts/tests/src/com/android/contacts/database/
DSimContactDaoTests.java596 mMockIccProvider.expect(MockContentProvider.Query.forAnyUri()) in createsContactsFromCursor()
632 mMockIccProvider.expect(MockContentProvider.Query.forAnyUri()) in excludesEmptyContactsFromResult()
696 mMockIccProvider.expect(MockContentProvider.Query.forAnyUri()) in returnsEmptyListForEmptyCursor()
/packages/apps/Contacts/tests/src/com/android/contacts/test/mocks/
DMockContentProvider.java479 public Query expect(Query query) { in expect() method in MockContentProvider
485 return expect(new Query(contentUri)); in expectQuery()
/packages/apps/Settings/tests/robotests/src/com/android/settings/datausage/
DDataUsageSummaryPreferenceTest.java512 final Bundle expect = new Bundle(1); in testSetWifiMode_withUsageInfo_dataUsageShown() local
513 expect.putParcelable(DataUsageList.EXTRA_NETWORK_TEMPLATE, in testSetWifiMode_withUsageInfo_dataUsageShown()
/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/Contacts/tests/src/com/android/contacts/activities/
DSimImportActivityTest.java228 iccProvider.expect(MockContentProvider.Query.forAnyUri()) in selectionsAreImportedAndDisabledOnSubsequentImports()
/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/modules/DnsResolver/tests/
Dresolv_integration_test.cpp254 const DnsMetricsListener::DnsEvent expect = { in ExpectDnsEvent() local
260 ASSERT_TRUE(dnsEvent.has_value()) << "Expected DnsEvent " << expect; in ExpectDnsEvent()
261 if (dnsEvent.value() == expect) break; in ExpectDnsEvent()
/packages/inputmethods/LatinIME/dictionaries/
Dpt_PT_wordlist.combined.gz1dictionary=main:pt_pt,locale=pt_PT,description=Português (Portugal),date ...
Dpt_BR_wordlist.combined.gz1dictionary=main:pt_br,locale=pt_BR,description=Português (Brasil),date ...

12