Home
last modified time | relevance | path

Searched refs:DetailedState (Results 1 – 25 of 31) sorted by relevance

12

/frameworks/base/core/java/android/net/
DNetworkInfo.java60 public enum DetailedState { enum in NetworkInfo
94 private static final EnumMap<DetailedState, State> stateMap =
95 new EnumMap<DetailedState, State>(DetailedState.class);
98 stateMap.put(DetailedState.IDLE, State.DISCONNECTED); in stateMap.put()
99 stateMap.put(DetailedState.SCANNING, State.DISCONNECTED); in stateMap.put()
100 stateMap.put(DetailedState.CONNECTING, State.CONNECTING); in stateMap.put()
101 stateMap.put(DetailedState.AUTHENTICATING, State.CONNECTING); in stateMap.put()
102 stateMap.put(DetailedState.OBTAINING_IPADDR, State.CONNECTING); in stateMap.put()
103 stateMap.put(DetailedState.VERIFYING_POOR_LINK, State.CONNECTING); in stateMap.put()
104 stateMap.put(DetailedState.CAPTIVE_PORTAL_CHECK, State.CONNECTING); in stateMap.put()
[all …]
/frameworks/base/wifi/java/android/net/wifi/
DWifiInfo.java21 import android.net.NetworkInfo.DetailedState;
43 private static final EnumMap<SupplicantState, DetailedState> stateMap =
44 new EnumMap<SupplicantState, DetailedState>(SupplicantState.class);
55 stateMap.put(SupplicantState.DISCONNECTED, DetailedState.DISCONNECTED); in stateMap.put()
56 stateMap.put(SupplicantState.INTERFACE_DISABLED, DetailedState.DISCONNECTED); in stateMap.put()
57 stateMap.put(SupplicantState.INACTIVE, DetailedState.IDLE); in stateMap.put()
58 stateMap.put(SupplicantState.SCANNING, DetailedState.SCANNING); in stateMap.put()
59 stateMap.put(SupplicantState.AUTHENTICATING, DetailedState.CONNECTING); in stateMap.put()
60 stateMap.put(SupplicantState.ASSOCIATING, DetailedState.CONNECTING); in stateMap.put()
61 stateMap.put(SupplicantState.ASSOCIATED, DetailedState.CONNECTING); in stateMap.put()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiNotificationControllerTest.java114 NetworkInfo.DetailedState.DISCONNECTED); in verifyNotificationDisplayed()
125 NetworkInfo.DetailedState.SCANNING); in verifyNotificationDisplayed()
127 NetworkInfo.DetailedState.DISCONNECTED); in verifyNotificationDisplayed()
138 NetworkInfo.DetailedState.CONNECTED); in verifyNotificationDisplayed()
150 NetworkInfo.DetailedState.DISCONNECTED); in verifyNotificationNotDisplayed_userHasDisallowConfigWifiRestriction()
DTestUtil.java36 Context context, NetworkInfo.DetailedState detailedState) { in sendNetworkStateChanged()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiNotificationController.java101 private NetworkInfo.DetailedState mDetailedState;
117 mDetailedState = NetworkInfo.DetailedState.IDLE; in WifiNotificationController()
137 NetworkInfo.DetailedState detailedState = in WifiNotificationController()
139 if (detailedState != NetworkInfo.DetailedState.SCANNING in WifiNotificationController()
DWifiTrafficPoller.java19 import static android.net.NetworkInfo.DetailedState.CONNECTED;
DWifiStateMachine.java51 import android.net.NetworkInfo.DetailedState;
2588 NetworkInfo.DetailedState detailedState = info.getDetailedState(); in getLogRecString()
2973 if (getNetworkDetailedState() == DetailedState.CONNECTED) { in updateLinkProperties()
3073 if (mNetworkInfo.getDetailedState() == DetailedState.VERIFYING_POOR_LINK || in sendNetworkStateChangeBroadcast()
3074 mNetworkInfo.getDetailedState() == DetailedState.CONNECTED) { in sendNetworkStateChangeBroadcast()
3127 private boolean setNetworkDetailedState(NetworkInfo.DetailedState state) { in setNetworkDetailedState()
3176 private DetailedState getNetworkDetailedState() { in getNetworkDetailedState()
3259 setNetworkDetailedState(DetailedState.DISCONNECTED); in handleNetworkDisconnect()
4195 setNetworkDetailedState(DetailedState.DISCONNECTED); in enter()
4721 setNetworkDetailedState(DetailedState.DISCONNECTED); in enter()
[all …]
DWifiController.java371 NetworkInfo.DetailedState.CONNECTED) { in processMessage()
/frameworks/base/services/core/java/com/android/server/connectivity/
DVpn.java55 import android.net.NetworkInfo.DetailedState;
256 protected void updateState(DetailedState detailedState, String reason) { in updateState()
549 updateState(DetailedState.IDLE, "prepare"); in prepareInternal()
678 mNetworkInfo.setDetailedState(DetailedState.CONNECTING, null, null); in agentConnect()
701 updateState(DetailedState.CONNECTED, "agentConnect"); in agentConnect()
717 networkInfo.setDetailedState(DetailedState.DISCONNECTED, null, null); in agentDisconnect()
725 updateState(DetailedState.DISCONNECTED, "agentDisconnect"); in agentDisconnect()
784 updateState(DetailedState.CONNECTING, "establish"); in establish()
1278 private void updateAlwaysOnNotification(DetailedState networkState) { in updateAlwaysOnNotification()
1279 final boolean visible = (mAlwaysOn && networkState != DetailedState.CONNECTED); in updateAlwaysOnNotification()
[all …]
DTethering.java755 networkInfo.getDetailedState() == NetworkInfo.DetailedState.FAILED) { in handleConnectivityAction()
/frameworks/opt/net/ethernet/java/com/android/server/ethernet/
DEthernetNetworkFactory.java33 import android.net.NetworkInfo.DetailedState;
152 mNetworkInfo.setDetailedState(DetailedState.DISCONNECTED, null, mHwAddr); in stopIpManager()
292 mNetworkInfo.setDetailedState(DetailedState.CONNECTED, null, mHwAddr); in onIpLayerStarted()
346 mNetworkInfo.setDetailedState(DetailedState.OBTAINING_IPADDR, null, mHwAddr); in startIpManager()
/frameworks/base/tests/net/java/com/android/server/connectivity/
DVpnTest.java32 import android.net.NetworkInfo.DetailedState;
257 vpn.updateState(DetailedState.DISCONNECTED, TAG); in testNotificationShownForAlwaysOnApp()
265 vpn.updateState(DetailedState.CONNECTED, TAG); in testNotificationShownForAlwaysOnApp()
269 vpn.updateState(DetailedState.DISCONNECTED, TAG); in testNotificationShownForAlwaysOnApp()
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DConnOnActivityStartTest.java395 final NetworkInfo.DetailedState detailedState = parts[1].equals("null") in checkForAvailability()
396 ? null : NetworkInfo.DetailedState.valueOf(parts[1]); in checkForAvailability()
403 final NetworkInfo.DetailedState expectedDetailedState = NetworkInfo.DetailedState.CONNECTED; in checkForAvailability()
DNetworkStatsServiceTest.java71 import android.net.NetworkInfo.DetailedState;
1146 info.setDetailedState(DetailedState.CONNECTED, null, null); in buildWifiState()
1163 info.setDetailedState(DetailedState.CONNECTED, null, null); in buildMobile3gState()
1173 info.setDetailedState(DetailedState.CONNECTED, null, null); in buildMobile4gState()
/frameworks/base/services/core/java/com/android/server/net/
DLockdownVpnTracker.java36 import android.net.NetworkInfo.DetailedState;
154 if (vpnInfo.getDetailedState() == DetailedState.FAILED) { in handleStateChangedLocked()
319 if (info.getDetailedState() == DetailedState.FAILED) { in onVpnStateChanged()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DAccessPoint.java28 import android.net.NetworkInfo.DetailedState;
600 public DetailedState getDetailedState() { in getDetailedState()
1064 public static String getSummary(Context context, String ssid, DetailedState state, in getSummary()
1066 if (state == DetailedState.CONNECTED && ssid == null) { in getSummary()
1088 if (state == DetailedState.CONNECTED) { in getSummary()
1120 public static String getSummary(Context context, DetailedState state, boolean isEphemeral) { in getSummary()
1124 public static String getSummary(Context context, DetailedState state, boolean isEphemeral, in getSummary()
DWifiTracker.java28 import android.net.NetworkInfo.DetailedState;
641 networkInfo.getDetailedState() == DetailedState.OBTAINING_IPADDR) { in updateNetworkInfo()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/
DAccessPointTest.java452 networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTING, "", "");
462 newInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTED, "", "");
478 networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTING, "", "");
DWifiTrackerTest.java338 networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTED, "connected", "test"); in createTrackerWithScanResultsAndAccessPoint1Connected()
695 networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTED, "connected", "test"); in forceUpdateShouldSynchronouslyFetchLatestInformation()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DDataConnection.java1246 final NetworkInfo.DetailedState oldState = mNetworkInfo.getDetailedState(); in updateNetworkInfoSuspendState()
1256 mNetworkInfo.setDetailedState(NetworkInfo.DetailedState.SUSPENDED, null, in updateNetworkInfoSuspendState()
1263 mNetworkInfo.setDetailedState(NetworkInfo.DetailedState.SUSPENDED, null, in updateNetworkInfoSuspendState()
1265 return (oldState != NetworkInfo.DetailedState.SUSPENDED); in updateNetworkInfoSuspendState()
1268 mNetworkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTED, null, in updateNetworkInfoSuspendState()
1582 mNetworkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTED, in enter()
1618 mNetworkInfo.setDetailedState(NetworkInfo.DetailedState.DISCONNECTED, in exit()
/frameworks/base/services/core/java/com/android/server/
DConnectivityService.java61 import android.net.NetworkInfo.DetailedState;
553 private void maybeLogBroadcast(NetworkAgentInfo nai, DetailedState state, int type, in maybeLogBroadcast()
580 maybeLogBroadcast(nai, DetailedState.CONNECTED, type, isDefaultNetwork); in add()
581 sendLegacyNetworkBroadcast(nai, DetailedState.CONNECTED, type); in add()
599 final DetailedState state = DetailedState.DISCONNECTED; in remove()
627 final DetailedState state = nai.networkInfo.getDetailedState(); in update()
923 info.setDetailedState(NetworkInfo.DetailedState.DISCONNECTED, null, null); in getFilteredNetworkState()
1012 if (ni.getDetailedState() == DetailedState.BLOCKED && mBlockedAppUids.add(uid)) { in maybeLogBlockedNetworkInfo()
1037 state.networkInfo.setDetailedState(DetailedState.BLOCKED, null, null); in filterNetworkStateForUid()
1393 DetailedState netState; in requestRouteToHostAddress()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/
DWifiAwareDataPathStateManager.java743 mNetworkInfo.setDetailedState(NetworkInfo.DetailedState.DISCONNECTED, null, ""); in reconfigureAgentAsDisconnected()
979 networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTED, null, null); in configureAgentProperties()
/frameworks/base/tests/net/java/com/android/server/
DConnectivityServiceTest.java59 import android.net.NetworkInfo.DetailedState;
385 mNetworkInfo.setDetailedState(DetailedState.CONNECTED, null, null); in connectWithoutInternet()
395 mNetworkInfo.getDetailedState(), DetailedState.IDLE); in connect()
436 mNetworkInfo.setDetailedState(DetailedState.SUSPENDED, null, null); in suspend()
441 mNetworkInfo.setDetailedState(DetailedState.DISCONNECTED, null, null); in disconnect()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DNetworkPolicyManagerServiceTest.java98 import android.net.NetworkInfo.DetailedState;
1484 info.setDetailedState(DetailedState.CONNECTED, null, null); in buildWifi()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/p2p/
DWifiP2pServiceImpl.java2032 mNetworkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTED, null, null); in enter()
2289 mNetworkInfo.setDetailedState(NetworkInfo.DetailedState.DISCONNECTED, null, null); in exit()
2935 mNetworkInfo.setDetailedState(NetworkInfo.DetailedState.FAILED, null, null); in handleGroupCreationFailure()

12