Home
last modified time | relevance | path

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

/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/testutils/
DTestableNetworkCallbackTest.kt380 val net2 = Network(101) in <lambda>() constant
391 mCallback.onAvailable(net2) in <lambda>()
392 mCallback.onLinkPropertiesChanged(net2, LinkProperties()) 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.java3054 final TestNetworkAgentWrapper net2 = new TestNetworkAgentWrapper(transport);
3055 net2.addCapability(NET_CAPABILITY_MMS);
3056 net2.setScore(new NetworkScore.Builder().setTransportPrimary(true).build());
3057 net2.connect(true);
3060 generalCb.expectAvailableCallbacksUnvalidated(net2);
3064 generalCb.expectCaps(net2, c -> c.hasCapability(NET_CAPABILITY_VALIDATED));
3065 defaultCb.expectAvailableDoubleValidatedCallbacks(net2);
3082 net2.setScore(new NetworkScore.Builder().build());
3087 mmsCallback.expectAvailableCallbacksValidated(net2);
3098 net2.assertNotDisconnected(TEST_CALLBACK_TIMEOUT_MS); // Always incurs the timeout
[all …]