Searched refs:mNetworkCallback (Results 1 – 5 of 5) sorted by relevance
50 private ConnectivityManager.NetworkCallback mNetworkCallback; field in MyService94 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;
74 private CallbackUtils.NetworkCallback mNetworkCallback; field in NetworkRequestTestCase145 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()
65 private CallbackUtils.NetworkCallback mNetworkCallback; field in NetworkSuggestionTestCase135 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()
55 private ConnectivityManager.NetworkCallback mNetworkCallback = null; field in ReflectorVpnService96 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()
97 private NetworkCallback mNetworkCallback; field in ConnectivityBackgroundTestActivity183 if (mNetworkCallback != null) { in clearNetworkCallback()184 mCM.unregisterNetworkCallback(mNetworkCallback); in clearNetworkCallback()185 mNetworkCallback = null; in clearNetworkCallback()