/frameworks/support/v4/honeycomb_mr2/android/support/v4/net/ |
D | 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 …]
|
/frameworks/support/v4/gingerbread/android/support/v4/net/ |
D | 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) { in isActiveNetworkMetered()
|
/frameworks/support/v4/java/android/support/v4/net/ |
D | ConnectivityManagerCompat.java | 19 import static android.net.ConnectivityManager.TYPE_MOBILE; 20 import static android.net.ConnectivityManager.TYPE_WIFI; 23 import android.net.ConnectivityManager; 34 boolean isActiveNetworkMetered(ConnectivityManager cm); in isActiveNetworkMetered() 39 public boolean isActiveNetworkMetered(ConnectivityManager cm) { in isActiveNetworkMetered() 61 public boolean isActiveNetworkMetered(ConnectivityManager cm) { in isActiveNetworkMetered() 69 public boolean isActiveNetworkMetered(ConnectivityManager cm) { in isActiveNetworkMetered() 76 public boolean isActiveNetworkMetered(ConnectivityManager cm) { in isActiveNetworkMetered() 102 public static boolean isActiveNetworkMetered(ConnectivityManager cm) { in isActiveNetworkMetered() 113 public static NetworkInfo getNetworkInfoFromBroadcast(ConnectivityManager cm, Intent intent) { in getNetworkInfoFromBroadcast() [all …]
|
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/functional/ |
D | ConnectivityManagerMobileTest.java | 19 import android.net.ConnectivityManager; 57 if (!waitForNetworkState(ConnectivityManager.TYPE_MOBILE, in setUp() 89 ConnectivityManager.TYPE_MOBILE, State.CONNECTED, LONG_TIMEOUT)); in test3GToWifiNotification() 93 assertEquals("active network is not mobile", ConnectivityManager.TYPE_MOBILE, ni.getType()); in test3GToWifiNotification() 124 ConnectivityManager.TYPE_WIFI, State.CONNECTED, WIFI_CONNECTION_TIMEOUT)); in testConnectToWifi() 148 ConnectivityManager.TYPE_WIFI, State.CONNECTED, WIFI_CONNECTION_TIMEOUT)); in testConnectToWifWithKnownAP() 160 ConnectivityManager.TYPE_MOBILE, State.CONNECTED, LONG_TIMEOUT)); in testConnectToWifWithKnownAP() 172 ConnectivityManager.TYPE_WIFI, State.CONNECTED, WIFI_CONNECTION_TIMEOUT)); in testConnectToWifWithKnownAP() 196 ConnectivityManager.TYPE_WIFI, State.CONNECTED, WIFI_CONNECTION_TIMEOUT)); in testDisconnectWifi() 206 assertTrue("mobile not enabled", waitForNetworkState(ConnectivityManager.TYPE_MOBILE, in testDisconnectWifi() [all …]
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | Tethering.java | 30 import android.net.ConnectivityManager; 94 private static final Integer MOBILE_TYPE = new Integer(ConnectivityManager.TYPE_MOBILE); 95 private static final Integer HIPRI_TYPE = new Integer(ConnectivityManager.TYPE_MOBILE_HIPRI); 96 private static final Integer DUN_TYPE = new Integer(ConnectivityManager.TYPE_MOBILE_DUN); 100 private int mPreferredUpstreamMobileApn = ConnectivityManager.TYPE_NONE; 159 filter.addAction(ConnectivityManager.CONNECTIVITY_ACTION); in Tethering() 186 private ConnectivityManager getConnectivityManager() { in getConnectivityManager() 187 return (ConnectivityManager) mContext.getSystemService(Context.CONNECTIVITY_SERVICE); in getConnectivityManager() 337 return ConnectivityManager.TETHER_ERROR_UNKNOWN_IFACE; in tether() 341 return ConnectivityManager.TETHER_ERROR_UNAVAIL_IFACE; in tether() [all …]
|
D | DataConnectionStats.java | 23 import android.net.ConnectivityManager; 64 filter.addAction(ConnectivityManager.CONNECTIVITY_ACTION); in startMonitoring() 65 filter.addAction(ConnectivityManager.INET_CONDITION_ACTION); in startMonitoring() 75 } else if (action.equals(ConnectivityManager.CONNECTIVITY_ACTION) || in onReceive() 76 action.equals(ConnectivityManager.INET_CONDITION_ACTION)) { in onReceive()
|
/frameworks/ex/common/java/com/android/common/ |
D | NetworkConnectivityListener.java | 23 import android.net.ConnectivityManager; 68 if (!action.equals(ConnectivityManager.CONNECTIVITY_ACTION) || in onReceive() 75 intent.getBooleanExtra(ConnectivityManager.EXTRA_NO_CONNECTIVITY, false); in onReceive() 84 intent.getParcelableExtra(ConnectivityManager.EXTRA_NETWORK_INFO); in onReceive() 86 intent.getParcelableExtra(ConnectivityManager.EXTRA_OTHER_NETWORK_INFO); in onReceive() 88 mReason = intent.getStringExtra(ConnectivityManager.EXTRA_REASON); in onReceive() 90 intent.getBooleanExtra(ConnectivityManager.EXTRA_IS_FAILOVER, false); in onReceive() 142 filter.addAction(ConnectivityManager.CONNECTIVITY_ACTION); in startListening()
|
/frameworks/base/docs/html-intl/intl/zh-cn/training/monitoring-device-state/ |
D | connectivity-monitoring.jd | 35 <p>您可以使用 {@link android.net.ConnectivityManager} 查看是否确实已连接互联网,如果已连接,您还可以了解当前的连接类型。</p> 40 <p>如果设备未连接互联网,就没有必要根据互联网资源安排更新了。以下代码段说明如何使用 {@link android.net.ConnectivityManager} 查询有效网络并确定该网络是否已… 42 <pre>ConnectivityManager cm = 43 (ConnectivityManager)context.getSystemService(Context.CONNECTIVITY_SERVICE); 55 <pre>boolean isWiFi = activeNetwork.getType() == ConnectivityManager.TYPE_WIFI;</pre> 64 <p>只要连接的具体情况发生变化,{@link android.net.ConnectivityManager} 就会广播 {@link android.net.ConnectivityManage…
|
/frameworks/base/docs/html-intl/intl/ko/training/monitoring-device-state/ |
D | connectivity-monitoring.jd | 35 <p>인터넷에 연결되었는지, 어떤 연결 방식인지를 확인하기 위하여 {@link android.net.ConnectivityManager}를 사용할 수 있습니다.</p> 40 …가 없습니다. 다음은 활성 네트워크를 쿼리하고 인터넷이 연결되어 있는지 확인하기 위한 {@link android.net.ConnectivityManager} 사용법을 보여줍니다… 42 <pre>ConnectivityManager cm = 43 (ConnectivityManager)context.getSystemService(Context.CONNECTIVITY_SERVICE); 55 <pre>boolean isWiFi = activeNetwork.getType() == ConnectivityManager.TYPE_WIFI;</pre> 64 <p>연결 정보가 변경될 때마다 {@link android.net.ConnectivityManager}는 {@link android.net.ConnectivityManager#C…
|
/frameworks/base/docs/html-intl/intl/ja/training/monitoring-device-state/ |
D | connectivity-monitoring.jd | 35 <p>{@link android.net.ConnectivityManager} を使用すると、端末が実際にインターネットに接続されているかどうかと、接続されている場合の接続タイプを調べることが… 40 …インターネット リソースに基づく更新をスケジューリングする必要性はありません。次のスニペットは、{@link android.net.ConnectivityManager} を使用してアクティブ… 42 <pre>ConnectivityManager cm = 43 (ConnectivityManager)context.getSystemService(Context.CONNECTIVITY_SERVICE); 55 <pre>boolean isWiFi = activeNetwork.getType() == ConnectivityManager.TYPE_WIFI;</pre> 64 <p>接続状態の詳細が変化すると、{@link android.net.ConnectivityManager} によって {@link android.net.ConnectivityManage…
|
/frameworks/base/services/core/java/com/android/server/job/controllers/ |
D | ConnectivityController.java | 24 import android.net.ConnectivityManager; 44 ConnectivityManager.OnNetworkActiveListener { 71 intentFilter.addAction(ConnectivityManager.CONNECTIVITY_ACTION); in ConnectivityController() 159 if (action.equals(ConnectivityManager.CONNECTIVITY_ACTION)) { in onReceive() 161 intent.getIntExtra(ConnectivityManager.EXTRA_NETWORK_TYPE, in onReceive() 162 ConnectivityManager.TYPE_NONE); in onReceive() 164 final ConnectivityManager connManager = (ConnectivityManager) in onReceive() 176 ConnectivityManager.EXTRA_NO_CONNECTIVITY, false); in onReceive()
|
/frameworks/base/docs/html-intl/intl/ru/training/monitoring-device-state/ |
D | connectivity-monitoring.jd | 35 …ичие подключения к Интернету и его тип можно с помощью {@link android.net.ConnectivityManager}.</p> 40 …риведенном ниже коде показано, как использовать {@link android.net.ConnectivityManager} для отправ… 42 <pre>ConnectivityManager cm = 43 (ConnectivityManager)context.getSystemService(Context.CONNECTIVITY_SERVICE); 55 <pre>boolean isWiFi = activeNetwork.getType() == ConnectivityManager.TYPE_WIFI;</pre> 64 <p>{@link android.net.ConnectivityManager} передает действие {@link android.net.ConnectivityManager…
|
/frameworks/base/samples/training/network-usage/src/com/example/android/networkusage/ |
D | NetworkActivity.java | 23 import android.net.ConnectivityManager; 88 IntentFilter filter = new IntentFilter(ConnectivityManager.CONNECTIVITY_ACTION); in onCreate() 129 ConnectivityManager connMgr = in updateConnectedFlags() 130 (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE); in updateConnectedFlags() 134 wifiConnected = activeInfo.getType() == ConnectivityManager.TYPE_WIFI; in updateConnectedFlags() 135 mobileConnected = activeInfo.getType() == ConnectivityManager.TYPE_MOBILE; in updateConnectedFlags() 290 ConnectivityManager connMgr = in onReceive() 291 (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE); in onReceive() 299 && networkInfo.getType() == ConnectivityManager.TYPE_WIFI) { in onReceive()
|
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/ |
D | ConnectivityManagerTestBase.java | 24 import android.net.ConnectivityManager; 74 protected ConnectivityManager mCm; 101 if (!action.equals(ConnectivityManager.CONNECTIVITY_ACTION)) { in onReceive() 128 mCm = (ConnectivityManager)mContext.getSystemService(Context.CONNECTIVITY_SERVICE); in setUp() 141 new IntentFilter(ConnectivityManager.CONNECTIVITY_ACTION)); in setUp() 150 mIntentFilter.addAction(ConnectivityManager.ACTION_TETHER_STATE_CHANGED); in setUp() 251 return (mCm.getActiveNetworkInfo().getType() == ConnectivityManager.TYPE_MOBILE); in isConnectedToMobile() 256 return (mCm.getActiveNetworkInfo().getType() == ConnectivityManager.TYPE_WIFI); in isConnectedToWifi() 486 waitForNetworkState(ConnectivityManager.TYPE_WIFI, in connectToWifi()
|
/frameworks/base/services/core/java/com/android/server/ |
D | 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; 49 import android.net.ConnectivityManager; 467 new ArrayList[ConnectivityManager.MAX_NETWORK_TYPE + 1]; in LegacyTypeTracker() 677 mNetConfigs = new NetworkConfig[ConnectivityManager.MAX_NETWORK_TYPE+1]; in ConnectivityService() 688 if (n.type > ConnectivityManager.MAX_NETWORK_TYPE) { in ConnectivityService() [all …]
|
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/util/ |
D | 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)); in initialize() 113 mCM = (ConnectivityManager)mContext.getSystemService(Context.CONNECTIVITY_SERVICE); in initialize() 152 if (!action.equals(ConnectivityManager.CONNECTIVITY_ACTION)) { in onReceive() 157 final ConnectivityManager connManager = (ConnectivityManager) context in onReceive() 161 if (intent.hasExtra(ConnectivityManager.EXTRA_OTHER_NETWORK_INFO)) { in onReceive() 163 intent.getParcelableExtra(ConnectivityManager.EXTRA_OTHER_NETWORK_INFO); in onReceive() 518 NetworkInfo networkInfo = mCM.getNetworkInfo(ConnectivityManager.TYPE_MOBILE); in isConnectedToMobile() [all …]
|
/frameworks/support/v4/jellybean/android/support/v4/net/ |
D | ConnectivityManagerCompatJellyBean.java | 19 import android.net.ConnectivityManager; 25 public static boolean isActiveNetworkMetered(ConnectivityManager cm) { in isActiveNetworkMetered()
|
/frameworks/base/docs/html/training/monitoring-device-state/ |
D | connectivity-monitoring.jd | 38 <p>You can use the {@link android.net.ConnectivityManager} to check that you're actually 45 the Internet. The following snippet shows how to use the {@link android.net.ConnectivityManager} 48 <pre>ConnectivityManager cm = 49 (ConnectivityManager)context.getSystemService(Context.CONNECTIVITY_SERVICE); 64 <pre>boolean isWiFi = activeNetwork.getType() == ConnectivityManager.TYPE_WIFI;</pre> 76 <p>The {@link android.net.ConnectivityManager} broadcasts the {@link 77 android.net.ConnectivityManager#CONNECTIVITY_ACTION} ({@code
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
D | TetherUtil.java | 23 import android.net.ConnectivityManager; 100 final ConnectivityManager cm = in isTetheringSupported() 101 (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE); in isTetheringSupported()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ |
D | DctController.java | 21 import android.net.ConnectivityManager; 136 ConnectivityManager cm = (ConnectivityManager)mPhones[index].getContext() in updatePhoneBaseForIndex() 266 ConnectivityManager cm = (ConnectivityManager)mPhones[i].getContext() in dispose() 568 type = ConnectivityManager.TYPE_MOBILE; in apnForNetworkRequest() 573 type = ConnectivityManager.TYPE_MOBILE_MMS; in apnForNetworkRequest() 578 type = ConnectivityManager.TYPE_MOBILE_SUPL; in apnForNetworkRequest() 583 type = ConnectivityManager.TYPE_MOBILE_DUN; in apnForNetworkRequest() 588 type = ConnectivityManager.TYPE_MOBILE_FOTA; in apnForNetworkRequest() 593 type = ConnectivityManager.TYPE_MOBILE_IMS; in apnForNetworkRequest() 598 type = ConnectivityManager.TYPE_MOBILE_CBS; in apnForNetworkRequest() [all …]
|
/frameworks/base/docs/html/training/basics/network-ops/ |
D | managing.jd | 62 list of possible network types, see {@link android.net.ConnectivityManager}.<p> 77 <li>{@link android.net.ConnectivityManager}: Answers queries about the state 98 ConnectivityManager connMgr = (ConnectivityManager) 100 NetworkInfo networkInfo = connMgr.getNetworkInfo(ConnectivityManager.TYPE_WIFI); 102 networkInfo = connMgr.getNetworkInfo(ConnectivityManager.TYPE_MOBILE); 117 android.net.ConnectivityManager#getActiveNetworkInfo() getActiveNetworkInfo()} 125 ConnectivityManager connMgr = (ConnectivityManager) 317 IntentFilter filter = new IntentFilter(ConnectivityManager.CONNECTIVITY_ACTION); 355 ConnectivityManager connMgr = (ConnectivityManager) 360 wifiConnected = activeInfo.getType() == ConnectivityManager.TYPE_WIFI; [all …]
|
/frameworks/base/core/java/android/net/ |
D | NetworkIdentity.java | 19 import static android.net.ConnectivityManager.TYPE_WIFI; 20 import static android.net.ConnectivityManager.getNetworkTypeName; 21 import static android.net.ConnectivityManager.isNetworkTypeMobile; 91 } else if (ConnectivityManager.isNetworkTypeMobile(mType)) { in toString()
|
/frameworks/base/core/java/android/util/ |
D | NtpTrustedTime.java | 22 import android.net.ConnectivityManager; 45 private ConnectivityManager mCM; 91 mCM = (ConnectivityManager) sContext.getSystemService(Context.CONNECTIVITY_SERVICE); in forceRefresh()
|
/frameworks/base/core/java/android/app/usage/ |
D | NetworkStatsManager.java | 21 import android.net.ConnectivityManager; 241 case ConnectivityManager.TYPE_MOBILE: { in createTemplate() 244 case ConnectivityManager.TYPE_WIFI: { in createTemplate()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/ |
D | AirplaneModeTile.java | 23 import android.net.ConnectivityManager; 66 final ConnectivityManager mgr = in setEnabled() 67 (ConnectivityManager) mContext.getSystemService(Context.CONNECTIVITY_SERVICE); in setEnabled()
|