/cts/tests/tests/net/src/android/net/cts/ |
NetworkInfo_DetailedStateTest.java | 20 import android.net.NetworkInfo.DetailedState; 26 assertEquals(DetailedState.AUTHENTICATING, DetailedState.valueOf("AUTHENTICATING")); 27 assertEquals(DetailedState.CONNECTED, DetailedState.valueOf("CONNECTED")); 28 assertEquals(DetailedState.CONNECTING, DetailedState.valueOf("CONNECTING")); 29 assertEquals(DetailedState.DISCONNECTED, DetailedState.valueOf("DISCONNECTED")); 30 assertEquals(DetailedState.DISCONNECTING, DetailedState.valueOf("DISCONNECTING")) [all...] |
NetworkInfoTest.java | 23 import android.net.NetworkInfo.DetailedState; 64 assertTrue(DetailedState.SCANNING == netInfo.getDetailedState() 65 || DetailedState.CONNECTING == netInfo.getDetailedState() 66 || DetailedState.AUTHENTICATING == netInfo.getDetailedState() 67 || DetailedState.CONNECTED == netInfo.getDetailedState());
|
/frameworks/base/core/java/android/net/ |
NetworkInfo.java | 35 * use, rather than {@link android.net.NetworkInfo.DetailedState DetailedState}. 64 public enum DetailedState { 96 * of <code>DetailedState</code>. 98 private static final EnumMap<DetailedState, State> stateMap = 99 new EnumMap<DetailedState, State>(DetailedState.class); 102 stateMap.put(DetailedState.IDLE, State.DISCONNECTED); 103 stateMap.put(DetailedState.SCANNING, State.DISCONNECTED); 104 stateMap.put(DetailedState.CONNECTING, State.CONNECTING) [all...] |
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
ShadowNetworkInfoTest.java | 18 shadowOf(networkInfo).setDetailedState(NetworkInfo.DetailedState.SCANNING); 19 assertThat(networkInfo.getDetailedState()).isEqualTo(NetworkInfo.DetailedState.SCANNING);
|
ShadowConnectivityManagerTest.java | 60 assertThat(wifi.getDetailedState()).isEqualTo(NetworkInfo.DetailedState.DISCONNECTED); 63 assertThat(mobile.getDetailedState()).isEqualTo(NetworkInfo.DetailedState.CONNECTED); 78 NetworkInfo vpnNetworkInfo = ShadowNetworkInfo.newInstance(NetworkInfo.DetailedState.CONNECTED, 193 NetworkInfo vpnNetworkInfo = ShadowNetworkInfo.newInstance(NetworkInfo.DetailedState.CONNECTED,
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
ShadowNetworkInfo.java | 15 private NetworkInfo.DetailedState detailedState; 20 public static NetworkInfo newInstance(NetworkInfo.DetailedState detailedState, int type, int subType, boolean isAvailable, boolean isConnected) { 25 info.setDetailedState(detailedState); 48 public NetworkInfo.DetailedState getDetailedState() { 49 return detailedState; 98 public void setDetailedState(NetworkInfo.DetailedState detailedState) { 99 this.detailedState = detailedState [all...] |
ShadowConnectivityManager.java | 41 NetworkInfo wifi = ShadowNetworkInfo.newInstance(NetworkInfo.DetailedState.DISCONNECTED, 45 NetworkInfo mobile = ShadowNetworkInfo.newInstance(NetworkInfo.DetailedState.CONNECTED,
|
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowNetworkInfo.java | 21 private NetworkInfo.DetailedState detailedState; 27 public static NetworkInfo newInstance(NetworkInfo.DetailedState detailedState) { 28 return newInstance(detailedState, ConnectivityManager.TYPE_MOBILE, 0, true, true); 31 public static NetworkInfo newInstance(NetworkInfo.DetailedState detailedState, int type, int subType, 38 info.setDetailedState(detailedState); 61 public NetworkInfo.DetailedState getDetailedState() { 62 return detailedState; [all...] |
/frameworks/base/wifi/java/android/net/wifi/ |
WifiInfo.java | 21 import android.net.NetworkInfo.DetailedState; 40 * of <code>DetailedState</code>. 42 private static final EnumMap<SupplicantState, DetailedState> stateMap = 43 new EnumMap<SupplicantState, DetailedState>(SupplicantState.class); 54 stateMap.put(SupplicantState.DISCONNECTED, DetailedState.DISCONNECTED); 55 stateMap.put(SupplicantState.INTERFACE_DISABLED, DetailedState.DISCONNECTED); 56 stateMap.put(SupplicantState.INACTIVE, DetailedState.IDLE); 57 stateMap.put(SupplicantState.SCANNING, DetailedState.SCANNING); 58 stateMap.put(SupplicantState.AUTHENTICATING, DetailedState.CONNECTING); 59 stateMap.put(SupplicantState.ASSOCIATING, DetailedState.CONNECTING) [all...] |
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
NetworkInfoTest.java | 19 shadowOf(networkInfo).setDetailedState(NetworkInfo.DetailedState.SCANNING); 20 assertThat(networkInfo.getDetailedState(), equalTo(NetworkInfo.DetailedState.SCANNING));
|
ConnectivityManagerTest.java | 48 NetworkInfo networkInfo = ShadowNetworkInfo.newInstance(NetworkInfo.DetailedState.CONNECTING); 52 assertThat(actual.getDetailedState(), is(NetworkInfo.DetailedState.CONNECTING));
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
WifiTrafficPollerTest.java | 98 NetworkInfo.DetailedState.CONNECTED); 108 NetworkInfo.DetailedState networkState) { 109 when(mNetworkInfo.getDetailedState()).thenReturn(NetworkInfo.DetailedState.DISCONNECTED); 128 NetworkInfo.DetailedState.DISCONNECTED); 142 NetworkInfo.DetailedState.CONNECTED); 156 NetworkInfo.DetailedState.CONNECTED); 175 NetworkInfo.DetailedState.CONNECTED);
|
TestUtil.java | 38 Context context, NetworkInfo.DetailedState detailedState) { 41 networkInfo.setDetailedState(detailedState, "", "");
|
/packages/apps/Bluetooth/src/com/android/bluetooth/pan/ |
BluetoothTetheringNetworkFactory.java | 27 import android.net.NetworkInfo.DetailedState; 110 mNetworkInfo.setDetailedState(DetailedState.OBTAINING_IPADDR, null, null); 125 mNetworkInfo.setDetailedState(DetailedState.CONNECTED, null, null); 156 mNetworkInfo.setDetailedState(DetailedState.DISCONNECTED, null, null);
|
/frameworks/base/tests/net/java/com/android/server/connectivity/ |
Nat464XlatTest.java | 96 // requires setting DetailedState in order set State as a side-effect. 97 final NetworkInfo.DetailedState[] supportedDetailedStates = { 98 NetworkInfo.DetailedState.CONNECTED, 99 NetworkInfo.DetailedState.SUSPENDED, 104 for (NetworkInfo.DetailedState state : supportedDetailedStates) {
|
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/ |
FakeSystemFacade.java | 18 import android.net.NetworkInfo.DetailedState; 98 info.setDetailedState(DetailedState.CONNECTED, null, null);
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
MeteredDataRestrictionTest.java | 23 import android.net.NetworkInfo.DetailedState; 125 = (blocked ? DetailedState.BLOCKED : DetailedState.CONNECTED).name();
|
/frameworks/opt/net/ethernet/java/com/android/server/ethernet/ |
EthernetNetworkFactory.java | 30 import android.net.NetworkInfo.DetailedState; 292 mNetworkInfo.setDetailedState(DetailedState.OBTAINING_IPADDR, null, mHwAddress); 310 mNetworkInfo.setDetailedState(DetailedState.CONNECTED, null, mHwAddress); 366 mNetworkInfo.setDetailedState(DetailedState.DISCONNECTED, null, mHwAddress); 391 mNetworkInfo.setDetailedState(DetailedState.IDLE, null, null);
|
/frameworks/opt/net/lowpan/service/java/com/android/server/lowpan/ |
LowpanInterfaceTracker.java | 29 import android.net.NetworkInfo.DetailedState; 358 mNetworkInfo.setDetailedState(DetailedState.CONNECTING, null, mHwAddr); 471 mNetworkInfo.setDetailedState(DetailedState.OBTAINING_IPADDR, null, mHwAddr); 494 mNetworkInfo.setDetailedState(DetailedState.CONNECTED, null, mHwAddr); 584 mNetworkInfo.setDetailedState(DetailedState.DISCONNECTED, null, mHwAddr);
|
/frameworks/base/services/core/java/com/android/server/net/ |
LockdownVpnTracker.java | 36 import android.net.NetworkInfo.DetailedState; 153 if (vpnInfo.getDetailedState() == DetailedState.FAILED) { 256 if (info.getDetailedState() == DetailedState.FAILED) {
|
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/ |
CarWifiManager.java | 137 if (accessPoint.getDetailedState() == NetworkInfo.DetailedState.CONNECTED) {
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
Vpn.java | 58 import android.net.NetworkInfo.DetailedState; 294 protected void updateState(DetailedState detailedState, String reason) { 295 if (LOGD) Log.d(TAG, "setting state=" + detailedState + ", reason=" + reason); 296 mNetworkInfo.setDetailedState(detailedState, reason, null); 300 updateAlwaysOnNotification(detailedState); 747 updateState(DetailedState.IDLE, "prepare"); [all...] |
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/ |
AccessPointTest.java | 477 networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTED, "", ""); 671 networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTING, "", ""); 681 newInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTED, "", ""); 697 networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTING, "", ""); 722 networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTING, "", ""); 748 networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTING, "", ""); 774 networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTED, "", ""); [all...] |
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/ |
AccessPoint.java | 30 import android.net.NetworkInfo.DetailedState; 775 public DetailedState getDetailedState() { 837 } else if (isActive() && config != null && getDetailedState() == DetailedState.CONNECTED [all...] |
/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/ |
AbstractRestrictBackgroundNetworkTestCase.java | 43 import android.net.NetworkInfo.DetailedState; 463 final DetailedState detailedState = parts[1].equals("null") 464 ? null : DetailedState.valueOf(parts[1]); 471 final DetailedState expectedDetailedState; 474 expectedDetailedState = DetailedState.CONNECTED; 477 expectedDetailedState = DetailedState.BLOCKED; 484 if (expectedState != state || expectedDetailedState != detailedState) { 486 expectedState, expectedDetailedState, state, detailedState)); [all...] |