Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/om/
DOverlayManagerSettingsTests.java126 assertContains(mSettings, OVERLAY_A0); in testBasicSetAndGet()
142 assertContains(users, OVERLAY_A0.userId); in testGetUsers()
148 assertContains(users, OVERLAY_A0.userId); in testGetUsers()
149 assertContains(users, OVERLAY_A1.userId); in testGetUsers()
180 assertContains(mSettings, OVERLAY_A0); in testRemoveUser()
181 assertContains(mSettings, OVERLAY_B0); in testRemoveUser()
182 assertContains(mSettings, OVERLAY_A1); in testRemoveUser()
188 assertContains(mSettings, OVERLAY_A1); in testRemoveUser()
443 private static void assertContains(final OverlayManagerSettings settings, in assertContains() method in OverlayManagerSettingsTests
445 assertContains(settings, oi.packageName, oi.userId); in assertContains()
[all …]
/frameworks/base/core/tests/coretests/src/android/net/
DNetworkPolicyManagerTest.java75 assertContains(uidRulesToString(uidRules), expectedOptions); in uidRulesToStringTest()
88 assertContains(uidPoliciesToString(policyRules), expectedOptions); in uidPoliciesToStringTest()
143 private void assertContains(String actual, String...expectedOptions) { in assertContains() method in NetworkPolicyManagerTest
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DShortcutManagerTest7.java19 import static com.android.server.pm.shortcutmanagertest.ShortcutManagerTestUtils.assertContains;
237 assertContains( in testLauncherCommands()
241 assertContains( in testLauncherCommands()
263 assertContains( in testLauncherCommands()
/frameworks/base/core/tests/coretests/src/android/net/http/
DAbstractProxyTest.java129 assertContains(get.getHeaders(), "Host: android.com"); in testConnectViaProxy()
175 assertContains(connect.getHeaders(), "Host: android.com"); in testConnectViaHttpProxyToHttps()
179 assertContains(get.getHeaders(), "Host: android.com"); in testConnectViaHttpProxyToHttps()
274 private void assertContains(List<String> headers, String header) { in assertContains() method in AbstractProxyTest
DCookiesTest.java108 assertContains(sendCookiesRequest.getHeaders(), "Cookie: a=first; b=second; c=third"); in testCookiesWithNonMatchingCase()
111 private void assertContains(List<String> headers, String header) { in assertContains() method in CookiesTest
/frameworks/base/tests/net/java/android/net/
DNetworkStatsTest.java655 assertContains(delta, underlyingIface, 10120, SET_DEFAULT, TAG_NONE, METERED_NO, in testMigrateTun()
657 assertContains(delta, underlyingIface, 10120, SET_FOREGROUND, TAG_NONE, METERED_NO, in testMigrateTun()
659 assertContains(delta, underlyingIface, 10120, SET_DEFAULT, testTag1, METERED_NO, in testMigrateTun()
661 assertContains(delta, underlyingIface, 10120, SET_FOREGROUND, testTag1, METERED_NO, in testMigrateTun()
665 assertContains(delta, underlyingIface, 10100, SET_DBG_VPN_IN, TAG_NONE, METERED_NO, in testMigrateTun()
667 assertContains(delta, underlyingIface, 10120, SET_DBG_VPN_IN, TAG_NONE, METERED_NO, in testMigrateTun()
669 assertContains(delta, underlyingIface, tunUid, SET_DBG_VPN_OUT, TAG_NONE, METERED_ALL, in testMigrateTun()
720 assertContains(delta, underlyingIface, 20100, SET_DEFAULT, TAG_NONE, METERED_NO, in testMigrateTun_VpnAsLoopback()
724 assertContains(delta, underlyingIface, 10100, SET_DBG_VPN_IN, TAG_NONE, METERED_NO, in testMigrateTun_VpnAsLoopback()
726 assertContains(delta, underlyingIface, 20100, SET_DBG_VPN_IN, TAG_NONE, METERED_NO, in testMigrateTun_VpnAsLoopback()
[all …]
/frameworks/base/packages/Tethering/tests/unit/src/com/android/networkstack/tethering/
DTetheringTest.java1638 assertContains(Arrays.asList(mTethering.getTetheredIfaces()), TEST_USB_IFNAME); in testDataSaverChanged()
1650 assertContains(Arrays.asList(mTethering.getTetheredIfaces()), TEST_USB_IFNAME); in testDataSaverChanged()
1655 assertContains(Arrays.asList(mTethering.getTetheredIfaces()), TEST_USB_IFNAME); in testDataSaverChanged()
1660 assertContains(Arrays.asList(mTethering.getTetheredIfaces()), TEST_USB_IFNAME); in testDataSaverChanged()
1663 private static <T> void assertContains(Collection<T> collection, T element) { in assertContains() method in TetheringTest
1961 assertContains(Arrays.asList(mTethering.getTetherableIfaces()), TEST_USB_IFNAME); in testNoAddressAvailable()
1962 assertContains(Arrays.asList(mTethering.getTetherableIfaces()), TEST_ETH_IFNAME); in testNoAddressAvailable()
/frameworks/base/services/tests/shortcutmanagerutils/src/com/android/server/pm/shortcutmanagertest/
DShortcutManagerTestUtils.java155 public static List<String> assertContains(List<String> result, String expected) { in assertContains() method in ShortcutManagerTestUtils