Home
last modified time | relevance | path

Searched refs:expect (Results 1 – 25 of 40) 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.java38 exception.expect(IllegalArgumentException.class); in emptyString()
44 exception.expect(IllegalArgumentException.class); in multipleHashTags()
50 exception.expect(IllegalArgumentException.class); in unknownArg()
56 exception.expect(IllegalArgumentException.class); in invalidComponentName()
109 exception.expect(IllegalArgumentException.class); in triggerUnknown()
136 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/modules/Wifi/service/java/com/android/server/wifi/hotspot2/
DUtils.java87 String expect = PLMNText[n]; in getMccMnc() local
88 int len = expect.endsWith("*") ? expect.length() - 1 : expect.length(); in getMccMnc()
89 if (!domain.get(n).regionMatches(0, expect, 0, len)) { in getMccMnc()
/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/NeuralNetworks/tools/test_generator/tests/
Dtest.py78 def CompareFiles(actual, expect): argument
84 if not os.path.isfile(expect):
86 print ('Could not find %s' % expect)
89 return filecmp.cmp(actual, expect, False)
/packages/services/Car/tests/carservice_test/src/com/android/car/audio/
DCarAudioZonesValidatorTest.java40 thrown.expect(RuntimeException.class); in validate_thereIsAtLeastOneZone()
55 thrown.expect(RuntimeException.class); in validate_volumeGroupsForEachZone()
81 thrown.expect(RuntimeException.class); in validate_eachAddressAppearsInOnlyOneZone()
/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/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
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
DDragAndDropManagerTests.java703 final DocumentStack expect = in testDrop_Copies_DifferentRoot_DropOnRoot() local
705 mClipper.copyFromClip.assertLastArgument(Pair.create(expect, mClipData)); in testDrop_Copies_DifferentRoot_DropOnRoot()
729 final DocumentStack expect = in testDrop_Moves_SameRoot_DropOnRoot() local
731 mClipper.copyFromClip.assertLastArgument(Pair.create(expect, mClipData)); in testDrop_Moves_SameRoot_DropOnRoot()
762 final DocumentStack expect = in testDrop_Copies_SameRoot_DropOnRoot_ReleasesCtrlBeforeGettingRootDocument() local
764 mClipper.copyFromClip.assertLastArgument(Pair.create(expect, mClipData)); in testDrop_Copies_SameRoot_DropOnRoot_ReleasesCtrlBeforeGettingRootDocument()
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DTetheringTest.java1794 @NonNull TetheringConfigurationParcel expect) { in assertTetherConfigParcelEqual() argument
1795 assertEquals(actual.subId, expect.subId); in assertTetherConfigParcelEqual()
1796 assertArrayEquals(actual.tetherableUsbRegexs, expect.tetherableUsbRegexs); in assertTetherConfigParcelEqual()
1797 assertArrayEquals(actual.tetherableWifiRegexs, expect.tetherableWifiRegexs); in assertTetherConfigParcelEqual()
1798 assertArrayEquals(actual.tetherableBluetoothRegexs, expect.tetherableBluetoothRegexs); in assertTetherConfigParcelEqual()
1799 assertEquals(actual.isDunRequired, expect.isDunRequired); in assertTetherConfigParcelEqual()
1800 assertEquals(actual.chooseUpstreamAutomatically, expect.chooseUpstreamAutomatically); in assertTetherConfigParcelEqual()
1802 expect.preferredUpstreamIfaceTypes); in assertTetherConfigParcelEqual()
1803 assertArrayEquals(actual.legacyDhcpRanges, expect.legacyDhcpRanges); in assertTetherConfigParcelEqual()
1804 assertArrayEquals(actual.defaultIPv4DNS, expect.defaultIPv4DNS); in assertTetherConfigParcelEqual()
[all …]
/packages/modules/Connectivity/tests/cts/tethering/src/android/tethering/cts/
DTetheringManagerTest.java354 final int expect) throws Exception { in assertEntitlementResult() argument
358 assertEquals(expect, listener.get(DEFAULT_TIMEOUT_MS, TimeUnit.MILLISECONDS)); in assertEntitlementResult()
390 } catch (IllegalArgumentException expect) { } in testRequestLatestEntitlementResult()
/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/tests/
Dresolv_cache_unit_test.cpp675 CacheStats expect = { in TEST_F() local
683 expect.setup.domains = {validDomain1, validDomain2}; in TEST_F()
686 expectCacheStats("ResolverSetup_Domains drop overlength", TEST_NETID, expect); in TEST_F()
690 expect.setup.domains = {validDomain1, validDomain2}; in TEST_F()
693 expectCacheStats("ResolverSetup_Domains drop duplicates", TEST_NETID, expect); in TEST_F()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DScoringParamsTest.java95 String expect = EXPECTED_DEFAULTS;
97 assertEquals(expect, actual);
/packages/modules/Virtualization/authfs/src/
Dfile.rs17 get_interface(&service_name).expect("Cannot reach authfs_fd_server binder service") in get_local_binder()
Dfusefs.rs390 .expect("Failed to open /dev/fuse"); in loop_forever()
405 .expect("Failed to mount fuse"); in loop_forever()
/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.java598 mMockSimPhonebookProvider.expect(MockContentProvider.Query.forAnyUri()) in createsContactsFromCursor()
624 mMockSimPhonebookProvider.expect(MockContentProvider.Query.forAnyUri()) in excludesEmptyContactsFromResult()
667 mMockSimPhonebookProvider.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/modules/Connectivity/tests/cts/net/src/android/net/cts/
DNetworkRequestTest.java306 private void assertCorrectlySatisfies(boolean expect, NetworkRequest request, in assertCorrectlySatisfies() argument
308 assertEquals(expect, request.canBeSatisfiedBy(nc)); in assertCorrectlySatisfies()

12