Home
last modified time | relevance | path

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

/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/netlink/
DStructNlMsgHdrTest.java65 private static void assertContains(String actualValue, String expectedSubstring) { in assertContains() method in StructNlMsgHdrTest
79 assertContains(s, TEST_NLMSG_LEN_STR); in testToString()
80 assertContains(s, TEST_NLMSG_FLAGS_STR); in testToString()
81 assertContains(s, TEST_NLMSG_SEQ_STR); in testToString()
82 assertContains(s, TEST_NLMSG_PID_STR); in testToString()
83 assertContains(s, "nlmsg_type{20()}"); in testToString()
87 assertContains(s, TEST_NLMSG_LEN_STR); in testToString()
88 assertContains(s, TEST_NLMSG_FLAGS_STR); in testToString()
89 assertContains(s, TEST_NLMSG_SEQ_STR); in testToString()
90 assertContains(s, TEST_NLMSG_PID_STR); in testToString()
[all …]
/packages/modules/NetworkStack/tests/unit/src/android/net/dhcp/
DDhcpServingParamsTest.java111 assertContains(params.excludedAddrs, TEST_EXCLUDED_ADDRS); in testBuild_Immutable()
112 assertContains(params.excludedAddrs, TEST_DEFAULT_ROUTERS); in testBuild_Immutable()
113 assertContains(params.excludedAddrs, TEST_DNS_SERVERS); in testBuild_Immutable()
114 assertContains(params.excludedAddrs, TEST_SERVER_ADDR); in testBuild_Immutable()
237 private static <T> void assertContains(@NonNull Set<T> set, @NonNull Set<T> subset) { in assertContains() method in DhcpServingParamsTest
239 assertContains(set, elem); in assertContains()
243 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.java668 assertContains(delta, underlyingIface, 10120, SET_DEFAULT, TAG_NONE, METERED_NO, in testMigrateTun()
670 assertContains(delta, underlyingIface, 10120, SET_FOREGROUND, TAG_NONE, METERED_NO, in testMigrateTun()
672 assertContains(delta, underlyingIface, 10120, SET_DEFAULT, testTag1, METERED_NO, in testMigrateTun()
674 assertContains(delta, underlyingIface, 10120, SET_FOREGROUND, testTag1, METERED_NO, in testMigrateTun()
678 assertContains(delta, underlyingIface, 10100, SET_DBG_VPN_IN, TAG_NONE, METERED_NO, in testMigrateTun()
680 assertContains(delta, underlyingIface, 10120, SET_DBG_VPN_IN, TAG_NONE, METERED_NO, in testMigrateTun()
682 assertContains(delta, underlyingIface, tunUid, SET_DBG_VPN_OUT, TAG_NONE, METERED_ALL, in testMigrateTun()
733 assertContains(delta, underlyingIface, 20100, SET_DEFAULT, TAG_NONE, METERED_NO, in testMigrateTun_VpnAsLoopback()
737 assertContains(delta, underlyingIface, 10100, SET_DBG_VPN_IN, TAG_NONE, METERED_NO, in testMigrateTun_VpnAsLoopback()
739 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.java184 protected void assertContains(List<?> list, Object object) { in assertContains() method in RawContactModifierTests
216 assertContains(validTypes, typeHome); in testValidTypes()
218 assertContains(validTypes, typeOther); in testValidTypes()
227 assertContains(validTypes, typeOther); in testValidTypes()
261 assertContains(validTypes, typeHome); in testValidTypesWhenUpdating()
263 assertContains(validTypes, typeOther); in testValidTypesWhenUpdating()
274 assertContains(validTypes, typeOther); in testValidTypesWhenUpdating()
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DTetheringTest.java2139 assertContains(Arrays.asList(mTethering.getTetheredIfaces()), TEST_RNDIS_IFNAME); in testUntetherUsbWhenRestrictionIsOn()
2587 assertContains(Arrays.asList(mTethering.getTetheredIfaces()), TEST_RNDIS_IFNAME); in testDataSaverChanged()
2599 assertContains(Arrays.asList(mTethering.getTetheredIfaces()), TEST_RNDIS_IFNAME); in testDataSaverChanged()
2604 assertContains(Arrays.asList(mTethering.getTetheredIfaces()), TEST_RNDIS_IFNAME); in testDataSaverChanged()
2609 assertContains(Arrays.asList(mTethering.getTetheredIfaces()), TEST_RNDIS_IFNAME); in testDataSaverChanged()
2612 private static <T> void assertContains(Collection<T> collection, T element) { in assertContains() method in TetheringTest
2996 assertContains(Arrays.asList(mTethering.getTetherableIfacesForTest()), TEST_RNDIS_IFNAME); in testNoAddressAvailable()
2997 assertContains(Arrays.asList(mTethering.getTetherableIfacesForTest()), TEST_ETH_IFNAME); in testNoAddressAvailable()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DConnectivityManagerTest.java902 assertContains(ALLOWED_IP_ADDRESS_ECHO_URLS, ipAddressEchoUrl); in getIpAddressEchoUrlFromConfig()
928 assertContains(linkProperties.getAddresses(), address); in assertOnNetwork()
932 private static<T> void assertContains(Collection<T> collection, T element) { in assertContains() method in ConnectivityManagerTest