/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());
|
ConnectivityManagerTest.java | 28 import android.net.NetworkInfo.DetailedState; 161 DetailedState ds = ni.getDetailedState(); 163 DetailedState.FAILED.ordinal() >= ds.ordinal() 164 && ds.ordinal() >= DetailedState.IDLE.ordinal());
|
/frameworks/base/core/java/android/net/ |
NetworkInfo.java | 35 * use, rather than {@link android.net.NetworkInfo.DetailedState DetailedState}. 60 public enum DetailedState { 92 * of <code>DetailedState</code>. 94 private static final EnumMap<DetailedState, State> stateMap = 95 new EnumMap<DetailedState, State>(DetailedState.class); 98 stateMap.put(DetailedState.IDLE, State.DISCONNECTED); 99 stateMap.put(DetailedState.SCANNING, State.DISCONNECTED); 100 stateMap.put(DetailedState.CONNECTING, State.CONNECTING) [all...] |
DummyDataStateTracker.java | 114 setDetailedState(NetworkInfo.DetailedState.DISCONNECTING, "disabled", null); 115 setDetailedState(NetworkInfo.DetailedState.DISCONNECTED, "disabled", null); 133 * @param state the new {@code DetailedState} 138 private void setDetailedState(NetworkInfo.DetailedState state, String reason, 160 setDetailedState(NetworkInfo.DetailedState.CONNECTING, "enabled", null); 161 setDetailedState(NetworkInfo.DetailedState.CONNECTED, "enabled", null);
|
EthernetDataTracker.java | 20 import android.net.NetworkInfo.DetailedState; 139 mNetworkInfo.setDetailedState(DetailedState.DISCONNECTED, null, mHwAddr); 176 mNetworkInfo.setDetailedState(DetailedState.CONNECTED, null, mHwAddr);
|
MobileDataStateTracker.java | 23 import android.net.NetworkInfo.DetailedState; 233 setDetailedState(DetailedState.SUSPENDED, "", apnName); 286 setDetailedState(DetailedState.DISCONNECTED, reason, apnName); 295 setDetailedState(DetailedState.CONNECTING, reason, apnName); 298 setDetailedState(DetailedState.SUSPENDED, reason, apnName); 302 setDetailedState(DetailedState.CONNECTED, reason, apnName); 365 setDetailedState(DetailedState.FAILED, reason, apnName); 480 * @param state the new {@code DetailedState} 485 private void setDetailedState(NetworkInfo.DetailedState state, String reason, 497 if (wasConnecting && state == NetworkInfo.DetailedState.CONNECTED && reason == nul [all...] |
/packages/apps/Settings/src/com/android/settings/wifi/ |
Summary.java | 22 import android.net.NetworkInfo.DetailedState; 25 static String get(Context context, String ssid, DetailedState state) { 36 static String get(Context context, DetailedState state) {
|
WifiSettingsForSetupWizardXL.java | 23 import android.net.NetworkInfo.DetailedState; 58 private static final EnumMap<DetailedState, DetailedState> sNetworkStateMap = 59 new EnumMap<DetailedState, DetailedState>(DetailedState.class); 62 sNetworkStateMap.put(DetailedState.IDLE, DetailedState.DISCONNECTED); 63 sNetworkStateMap.put(DetailedState.SCANNING, DetailedState.SCANNING) [all...] |
WpsDialog.java | 24 import android.net.NetworkInfo.DetailedState; 240 final NetworkInfo.DetailedState state = info.getDetailedState(); 241 if (state == DetailedState.CONNECTED &&
|
AccessPoint.java | 22 import android.net.NetworkInfo.DetailedState; 73 private DetailedState mState; 171 mState = DetailedState.valueOf(savedState.getString(KEY_DETAILEDSTATE)); 285 void update(WifiInfo info, DetailedState state) { 320 DetailedState getState() {
|
WifiEnabler.java | 162 private void handleStateChanged(@SuppressWarnings("unused") NetworkInfo.DetailedState state) {
|
/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); 46 stateMap.put(SupplicantState.DISCONNECTED, DetailedState.DISCONNECTED); 47 stateMap.put(SupplicantState.INTERFACE_DISABLED, DetailedState.DISCONNECTED); 48 stateMap.put(SupplicantState.INACTIVE, DetailedState.IDLE); 49 stateMap.put(SupplicantState.SCANNING, DetailedState.SCANNING); 50 stateMap.put(SupplicantState.AUTHENTICATING, DetailedState.CONNECTING); 51 stateMap.put(SupplicantState.ASSOCIATING, DetailedState.CONNECTING) [all...] |
WifiMonitor.java | 698 handleNetworkStateChange(NetworkInfo.DetailedState.DISCONNECTED, remainder); 702 handleNetworkStateChange(NetworkInfo.DetailedState.CONNECTED, remainder); [all...] |
WifiStateTracker.java | 28 import android.net.NetworkInfo.DetailedState; 286 mNetworkInfo.getDetailedState() != DetailedState.CAPTIVE_PORTAL_CHECK) {
|
WifiStateMachine.java | 52 import android.net.NetworkInfo.DetailedState; [all...] |
/external/robolectric/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...] |
/external/robolectric/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));
|
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/ |
FakeSystemFacade.java | 7 import android.net.NetworkInfo.DetailedState; 50 info.setDetailedState(DetailedState.CONNECTED, null, null);
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
ConnectivityServiceTest.java | 40 import android.net.NetworkInfo.DetailedState; 155 mMobile.info.setDetailedState(DetailedState.CONNECTED, null, null); 176 mMobile.info.setDetailedState(DetailedState.CONNECTED, null, null); 189 mWifi.info.setDetailedState(DetailedState.CONNECTED, null, null); 211 mMobile.info.setDetailedState(DetailedState.DISCONNECTED, null, null);
|
/frameworks/base/services/java/com/android/server/connectivity/ |
Vpn.java | 49 import android.net.NetworkInfo.DetailedState; 200 private void updateState(DetailedState detailedState, String reason) { 201 if (LOGD) Log.d(TAG, "setting state=" + detailedState + ", reason=" + reason); 202 mNetworkInfo.setDetailedState(detailedState, reason, null); 280 updateState(DetailedState.IDLE, "prepare"); 359 updateState(DetailedState.CONNECTING, "establish"); 403 updateState(DetailedState.FAILED, "establish"); 434 updateState(DetailedState.AUTHENTICATING, "establish"); 582 updateState(DetailedState.DISCONNECTED, "interfaceRemoved") [all...] |
/frameworks/base/core/java/android/bluetooth/ |
BluetoothTetheringDataTracker.java | 29 import android.net.NetworkInfo.DetailedState; 336 mNetworkInfo.setDetailedState(DetailedState.CONNECTED, null, null); 360 mNetworkInfo.setDetailedState(DetailedState.DISCONNECTED, null, null);
|
/frameworks/base/services/java/com/android/server/net/ |
LockdownVpnTracker.java | 31 import android.net.NetworkInfo.DetailedState; 140 if (vpnInfo.getDetailedState() == DetailedState.FAILED) { 289 if (info.getDetailedState() == DetailedState.FAILED) {
|
/frameworks/base/services/java/com/android/server/wifi/ |
WifiTrafficPoller.java | 24 import static android.net.NetworkInfo.DetailedState.CONNECTED;
|