/cts/apps/CtsVerifier/src/com/android/cts/verifier/wifi/ |
CallbackUtils.java | 36 * Utility NetworkCallback- provides mechanism to block execution with the 39 public static class NetworkCallback extends ConnectivityManager.NetworkCallback { 47 public NetworkCallback() { 51 public NetworkCallback(int callbackTimeoutInMs) {
|
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/ |
ConnectivityManagerFacade.java | 190 class NetworkCallback extends ConnectivityManager.NetworkCallback { 216 public NetworkCallback(int events) { 233 Log.d("NetworkCallback onPreCheck"); 245 Log.d("NetworkCallback onAvailable"); 257 Log.d("NetworkCallback onLosing"); 270 Log.d("NetworkCallback onLost"); 282 Log.d("NetworkCallback onUnavailable"); 295 Log.d("NetworkCallback onCapabilitiesChanged. RSSI:" + 309 Log.d("NetworkCallback onNetworkSuspended") [all...] |
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
ShadowConnectivityManager.java | 39 private HashSet<ConnectivityManager.NetworkCallback> networkCallbacks = new HashSet<>(); 71 public Set<ConnectivityManager.NetworkCallback> getNetworkCallbacks() { 85 NetworkRequest request, ConnectivityManager.NetworkCallback networkCallback) { 86 registerNetworkCallback(request, networkCallback, null); 92 ConnectivityManager.NetworkCallback networkCallback, 94 networkCallbacks.add(networkCallback); 99 NetworkRequest request, ConnectivityManager.NetworkCallback networkCallback) { [all...] |
/cts/hostsidetests/net/app2/src/com/android/cts/net/hostside/app2/ |
MyService.java | 50 private ConnectivityManager.NetworkCallback mNetworkCallback; 100 mNetworkCallback = new ConnectivityManager.NetworkCallback() {
|
/development/samples/LceDemo/src/com/example/android/lce/ |
LceDemoActivity.java | 64 new ConnectivityManager.NetworkCallback() {
|
/cts/tests/tests/net/src/android/net/cts/ |
DnsTest.java | 22 import android.net.ConnectivityManager.NetworkCallback; 287 final NetworkCallback callback = new NetworkCallback() {
|
ConnectivityManagerTest.java | 49 import android.net.ConnectivityManager.NetworkCallback; 428 * <p>In order to test that a NetworkCallback occurs, we need some change in the network 456 assertNotNull("Did not receive NetworkCallback.onAvailable for TRANSPORT_WIFI", 459 assertNotNull("Did not receive NetworkCallback.onAvailable for any default network", 462 fail("Broadcast receiver or NetworkCallback wait was interrupted."); 472 * of a {@code NetworkCallback}. 507 fail("Broadcast receiver or NetworkCallback wait was interrupted."); 516 * Exercises the requestNetwork with NetworkCallback API. This checks to 529 assertNotNull("Did not receive NetworkCallback#onAvailable for INTERNET", 532 fail("NetworkCallback wait was interrupted.") [all...] |
/external/grpc-grpc-java/android/src/test/java/io/grpc/android/ |
AndroidChannelBuilderTest.java | 312 private HashSet<ConnectivityManager.NetworkCallback> defaultNetworkCallbacks = new HashSet<>(); 335 for (ConnectivityManager.NetworkCallback networkCallback : defaultNetworkCallbacks) { 336 networkCallback.onAvailable(network); 341 for (ConnectivityManager.NetworkCallback networkCallback : defaultNetworkCallbacks) { 342 networkCallback.onLost(network); 348 ConnectivityManager.NetworkCallback networkCallback) { 349 defaultNetworkCallbacks.add(networkCallback); [all...] |
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
ShadowConnectivityManagerTest.java | 309 private static ConnectivityManager.NetworkCallback createSimpleCallback() { 310 return new ConnectivityManager.NetworkCallback() { 322 ConnectivityManager.NetworkCallback callback = createSimpleCallback(); 330 ConnectivityManager.NetworkCallback callback = createSimpleCallback(); 339 ConnectivityManager.NetworkCallback callback1 = createSimpleCallback(); 340 ConnectivityManager.NetworkCallback callback2 = createSimpleCallback(); 354 connectivityManager.unregisterNetworkCallback((ConnectivityManager.NetworkCallback) null);
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/net/ |
ConnectivityBackgroundTestActivity.java | 29 import android.net.ConnectivityManager.NetworkCallback; 97 private NetworkCallback mNetworkCallback; 354 private NetworkCallback createNetworkCallback() { 355 return new NetworkCallback() {
|
MultiNetworkConnectivityTestActivity.java | 38 import android.net.ConnectivityManager.NetworkCallback; 488 final NetworkCallback mWifiNetworkCallback = new NetworkCallback() { 503 final NetworkCallback mCellularNetworkCallback = new NetworkCallback() { [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/wifi/testcase/ |
NetworkRequestTestCase.java | 74 private CallbackUtils.NetworkCallback mNetworkCallback; 145 mNetworkCallback = new CallbackUtils.NetworkCallback(CALLBACK_TIMEOUT_MS);
|
NetworkSuggestionTestCase.java | 65 private CallbackUtils.NetworkCallback mNetworkCallback; 135 mNetworkCallback = new CallbackUtils.NetworkCallback(CALLBACK_TIMEOUT_MS);
|
/cts/apps/VpnApp/src/com/android/cts/vpnfirewall/ |
ReflectorVpnService.java | 55 private ConnectivityManager.NetworkCallback mNetworkCallback = null; 122 mNetworkCallback = new ConnectivityManager.NetworkCallback() {
|
/developers/build/prebuilts/gradle/WearHighBandwidthNetworking/Wearable/src/main/java/com/example/android/wearable/wear/wearhighbandwidthnetworking/ |
MainActivity.java | 60 private ConnectivityManager.NetworkCallback mNetworkCallback; 185 mNetworkCallback = new ConnectivityManager.NetworkCallback() {
|
/developers/samples/android/wearable/wear/WearHighBandwidthNetworking/Wearable/src/main/java/com/example/android/wearable/wear/wearhighbandwidthnetworking/ |
MainActivity.java | 61 private ConnectivityManager.NetworkCallback mNetworkCallback; 170 mNetworkCallback = new ConnectivityManager.NetworkCallback() {
|
/development/samples/browseable/WearHighBandwidthNetworking/src/com.example.android.wearable.wear.wearhighbandwidthnetworking/ |
MainActivity.java | 60 private ConnectivityManager.NetworkCallback mNetworkCallback; 185 mNetworkCallback = new ConnectivityManager.NetworkCallback() {
|
/cts/tests/tests/net/src/android/net/wifi/cts/ |
ConcurrencyTest.java | 27 import android.net.ConnectivityManager.NetworkCallback; 242 NetworkCallback networkCallback = new NetworkCallback() { 248 cm.registerNetworkCallback(request, networkCallback); 251 cm.unregisterNetworkCallback(networkCallback);
|
/cts/tests/tests/net/util/java/android/net/cts/util/ |
CtsNetUtils.java | 32 import android.net.ConnectivityManager.NetworkCallback; 180 fail("NetworkCallback wait was interrupted."); 312 public static class TestNetworkCallback extends ConnectivityManager.NetworkCallback {
|
/cts/tests/tests/app.usage/src/android/app/usage/cts/ |
NetworkUsageStatsTest.java | 269 private class NetworkCallback extends ConnectivityManager.NetworkCallback { 276 NetworkCallback(long tolerance, URL url) { 311 NetworkCallback callback = new NetworkCallback(tolerance, new URL(CHECK_CONNECTIVITY_URL)); [all...] |
/cts/tests/tests/telephony/current/src/android/telephony/cts/ |
SubscriptionManagerTest.java | 36 import android.net.ConnectivityManager.NetworkCallback; 81 private static class TestNetworkCallback extends ConnectivityManager.NetworkCallback { 113 fail("NetworkCallback wait was interrupted."); 644 new NetworkCallback() {
|
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/wifi/ |
WifiManagerFacade.java | 28 import android.net.ConnectivityManager.NetworkCallback; 129 private final Map<NetworkSpecifier, NetworkCallback> mNetworkCallbacks = new HashMap<>(); 202 private final class NetworkCallbackImpl extends NetworkCallback { 203 private static final String EVENT_TAG = mEventType + "NetworkCallback"; [all...] |
/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/ |
VpnTest.java | 27 import android.net.ConnectivityManager.NetworkCallback; 111 NetworkCallback mCallback; 214 mCallback = new NetworkCallback() { 262 mCallback = new NetworkCallback() { [all...] |
/development/apps/Development/src/com/android/development/ |
Connectivity.java | 30 import android.net.ConnectivityManager.NetworkCallback; 281 private static class DevToolsNetworkCallback extends NetworkCallback { 313 private NetworkCallback mCallback; 349 mCallback = new NetworkCallback() {
|
/external/grpc-grpc-java/android/src/main/java/io/grpc/android/ |
AndroidChannelBuilder.java | 318 private class DefaultNetworkCallback extends ConnectivityManager.NetworkCallback {
|