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

12 3 4 5 6 7 8 910

  /packages/services/Mms/src/com/android/mms/service/
MmsNetworkManager.java 20 import android.net.ConnectivityManager;
33 // Timeout used to call ConnectivityManager.requestNetwork
52 private ConnectivityManager.NetworkCallback mNetworkCallback;
54 private volatile ConnectivityManager mConnectivityManager;
65 private class NetworkRequestCallback extends ConnectivityManager.NetworkCallback {
174 final ConnectivityManager connectivityManager = getConnectivityManager();
176 connectivityManager.requestNetwork(
183 * @param callback the {@link android.net.ConnectivityManager.NetworkCallback} to unregister
185 private void releaseRequestLocked(ConnectivityManager.NetworkCallback callback)
    [all...]
  /packages/apps/Email/provider_src/com/android/email/
EmailConnectivityManager.java 24 import android.net.ConnectivityManager;
34 * Encapsulates functionality of ConnectivityManager for use in the Email application. In
61 private final android.net.ConnectivityManager mConnectivityManager;
74 (ConnectivityManager)context.getSystemService(Context.CONNECTIVITY_SERVICE);
77 mContext.registerReceiver(this, new IntentFilter(ConnectivityManager.CONNECTIVITY_ACTION));
95 * @param networkType as defined by ConnectivityManager
103 * @param networkType as defined by ConnectivityManager
120 if (intent.getAction().equals(ConnectivityManager.CONNECTIVITY_ACTION)) {
124 (NetworkInfo)extras.get(ConnectivityManager.EXTRA_NETWORK_INFO);
157 ConnectivityManager cm
    [all...]
  /packages/apps/Messaging/src/android/support/v7/mms/
MmsNetworkManager.java 23 import android.net.ConnectivityManager;
74 private final ConnectivityManager mConnectivityManager;
91 if (!ConnectivityManager.CONNECTIVITY_ACTION.equals(intent.getAction())) {
95 if (networkType != ConnectivityManager.TYPE_MOBILE_MMS) {
104 mConnectivityManager = (ConnectivityManager) mContext.getSystemService(
108 mConnectivityIntentFilter.addAction(ConnectivityManager.CONNECTIVITY_ACTION);
113 ConnectivityManager getConnectivityManager() {
198 ConnectivityManager.TYPE_MOBILE_MMS);
217 mConnectivityManager.getNetworkInfo(ConnectivityManager.TYPE_MOBILE_MMS);
303 mConnectivityManager, ConnectivityManager.TYPE_MOBILE, FEATURE_ENABLE_MMS)
    [all...]
  /cts/tests/tests/net/src/android/net/cts/
ConnectivityReceiver.java 22 import android.net.ConnectivityManager;
60 if (ConnectivityManager.CONNECTIVITY_ACTION.equals(intent.getAction())) {
  /packages/apps/Settings/src/com/android/settings/
HotspotOffReceiver.java 7 import android.net.ConnectivityManager;
30 context, ConnectivityManager.TETHERING_WIFI);
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...]
  /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();
  /cts/tests/tests/carrierapi/src/android/carrierapi/cts/
CarrierApiTest.java 23 import android.net.ConnectivityManager;
64 ConnectivityManager mgr =
65 (ConnectivityManager) getContext().getSystemService(Context.CONNECTIVITY_SERVICE);
66 return mgr.isNetworkSupported(ConnectivityManager.TYPE_MOBILE);
  /cts/tests/tests/telephony/src/android/telephony/cts/
CarrierConfigManagerTest.java 20 import android.net.ConnectivityManager;
47 ConnectivityManager mgr =
48 (ConnectivityManager) getContext().getSystemService(Context.CONNECTIVITY_SERVICE);
49 return mgr.isNetworkSupported(ConnectivityManager.TYPE_MOBILE);
CellLocationTest.java 23 import android.net.ConnectivityManager;
37 private static ConnectivityManager mCm;
45 mCm = (ConnectivityManager)getContext().getSystemService(Context.CONNECTIVITY_SERVICE);
58 if (mCm.getNetworkInfo(ConnectivityManager.TYPE_MOBILE) == null) {
59 Log.d(TAG, "Skipping test that requires ConnectivityManager.TYPE_MOBILE");
PhoneStateListenerTest.java 27 import android.net.ConnectivityManager;
49 private static ConnectivityManager mCm;
56 mCm = (ConnectivityManager)getContext().getSystemService(Context.CONNECTIVITY_SERVICE);
69 if (mCm.getNetworkInfo(ConnectivityManager.TYPE_MOBILE) == null) {
70 Log.d(TAG, "Skipping test that requires ConnectivityManager.TYPE_MOBILE");
84 if (mCm.getNetworkInfo(ConnectivityManager.TYPE_MOBILE) == null) {
85 Log.d(TAG, "Skipping test that requires ConnectivityManager.TYPE_MOBILE");
121 if (mCm.getNetworkInfo(ConnectivityManager.TYPE_MOBILE) == null) {
122 Log.d(TAG, "Skipping test that requires ConnectivityManager.TYPE_MOBILE");
158 if (mCm.getNetworkInfo(ConnectivityManager.TYPE_MOBILE) == null)
    [all...]
  /development/samples/LceDemo/src/com/example/android/lce/
LceDemoActivity.java 21 import android.net.ConnectivityManager;
36 private ConnectivityManager connectityManager;
48 // Get an instance of ConnectivityManager.
49 connectityManager = (ConnectivityManager)getSystemService(
64 new ConnectivityManager.NetworkCallback() {
  /frameworks/base/core/java/com/android/server/net/
NetworkPinner.java 20 import android.net.ConnectivityManager;
21 import android.net.ConnectivityManager.NetworkCallback;
68 private static ConnectivityManager sCM;
76 // TODO: what happens if an app calls a WifiManager API before ConnectivityManager is
79 // Getting a ConnectivityManager does not leak the calling context, because it stores
81 sCM = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);
  /frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
TestUtil.java 24 import android.net.ConnectivityManager;
89 * Send {@link ConnectivityManager#ACTION_TETHER_STATE_CHANGED} broadcast.
93 Intent intent = new Intent(ConnectivityManager.ACTION_TETHER_STATE_CHANGED);
94 intent.putExtra(ConnectivityManager.EXTRA_AVAILABLE_TETHER, available);
95 intent.putExtra(ConnectivityManager.EXTRA_ACTIVE_TETHER, active);
  /packages/apps/Settings/src/com/android/settings/dashboard/conditional/
CellularDataCondition.java 17 import android.net.ConnectivityManager;
32 ConnectivityManager connectivity = mManager.getContext().getSystemService(
33 ConnectivityManager.class);
35 if (!connectivity.isNetworkSupported(ConnectivityManager.TYPE_MOBILE)
  /cts/tests/JobScheduler/src/android/jobscheduler/cts/
ConnectivityConstraintTest.java 26 import android.net.ConnectivityManager;
48 private ConnectivityManager mCm;
65 (ConnectivityManager) getContext().getSystemService(Context.CONNECTIVITY_SERVICE);
82 new ConnectivityActionReceiver(ConnectivityManager.TYPE_WIFI,
85 filter.addAction(ConnectivityManager.CONNECTIVITY_ACTION);
200 if (mCm.getNetworkInfo(ConnectivityManager.TYPE_MOBILE) == null) {
201 Log.d(TAG, "Skipping test that requires ConnectivityManager.TYPE_MOBILE");
214 new ConnectivityActionReceiver(ConnectivityManager.TYPE_WIFI,
217 filter.addAction(ConnectivityManager.CONNECTIVITY_ACTION);
239 new ConnectivityActionReceiver(ConnectivityManager.TYPE_MOBILE
    [all...]
  /frameworks/base/services/core/java/com/android/server/connectivity/
Tethering.java 34 import android.net.ConnectivityManager;
35 import android.net.ConnectivityManager.NetworkCallback;
117 private static final Integer MOBILE_TYPE = new Integer(ConnectivityManager.TYPE_MOBILE);
118 private static final Integer HIPRI_TYPE = new Integer(ConnectivityManager.TYPE_MOBILE_HIPRI);
119 private static final Integer DUN_TYPE = new Integer(ConnectivityManager.TYPE_MOBILE_DUN);
123 private int mPreferredUpstreamMobileApn = ConnectivityManager.TYPE_NONE;
189 filter.addAction(ConnectivityManager.CONNECTIVITY_ACTION);
216 private ConnectivityManager getConnectivityManager() {
217 return (ConnectivityManager) mContext.getSystemService(Context.CONNECTIVITY_SERVICE);
418 case ConnectivityManager.TETHERING_WIFI
    [all...]
  /developers/build/prebuilts/gradle/BasicNetworking/Application/src/main/java/com/example/android/basicnetworking/
MainActivity.java 20 import android.net.ConnectivityManager;
95 ConnectivityManager connMgr =
96 (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);
99 wifiConnected = activeInfo.getType() == ConnectivityManager.TYPE_WIFI;
100 mobileConnected = activeInfo.getType() == ConnectivityManager.TYPE_MOBILE;
  /developers/samples/android/connectivity/network/BasicNetworking/Application/src/main/java/com/example/android/basicnetworking/
MainActivity.java 20 import android.net.ConnectivityManager;
95 ConnectivityManager connMgr =
96 (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);
99 wifiConnected = activeInfo.getType() == ConnectivityManager.TYPE_WIFI;
100 mobileConnected = activeInfo.getType() == ConnectivityManager.TYPE_MOBILE;
  /development/cmds/monkey/src/com/android/commands/monkey/
MonkeyNetworkMonitor.java 23 import android.net.ConnectivityManager;
35 private final IntentFilter filter = new IntentFilter(ConnectivityManager.CONNECTIVITY_ACTION);
46 ConnectivityManager.EXTRA_NETWORK_INFO);
64 case ConnectivityManager.TYPE_MOBILE:
68 case ConnectivityManager.TYPE_WIFI:
  /development/samples/browseable/BasicNetworking/src/com.example.android.basicnetworking/
MainActivity.java 20 import android.net.ConnectivityManager;
95 ConnectivityManager connMgr =
96 (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);
99 wifiConnected = activeInfo.getType() == ConnectivityManager.TYPE_WIFI;
100 mobileConnected = activeInfo.getType() == ConnectivityManager.TYPE_MOBILE;
  /packages/services/Telephony/src/com/android/phone/vvm/omtp/sync/
VvmNetworkRequestCallback.java 20 import android.net.ConnectivityManager;
39 public abstract class VvmNetworkRequestCallback extends ConnectivityManager.NetworkCallback {
43 // Timeout used to call ConnectivityManager.requestNetwork
52 private ConnectivityManager mConnectivityManager;
138 public ConnectivityManager getConnectivityManager() {
140 mConnectivityManager = (ConnectivityManager) mContext.getSystemService(
  /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/apps/Settings/tests/unit/src/com/android/settings/
TetherServiceTest.java 23 import static android.net.ConnectivityManager.EXTRA_ADD_TETHER_TYPE;
24 import static android.net.ConnectivityManager.EXTRA_PROVISION_CALLBACK;
25 import static android.net.ConnectivityManager.EXTRA_REM_TETHER_TYPE;
26 import static android.net.ConnectivityManager.EXTRA_RUN_PROVISION;
27 import static android.net.ConnectivityManager.EXTRA_SET_ALARM;
28 import static android.net.ConnectivityManager.TETHERING_BLUETOOTH;
29 import static android.net.ConnectivityManager.TETHERING_INVALID;
30 import static android.net.ConnectivityManager.TETHERING_USB;
31 import static android.net.ConnectivityManager.TETHERING_WIFI;
32 import static android.net.ConnectivityManager.TETHER_ERROR_NO_ERROR
    [all...]
  /frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
HotspotControllerImpl.java 24 import android.net.ConnectivityManager;
40 private final ConnectivityManager mConnectivityManager;
47 mConnectivityManager = (ConnectivityManager) context.getSystemService(
105 ConnectivityManager.OnStartTetheringCallback {
119 ConnectivityManager.TETHERING_WIFI, false, callback);
121 mConnectivityManager.stopTethering(ConnectivityManager.TETHERING_WIFI);

Completed in 691 milliseconds

12 3 4 5 6 7 8 910