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

1 23 4 5 6 7 8 910

  /packages/apps/Settings/src/com/android/settings/wifi/
WifiNoInternetDialog.java 22 import android.net.ConnectivityManager;
23 import android.net.ConnectivityManager.NetworkCallback;
44 private ConnectivityManager mCM;
47 private ConnectivityManager.NetworkCallback mNetworkCallback;
56 !intent.getAction().equals(ConnectivityManager.ACTION_PROMPT_UNVALIDATED) ||
97 mCM = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);
WifiApEnabler.java 23 import android.net.ConnectivityManager;
44 ConnectivityManager mCm;
61 } else if (ConnectivityManager.ACTION_TETHER_STATE_CHANGED.equals(action)) {
63 ConnectivityManager.EXTRA_AVAILABLE_TETHER);
65 ConnectivityManager.EXTRA_ACTIVE_TETHER);
67 ConnectivityManager.EXTRA_ERRORED_TETHER);
84 mCm = (ConnectivityManager) mContext.getSystemService(Context.CONNECTIVITY_SERVICE);
89 mIntentFilter.addAction(ConnectivityManager.ACTION_TETHER_STATE_CHANGED);
WifiSetupActivity.java 28 import android.net.ConnectivityManager;
81 // from ConnectivityManager instead of the one attached in the intent to make sure
93 mFilter.addAction(ConnectivityManager.CONNECTIVITY_ACTION);
115 final ConnectivityManager connectivity = (ConnectivityManager)
118 connectivity.getNetworkInfo(ConnectivityManager.TYPE_WIFI).isConnected();
234 final ConnectivityManager connectivity = (ConnectivityManager)
  /cts/tests/tests/telephony/src/android/telephony/cts/
CellInfoTest.java 20 import android.net.ConnectivityManager;
41 private static ConnectivityManager mCm;
53 mCm = (ConnectivityManager)getContext().getSystemService(Context.CONNECTIVITY_SERVICE);
64 if (mCm.getNetworkInfo(ConnectivityManager.TYPE_MOBILE) == null) {
65 Log.d(TAG, "Skipping test that requires ConnectivityManager.TYPE_MOBILE");
  /development/samples/training/network-usage/src/com/example/android/networkusage/
NetworkActivity.java 23 import android.net.ConnectivityManager;
88 IntentFilter filter = new IntentFilter(ConnectivityManager.CONNECTIVITY_ACTION);
129 ConnectivityManager connMgr =
130 (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);
134 wifiConnected = activeInfo.getType() == ConnectivityManager.TYPE_WIFI;
135 mobileConnected = activeInfo.getType() == ConnectivityManager.TYPE_MOBILE;
280 * This BroadcastReceiver intercepts the android.net.ConnectivityManager.CONNECTIVITY_ACTION,
290 ConnectivityManager connMgr =
291 (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);
299 && networkInfo.getType() == ConnectivityManager.TYPE_WIFI)
    [all...]
  /device/sample/apps/LeanbackWidget/src/com/google/android/leanbacklauncher/partnerwidget/
ClockWidgetProvider.java 8 import android.net.ConnectivityManager;
25 ConnectivityManager.CONNECTIVITY_ACTION.equals(intentAction)) {
66 ConnectivityManager cm = (ConnectivityManager) context
  /frameworks/base/samples/training/network-usage/src/com/example/android/networkusage/
NetworkActivity.java 23 import android.net.ConnectivityManager;
88 IntentFilter filter = new IntentFilter(ConnectivityManager.CONNECTIVITY_ACTION);
129 ConnectivityManager connMgr =
130 (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);
134 wifiConnected = activeInfo.getType() == ConnectivityManager.TYPE_WIFI;
135 mobileConnected = activeInfo.getType() == ConnectivityManager.TYPE_MOBILE;
280 * This BroadcastReceiver intercepts the android.net.ConnectivityManager.CONNECTIVITY_ACTION,
290 ConnectivityManager connMgr =
291 (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);
299 && networkInfo.getType() == ConnectivityManager.TYPE_WIFI)
    [all...]
  /platform_testing/tests/androidbvt/src/com/android/androidbvt/
