Home
last modified time | relevance | path

Searched refs:TYPE_WIFI (Results 1 – 25 of 36) sorted by relevance

12

/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/functional/
DConnectivityManagerMobileTest.java128 assertTrue(cmActivity.waitForNetworkState(ConnectivityManager.TYPE_WIFI, in test3GToWifiNotification()
140 networkInfo = cmActivity.mCM.getNetworkInfo(ConnectivityManager.TYPE_WIFI); in test3GToWifiNotification()
141 cmActivity.setStateTransitionCriteria(ConnectivityManager.TYPE_WIFI, networkInfo.getState(), in test3GToWifiNotification()
148 if (!cmActivity.validateNetworkStates(ConnectivityManager.TYPE_WIFI)) { in test3GToWifiNotification()
151 cmActivity.getTransitionFailureReason(ConnectivityManager.TYPE_WIFI)); in test3GToWifiNotification()
175 networkInfo = cmActivity.mCM.getNetworkInfo(ConnectivityManager.TYPE_WIFI); in testConnectToWifi()
176 cmActivity.setStateTransitionCriteria(ConnectivityManager.TYPE_WIFI, networkInfo.getState(), in testConnectToWifi()
186 assertTrue(cmActivity.waitForNetworkState(ConnectivityManager.TYPE_WIFI, State.CONNECTED, in testConnectToWifi()
194 if (!cmActivity.validateNetworkStates(ConnectivityManager.TYPE_WIFI)) { in testConnectToWifi()
197 cmActivity.getTransitionFailureReason(ConnectivityManager.TYPE_WIFI)); in testConnectToWifi()
[all …]
DWifiConnectionTest.java140 assertTrue(mAct.waitForNetworkState(ConnectivityManager.TYPE_WIFI, in connectToWifi()
/frameworks/support/v4/gingerbread/android/support/v4/net/
DConnectivityManagerCompatGingerbread.java24 import static android.net.ConnectivityManager.TYPE_WIFI;
50 case TYPE_WIFI: in isActiveNetworkMetered()
/frameworks/support/v4/honeycomb_mr2/android/support/v4/net/
DConnectivityManagerCompatHoneycombMR2.java26 import static android.net.ConnectivityManager.TYPE_WIFI;
52 case TYPE_WIFI: in isActiveNetworkMetered()
/frameworks/support/v4/java/android/support/v4/net/
DConnectivityManagerCompat.java20 import static android.net.ConnectivityManager.TYPE_WIFI;
49 case TYPE_WIFI: in isActiveNetworkMetered()
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/stress/
DWifiStressTest.java248 assertTrue(mAct.waitForNetworkState(ConnectivityManager.TYPE_WIFI, State.CONNECTED, in testWifiReconnectionAfterSleep()
270 mAct.waitForNetworkState(ConnectivityManager.TYPE_WIFI, State.DISCONNECTED, in testWifiReconnectionAfterSleep()
281 mAct.mCM.getNetworkInfo(ConnectivityManager.TYPE_WIFI).getState()); in testWifiReconnectionAfterSleep()
297 mAct.waitForNetworkState(ConnectivityManager.TYPE_WIFI, State.CONNECTED, in testWifiReconnectionAfterSleep()
/frameworks/base/core/java/android/net/
DNetworkTemplate.java20 import static android.net.ConnectivityManager.TYPE_WIFI;
280 case TYPE_WIFI: in matchesWifi()
307 case TYPE_WIFI: in matchesWifiWildcard()
DConnectivityManager.java213 public static final int TYPE_WIFI = 1; field in ConnectivityManager
299 public static final int DEFAULT_NETWORK_PREFERENCE = TYPE_WIFI;
312 case TYPE_WIFI: in getNetworkTypeName()
DNetworkIdentity.java19 import static android.net.ConnectivityManager.TYPE_WIFI;
160 } else if (type == TYPE_WIFI) { in buildNetworkIdentity()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DNetworkPolicyManagerServiceTest.java22 import static android.net.ConnectivityManager.TYPE_WIFI;
636 expectPolicyDataEnable(TYPE_WIFI, true); in testNetworkPolicyAppliedCycleLastMonth()
708 expectPolicyDataEnable(TYPE_WIFI, true); in testOverWarningLimitNotification()
732 expectPolicyDataEnable(TYPE_WIFI, true); in testOverWarningLimitNotification()
756 expectPolicyDataEnable(TYPE_WIFI, true); in testOverWarningLimitNotification()
777 expectPolicyDataEnable(TYPE_WIFI, false); in testOverWarningLimitNotification()
797 expectPolicyDataEnable(TYPE_WIFI, true); in testOverWarningLimitNotification()
839 expectPolicyDataEnable(TYPE_WIFI, true); in testMeteredNetworkWithoutLimit()
868 final NetworkInfo info = new NetworkInfo(TYPE_WIFI, 0, null, null); in buildWifi()
DNetworkStatsServiceTest.java23 import static android.net.ConnectivityManager.TYPE_WIFI;
1006 final NetworkInfo info = new NetworkInfo(TYPE_WIFI, 0, null, null); in buildWifiState()
/frameworks/base/cmds/svc/src/com/android/commands/svc/
DWifiCommand.java58 connMgr.setNetworkPreference(ConnectivityManager.TYPE_WIFI); in run()
/frameworks/base/docs/html/intl/ja/training/monitoring-device-state/
Dconnectivity-monitoring.jd55 <pre>boolean isWiFi = activeNetwork.getType() == ConnectivityManager.TYPE_WIFI;</pre>
/frameworks/base/docs/html/intl/zh-CN/training/monitoring-device-state/
Dconnectivity-monitoring.jd55 <pre>boolean isWiFi = activeNetwork.getType() == ConnectivityManager.TYPE_WIFI;</pre>
/frameworks/base/docs/html/intl/ko/training/monitoring-device-state/
Dconnectivity-monitoring.jd55 <pre>boolean isWiFi = activeNetwork.getType() == ConnectivityManager.TYPE_WIFI;</pre>
/frameworks/base/docs/html/intl/ru/training/monitoring-device-state/
Dconnectivity-monitoring.jd55 <pre>boolean isWiFi = activeNetwork.getType() == ConnectivityManager.TYPE_WIFI;</pre>
/frameworks/base/services/java/com/android/server/
DNetworkTimeUpdateService.java250 (netInfo.getType() == ConnectivityManager.TYPE_WIFI ||
/frameworks/base/docs/html/training/efficient-downloads/
Dconnectivity_patterns.jd59 case (ConnectivityManager.TYPE_WIFI):
/frameworks/base/docs/html/training/basics/network-ops/
Dmanaging.jd100 NetworkInfo networkInfo = connMgr.getNetworkInfo(ConnectivityManager.TYPE_WIFI);
360 wifiConnected = activeInfo.getType() == ConnectivityManager.TYPE_WIFI;
424 …I.equals(sPref) && networkInfo != null && networkInfo.getType() == ConnectivityManager.TYPE_WIFI) {
/frameworks/base/docs/html/training/monitoring-device-state/
Dconnectivity-monitoring.jd63 <pre>boolean isWiFi = activeNetwork.getType() == ConnectivityManager.TYPE_WIFI;</pre>
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/
DBandwidthTest.java281 assertTrue(mConnectionUtil.waitForNetworkState(ConnectivityManager.TYPE_WIFI, in setDeviceWifiAndAirplaneMode()
/frameworks/base/core/tests/hosttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/downloadmanagertests/
DDownloadManagerBaseTest.java168 NetworkInfo info = connManager.getNetworkInfo(ConnectivityManager.TYPE_WIFI); in getWiFiIsOn()
/frameworks/base/docs/html/intl/es/training/monitoring-device-state/
Dconnectivity-monitoring.jd55 <pre>boolean isWiFi = activeNetwork.getType() == ConnectivityManager.TYPE_WIFI;</pre>
/frameworks/base/core/java/android/net/http/
DRequestQueue.java264 if (info != null && info.getType() == ConnectivityManager.TYPE_WIFI) { in setProxyConfig()
/frameworks/base/voip/java/com/android/server/sip/
DSipService.java1100 if (mNetworkType == ConnectivityManager.TYPE_WIFI || mNetworkType == -1) { in updateWakeLocks()
1128 if (mSipOnWifiOnly && networkType != ConnectivityManager.TYPE_WIFI) { in onConnectivityChanged()

12