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

1 2 3 4 5 6 7 8 910

  /frameworks/support/v4/jellybean/android/support/v4/net/
ConnectivityManagerCompatJellyBean.java 19 import android.net.ConnectivityManager;
25 public static boolean isActiveNetworkMetered(ConnectivityManager cm) {
  /frameworks/support/v4/honeycomb_mr2/android/support/v4/net/
ConnectivityManagerCompatHoneycombMR2.java 19 import static android.net.ConnectivityManager.TYPE_BLUETOOTH;
20 import static android.net.ConnectivityManager.TYPE_ETHERNET;
21 import static android.net.ConnectivityManager.TYPE_MOBILE;
22 import static android.net.ConnectivityManager.TYPE_MOBILE_DUN;
23 import static android.net.ConnectivityManager.TYPE_MOBILE_HIPRI;
24 import static android.net.ConnectivityManager.TYPE_MOBILE_MMS;
25 import static android.net.ConnectivityManager.TYPE_MOBILE_SUPL;
26 import static android.net.ConnectivityManager.TYPE_WIFI;
27 import static android.net.ConnectivityManager.TYPE_WIMAX;
29 import android.net.ConnectivityManager;
    [all...]
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/
ConnectivityManagerCompatUtils.java 19 import android.net.ConnectivityManager;
24 // ConnectivityManager#isActiveNetworkMetered() has been introduced
27 ConnectivityManager.class, "isActiveNetworkMetered");
29 public static boolean isActiveNetworkMetered(final ConnectivityManager manager) {
33 manager.getActiveNetworkInfo().getType() == ConnectivityManager.TYPE_MOBILE,
  /frameworks/support/v4/gingerbread/android/support/v4/net/
ConnectivityManagerCompatGingerbread.java 19 import static android.net.ConnectivityManager.TYPE_MOBILE;
20 import static android.net.ConnectivityManager.TYPE_MOBILE_DUN;
21 import static android.net.ConnectivityManager.TYPE_MOBILE_HIPRI;
22 import static android.net.ConnectivityManager.TYPE_MOBILE_MMS;
23 import static android.net.ConnectivityManager.TYPE_MOBILE_SUPL;
24 import static android.net.ConnectivityManager.TYPE_WIFI;
25 import static android.net.ConnectivityManager.TYPE_WIMAX;
27 import android.net.ConnectivityManager;
34 public static boolean isActiveNetworkMetered(ConnectivityManager cm) {
  /packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
NetworkConfigurationFactory.java 20 import android.net.ConnectivityManager;
24 public static final int TYPE_ETHERNET = ConnectivityManager.TYPE_ETHERNET;
25 public static final int TYPE_WIFI = ConnectivityManager.TYPE_WIFI;
  /frameworks/support/v4/java/android/support/v4/net/
ConnectivityManagerCompat.java 19 import static android.net.ConnectivityManager.TYPE_MOBILE;
20 import static android.net.ConnectivityManager.TYPE_WIFI;
23 import android.net.ConnectivityManager;
28 * Helper for accessing features in {@link ConnectivityManager} introduced after
34 boolean isActiveNetworkMetered(ConnectivityManager cm);
39 public boolean isActiveNetworkMetered(ConnectivityManager cm) {
61 public boolean isActiveNetworkMetered(ConnectivityManager cm) {
69 public boolean isActiveNetworkMetered(ConnectivityManager cm) {
76 public boolean isActiveNetworkMetered(ConnectivityManager cm) {
102 public static boolean isActiveNetworkMetered(ConnectivityManager cm)
    [all...]
  /cts/common/device-side/preconditions/src/com/android/compatibility/common/preconditions/
WifiHelper.java 20 import android.net.ConnectivityManager;
32 return true; // ConnectivityManager.getNetworkInfo() added in LOLLIPOP, skip this check
34 ConnectivityManager cm = (ConnectivityManager)
36 NetworkInfo wifiNetworkInfo = cm.getNetworkInfo(ConnectivityManager.TYPE_WIFI);
  /cts/tests/netlegacy22.permission/src/android/net/cts/legacy/api22/permission/
ConnectivityManagerPermissionTest.java 20 import android.net.ConnectivityManager;
25 * Test that protected android.net.ConnectivityManager methods cannot be called without
30 private ConnectivityManager mConnectivityManager = null;
35 mConnectivityManager = (ConnectivityManager) mContext.getSystemService(Context.CONNECTIVITY_SERVICE);
40 * Verify that calling {@link ConnectivityManager#requestRouteToHost(int, int)}
48 mConnectivityManager.requestRouteToHost(ConnectivityManager.TYPE_MOBILE, 1);
NoNetworkStatePermissionTest.java 20 import android.net.ConnectivityManager;
26 * Verify ConnectivityManager related methods without specific network state permissions.
29 private ConnectivityManager mConnectivityManager;
30 private static final int TEST_NETWORK_TYPE = ConnectivityManager.TYPE_MOBILE;
36 mConnectivityManager = (ConnectivityManager) mContext.getSystemService(
42 * Verify that ConnectivityManager#startUsingNetworkFeature() requires permissions.
50 fail("ConnectivityManager.startUsingNetworkFeature didn't throw SecurityException as"
58 * Verify that ConnectivityManager#requestRouteToHost() requires permissions.
66 fail("ConnectivityManager.requestRouteToHost didn't throw SecurityException as"
  /cts/tests/tests/net/appForApi23/src/android/net/cts/appForApi23/
ConnectivityReceiver.java 21 import android.net.ConnectivityManager;
31 if (ConnectivityManager.CONNECTIVITY_ACTION.equals(intent.getAction())) {
32 int networkType = intent.getIntExtra(ConnectivityManager.EXTRA_NETWORK_TYPE, 0);
33 if (networkType == ConnectivityManager.TYPE_WIFI) {
  /cts/tests/tests/permission/src/android/permission/cts/
ConnectivityManagerPermissionTest.java 20 import android.net.ConnectivityManager;
25 * Test that protected android.net.ConnectivityManager methods cannot be called without
30 private ConnectivityManager mConnectivityManager = null;
35 mConnectivityManager = (ConnectivityManager) mContext.getSystemService(Context.CONNECTIVITY_SERVICE);
42 * Verify that calling {@link ConnectivityManager#getNetworkInfo(int))}
50 mConnectivityManager.getNetworkInfo(ConnectivityManager.TYPE_MOBILE);
NoNetworkStatePermissionTest.java 20 import android.net.ConnectivityManager;
26 * Verify ConnectivityManager related methods without specific network state permissions.
29 private ConnectivityManager mConnectivityManager;
30 private static final int TEST_NETWORK_TYPE = ConnectivityManager.TYPE_MOBILE;
36 mConnectivityManager = (ConnectivityManager) mContext.getSystemService(
42 * Verify that ConnectivityManager#getActiveNetworkInfo() requires permissions.
50 fail("ConnectivityManager.getActiveNetworkInfo didn't throw SecurityException as"
58 * Verify that ConnectivityManager#getNetworkInfo() requires permissions.
66 fail("ConnectivityManager.getNetworkInfo didn't throw SecurityException as"
74 * Verify that ConnectivityManager#getAllNetworkInfo() requires permissions
    [all...]
  /packages/apps/Settings/src/com/android/settings/
AirplaneModeVoiceActivity.java 21 import android.net.ConnectivityManager;
36 ConnectivityManager mgr = (ConnectivityManager) getSystemService(
TetherProvisioningActivity.java 22 import android.net.ConnectivityManager;
46 ConnectivityManager.EXTRA_PROVISION_CALLBACK);
48 int tetherType = getIntent().getIntExtra(ConnectivityManager.EXTRA_ADD_TETHER_TYPE,
49 ConnectivityManager.TETHERING_INVALID);
63 mResultReceiver.send(ConnectivityManager.TETHER_ERROR_PROVISION_FAILED, null);
77 ConnectivityManager.TETHER_ERROR_NO_ERROR :
78 ConnectivityManager.TETHER_ERROR_PROVISION_FAILED;
TetherService.java 32 import android.net.ConnectivityManager;
86 mPendingCallbacks.put(ConnectivityManager.TETHERING_WIFI, new ArrayList<ResultReceiver>());
87 mPendingCallbacks.put(ConnectivityManager.TETHERING_USB, new ArrayList<ResultReceiver>());
89 ConnectivityManager.TETHERING_BLUETOOTH, new ArrayList<ResultReceiver>());
94 if (intent.hasExtra(ConnectivityManager.EXTRA_ADD_TETHER_TYPE)) {
95 int type = intent.getIntExtra(ConnectivityManager.EXTRA_ADD_TETHER_TYPE,
96 ConnectivityManager.TETHERING_INVALID);
98 intent.getParcelableExtra(ConnectivityManager.EXTRA_PROVISION_CALLBACK);
105 callback.send(ConnectivityManager.TETHER_ERROR_UNKNOWN_IFACE, null);
117 if (intent.hasExtra(ConnectivityManager.EXTRA_REM_TETHER_TYPE))
    [all...]
  /cts/tests/tests/net/src/android/net/cts/
ConnectivityManagerTest.java 29 import android.net.ConnectivityManager;
30 import android.net.ConnectivityManager.NetworkCallback;
63 public static final int TYPE_MOBILE = ConnectivityManager.TYPE_MOBILE;
64 public static final int TYPE_WIFI = ConnectivityManager.TYPE_WIFI;
88 private ConnectivityManager mCm;
98 mCm = (ConnectivityManager) mContext.getSystemService(Context.CONNECTIVITY_SERVICE);
110 if (wifiOnly && ConnectivityManager.isNetworkTypeMobile(n.type)) {
119 assertTrue(ConnectivityManager.isNetworkTypeValid(ConnectivityManager.TYPE_MOBILE));
120 assertTrue(ConnectivityManager.isNetworkTypeValid(ConnectivityManager.TYPE_WIFI))
    [all...]
NetworkInfoTest.java 21 import android.net.ConnectivityManager;
29 public static final int TYPE_MOBILE = ConnectivityManager.TYPE_MOBILE;
30 public static final int TYPE_WIFI = ConnectivityManager.TYPE_WIFI;
35 ConnectivityManager cm = (ConnectivityManager) getContext().getSystemService(
  /cts/tests/tests/telephony/src/android/telephony/cts/
SubscriptionManagerTest.java 21 import android.net.ConnectivityManager;
32 private static ConnectivityManager mCm;
43 mCm = (ConnectivityManager)getContext().getSystemService(Context.CONNECTIVITY_SERVICE);
56 if (mCm.getNetworkInfo(ConnectivityManager.TYPE_MOBILE) == null) {
57 Log.d(TAG, "Skipping test that requires ConnectivityManager.TYPE_MOBILE");
65 if (mCm.getNetworkInfo(ConnectivityManager.TYPE_MOBILE) == null) {
66 Log.d(TAG, "Skipping test that requires ConnectivityManager.TYPE_MOBILE");
  /packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/
NetworkMonitor.java 23 import android.net.ConnectivityManager;
65 filter.addAction(ConnectivityManager.CONNECTIVITY_ACTION);
71 filter.addAction(ConnectivityManager.INET_CONDITION_ACTION);
100 if (intent.getAction().equals(ConnectivityManager.CONNECTIVITY_ACTION) ||
101 intent.getAction().equals(ConnectivityManager.INET_CONDITION_ACTION)) {
  /development/tools/emulator/test-apps/SmokeTests/src/com/android/emulator/smoketests/connectivity/
ConnectivityTest.java 24 import android.net.ConnectivityManager;
34 private ConnectivityManager connectivity;
41 connectivity = (ConnectivityManager) getContext().
  /packages/apps/Settings/src/com/android/settings/vpn2/
VpnUtils.java 19 import android.net.ConnectivityManager;
37 // Always notify ConnectivityManager after keystore update
38 context.getSystemService(ConnectivityManager.class).updateLockdownVpn();
44 // Always notify ConnectivityManager after keystore update
45 context.getSystemService(ConnectivityManager.class).updateLockdownVpn();
  /frameworks/ex/common/java/com/android/common/
NetworkConnectivityListener.java 23 import android.net.ConnectivityManager;
36 * (or poll ConnectivityManager) directly.
68 if (!action.equals(ConnectivityManager.CONNECTIVITY_ACTION) ||
75 intent.getBooleanExtra(ConnectivityManager.EXTRA_NO_CONNECTIVITY, false);
84 intent.getParcelableExtra(ConnectivityManager.EXTRA_NETWORK_INFO);
86 intent.getParcelableExtra(ConnectivityManager.EXTRA_OTHER_NETWORK_INFO);
88 mReason = intent.getStringExtra(ConnectivityManager.EXTRA_REASON);
90 intent.getBooleanExtra(ConnectivityManager.EXTRA_IS_FAILOVER, false);
142 filter.addAction(ConnectivityManager.CONNECTIVITY_ACTION);
  /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...]
  /frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/functional/
ConnectivityManagerMobileTest.java 19 import android.net.ConnectivityManager;
57 if (!waitForNetworkState(ConnectivityManager.TYPE_MOBILE,
89 ConnectivityManager.TYPE_MOBILE, State.CONNECTED, LONG_TIMEOUT));
93 assertEquals("active network is not mobile", ConnectivityManager.TYPE_MOBILE, ni.getType());
122 // assert that ConnectivityManager reports correct state for Wifi
124 ConnectivityManager.TYPE_WIFI, State.CONNECTED, WIFI_CONNECTION_TIMEOUT));
125 // below check disbabled since we have bug in what ConnectivityManager returns
127 // // assert that ConnectivityManager reports correct state for mobile
129 // ConnectivityManager.TYPE_MOBILE, State.DISCONNECTED, LONG_TIMEOUT));
146 // verify wifi connected as reported by ConnectivityManager
    [all...]
  /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();

Completed in 904 milliseconds

1 2 3 4 5 6 7 8 910