AndroidBvtHelper.java 22 import android.net.ConnectivityManager;
75 public ConnectivityManager getConnectivityManager() {
76 return (ConnectivityManager) (ConnectivityManager) mContext
  /external/robolectric/v1/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);
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/jobscheduler/
ConnectivityConstraintTestActivity.java 9 import android.net.ConnectivityManager;
50 IntentFilter intentFilter = new IntentFilter(ConnectivityManager.CONNECTIVITY_ACTION);
77 if (ConnectivityManager.CONNECTIVITY_ACTION.equals(intent.getAction())) {
142 final ConnectivityManager cm =
143 (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);
  /frameworks/base/services/core/java/com/android/server/connectivity/
DataConnectionStats.java 23 import android.net.ConnectivityManager;
64 filter.addAction(ConnectivityManager.CONNECTIVITY_ACTION);
65 filter.addAction(ConnectivityManager.INET_CONDITION_ACTION);
75 } else if (action.equals(ConnectivityManager.CONNECTIVITY_ACTION) ||
76 action.equals(ConnectivityManager.INET_CONDITION_ACTION)) {
DnsEventListenerService.java 21 import android.net.ConnectivityManager;
22 import android.net.ConnectivityManager.NetworkCallback;
105 private final ConnectivityManager mCm;
123 mCm = context.getSystemService(ConnectivityManager.class);
  /cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
AlwaysOnVpnTest.java 20 import android.net.ConnectivityManager.NetworkCallback;
21 import android.net.ConnectivityManager;
76 private ConnectivityManager mConnectivityManager;
84 (ConnectivityManager) mContext.getSystemService(mContext.CONNECTIVITY_SERVICE);
129 final ConnectivityManager.NetworkCallback callback
130 = new ConnectivityManager.NetworkCallback() {
153 NetworkInfo vpnInfo = mConnectivityManager.getNetworkInfo(ConnectivityManager.TYPE_VPN);
  /cts/tests/netlegacy22.api/src/android/net/cts/legacy/api22/
ConnectivityManagerLegacyTest.java 24 import android.net.ConnectivityManager;
40 import static android.net.ConnectivityManager.CONNECTIVITY_ACTION;
41 import static android.net.ConnectivityManager.TYPE_MOBILE;
42 import static android.net.ConnectivityManager.TYPE_MOBILE_HIPRI;
43 import static android.net.ConnectivityManager.TYPE_VPN;
44 import static android.net.ConnectivityManager.TYPE_WIFI;
57 private ConnectivityManager mCm;
65 mCm = (ConnectivityManager) getContext().getSystemService(Context.CONNECTIVITY_SERVICE);
226 .getParcelable(ConnectivityManager.EXTRA_NETWORK_INFO);
  /frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/
ConnectivityManagerTestBase.java 24 import android.net.ConnectivityManager;
74 protected ConnectivityManager mCm;
101 if (!action.equals(ConnectivityManager.CONNECTIVITY_ACTION)) {
127 // Get an instance of ConnectivityManager
128 mCm = (ConnectivityManager)mContext.getSystemService(Context.CONNECTIVITY_SERVICE);
141 new IntentFilter(ConnectivityManager.CONNECTIVITY_ACTION));
150 mIntentFilter.addAction(ConnectivityManager.ACTION_TETHER_STATE_CHANGED);
251 return (mCm.getActiveNetworkInfo().getType() == ConnectivityManager.TYPE_MOBILE);
256 return (mCm.getActiveNetworkInfo().getType() == ConnectivityManager.TYPE_WIFI);
486 waitForNetworkState(ConnectivityManager.TYPE_WIFI
    [all...]
  /cts/hostsidetests/net/app/src/com/android/cts/net/hostside/
DataSaverModeTest.java 19 import static android.net.ConnectivityManager.RESTRICT_BACKGROUND_STATUS_DISABLED;
20 import static android.net.ConnectivityManager.RESTRICT_BACKGROUND_STATUS_ENABLED;
21 import static android.net.ConnectivityManager.RESTRICT_BACKGROUND_STATUS_WHITELISTED;
  /cts/tests/tests/net/src/android/net/cts/
MultinetworkApiTest.java 20 import android.net.ConnectivityManager;
47 private ConnectivityManager mCM;
51 mCM = (ConnectivityManager) getContext().getSystemService(Context.CONNECTIVITY_SERVICE);
  /frameworks/base/core/java/android/util/
NtpTrustedTime.java 22 import android.net.ConnectivityManager;
45 private ConnectivityManager mCM;
91 mCM = (ConnectivityManager) sContext.getSystemService(Context.CONNECTIVITY_SERVICE);
  /packages/providers/DownloadProvider/src/com/android/providers/downloads/
RealSystemFacade.java 26 import android.net.ConnectivityManager;
53 return mContext.getSystemService(ConnectivityManager.class)
59 return mContext.getSystemService(ConnectivityManager.class)
  /cts/tests/tests/net/src/android/net/wifi/cts/
ConcurrencyTest.java 23 import android.net.ConnectivityManager;
24 import android.net.ConnectivityManager.NetworkCallback;
130 ConnectivityManager cm =
131 (ConnectivityManager) getContext().getSystemService(Context.CONNECTIVITY_SERVICE);
  /packages/apps/Settings/src/com/android/settings/datausage/
DataUsageSummary.java 21 import android.net.ConnectivityManager;
56 import static android.net.ConnectivityManager.TYPE_ETHERNET;
57 import static android.net.ConnectivityManager.TYPE_WIFI;
269 final ConnectivityManager conn = ConnectivityManager.from(context);
292 return ConnectivityManager.from(context).isNetworkSupported(
293 ConnectivityManager.TYPE_MOBILE);
304 final ConnectivityManager conn = ConnectivityManager.from(context);
408 boolean hasMobileData = ConnectivityManager.from(context).isNetworkSupported
    [all...]
  /frameworks/opt/net/wifi/service/java/com/android/server/wifi/
SoftApManager.java 27 import android.net.ConnectivityManager;
55 private final ConnectivityManager mConnectivityManager;
93 ConnectivityManager connectivityManager,
102 mConnectivityManager = connectivityManager;
115 ConnectivityManager.EXTRA_AVAILABLE_TETHER);
117 ConnectivityManager.EXTRA_ACTIVE_TETHER);
122 }, new IntentFilter(ConnectivityManager.ACTION_TETHER_STATE_CHANGED));
234 != ConnectivityManager.TETHER_ERROR_NO_ERROR) {
263 != ConnectivityManager.TETHER_ERROR_NO_ERROR)
    [all...]
  /packages/apps/Settings/src/com/android/settings/dashboard/conditional/
AirplaneModeCondition.java 22 import android.net.ConnectivityManager;
73 ConnectivityManager.from(mManager.getContext()).setAirplaneMode(false);
  /packages/apps/TvSettings/Settings/src/com/android/tv/settings/about/
StatusFragment.java 24 import android.net.ConnectivityManager;
63 ConnectivityManager.CONNECTIVITY_ACTION,
72 private ConnectivityManager mCM;
129 mCM = (ConnectivityManager) getActivity().getSystemService(Context.CONNECTIVITY_SERVICE);
194 return mCM.getNetworkInfo(ConnectivityManager.TYPE_WIMAX) != null;
259 * @param cm ConnectivityManager
262 private static String getDefaultIpAddresses(ConnectivityManager cm) {

Completed in 4017 milliseconds

1 23 4 5 6 7 8 910