HomeSort by relevance Sort by last modified time
    Searched refs:ConnectivityManager (Results 76 - 100 of 235) sorted by null

1 2 34 5 6 7 8 910

  /packages/apps/Settings/src/com/android/settings/
TetherSettings.java 31 import android.net.ConnectivityManager;
53 import static android.net.ConnectivityManager.TETHERING_BLUETOOTH;
54 import static android.net.ConnectivityManager.TETHERING_USB;
55 import static android.net.ConnectivityManager.TETHERING_WIFI;
102 private ConnectivityManager mCm;
162 mCm = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);
259 if (action.equals(ConnectivityManager.ACTION_TETHER_STATE_CHANGED)) {
262 ConnectivityManager.EXTRA_AVAILABLE_TETHER);
264 ConnectivityManager.EXTRA_ACTIVE_TETHER);
266 ConnectivityManager.EXTRA_ERRORED_TETHER)
    [all...]
CreateShortcut.java 28 import android.net.ConnectivityManager;
95 final ConnectivityManager cm =
96 (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);
ResetNetworkConfirm.java 22 import android.net.ConnectivityManager;
72 ConnectivityManager connectivityManager = (ConnectivityManager)
74 if (connectivityManager != null) {
75 connectivityManager.factoryReset();
  /frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
ApnContext.java 21 import android.net.ConnectivityManager;
513 case ConnectivityManager.TYPE_MOBILE:
515 case ConnectivityManager.TYPE_MOBILE_MMS:
517 case ConnectivityManager.TYPE_MOBILE_SUPL:
519 case ConnectivityManager.TYPE_MOBILE_DUN:
521 case ConnectivityManager.TYPE_MOBILE_FOTA:
523 case ConnectivityManager.TYPE_MOBILE_IMS:
525 case ConnectivityManager.TYPE_MOBILE_CBS:
527 case ConnectivityManager.TYPE_MOBILE_IA:
529 case ConnectivityManager.TYPE_MOBILE_EMERGENCY
    [all...]
  /cts/hostsidetests/net/app2/src/com/android/cts/net/hostside/app2/
MyBroadcastReceiver.java 19 import static android.net.ConnectivityManager.ACTION_RESTRICT_BACKGROUND_CHANGED;
41 import android.net.ConnectivityManager;
119 final ConnectivityManager cm = (ConnectivityManager) context
127 final ConnectivityManager cm = (ConnectivityManager) context
171 private String checkNetworkStatus(final Context context, final ConnectivityManager cm)
MyService.java 18 import static android.net.ConnectivityManager.ACTION_RESTRICT_BACKGROUND_CHANGED;
  /frameworks/base/core/java/android/net/
NetworkTemplate.java 19 import static android.net.ConnectivityManager.TYPE_BLUETOOTH;
20 import static android.net.ConnectivityManager.TYPE_ETHERNET;
21 import static android.net.ConnectivityManager.TYPE_PROXY;
22 import static android.net.ConnectivityManager.TYPE_MOBILE;
23 import static android.net.ConnectivityManager.TYPE_WIFI;
24 import static android.net.ConnectivityManager.TYPE_WIFI_P2P;
25 import static android.net.ConnectivityManager.TYPE_WIMAX;
80 * Template to match {@link ConnectivityManager#TYPE_MOBILE} networks with
88 * Template to match {@link ConnectivityManager#TYPE_MOBILE} networks with
97 * Template to match {@link ConnectivityManager#TYPE_MOBILE} networks wit
    [all...]
NetworkRequest.java 24 * to request a network via {@link ConnectivityManager#requestNetwork} or listen for changes
25 * via {@link ConnectivityManager#registerNetworkCallback}.
92 return new NetworkRequest(nc, ConnectivityManager.TYPE_NONE,
93 ConnectivityManager.REQUEST_ID_UNSET);
  /frameworks/base/packages/CaptivePortalLogin/src/com/android/captiveportallogin/
CaptivePortalLoginActivity.java 25 import android.net.ConnectivityManager;
26 import android.net.ConnectivityManager.NetworkCallback;
67 private ConnectivityManager mCm;
74 mCm = ConnectivityManager.from(this);
75 String url = getIntent().getStringExtra(ConnectivityManager.EXTRA_CAPTIVE_PORTAL_URL);
84 mNetwork = getIntent().getParcelableExtra(ConnectivityManager.EXTRA_NETWORK);
85 mCaptivePortal = getIntent().getParcelableExtra(ConnectivityManager.EXTRA_CAPTIVE_PORTAL);
  /packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
ConnectivityListener.java 23 import android.net.ConnectivityManager;
63 private final ConnectivityManager mConnectivityManager;
108 mConnectivityManager = (ConnectivityManager) mContext.getSystemService(
180 return mConnectivityManager.isNetworkSupported(ConnectivityManager.TYPE_ETHERNET)
188 if (networkInfo != null && networkInfo.getType() == ConnectivityManager.TYPE_ETHERNET) {
308 case ConnectivityManager.TYPE_WIFI: {
347 case ConnectivityManager.TYPE_ETHERNET:
  /frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/stress/
WifiStressTest.java 21 import android.net.ConnectivityManager;
216 assertTrue("wifi not connected", waitForNetworkState(ConnectivityManager.TYPE_WIFI,
243 // below check temporarily disabled due to bug in ConnectivityManager return
245 // waitForNetworkState(ConnectivityManager.TYPE_WIFI, State.DISCONNECTED,
253 waitForNetworkState(ConnectivityManager.TYPE_MOBILE, State.CONNECTED,
266 mCm.getNetworkInfo(ConnectivityManager.TYPE_MOBILE).getState());
277 waitForNetworkState(ConnectivityManager.TYPE_WIFI, State.CONNECTED,
  /frameworks/base/services/core/java/com/android/server/connectivity/
Nat464Xlat.java 23 import android.net.ConnectivityManager;
50 ConnectivityManager.TYPE_MOBILE,
51 ConnectivityManager.TYPE_WIFI,
52 ConnectivityManager.TYPE_ETHERNET,
230 if (mNetwork.networkInfo.getType() != ConnectivityManager.TYPE_WIFI) {
KeepalivePacketData.java 20 import android.net.ConnectivityManager;
30 import static android.net.ConnectivityManager.PacketKeepalive.*;
34 * {@link android.net.ConnectivityManager.PacketKeepalive} API.
  /frameworks/base/services/core/java/com/android/server/job/controllers/
ConnectivityController.java 24 import android.net.ConnectivityManager;
46 ConnectivityManager.OnNetworkActiveListener {
49 private final ConnectivityManager mConnManager;
72 mConnManager = mContext.getSystemService(ConnectivityManager.class);
75 final IntentFilter intentFilter = new IntentFilter(ConnectivityManager.CONNECTIVITY_ACTION);
  /packages/apps/Messaging/src/com/android/messaging/util/
ConnectivityUtil.java 23 import android.net.ConnectivityManager;
36 private final ConnectivityManager mConnMgr;
49 mConnMgr = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);
52 mIntentFilter.addAction(ConnectivityManager.CONNECTIVITY_ACTION);
127 if (!intent.getAction().equals(ConnectivityManager.CONNECTIVITY_ACTION)) {
  /cts/tests/tests/media/src/android/media/cts/
WifiStatus.java 20 import android.net.ConnectivityManager;
41 private ConnectivityManager mConnectivityManager;
46 (ConnectivityManager)context.getSystemService(Context.CONNECTIVITY_SERVICE);
  /external/sl4a/Common/src/com/googlecode/android_scripting/facade/
ConnectivityManagerFacade.java 24 import android.net.ConnectivityManager;
25 import android.net.ConnectivityManager.NetworkCallback;
26 import android.net.ConnectivityManager.PacketKeepaliveCallback;
27 import android.net.ConnectivityManager.PacketKeepalive;
53 * Access ConnectivityManager functions.
66 if (!action.equals(ConnectivityManager.CONNECTIVITY_ACTION)) {
79 b.getInt(ConnectivityManager.EXTRA_NETWORK_TYPE,
80 ConnectivityManager.TYPE_NONE);
82 if (netType == ConnectivityManager.TYPE_NONE) {
89 * bundle is deprecated. See ConnectivityManager.EXTRA_NETWORK_INF
    [all...]
  /frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/util/
ConnectionUtil.java 30 import android.net.ConnectivityManager;
70 private ConnectivityManager mCM;
79 private static final int NUM_NETWORK_TYPES = ConnectivityManager.MAX_NETWORK_TYPE + 1;
95 new IntentFilter(ConnectivityManager.CONNECTIVITY_ACTION));
112 // Get an instance of ConnectivityManager
113 mCM = (ConnectivityManager)mContext.getSystemService(Context.CONNECTIVITY_SERVICE);
152 if (!action.equals(ConnectivityManager.CONNECTIVITY_ACTION)) {
157 final ConnectivityManager connManager = (ConnectivityManager) context
161 if (intent.hasExtra(ConnectivityManager.EXTRA_OTHER_NETWORK_INFO))
    [all...]
  /frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
AirplaneModeTile.java 23 import android.net.ConnectivityManager;
69 final ConnectivityManager mgr =
70 (ConnectivityManager) mContext.getSystemService(Context.CONNECTIVITY_SERVICE);
  /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();
  /packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
FakeSystemFacade.java 10 import android.net.ConnectivityManager;
28 Integer mActiveNetworkType = ConnectivityManager.TYPE_WIFI;
40 mActiveNetworkType = ConnectivityManager.TYPE_WIFI;
  /cts/tests/tests/telephony/src/android/telephony/cts/
TelephonyManagerTest.java 23 import android.net.ConnectivityManager;
47 private static ConnectivityManager mCm;
55 mCm = (ConnectivityManager) getContext().getSystemService(Context.CONNECTIVITY_SERVICE);
68 if (mCm.getNetworkInfo(ConnectivityManager.TYPE_MOBILE) == null) {
69 Log.d(TAG, "Skipping test that requires ConnectivityManager.TYPE_MOBILE");
241 } else if (mCm.getNetworkInfo(ConnectivityManager.TYPE_BLUETOOTH) != null) {
245 assertTrue(mCm.getNetworkInfo(ConnectivityManager.TYPE_ETHERNET) != null);
  /packages/apps/ManagedProvisioning/tests/src/com/android/managedprovisioning/common/
UtilsTest.java 36 import android.net.ConnectivityManager;
77 @Mock private ConnectivityManager mockConnectivityManager;
237 setCurrentNetworkMock(ConnectivityManager.TYPE_MOBILE, true);
243 setCurrentNetworkMock(ConnectivityManager.TYPE_WIFI, true);
249 setCurrentNetworkMock(ConnectivityManager.TYPE_WIFI, false);
257 setCurrentNetworkMock(ConnectivityManager.TYPE_MOBILE, true);
263 setCurrentNetworkMock(ConnectivityManager.TYPE_WIFI, true);
269 setCurrentNetworkMock(ConnectivityManager.TYPE_WIFI, false);
  /frameworks/base/services/core/java/com/android/server/
ConnectivityService.java 20 import static android.net.ConnectivityManager.CONNECTIVITY_ACTION;
21 import static android.net.ConnectivityManager.NETID_UNSET;
22 import static android.net.ConnectivityManager.TYPE_NONE;
23 import static android.net.ConnectivityManager.TYPE_VPN;
24 import static android.net.ConnectivityManager.getNetworkTypeName;
25 import static android.net.ConnectivityManager.isNetworkTypeValid;
53 import android.net.ConnectivityManager;
54 import android.net.ConnectivityManager.PacketKeepalive;
495 new ArrayList[ConnectivityManager.MAX_NETWORK_TYPE + 1];
691 mNetConfigs = new NetworkConfig[ConnectivityManager.MAX_NETWORK_TYPE+1]
    [all...]
  /external/webrtc/talk/app/webrtc/androidtests/src/org/webrtc/
NetworkMonitorTest.java 37 import android.net.ConnectivityManager;
76 * Mocks out calls to the ConnectivityManager.
217 Intent connectivityIntent = new Intent(ConnectivityManager.CONNECTIVITY_ACTION);
232 connectivityDelegate.setNetworkType(ConnectivityManager.TYPE_WIFI);
249 Intent noConnectivityIntent = new Intent(ConnectivityManager.CONNECTIVITY_ACTION);

Completed in 1218 milliseconds

1 2 34 5 6 7 8 910