/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
ConnectivityManagerTest.java | 4 import android.net.ConnectivityManager; 21 private ConnectivityManager connectivityManager; 27 connectivityManager = (ConnectivityManager) Robolectric.application.getSystemService(Context.CONNECTIVITY_SERVICE); 28 shadowConnectivityManager = shadowOf(connectivityManager); 29 shadowOfActiveNetworkInfo = shadowOf(connectivityManager.getActiveNetworkInfo()); 34 assertNotNull(connectivityManager); 35 assertNotNull(connectivityManager.getActiveNetworkInfo()); 42 assertTrue(connectivityManager.getActiveNetworkInfo().isConnectedOrConnecting()) [all...] |
/packages/apps/TV/src/com/android/tv/util/ |
NetworkUtils.java | 19 import android.net.ConnectivityManager; 38 public static boolean isNetworkAvailable(@Nullable ConnectivityManager connectivityManager) { 39 if (connectivityManager == null) { 42 NetworkInfo info = connectivityManager.getActiveNetworkInfo();
|
/external/webrtc/talk/app/webrtc/java/android/org/webrtc/ |
NetworkMonitorAutoDetect.java | 39 import android.net.ConnectivityManager; 71 // Defined from ConnectivityManager.TYPE_XXX for non-mobile; for mobile, it is 97 /** Queries the ConnectivityManager for information about the current connection. */ 100 * Note: In some rare Android systems connectivityManager is null. We handle that 103 private final ConnectivityManager connectivityManager; 106 connectivityManager = 107 (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE); 113 connectivityManager = null; 121 if (connectivityManager == null) [all...] |
/packages/services/Mms/src/com/android/mms/service/ |
MmsNetworkManager.java | 20 import android.net.ConnectivityManager; 33 // Timeout used to call ConnectivityManager.requestNetwork 53 private ConnectivityManager.NetworkCallback mNetworkCallback; 55 private volatile ConnectivityManager mConnectivityManager; 66 private class NetworkRequestCallback extends ConnectivityManager.NetworkCallback { 175 final ConnectivityManager connectivityManager = getConnectivityManager(); 177 connectivityManager.requestNetwork( 184 * @param callback the {@link android.net.ConnectivityManager.NetworkCallback} to unregister 186 private void releaseRequestLocked(ConnectivityManager.NetworkCallback callback) [all...] |
MmsHttpClient.java | 20 import android.net.ConnectivityManager; 82 private final ConnectivityManager mConnectivityManager; 88 * @param connectivityManager 91 ConnectivityManager connectivityManager) { 94 mConnectivityManager = connectivityManager;
|
/external/glide/library/src/main/java/com/bumptech/glide/manager/ |
DefaultConnectivityMonitor.java | 7 import android.net.ConnectivityManager; 39 context.registerReceiver(connectivityReceiver, new IntentFilter(ConnectivityManager.CONNECTIVITY_ACTION)); 53 ConnectivityManager connectivityManager = 54 (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE); 55 NetworkInfo networkInfo = connectivityManager.getActiveNetworkInfo();
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/vpn/ |
VpnTestHelper.java | 24 import android.net.ConnectivityManager; 73 ConnectivityManager connectivityManager = 74 context.getSystemService(ConnectivityManager.class); 82 final ConnectivityManager.NetworkCallback callback 83 = new ConnectivityManager.NetworkCallback() { 89 connectivityManager.registerNetworkCallback(request, callback); 101 connectivityManager.unregisterNetworkCallback(callback); 105 NetworkInfo vpnInfo = connectivityManager.getNetworkInfo(ConnectivityManager.TYPE_VPN) [all...] |
/packages/apps/Settings/src/com/android/settings/ |
SettingsDumpService.java | 19 import android.net.ConnectivityManager; 77 ConnectivityManager connectivityManager = getSystemService(ConnectivityManager.class); 80 if (connectivityManager.isNetworkSupported(ConnectivityManager.TYPE_MOBILE)) { 91 if (connectivityManager.isNetworkSupported(ConnectivityManager.TYPE_WIFI)) { 94 if (connectivityManager.isNetworkSupported(ConnectivityManager.TYPE_ETHERNET)) [all...] |
ResetNetworkConfirm.java | 22 import android.net.ConnectivityManager; 72 ConnectivityManager connectivityManager = (ConnectivityManager) 74 if (connectivityManager != null) { 75 connectivityManager.factoryReset();
|
/packages/apps/Email/provider_src/com/android/email/provider/ |
RefreshStatusMonitor.java | 9 import android.net.ConnectivityManager; 86 final ConnectivityManager connectivityManager = 87 ((ConnectivityManager) mContext.getSystemService(Context.CONNECTIVITY_SERVICE)); 88 final NetworkInfo networkInfo = connectivityManager.getActiveNetworkInfo();
|
/frameworks/opt/photoviewer/src/com/android/ex/photo/fragments/ |
PhotoViewFragment.java | 26 import android.net.ConnectivityManager; 260 new IntentFilter(ConnectivityManager.CONNECTIVITY_ACTION)); 261 ConnectivityManager connectivityManager = (ConnectivityManager) 263 NetworkInfo activeNetInfo = connectivityManager.getActiveNetworkInfo(); 587 ConnectivityManager connectivityManager = (ConnectivityManager) 589 NetworkInfo activeNetInfo = connectivityManager.getActiveNetworkInfo() [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
AttachmentUtils.java | 20 import android.net.ConnectivityManager; 273 ConnectivityManager connectivityManager = (ConnectivityManager) context.getSystemService( 275 NetworkInfo info = connectivityManager.getActiveNetworkInfo(); 279 if (info.getType() != ConnectivityManager.TYPE_MOBILE) {
|
Utils.java | 31 import android.net.ConnectivityManager; [all...] |
/packages/apps/Messaging/src/android/support/v7/mms/ |
MmsRequest.java | 23 import android.net.ConnectivityManager; 285 * @param connectivityManager the ConnectivityManager to use 290 private static void requestRoute(final ConnectivityManager connectivityManager, 301 final boolean requested = requestRouteToHostAddress(connectivityManager, addr); 319 Integer.valueOf(ConnectivityManager.TYPE_MOBILE_MMS); 323 * We first try the hidden but correct method on ConnectivityManager. If we can't, use 326 * @param connMgr the ConnectivityManager instance 330 private static boolean requestRouteToHostAddress(final ConnectivityManager connMgr [all...] |
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/ |
WifiTracker.java | 22 import android.net.ConnectivityManager; 69 private final ConnectivityManager mConnectivityManager; 115 context.getSystemService(ConnectivityManager.class), Looper.myLooper()); 121 WifiManager wifiManager, ConnectivityManager connectivityManager, 139 mConnectivityManager = connectivityManager; 544 private final class WifiTrackerNetworkCallback extends ConnectivityManager.NetworkCallback { 548 // fetch one from ConnectivityManager, it might be older than the most recent
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/setup/ |
WifiSetupActivity.java | 26 import android.net.ConnectivityManager; 515 ConnectivityManager connectivityManager = (ConnectivityManager) getSystemService( 517 NetworkInfo currentConnection = connectivityManager.getActiveNetworkInfo(); 520 if (currentConnection.getType() == ConnectivityManager.TYPE_WIFI) {
|
/packages/services/Telephony/src/com/android/phone/vvm/omtp/imap/ |
ImapHelper.java | 19 import android.net.ConnectivityManager; 147 ConnectivityManager connectivityManager = (ConnectivityManager) mContext.getSystemService( 149 NetworkInfo info = connectivityManager.getNetworkInfo(mNetwork);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
NetworkControllerImpl.java | 24 import android.net.ConnectivityManager; 78 private final ConnectivityManager mConnectivityManager; 139 this(context, (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE), 151 NetworkControllerImpl(Context context, ConnectivityManager connectivityManager, 166 mConnectivityManager = connectivityManager; 168 mConnectivityManager.isNetworkSupported(ConnectivityManager.TYPE_MOBILE); 219 filter.addAction(ConnectivityManager.CONNECTIVITY_ACTION); 220 filter.addAction(ConnectivityManager.INET_CONDITION_ACTION); 374 if (action.equals(ConnectivityManager.CONNECTIVITY_ACTION) | [all...] |
/frameworks/support/samples/SupportLeanbackShowcase/libs/ |
picasso-2.5.2.jar | |
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
DevicePolicyManagerService.java | 79 import android.net.ConnectivityManager; [all...] |