Home
last modified time | relevance | path

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

/cts/hostsidetests/net/app2/src/com/android/cts/net/hostside/app2/
DMyService.java50 private ConnectivityManager.NetworkCallback mNetworkCallback; field in MyService
94 if (mNetworkCallback != null) {
95 Log.d(TAG, "unregister previous network callback: " + mNetworkCallback);
100 mNetworkCallback = new ConnectivityManager.NetworkCallback() {
141 mCm.registerNetworkCallback(makeWifiNetworkRequest(), mNetworkCallback);
152 if (mNetworkCallback != null) {
153 mCm.unregisterNetworkCallback(mNetworkCallback);
154 mNetworkCallback = null;
/cts/apps/CtsVerifier/src/com/android/cts/verifier/wifi/testcase/
DNetworkRequestTestCase.java74 private CallbackUtils.NetworkCallback mNetworkCallback; field in NetworkRequestTestCase
145 mNetworkCallback = new CallbackUtils.NetworkCallback(CALLBACK_TIMEOUT_MS); in executeTest()
148 mConnectivityManager.requestNetwork(mNetworkRequest, mNetworkCallback, in executeTest()
156 boolean cbStatusForUnavailable = mNetworkCallback.waitForUnavailable(); in executeTest()
170 Pair<Boolean, Network> cbStatusForAvailable = mNetworkCallback.waitForAvailable(); in executeTest()
183 boolean cbStatusForLost = mNetworkCallback.waitForLost(); in executeTest()
208 if (mNetworkCallback != null) { in tearDown()
209 mConnectivityManager.unregisterNetworkCallback(mNetworkCallback); in tearDown()
DNetworkSuggestionTestCase.java65 private CallbackUtils.NetworkCallback mNetworkCallback; field in NetworkSuggestionTestCase
135 mNetworkCallback = new CallbackUtils.NetworkCallback(CALLBACK_TIMEOUT_MS); in executeTest()
136 mConnectivityManager.registerNetworkCallback(mNetworkRequest, mNetworkCallback); in executeTest()
163 Pair<Boolean, Network> cbStatusForAvailable = mNetworkCallback.waitForAvailable(); in executeTest()
214 boolean cbStatusForLost = mNetworkCallback.waitForLost(); in executeTest()
/cts/apps/VpnApp/src/com/android/cts/vpnfirewall/
DReflectorVpnService.java55 private ConnectivityManager.NetworkCallback mNetworkCallback = null; field in ReflectorVpnService
96 if (null == mConnectivityManager || null == mNetworkCallback) return; in ensureNetworkCallbackUnregistered()
97 mConnectivityManager.unregisterNetworkCallback(mNetworkCallback); in ensureNetworkCallbackUnregistered()
98 mNetworkCallback = null; in ensureNetworkCallbackUnregistered()
122 mNetworkCallback = new ConnectivityManager.NetworkCallback() { in start()
133 mConnectivityManager.registerNetworkCallback(request, mNetworkCallback); in start()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/net/
DConnectivityBackgroundTestActivity.java97 private NetworkCallback mNetworkCallback; field in ConnectivityBackgroundTestActivity
183 if (mNetworkCallback != null) { in clearNetworkCallback()
184 mCM.unregisterNetworkCallback(mNetworkCallback); in clearNetworkCallback()
185 mNetworkCallback = null; in clearNetworkCallback()