Home
last modified time | relevance | path

Searched refs:assertContains (Results 1 – 6 of 6) sorted by relevance

/packages/modules/NetworkStack/tests/unit/src/android/net/netlink/
DStructNlMsgHdrTest.java60 private static void assertContains(String actualValue, String expectedSubstring) { in assertContains() method in StructNlMsgHdrTest
69 assertContains(s, TEST_NLMSG_LEN_STR); in testToString()
70 assertContains(s, TEST_NLMSG_FLAGS_STR); in testToString()
71 assertContains(s, TEST_NLMSG_SEQ_STR); in testToString()
72 assertContains(s, TEST_NLMSG_PID_STR); in testToString()
73 assertContains(s, "nlmsg_type{20()}"); in testToString()
77 assertContains(s, TEST_NLMSG_LEN_STR); in testToString()
78 assertContains(s, TEST_NLMSG_FLAGS_STR); in testToString()
79 assertContains(s, TEST_NLMSG_SEQ_STR); in testToString()
80 assertContains(s, TEST_NLMSG_PID_STR); in testToString()
[all …]
/packages/modules/NetworkStack/tests/unit/src/android/net/dhcp/
DDhcpServingParamsTest.java109 assertContains(params.excludedAddrs, TEST_EXCLUDED_ADDRS); in testBuild_Immutable()
110 assertContains(params.excludedAddrs, TEST_DEFAULT_ROUTERS); in testBuild_Immutable()
111 assertContains(params.excludedAddrs, TEST_DNS_SERVERS); in testBuild_Immutable()
112 assertContains(params.excludedAddrs, TEST_SERVER_ADDR); in testBuild_Immutable()
214 private static <T> void assertContains(@NonNull Set<T> set, @NonNull Set<T> subset) { in assertContains() method in DhcpServingParamsTest
216 assertContains(set, elem); in assertContains()
220 private static <T> void assertContains(@NonNull Set<T> set, @Nullable T elem) { in assertContains() method in DhcpServingParamsTest
/packages/modules/Connectivity/tests/unit/java/android/net/
DNetworkStatsTest.java660 assertContains(delta, underlyingIface, 10120, SET_DEFAULT, TAG_NONE, METERED_NO, in testMigrateTun()
662 assertContains(delta, underlyingIface, 10120, SET_FOREGROUND, TAG_NONE, METERED_NO, in testMigrateTun()
664 assertContains(delta, underlyingIface, 10120, SET_DEFAULT, testTag1, METERED_NO, in testMigrateTun()
666 assertContains(delta, underlyingIface, 10120, SET_FOREGROUND, testTag1, METERED_NO, in testMigrateTun()
670 assertContains(delta, underlyingIface, 10100, SET_DBG_VPN_IN, TAG_NONE, METERED_NO, in testMigrateTun()
672 assertContains(delta, underlyingIface, 10120, SET_DBG_VPN_IN, TAG_NONE, METERED_NO, in testMigrateTun()
674 assertContains(delta, underlyingIface, tunUid, SET_DBG_VPN_OUT, TAG_NONE, METERED_ALL, in testMigrateTun()
725 assertContains(delta, underlyingIface, 20100, SET_DEFAULT, TAG_NONE, METERED_NO, in testMigrateTun_VpnAsLoopback()
729 assertContains(delta, underlyingIface, 10100, SET_DBG_VPN_IN, TAG_NONE, METERED_NO, in testMigrateTun_VpnAsLoopback()
731 assertContains(delta, underlyingIface, 20100, SET_DBG_VPN_IN, TAG_NONE, METERED_NO, in testMigrateTun_VpnAsLoopback()
[all …]
/packages/apps/Contacts/tests/src/com/android/contacts/model/
DRawContactModifierTests.java183 protected void assertContains(List<?> list, Object object) { in assertContains() method in RawContactModifierTests
215 assertContains(validTypes, typeHome); in testValidTypes()
217 assertContains(validTypes, typeOther); in testValidTypes()
226 assertContains(validTypes, typeOther); in testValidTypes()
260 assertContains(validTypes, typeHome); in testValidTypesWhenUpdating()
262 assertContains(validTypes, typeOther); in testValidTypesWhenUpdating()
273 assertContains(validTypes, typeOther); in testValidTypesWhenUpdating()
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DTetheringTest.java1654 assertContains(Arrays.asList(mTethering.getTetheredIfaces()), TEST_RNDIS_IFNAME); in testUntetherUsbWhenRestrictionIsOn()
2093 assertContains(Arrays.asList(mTethering.getTetheredIfaces()), TEST_RNDIS_IFNAME); in testDataSaverChanged()
2105 assertContains(Arrays.asList(mTethering.getTetheredIfaces()), TEST_RNDIS_IFNAME); in testDataSaverChanged()
2110 assertContains(Arrays.asList(mTethering.getTetheredIfaces()), TEST_RNDIS_IFNAME); in testDataSaverChanged()
2115 assertContains(Arrays.asList(mTethering.getTetheredIfaces()), TEST_RNDIS_IFNAME); in testDataSaverChanged()
2118 private static <T> void assertContains(Collection<T> collection, T element) { in assertContains() method in TetheringTest
2427 assertContains(Arrays.asList(mTethering.getTetherableIfacesForTest()), TEST_RNDIS_IFNAME); in testNoAddressAvailable()
2428 assertContains(Arrays.asList(mTethering.getTetherableIfacesForTest()), TEST_ETH_IFNAME); in testNoAddressAvailable()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DConnectivityManagerTest.java603 assertContains(linkProperties.getAddresses(), address); in assertOnNetwork()
607 private static<T> void assertContains(Collection<T> collection, T element) { in assertContains() method in ConnectivityManagerTest