Home
last modified time | relevance | path

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

/development/samples/VirtualDeviceManager/common/src/com/example/android/vdmdemo/common/
DConnectionManager.java251 private NetworkCallback mNetworkCallback; field in ConnectionManager.VdmDiscoverySessionCallback
275 if (mNetworkCallback != null) { in onSessionTerminated()
276 mConnectivityManager.unregisterNetworkCallback(mNetworkCallback); in onSessionTerminated()
277 mNetworkCallback = null; in onSessionTerminated()
303 if (mNetworkCallback != null) { in requestNetwork()
304 mConnectivityManager.unregisterNetworkCallback(mNetworkCallback); in requestNetwork()
306 mNetworkCallback = networkCallback; in requestNetwork()
316 networkRequest, mNetworkCallback, NETWORK_TIMEOUT_MS); in requestNetwork()
/development/samples/browseable/WearHighBandwidthNetworking/src/com.example.android.wearable.wear.wearhighbandwidthnetworking/
DMainActivity.java60 private ConnectivityManager.NetworkCallback mNetworkCallback; field in MainActivity
142 if (mNetworkCallback != null) { in unregisterNetworkCallback()
144 mConnectivityManager.unregisterNetworkCallback(mNetworkCallback); in unregisterNetworkCallback()
145 mNetworkCallback = null; in unregisterNetworkCallback()
185 mNetworkCallback = new ConnectivityManager.NetworkCallback() { in requestHighBandwidthNetwork()
231 mConnectivityManager.requestNetwork(request, mNetworkCallback); in requestHighBandwidthNetwork()