HomeSort by relevance Sort by last modified time
    Searched refs:ConnectivityManager (Results 26 - 50 of 134) sorted by null

12 3 4 5 6

  /packages/apps/Settings/src/com/android/settings/
TetherSettings.java 35 import android.net.ConnectivityManager;
129 ConnectivityManager cm =
130 (ConnectivityManager)getSystemService(Context.CONNECTIVITY_SERVICE);
215 if (action.equals(ConnectivityManager.ACTION_TETHER_STATE_CHANGED)) {
218 ConnectivityManager.EXTRA_AVAILABLE_TETHER);
220 ConnectivityManager.EXTRA_ACTIVE_TETHER);
222 ConnectivityManager.EXTRA_ERRORED_TETHER);
269 IntentFilter filter = new IntentFilter(ConnectivityManager.ACTION_TETHER_STATE_CHANGED);
307 ConnectivityManager cm =
308 (ConnectivityManager)getSystemService(Context.CONNECTIVITY_SERVICE)
    [all...]
Utils.java 38 import android.net.ConnectivityManager;
325 ConnectivityManager cm = (ConnectivityManager)context.getSystemService(
327 return (cm.isNetworkSupported(ConnectivityManager.TYPE_MOBILE) == false);
336 ConnectivityManager cm = (ConnectivityManager)
338 LinkProperties prop = cm.getLinkProperties(ConnectivityManager.TYPE_WIFI);
349 ConnectivityManager cm = (ConnectivityManager)
460 public static int getTetheringLabel(ConnectivityManager cm)
    [all...]
ProxySelector.java 29 import android.net.ConnectivityManager;
167 ConnectivityManager cm =
168 (ConnectivityManager)getActivity().getSystemService(Context.CONNECTIVITY_SERVICE);
268 ConnectivityManager cm =
269 (ConnectivityManager)getActivity().getSystemService(Context.CONNECTIVITY_SERVICE);
WirelessSettings.java 28 import android.net.ConnectivityManager;
70 private ConnectivityManager mCm;
191 mCm = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);
270 ConnectivityManager cm =
271 (ConnectivityManager) activity.getSystemService(Context.CONNECTIVITY_SERVICE);
  /external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowConnectivityManager.java 3 import android.net.ConnectivityManager;
12 * Shadow of {@code ConnectivityManager} that provides for the simulation of
16 @Implements(ConnectivityManager.class)
ShadowNetworkInfo.java 3 import android.net.ConnectivityManager;
28 return newInstance(detailedState, ConnectivityManager.TYPE_MOBILE, 0, true, true);
  /frameworks/base/cmds/svc/src/com/android/commands/svc/
DataCommand.java 22 import android.net.ConnectivityManager;
58 connMgr.setNetworkPreference(ConnectivityManager.TYPE_MOBILE);
WifiCommand.java 23 import android.net.ConnectivityManager;
58 connMgr.setNetworkPreference(ConnectivityManager.TYPE_WIFI);
  /packages/apps/Settings/src/com/android/settings/wifi/
WifiApEnabler.java 30 import android.net.ConnectivityManager;
50 ConnectivityManager mCm;
60 } else if (ConnectivityManager.ACTION_TETHER_STATE_CHANGED.equals(action)) {
62 ConnectivityManager.EXTRA_AVAILABLE_TETHER);
64 ConnectivityManager.EXTRA_ACTIVE_TETHER);
66 ConnectivityManager.EXTRA_ERRORED_TETHER);
82 mCm = (ConnectivityManager)mContext.getSystemService(Context.CONNECTIVITY_SERVICE);
87 mIntentFilter.addAction(ConnectivityManager.ACTION_TETHER_STATE_CHANGED);
  /packages/apps/Mms/src/com/android/mms/transaction/
