/frameworks/base/core/java/android/net/ |
D | NetworkInfo.java | 60 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/ |
D | WifiInfo.java | 21 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/ |
D | WifiNotificationControllerTest.java | 114 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()
|
D | TestUtil.java | 36 Context context, NetworkInfo.DetailedState detailedState) { in sendNetworkStateChanged()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiNotificationController.java | 101 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()
|
D | WifiTrafficPoller.java | 19 import static android.net.NetworkInfo.DetailedState.CONNECTED;
|
D | WifiStateMachine.java | 51 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 …]
|
D | WifiController.java | 371 NetworkInfo.DetailedState.CONNECTED) { in processMessage()
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | Vpn.java | 55 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 …]
|
D | Tethering.java | 755 networkInfo.getDetailedState() == NetworkInfo.DetailedState.FAILED) { in handleConnectivityAction()
|
/frameworks/opt/net/ethernet/java/com/android/server/ethernet/ |
D | EthernetNetworkFactory.java | 33 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/ |
D | VpnTest.java | 32 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/ |
D | ConnOnActivityStartTest.java | 395 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()
|
D | NetworkStatsServiceTest.java | 71 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/ |
D | LockdownVpnTracker.java | 36 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/ |
D | AccessPoint.java | 28 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()
|
D | WifiTracker.java | 28 import android.net.NetworkInfo.DetailedState; 641 networkInfo.getDetailedState() == DetailedState.OBTAINING_IPADDR) { in updateNetworkInfo()
|
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/ |
D | AccessPointTest.java | 452 networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTING, "", ""); 462 newInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTED, "", ""); 478 networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTING, "", "");
|
D | WifiTrackerTest.java | 338 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/ |
D | DataConnection.java | 1246 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/ |
D | ConnectivityService.java | 61 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/ |
D | WifiAwareDataPathStateManager.java | 743 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/ |
D | ConnectivityServiceTest.java | 59 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/ |
D | NetworkPolicyManagerServiceTest.java | 98 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/ |
D | WifiP2pServiceImpl.java | 2032 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()
|