Home
last modified time | relevance | path

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

/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DConnectivityManagerTest.java761 final TestNetworkCallback systemDefaultCallback = new TestNetworkCallback(); in testRegisterNetworkCallback() local
767 mCmShim.registerSystemDefaultNetworkCallback(systemDefaultCallback, h); in testRegisterNetworkCallback()
791 systemDefaultCallback.waitForAvailable()); in testRegisterNetworkCallback()
808 mCm.unregisterNetworkCallback(systemDefaultCallback); in testRegisterNetworkCallback()
2331 final TestableNetworkCallback systemDefaultCallback = new TestableNetworkCallback();
2344 registerTestOemNetworkPreferenceCallbacks(defaultCallback, systemDefaultCallback);
2348 waitForAvailable(systemDefaultCallback, wifiNetwork);
2360 waitForAvailable(systemDefaultCallback, TRANSPORT_WIFI);
2372 unregisterTestOemNetworkPreferenceCallbacks(defaultCallback, systemDefaultCallback);
2390 final TestableNetworkCallback systemDefaultCallback = new TestableNetworkCallback();
[all …]
/packages/modules/Connectivity/tests/cts/hostside/app/src/com/android/cts/net/hostside/
DVpnTest.java722 final TestableNetworkCallback systemDefaultCallback = new TestableNetworkCallback(); in testDefault() local
730 mCM.registerSystemDefaultNetworkCallback(systemDefaultCallback, h); in testDefault()
735 List.of(systemDefaultCallback, otherUidCallback, myUidCallback)) { in testDefault()
772 systemDefaultCallback.assertNoCallback(); in testDefault()
774 mCM.unregisterNetworkCallback(systemDefaultCallback); in testDefault()
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DConnectivityServiceTest.java4285 final TestNetworkCallback systemDefaultCallback = new TestNetworkCallback(); in testRegisterDefaultNetworkCallback() local
4286 mCm.registerSystemDefaultNetworkCallback(systemDefaultCallback, handler); in testRegisterDefaultNetworkCallback()
4287 systemDefaultCallback.assertNoCallback(); in testRegisterDefaultNetworkCallback()
4303 systemDefaultCallback.expectAvailableThenValidatedCallbacks(mCellNetworkAgent); in testRegisterDefaultNetworkCallback()
4305 assertEquals(systemDefaultCallback.getLastAvailableNetwork(), mCm.getActiveNetwork()); in testRegisterDefaultNetworkCallback()
4312 systemDefaultCallback.expectAvailableDoubleValidatedCallbacks(mWiFiNetworkAgent); in testRegisterDefaultNetworkCallback()
4314 assertEquals(systemDefaultCallback.getLastAvailableNetwork(), mCm.getActiveNetwork()); in testRegisterDefaultNetworkCallback()
4320 systemDefaultCallback.assertNoCallback(); in testRegisterDefaultNetworkCallback()
4322 assertEquals(systemDefaultCallback.getLastAvailableNetwork(), mCm.getActiveNetwork()); in testRegisterDefaultNetworkCallback()
4329 systemDefaultCallback.assertNoCallback(); in testRegisterDefaultNetworkCallback()
[all …]