/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/ |
ConnectivityListener.java | 28 import android.net.NetworkInfo; 202 NetworkInfo networkInfo = mConnectivityManager.getNetworkInfo(network); 203 if (networkInfo != null && networkInfo.getType() == ConnectivityManager.TYPE_ETHERNET) { 269 NetworkInfo networkInfo = mConnectivityManager.getActiveNetworkInfo(); 270 if (networkInfo == null) { 273 switch (networkInfo.getType()) {
|
/developers/build/prebuilts/gradle/NetworkConnect/Application/src/main/java/com/example/android/networkconnect/ |
NetworkFragment.java | 21 import android.net.NetworkInfo; 147 NetworkInfo networkInfo = mCallback.getActiveNetworkInfo(); 148 if (networkInfo == null || !networkInfo.isConnected() || 149 (networkInfo.getType() != ConnectivityManager.TYPE_WIFI 150 && networkInfo.getType() != ConnectivityManager.TYPE_MOBILE)) {
|
/developers/samples/android/connectivity/network/NetworkConnect/Application/src/main/java/com/example/android/networkconnect/ |
NetworkFragment.java | 21 import android.net.NetworkInfo; 147 NetworkInfo networkInfo = mCallback.getActiveNetworkInfo(); 148 if (networkInfo == null || !networkInfo.isConnected() || 149 (networkInfo.getType() != ConnectivityManager.TYPE_WIFI 150 && networkInfo.getType() != ConnectivityManager.TYPE_MOBILE)) {
|
/development/samples/browseable/NetworkConnect/src/com.example.android.networkconnect/ |
NetworkFragment.java | 21 import android.net.NetworkInfo; 147 NetworkInfo networkInfo = mCallback.getActiveNetworkInfo(); 148 if (networkInfo == null || !networkInfo.isConnected() || 149 (networkInfo.getType() != ConnectivityManager.TYPE_WIFI 150 && networkInfo.getType() != ConnectivityManager.TYPE_MOBILE)) {
|
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
ConnectivityManagerTest.java | 5 import android.net.NetworkInfo; 48 NetworkInfo networkInfo = ShadowNetworkInfo.newInstance(NetworkInfo.DetailedState.CONNECTING); 49 shadowConnectivityManager.setNetworkInfo(ConnectivityManager.TYPE_WIFI, networkInfo); 50 NetworkInfo actual = connectivityManager.getNetworkInfo(ConnectivityManager.TYPE_WIFI); 51 assertThat(actual, sameInstance(networkInfo)); 52 assertThat(actual.getDetailedState(), is(NetworkInfo.DetailedState.CONNECTING)); 87 NetworkInfo info = connectivityManager.getActiveNetworkInfo(); 97 NetworkInfo[] infos = connectivityManager.getAllNetworkInfo() [all...] |
/frameworks/base/packages/Osu2/tests/src/com/android/osu/ |
NetworkConnectionTest.java | 31 import android.net.NetworkInfo; 117 NetworkInfo networkInfo = new NetworkInfo(ConnectivityManager.TYPE_WIFI, 0, "WIFI", ""); 118 networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTED, "", ""); 119 intent.putExtra(WifiManager.EXTRA_NETWORK_INFO, networkInfo);
|
/packages/apps/Email/provider_src/com/android/email/provider/ |
RefreshStatusMonitor.java | 10 import android.net.NetworkInfo; 88 final NetworkInfo networkInfo = connectivityManager.getActiveNetworkInfo(); 89 return (networkInfo != null) && networkInfo.isConnected();
|
/packages/apps/Settings/src/com/android/settings/wifi/ |
WifiDialogActivity.java | 22 import android.net.NetworkInfo; 76 accessPoint.getNetworkInfo().getState() != NetworkInfo.State.DISCONNECTED) { 113 NetworkInfo networkInfo = accessPoint.getNetworkInfo(); 114 if (networkInfo == null || !networkInfo.isConnected()) {
|
/cts/hostsidetests/net/app2/src/com/android/cts/net/hostside/app2/ |
MyBroadcastReceiver.java | 44 import android.net.NetworkInfo; 139 * <li>{@code NetinfoState}: enum value of {@link NetworkInfo.State}. 140 * <li>{@code NetinfoDetailedState}: enum value of {@link NetworkInfo.DetailedState}. 145 * <li>{@code Netinfo}: string representation of the {@link NetworkInfo}. 160 final NetworkInfo networkInfo = cm.getActiveNetworkInfo(); 163 + "\n\tactiveNetworkInfo: " + networkInfo + "\n\tURL: " + address); 183 if (networkInfo != null) { 184 state = networkInfo.getState().name(); 185 detailedState = networkInfo.getDetailedState().name() [all...] |
/frameworks/base/services/core/java/com/android/server/connectivity/ |
NetworkAgentInfo.java | 25 import android.net.NetworkInfo; 121 public NetworkInfo networkInfo; 256 public NetworkAgentInfo(Messenger messenger, AsyncChannel ac, Network net, NetworkInfo info, 262 networkInfo = info; 468 return new NetworkState(new NetworkInfo(networkInfo), 591 return "NetworkAgentInfo{ ni{" + networkInfo + "} " + 606 return "NetworkAgentInfo [" + networkInfo.getTypeName() + " (" + 607 networkInfo.getSubtypeName() + ") - " + Objects.toString(network) + "]" [all...] |
Nat464Xlat.java | 84 final int netType = nai.networkInfo.getType(); 85 final boolean supported = ArrayUtils.contains(NETWORK_TYPES, nai.networkInfo.getType()); 88 final boolean connected = nai.networkInfo.isConnected(); 280 if (mNetwork.networkInfo.getType() != ConnectivityManager.TYPE_WIFI) {
|
/system/connectivity/wificond/tests/ |
offload_test_utils.cpp | 45 scanResult.networkInfo.ssid = ssid; 46 scanResult.networkInfo.flags = kNetworkFlags;
|
/cts/tests/JobScheduler/src/android/jobscheduler/cts/ |
ConnectivityConstraintTest.java | 27 import android.net.NetworkInfo; 84 NetworkInfo.State expectedState = mInitialWiFiState ? 85 NetworkInfo.State.CONNECTED : NetworkInfo.State.DISCONNECTED; 272 NetworkInfo.State.CONNECTED); 297 NetworkInfo.State.CONNECTED); 300 NetworkInfo.State.DISCONNECTED); 323 private final NetworkInfo.State mExpectedState; 325 ConnectivityActionReceiver(int networkType, NetworkInfo.State expectedState) { 345 NetworkInfo[] allNetworkInfo = mCm.getAllNetworkInfo() [all...] |
/development/samples/training/network-usage/src/com/example/android/networkusage/ |
NetworkActivity.java | 24 import android.net.NetworkInfo; 132 NetworkInfo activeInfo = connMgr.getActiveNetworkInfo(); 292 NetworkInfo networkInfo = connMgr.getActiveNetworkInfo(); 298 if (WIFI.equals(sPref) && networkInfo != null 299 && networkInfo.getType() == ConnectivityManager.TYPE_WIFI) { 308 } else if (ANY.equals(sPref) && networkInfo != null) {
|
/frameworks/base/samples/training/network-usage/src/com/example/android/networkusage/ |
NetworkActivity.java | 24 import android.net.NetworkInfo; 132 NetworkInfo activeInfo = connMgr.getActiveNetworkInfo(); 292 NetworkInfo networkInfo = connMgr.getActiveNetworkInfo(); 298 if (WIFI.equals(sPref) && networkInfo != null 299 && networkInfo.getType() == ConnectivityManager.TYPE_WIFI) { 308 } else if (ANY.equals(sPref) && networkInfo != null) {
|
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/ |
WifiTrackerTest.java | 41 import android.net.NetworkInfo; 355 NetworkInfo networkInfo = new NetworkInfo( 357 networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTED, "connected", "test"); 360 intent.putExtra(WifiManager.EXTRA_NETWORK_INFO, networkInfo); 385 NetworkInfo networkInfo = new NetworkInfo( [all...] |
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/common/ |
UtilsTest.java | 41 import android.net.NetworkInfo; 194 final NetworkInfo networkInfo = 195 new NetworkInfo(ConnectivityManager.TYPE_WIFI, 0, null, null); 196 when(mockConnectivityManager.getActiveNetworkInfo()).thenReturn(networkInfo); 198 assertEquals(mUtils.getActiveNetworkInfo(mockContext), networkInfo); 410 NetworkInfo networkInfo = new NetworkInfo(type, 0, null, null); 411 networkInfo.setDetailedState [all...] |
/hardware/interfaces/wifi/offload/1.0/ |
types.hal | 37 struct NetworkInfo { 73 NetworkInfo networkInfo; 112 vec<NetworkInfo> preferredNetworkInfoList;
|
/system/connectivity/wificond/scanning/offload/ |
offload_scan_utils.cpp | 30 using android::hardware::wifi::offload::V1_0::NetworkInfo; 43 single_scan_result.ssid.assign(scan_result[i].networkInfo.ssid.begin(), 44 scan_result[i].networkInfo.ssid.end()); 76 vector<NetworkInfo> nw_info_list; 81 NetworkInfo nw_info;
|
/developers/build/prebuilts/gradle/DisplayingBitmaps/Application/src/main/java/com/example/android/displayingbitmaps/util/ |
ImageFetcher.java | 22 import android.net.NetworkInfo; 174 final NetworkInfo networkInfo = cm.getActiveNetworkInfo(); 175 if (networkInfo == null || !networkInfo.isConnectedOrConnecting()) {
|
/developers/samples/android/ui/graphics/DisplayingBitmaps/Application/src/main/java/com/example/android/displayingbitmaps/util/ |
ImageFetcher.java | 22 import android.net.NetworkInfo; 174 final NetworkInfo networkInfo = cm.getActiveNetworkInfo(); 175 if (networkInfo == null || !networkInfo.isConnectedOrConnecting()) {
|
/development/samples/browseable/DisplayingBitmaps/src/com.example.android.displayingbitmaps/util/ |
ImageFetcher.java | 22 import android.net.NetworkInfo; 174 final NetworkInfo networkInfo = cm.getActiveNetworkInfo(); 175 if (networkInfo == null || !networkInfo.isConnectedOrConnecting()) {
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
NetworkControllerWifiTest.java | 5 import android.net.NetworkInfo; 142 NetworkInfo networkInfo = Mockito.mock(NetworkInfo.class); 143 Mockito.when(networkInfo.isConnected()).thenReturn(connected); 148 i.putExtra(WifiManager.EXTRA_NETWORK_INFO, networkInfo);
|
/packages/apps/Dialer/java/com/android/incallui/calllocation/impl/ |
LocationHelper.java | 22 import android.net.NetworkInfo; 246 NetworkInfo networkInfo = connectivityManager.getActiveNetworkInfo(); 247 return networkInfo != null && networkInfo.isConnectedOrConnecting();
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/google/ |
GoogleSuggestClient.java | 22 import android.net.NetworkInfo; 148 NetworkInfo networkInfo = getActiveNetworkInfo(); 149 return networkInfo != null && networkInfo.isConnected(); 152 private NetworkInfo getActiveNetworkInfo() {
|