Transaction.java 25 import android.net.ConnectivityManager;
211 ConnectivityManager connMgr =
212 (ConnectivityManager) mContext.getSystemService(Context.CONNECTIVITY_SERVICE);
223 if (!connMgr.requestRouteToHostAddress(ConnectivityManager.TYPE_MOBILE_MMS, inetAddr)) {
233 if (!connMgr.requestRouteToHostAddress(ConnectivityManager.TYPE_MOBILE_MMS, inetAddr)) {
  /frameworks/base/core/java/android/net/
CaptivePortalTracker.java 29 import android.net.ConnectivityManager;
98 filter.addAction(ConnectivityManager.CONNECTIVITY_ACTION);
99 filter.addAction(ConnectivityManager.CONNECTIVITY_ACTION_IMMEDIATE);
138 if ((mDeviceProvisioned && action.equals(ConnectivityManager.CONNECTIVITY_ACTION))
140 && action.equals(ConnectivityManager.CONNECTIVITY_ACTION_IMMEDIATE))) {
142 ConnectivityManager.EXTRA_NETWORK_INFO);
200 if (info.getType() == ConnectivityManager.TYPE_WIFI) {
287 ConnectivityManager.ACTION_CAPTIVE_PORTAL_TEST_COMPLETED);
288 intent.putExtra(ConnectivityManager.EXTRA_IS_CAPTIVE_PORTAL, captive);
343 mConnService.setProvisioningNotificationVisible(false, ConnectivityManager.TYPE_NONE
    [all...]
NetworkIdentity.java 19 import static android.net.ConnectivityManager.TYPE_WIFI;
20 import static android.net.ConnectivityManager.getNetworkTypeName;
21 import static android.net.ConnectivityManager.isNetworkTypeMobile;
84 } else if (ConnectivityManager.isNetworkTypeMobile(mType)) {
NetworkTemplate.java 19 import static android.net.ConnectivityManager.TYPE_ETHERNET;
20 import static android.net.ConnectivityManager.TYPE_WIFI;
21 import static android.net.ConnectivityManager.TYPE_WIFI_P2P;
22 import static android.net.ConnectivityManager.TYPE_WIMAX;
74 * Template to match {@link ConnectivityManager#TYPE_MOBILE} networks with
82 * Template to match {@link ConnectivityManager#TYPE_MOBILE} networks with
91 * Template to match {@link ConnectivityManager#TYPE_MOBILE} networks with
100 * Template to match {@link ConnectivityManager#TYPE_MOBILE} networks,
108 * Template to match all {@link ConnectivityManager#TYPE_WIFI} networks,
121 * Template to match {@link ConnectivityManager#TYPE_WIFI} networks with th
    [all...]
  /frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/
ConnectivityManagerTestActivity.java 24 import android.net.ConnectivityManager;
87 public ConnectivityManager mCM;
105 public static final int NUM_NETWORK_TYPES = ConnectivityManager.MAX_NETWORK_TYPE + 1;
121 if (!action.equals(ConnectivityManager.CONNECTIVITY_ACTION)) {
127 intent.getBooleanExtra(ConnectivityManager.EXTRA_NO_CONNECTIVITY, false);
136 intent.getParcelableExtra(ConnectivityManager.EXTRA_NETWORK_INFO);
139 intent.getParcelableExtra(ConnectivityManager.EXTRA_OTHER_NETWORK_INFO);
141 mReason = intent.getStringExtra(ConnectivityManager.EXTRA_REASON);
142 mIsFailOver = intent.getBooleanExtra(ConnectivityManager.EXTRA_IS_FAILOVER, false);
178 } else if (action.equals(ConnectivityManager.ACTION_TETHER_STATE_CHANGED))
    [all...]
  /frameworks/base/services/java/com/android/server/
NetworkTimeUpdateService.java 27 import android.net.ConnectivityManager;
146 intentFilter.addAction(ConnectivityManager.CONNECTIVITY_ACTION);
245 /** Receiver for ConnectivityManager events */
251 if (ConnectivityManager.CONNECTIVITY_ACTION.equals(action)) {
253 final ConnectivityManager connManager = (ConnectivityManager) context
259 (netInfo.getType() == ConnectivityManager.TYPE_WIFI ||
260 netInfo.getType() == ConnectivityManager.TYPE_ETHERNET) ) {
ConnectivityService.java 21 import static android.net.ConnectivityManager.CONNECTIVITY_ACTION;
22 import static android.net.ConnectivityManager.CONNECTIVITY_ACTION_IMMEDIATE;
23 import static android.net.ConnectivityManager.TYPE_BLUETOOTH;
24 import static android.net.ConnectivityManager.TYPE_DUMMY;
25 import static android.net.ConnectivityManager.TYPE_ETHERNET;
26 import static android.net.ConnectivityManager.TYPE_MOBILE;
27 import static android.net.ConnectivityManager.TYPE_WIFI;
28 import static android.net.ConnectivityManager.TYPE_WIMAX;
29 import static android.net.ConnectivityManager.getNetworkTypeName;
30 import static android.net.ConnectivityManager.isNetworkTypeValid
    [all...]
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/research/
Uploader.java 24 import android.net.ConnectivityManager;
101 final ConnectivityManager manager =
102 (ConnectivityManager) mContext.getSystemService(Context.CONNECTIVITY_SERVICE);
103 final NetworkInfo wifiInfo = manager.getNetworkInfo(ConnectivityManager.TYPE_WIFI);
  /frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/stress/
WifiStressTest.java 20 import android.net.ConnectivityManager;
250 assertTrue(mAct.waitForNetworkState(ConnectivityManager.TYPE_WIFI, State.CONNECTED,
272 mAct.waitForNetworkState(ConnectivityManager.TYPE_WIFI, State.DISCONNECTED,
277 mAct.waitForNetworkState(ConnectivityManager.TYPE_MOBILE, State.CONNECTED,
283 mAct.mCM.getNetworkInfo(ConnectivityManager.TYPE_WIFI).getState());
287 mAct.mCM.getNetworkInfo(ConnectivityManager.TYPE_MOBILE).getState());
304 mAct.waitForNetworkState(ConnectivityManager.TYPE_WIFI, State.CONNECTED,
  /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...]
  /packages/apps/Settings/src/com/android/settings/net/
UidDetailProvider.java 27 import android.net.ConnectivityManager;
110 final ConnectivityManager cm = (ConnectivityManager) mContext.getSystemService(
  /packages/apps/Browser/src/com/android/browser/
BrowserSettings.java 25 import android.net.ConnectivityManager;
593 ConnectivityManager cm = (ConnectivityManager)
601 case ConnectivityManager.TYPE_WIFI:
602 case ConnectivityManager.TYPE_ETHERNET:
603 case ConnectivityManager.TYPE_BLUETOOTH:
607 case ConnectivityManager.TYPE_MOBILE:
608 case ConnectivityManager.TYPE_MOBILE_DUN:
609 case ConnectivityManager.TYPE_MOBILE_MMS:
610 case ConnectivityManager.TYPE_MOBILE_SUPL
    [all...]
  /frameworks/base/services/tests/servicestests/src/com/android/server/
ConnectivityServiceTest.java 19 import static android.net.ConnectivityManager.CONNECTIVITY_ACTION_IMMEDIATE;
20 import static android.net.ConnectivityManager.TYPE_MOBILE;
21 import static android.net.ConnectivityManager.TYPE_WIFI;
22 import static android.net.ConnectivityManager.getNetworkTypeName;
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
SubtypeSwitcher.java 25 import android.net.ConnectivityManager;
48 private /* final */ ConnectivityManager mConnectivityManager;
97 mConnectivityManager = (ConnectivityManager) context.getSystemService(
226 ConnectivityManager.EXTRA_NO_CONNECTIVITY, false);
  /packages/providers/DownloadProvider/src/com/android/providers/downloads/
DownloadReceiver.java 30 import android.net.ConnectivityManager;
78 } else if (action.equals(ConnectivityManager.CONNECTIVITY_ACTION)) {
79 final ConnectivityManager connManager = (ConnectivityManager) context
  /frameworks/base/core/tests/hosttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/downloadmanagertests/
DownloadManagerBaseTest.java 26 import android.net.ConnectivityManager;
152 if (intent.getAction().equalsIgnoreCase(ConnectivityManager.CONNECTIVITY_ACTION)) {
153 Log.i(LOG_TAG, "ConnectivityManager state change: " + intent.getAction());
166 ConnectivityManager connManager = (ConnectivityManager)mContext.getSystemService(
168 NetworkInfo info = connManager.getNetworkInfo(ConnectivityManager.TYPE_WIFI);
228 ConnectivityManager.CONNECTIVITY_ACTION));

Completed in 1689 milliseconds

12 3 4 5 6