Home
last modified time | relevance | path

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

/cts/tests/tests/wifi/src/android/net/wifi/cts/
DMultiStaConcurrencyRestrictedWifiNetworkSuggestionTest.java85 private ConnectivityManager.NetworkCallback mNetworkCallback; field in MultiStaConcurrencyRestrictedWifiNetworkSuggestionTest
200 if (mNetworkCallback != null) { in tearDown()
201 sConnectivityManager.unregisterNetworkCallback(mNetworkCallback); in tearDown()
222 mNetworkCallback = sTestHelper.testConnectionFlowWithConnect( in testConnectToOemPaidSuggestionWhenConnectedToInternetNetwork()
258 mNetworkCallback = sTestHelper.testConnectionFlowWithConnect( in testConnectToInternetNetworkWhenConnectedToOemPaidSuggestion()
274 mNetworkCallback = sTestHelper.testConnectionFlowWithConnect( in testConnectToOemPrivateSuggestionWhenConnectedToInternetNetwork()
310 mNetworkCallback = sTestHelper.testConnectionFlowWithConnect( in testConnectToInternetNetworkWhenConnectedToOemPrivateSuggestion()
328 mNetworkCallback = sTestHelper.testConnectionFlowWithConnect( in testConnectToOemPaidSuggestionFailureWhenConnectedToInternetNetwork()
356 mNetworkCallback = sTestHelper.testConnectionFlowWithConnect( in testConnectToOemPrivateSuggestionFailureWhenConnectedToInternetNetwork()
385 mNetworkCallback = sTestHelper.testConnectionFlowWithConnect( in testConnectToSuggestionFailureWithOemPaidNetCapabilityWhenConnectedToInternetNetwork()
[all …]
DMultiStaConcurrencyWifiNetworkSpecifierTest.java86 private ConnectivityManager.NetworkCallback mNetworkCallback; field in MultiStaConcurrencyWifiNetworkSpecifierTest
219 if (mNetworkCallback != null) { in tearDown()
220 mConnectivityManager.unregisterNetworkCallback(mNetworkCallback); in tearDown()
253 mNetworkCallback = mTestHelper.testConnectionFlowWithConnect( in testConnectToPeerPeerNetworkWhenConnectedToInternetNetwork()
285 mNetworkCallback = mTestHelper.testConnectionFlowWithConnect( in testConnectToInternetNetworkWhenConnectedToPeerPeerNetwork()
303 mNetworkCallback = mTestHelper.testConnectionFlowWithConnect( in testPeerToPeerConnectionRejectWhenConnectedToInternetNetwork()
DMultiStaConcurrencyMultiInternetWifiNetworkTest.java102 private final ConnectivityManager.NetworkCallback mNetworkCallback = field in MultiStaConcurrencyMultiInternetWifiNetworkTest
/cts/apps/CtsVerifier/src/com/android/cts/verifier/wifi/testcase/
DNetworkRequestTestCase.java79 private CallbackUtils.NetworkCallback mNetworkCallback; field in NetworkRequestTestCase
186 mNetworkCallback = new CallbackUtils.NetworkCallback(CALLBACK_TIMEOUT_MS); in executeTest()
189 mConnectivityManager.requestNetwork(mNetworkRequest, mNetworkCallback, in executeTest()
204 boolean cbStatusForUnavailable = mNetworkCallback.waitForUnavailable(); in executeTest()
218 Pair<Boolean, Network> cbStatusForAvailable = mNetworkCallback.waitForAvailable(); in executeTest()
231 boolean cbStatusForLost = mNetworkCallback.waitForLost(); in executeTest()
256 if (mNetworkCallback != null) { in tearDown()
257 mConnectivityManager.unregisterNetworkCallback(mNetworkCallback); in tearDown()
DNetworkSuggestionTestCase.java78 private CallbackUtils.NetworkCallback mNetworkCallback; field in NetworkSuggestionTestCase
188 if (!mNetworkCallback.getNetworkCapabilities() in waitForNetworkToBeMetered()
193 + mNetworkCallback.getNetworkCapabilities()); in waitForNetworkToBeMetered()
196 if (!mNetworkCallback.waitForCapabilitiesChanged()) { in waitForNetworkToBeMetered()
256 mNetworkCallback = new CallbackUtils.NetworkCallback(CALLBACK_TIMEOUT_MS); in executeTest()
257 mConnectivityManager.registerNetworkCallback(mNetworkRequest, mNetworkCallback); in executeTest()
312 Pair<Boolean, Network> cbStatusForAvailable = mNetworkCallback.waitForAvailable(); in executeTest()
324 Pair<Boolean, Network> cbStatusForAvailable = mNetworkCallback.waitForAvailable(); in executeTest()
394 if (!mNetworkCallback.getNetworkCapabilities() in executeTest()
397 + mNetworkCallback.getNetworkCapabilities()); in executeTest()
[all …]
/cts/apps/VpnApp/src/com/android/cts/vpnfirewall/
DReflectorVpnService.java57 private ConnectivityManager.NetworkCallback mNetworkCallback = null; field in ReflectorVpnService
104 if (null == mConnectivityManager || null == mNetworkCallback) return; in ensureNetworkCallbackUnregistered()
105 mConnectivityManager.unregisterNetworkCallback(mNetworkCallback); in ensureNetworkCallbackUnregistered()
106 mNetworkCallback = null; in ensureNetworkCallbackUnregistered()
130 mNetworkCallback = new ConnectivityManager.NetworkCallback() { in start()
141 mConnectivityManager.registerNetworkCallback(request, mNetworkCallback); in start()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/net/
DConnectivityBackgroundTestActivity.java97 private NetworkCallback mNetworkCallback; field in ConnectivityBackgroundTestActivity
186 if (mNetworkCallback != null) { in clearNetworkCallback()
187 mCM.unregisterNetworkCallback(mNetworkCallback); in clearNetworkCallback()
188 mNetworkCallback = null; in clearNetworkCallback()
/cts/tests/tests/os/src/android/os/cts/
DLowPowerStandbyTest.java753 private final ConnectivityManager.NetworkCallback mNetworkCallback; field in LowPowerStandbyTest.NetworkBlockedStateAsserter
760 mNetworkCallback = in NetworkBlockedStateAsserter()
775 mConnectivityManager.registerDefaultNetworkCallback(mNetworkCallback); in register()
789 mConnectivityManager.unregisterNetworkCallback(mNetworkCallback); in unregister()