Home
last modified time | relevance | path

Searched refs:net1 (Results 1 – 3 of 3) sorted by relevance

/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/testutils/
DTestableNetworkCallbackTest.kt379 val net1 = Network(100) in <lambda>() constant
381 mCallback.onAvailable(net1) in <lambda>()
382 mCallback.onCapabilitiesChanged(net1, NetworkCapabilities()) in <lambda>()
383 mCallback.onLinkPropertiesChanged(net1, LinkProperties()) in <lambda>()
385 net1.equals(it.network) in <lambda>()
393 mCallback.onBlockedStatusChanged(net1, false) in <lambda>()
394 mCallback.eventuallyExpect(BLOCKED_STATUS) { net1.equals(it.network) } in <lambda>()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/connectivity/
DConnectivityFragment.java591 private static boolean sameNetworkId(Network net1, Network net2) { in sameNetworkId() argument
592 return net1 != null && net2 != null && net1.getNetId() == net2.getNetId(); in sameNetworkId()
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DConnectivityServiceTest.java3047 final TestNetworkAgentWrapper net1 = new TestNetworkAgentWrapper(transport);
3048 net1.connect(true);
3050 generalCb.expectAvailableThenValidatedCallbacks(net1);
3051 defaultCb.expectAvailableThenValidatedCallbacks(net1);
3062 generalCb.expectLosing(net1);
3070 net1.assertNotDisconnected(TEST_CALLBACK_TIMEOUT_MS); // always incurs the timeout
3074 net1.expectDisconnected(UNREASONABLY_LONG_ALARM_WAIT_MS);
3076 net1.expectDisconnected(TEST_CALLBACK_TIMEOUT_MS);
3078 net1.disconnect();
3079 generalCb.expect(LOST, net1);