/cts/tests/tests/net/src/android/net/cts/ |
ConnectivityManagerTest.java | 35 import android.net.NetworkInfo; 36 import android.net.NetworkInfo.DetailedState; 37 import android.net.NetworkInfo.State; 179 NetworkInfo[] ni = mCm.getAllNetworkInfo(); 181 for (NetworkInfo n: ni) { 194 NetworkInfo ni = mCm.getActiveNetworkInfo(); 205 NetworkInfo ni = mCm.getNetworkInfo(network); 216 NetworkInfo ni = mCm.getNetworkInfo(type); 232 NetworkInfo[] ni = mCm.getAllNetworkInfo(); 237 for (NetworkInfo i : ni) [all...] |
/packages/apps/TV/src/com/android/tv/tuner/ |
TunerInputController.java | 30 import android.net.NetworkInfo; 284 NetworkInfo networkInfo = cm.getActiveNetworkInfo(); 285 return networkInfo != null && networkInfo.isConnected();
|
/device/google/wahoo/wifi_offload/test/ |
offload_hal_test_utils.cpp | 70 std::vector<NetworkInfo> nw_info_list; 71 NetworkInfo nwInfo1; 75 NetworkInfo nwInfo2; 139 if (hidlScanResult.networkInfo.ssid[k] != chreWifiSsid.ssid[k]) 142 if (hidlScanResult.networkInfo.flags != kNetworkFlags) {
|
/frameworks/base/core/java/android/net/ |
NetworkAgent.java | 71 * ConnectivityService to pass the current NetworkInfo (connection state). 72 * Sent when the NetworkInfo changes, mainly due to change of state. 73 * obj = NetworkInfo 136 * explicitly selected. This should be sent before the NetworkInfo is marked 208 public NetworkAgent(Looper looper, Context context, String logTag, NetworkInfo ni, 213 public NetworkAgent(Looper looper, Context context, String logTag, NetworkInfo ni, 225 netId = cm.registerNetworkAgent(new Messenger(this), new NetworkInfo(ni), 366 * Called by the bearer code when it has new NetworkInfo data. 368 public void sendNetworkInfo(NetworkInfo networkInfo) { [all...] |
/frameworks/base/tests/net/java/com/android/server/connectivity/ |
Nat464XlatTest.java | 33 import android.net.NetworkInfo; 78 mNai.networkInfo = new NetworkInfo(null); 79 mNai.networkInfo.setType(ConnectivityManager.TYPE_WIFI);
|
NetworkNotificationManagerTest.java | 36 import android.net.NetworkInfo; 69 @Mock NetworkInfo mNetworkInfo; 78 mWifiNai.networkInfo = mNetworkInfo; 80 mCellNai.networkInfo = mNetworkInfo;
|
/hardware/interfaces/wifi/offload/1.0/vts/functional/ |
VtsHalWifiOffloadV1_0TargetTest.cpp | 36 using ::android::hardware::wifi::offload::V1_0::NetworkInfo; 158 std::vector<NetworkInfo> preferredNetworksList; 160 NetworkInfo nwInfo; 192 scan_result.networkInfo.ssid = ssid; 193 scan_result.networkInfo.flags = kNetworkFlags;
|
/frameworks/base/services/core/java/com/android/server/ |
ConnectivityService.java | 60 import android.net.NetworkInfo; 61 import android.net.NetworkInfo.DetailedState; 455 // NetworkInfo blocked and unblocked String log entries 641 final DetailedState state = nai.networkInfo.getDetailedState(); 655 String state = (nai.networkInfo != null) ? 656 nai.networkInfo.getState() + "/" + nai.networkInfo.getDetailedState() : [all...] |
/external/autotest/frontend/client/src/autotest/moblab/rpc/ |
MoblabRpcHelper.java | 82 NetworkInfo networkInfo = new NetworkInfo(); 83 networkInfo.fromJson(result.isObject()); 84 callback.onNetworkInfoFetched(networkInfo);
|
/packages/apps/Gallery2/src/com/android/gallery3d/util/ |
ReverseGeocoder.java | 25 import android.net.NetworkInfo; 315 NetworkInfo networkInfo = mConnectivityManager.getActiveNetworkInfo(); 317 if (networkInfo == null || !networkInfo.isConnected()) {
|
/packages/apps/Settings/tests/unit/src/com/android/settings/wifi/ |
WifiSettingsUiTest.java | 42 import android.net.NetworkInfo; 135 NetworkInfo networkInfo = new NetworkInfo(ConnectivityManager.TYPE_WIFI, 0, null, null); 136 networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTED, null, null); 138 accessPoint.update(config, wifiInfo, networkInfo);
|
/external/autotest/client/cros/networking/chrome_testing/network_test_ext/ |
background.js | 126 chrome.networking.onc.getProperties(networkId, function(networkInfo) { 127 self._setResult("getNetworkInfo", networkInfo);
|
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/util/ |
ConnectionUtil.java | 31 import android.net.NetworkInfo; 32 import android.net.NetworkInfo.State; 67 private NetworkInfo mNetworkInfo; 68 private NetworkInfo mOtherNetworkInfo; 75 private NetworkInfo mWifiNetworkInfo; 162 mOtherNetworkInfo = (NetworkInfo) 192 (NetworkInfo) intent.getParcelableExtra(WifiManager.EXTRA_NETWORK_INFO); 458 Log.v(LOG_TAG, "Do not have networkInfo! Force fetch of network info."); 464 Log.v(LOG_TAG, "Failed to force fetch networkInfo. " + 518 NetworkInfo networkInfo = mCM.getNetworkInfo(ConnectivityManager.TYPE_MOBILE) [all...] |
/system/connectivity/wificond/tests/ |
offload_scan_utils_test.cpp | 29 using android::hardware::wifi::offload::V1_0::NetworkInfo; 62 dummy_scan_results_[i].networkInfo.ssid.size()); 97 NetworkInfo nwInfo = scanFilter.preferredNetworkInfoList[i];
|
/device/google/wahoo/wifi_offload/ |
offload_utils.cpp | 137 hidlScanResult->networkInfo.ssid = ssid; 138 hidlScanResult->networkInfo.flags = ToHidlSecurityMode(chreScanResult.security_modes_);
|
/frameworks/base/services/core/java/com/android/server/display/ |
WifiDisplayController.java | 31 import android.net.NetworkInfo; 104 private NetworkInfo mNetworkInfo; 816 private void handleConnectionChanged(NetworkInfo networkInfo) { 817 mNetworkInfo = networkInfo; 818 if (mWfdEnabled && networkInfo.isConnected()) { [all...] |
/cts/tests/tests/app.usage/src/android/app/usage/cts/ |
NetworkUsageStatsTest.java | 27 import android.net.NetworkInfo; 156 NetworkInfo networkInfo = mCm.getNetworkInfo(network); 157 if (networkInfo == null) { 160 Log.w(LOG_TAG, "Network: " + networkInfo.toString());
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/ |
WifiAwareDataPathStateManager.java | 32 import android.net.NetworkInfo; 490 NetworkInfo networkInfo = new NetworkInfo(ConnectivityManager.TYPE_NONE, 0, 517 networkInfo, networkCapabilities, linkProperties)) { 523 new NetworkInfo(ConnectivityManager.TYPE_NONE, 0, NETWORK_TAG, ""), 526 nnri.networkAgent.sendNetworkInfo(networkInfo); [all...] |
/packages/apps/Settings/src/com/android/settings/wifi/ |
WifiStatusTest.java | 24 import android.net.NetworkInfo; 95 (NetworkInfo) intent.getParcelableExtra(WifiManager.EXTRA_NETWORK_INFO)); 294 private void handleNetworkStateChanged(NetworkInfo networkInfo) { 298 networkInfo.getDetailedState(),
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
Vpn.java | 54 import android.net.NetworkInfo; 55 import android.net.NetworkInfo.DetailedState; 133 private NetworkInfo mNetworkInfo; 247 mNetworkInfo = new NetworkInfo(ConnectivityManager.TYPE_VPN, 0, NETWORKTYPE, ""); 257 * Set if this object is responsible for watching for {@link NetworkInfo} 724 public NetworkInfo getNetworkInfo() { [all...] |
NetworkNotificationManager.java | 136 extraInfo = nai.networkInfo.getExtraInfo(); 183 // TODO: Change this to pull from NetworkInfo once a printable
|
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/wifi/ |
WifiP2pManagerFacade.java | 24 import android.net.NetworkInfo; 262 NetworkInfo networkInfo = intent 265 if (networkInfo.isConnected()) {
|
/packages/apps/Settings/src/com/android/settings/wifi/p2p/ |
WifiP2pSettings.java | 28 import android.net.NetworkInfo; 121 NetworkInfo networkInfo = (NetworkInfo) intent.getParcelableExtra( 125 if (networkInfo.isConnected()) {
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/ |
AccessPoint.java | 28 import android.net.NetworkInfo; 29 import android.net.NetworkInfo.DetailedState; 30 import android.net.NetworkInfo.State; 192 private NetworkInfo mNetworkInfo; 679 public NetworkInfo getNetworkInfo() { 751 Log.w(TAG, "NetworkInfo is null, cannot return detailed state"); [all...] |
WifiTracker.java | 26 import android.net.NetworkInfo; 27 import android.net.NetworkInfo.DetailedState; 141 private NetworkInfo mLastNetworkInfo; 676 private void updateNetworkInfo(NetworkInfo networkInfo) { 683 if (networkInfo != null) { 684 mLastNetworkInfo = networkInfo; 793 NetworkInfo info = intent.getParcelableExtra(WifiManager.EXTRA_NETWORK_INFO); 804 NetworkInfo info = 815 // We don't send a NetworkInfo object along with this message, because even if w [all...] |