/packages/modules/NetworkStack/tests/unit/src/android/net/netlink/ |
D | StructNlMsgHdrTest.java | 60 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/ |
D | DhcpServingParamsTest.java | 109 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/ |
D | NetworkStatsTest.java | 660 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/ |
D | RawContactModifierTests.java | 183 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/ |
D | TetheringTest.java | 1654 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/ |
D | ConnectivityManagerTest.java | 603 assertContains(linkProperties.getAddresses(), address); in assertOnNetwork() 607 private static<T> void assertContains(Collection<T> collection, T element) { in assertContains() method in ConnectivityManagerTest
|