/frameworks/base/core/java/android/net/ |
D | NetworkInfo.java | 87 public enum DetailedState { enum in NetworkInfo 121 private static final EnumMap<DetailedState, State> stateMap = 122 new EnumMap<DetailedState, State>(DetailedState.class); 125 stateMap.put(DetailedState.IDLE, State.DISCONNECTED); in stateMap.put() 126 stateMap.put(DetailedState.SCANNING, State.DISCONNECTED); in stateMap.put() 127 stateMap.put(DetailedState.CONNECTING, State.CONNECTING); in stateMap.put() 128 stateMap.put(DetailedState.AUTHENTICATING, State.CONNECTING); in stateMap.put() 129 stateMap.put(DetailedState.OBTAINING_IPADDR, State.CONNECTING); in stateMap.put() 130 stateMap.put(DetailedState.VERIFYING_POOR_LINK, State.CONNECTING); in stateMap.put() 131 stateMap.put(DetailedState.CAPTIVE_PORTAL_CHECK, State.CONNECTING); in stateMap.put() [all …]
|
D | NetworkAgent.java | 661 mNetworkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTED, null /* reason */, in markConnected() 677 mNetworkInfo.setDetailedState(NetworkInfo.DetailedState.DISCONNECTED, null /* reason */, in unregister()
|
/frameworks/base/wifi/java/android/net/wifi/ |
D | WifiInfo.java | 24 import android.net.NetworkInfo.DetailedState; 49 private static final EnumMap<SupplicantState, DetailedState> stateMap = 50 new EnumMap<SupplicantState, DetailedState>(SupplicantState.class); 62 stateMap.put(SupplicantState.DISCONNECTED, DetailedState.DISCONNECTED); in stateMap.put() 63 stateMap.put(SupplicantState.INTERFACE_DISABLED, DetailedState.DISCONNECTED); in stateMap.put() 64 stateMap.put(SupplicantState.INACTIVE, DetailedState.IDLE); in stateMap.put() 65 stateMap.put(SupplicantState.SCANNING, DetailedState.SCANNING); in stateMap.put() 66 stateMap.put(SupplicantState.AUTHENTICATING, DetailedState.CONNECTING); in stateMap.put() 67 stateMap.put(SupplicantState.ASSOCIATING, DetailedState.CONNECTING); in stateMap.put() 68 stateMap.put(SupplicantState.ASSOCIATED, DetailedState.CONNECTING); in stateMap.put() [all …]
|
/frameworks/base/tests/net/java/com/android/server/connectivity/ |
D | Nat464XlatTest.java | 87 mNai.networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTED, "", ""); 91 mNai.networkInfo.setDetailedState(NetworkInfo.DetailedState.DISCONNECTED, "", ""); 142 final NetworkInfo.DetailedState[] supportedDetailedStates = { 143 NetworkInfo.DetailedState.CONNECTED, 144 NetworkInfo.DetailedState.SUSPENDED, 150 for (NetworkInfo.DetailedState state : supportedDetailedStates) {
|
D | VpnTest.java | 70 import android.net.NetworkInfo.DetailedState; 565 vpn.updateState(DetailedState.DISCONNECTED, TAG); in testNotificationShownForAlwaysOnApp() 575 vpn.updateState(DetailedState.CONNECTED, TAG); in testNotificationShownForAlwaysOnApp() 579 vpn.updateState(DetailedState.DISCONNECTED, TAG); in testNotificationShownForAlwaysOnApp()
|
/frameworks/base/tests/net/integration/util/com/android/server/ |
D | NetworkAgentWrapper.java | 208 getNetworkInfo().getDetailedState(), NetworkInfo.DetailedState.CONNECTED); in connect() 209 mNetworkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTED, null, null); in connect() 222 mNetworkInfo.setDetailedState(NetworkInfo.DetailedState.DISCONNECTED, null, null); in disconnect()
|
/frameworks/base/services/core/java/com/android/server/ |
D | TestNetworkService.java | 34 import android.net.NetworkInfo.DetailedState; 206 mNi.setDetailedState(DetailedState.DISCONNECTED, null, null); 243 ni.setDetailedState(DetailedState.CONNECTED, null, null);
|
D | ConnectivityService.java | 111 import android.net.NetworkInfo.DetailedState; 743 private void maybeLogBroadcast(NetworkAgentInfo nai, DetailedState state, int type, in maybeLogBroadcast() 770 maybeLogBroadcast(nai, DetailedState.CONNECTED, type, isDefaultNetwork); in add() 771 mService.sendLegacyNetworkBroadcast(nai, DetailedState.CONNECTED, type); in add() 790 maybeLogBroadcast(nai, DetailedState.DISCONNECTED, type, wasDefault); in remove() 791 mService.sendLegacyNetworkBroadcast(nai, DetailedState.DISCONNECTED, type); in remove() 798 maybeLogBroadcast(replacement, DetailedState.CONNECTED, type, in remove() 800 mService.sendLegacyNetworkBroadcast(replacement, DetailedState.CONNECTED, type); in remove() 816 final DetailedState state = nai.networkInfo.getDetailedState(); in update() 1269 info.setDetailedState(NetworkInfo.DetailedState.DISCONNECTED, null, null); in getFilteredNetworkState() [all …]
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | LockdownVpnTracker.java | 35 import android.net.NetworkInfo.DetailedState; 149 if (vpnInfo.getDetailedState() == DetailedState.FAILED) { in handleStateChangedLocked() 246 if (info.getDetailedState() == DetailedState.FAILED) { in onVpnStateChanged()
|
/frameworks/opt/net/wifi/libs/WifiTrackerLib/tests/src/com/android/wifitrackerlib/ |
D | WifiPickerTrackerTest.java | 123 NetworkInfo.DetailedState.DISCONNECTED); in setUp() 435 when(mMockNetworkInfo.getDetailedState()).thenReturn(NetworkInfo.DetailedState.CONNECTED); in testGetConnectedEntry_alreadyConnectedOnStart_returnsConnectedEntry() 465 when(mMockNetworkInfo.getDetailedState()).thenReturn(NetworkInfo.DetailedState.CONNECTED); in testGetConnectedEntry_connectToNetwork_returnsConnectedEntry() 490 when(mMockNetworkInfo.getDetailedState()).thenReturn(NetworkInfo.DetailedState.CONNECTED); in testGetConnectedEntry_disconnectFromNetwork_returnsNull() 497 .thenReturn(NetworkInfo.DetailedState.DISCONNECTED); in testGetConnectedEntry_disconnectFromNetwork_returnsNull() 608 when(mMockNetworkInfo.getDetailedState()).thenReturn(NetworkInfo.DetailedState.CONNECTED); in testGetConnectedEntry_alreadyConnectedToPasspoint_returnsPasspointEntry()
|
D | PasspointWifiEntryTest.java | 82 NetworkInfo.DetailedState.DISCONNECTED); in setUp() 156 networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTED, "", ""); in testGetSummary_connectedWifiNetwork_showsConnected()
|
D | StandardWifiEntryTest.java | 112 NetworkInfo.DetailedState.DISCONNECTED); in setUp() 360 when(mMockNetworkInfo.getDetailedState()).thenReturn(NetworkInfo.DetailedState.CONNECTED); in testUpdateConnectionInfo_matchingNetId_updatesConnectionInfo() 379 when(mMockNetworkInfo.getDetailedState()).thenReturn(NetworkInfo.DetailedState.CONNECTED); in testUpdateConnectionInfo_nonMatchingNetId_doesNotUpdateConnectionInfo() 561 when(mMockNetworkInfo.getDetailedState()).thenReturn(NetworkInfo.DetailedState.CONNECTED); in testUpdateLinkProperties_updatesConnectedInfo() 596 networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTED, "", ""); in testGetSummary_connectedWifiNetwork_showsConnected()
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | Vpn.java | 66 import android.net.NetworkInfo.DetailedState; 305 protected void updateState(DetailedState detailedState, String reason) { in updateState() 877 updateState(DetailedState.IDLE, "prepare"); in prepareInternal() 1104 mNetworkInfo.setDetailedState(DetailedState.CONNECTING, null, null); 1128 updateState(DetailedState.CONNECTED, "agentConnect"); 1144 networkInfo.setDetailedState(DetailedState.DISCONNECTED, null, null); 1152 updateState(DetailedState.DISCONNECTED, "agentDisconnect"); 1243 updateState(DetailedState.CONNECTING, "establish"); 1776 private void updateAlwaysOnNotification(DetailedState networkState) { 1777 final boolean visible = (mAlwaysOn && networkState != DetailedState.CONNECTED); [all …]
|
/frameworks/base/tests/net/java/com/android/server/ |
D | LegacyTypeTrackerTest.kt | 24 import android.net.NetworkInfo.DetailedState.CONNECTED 25 import android.net.NetworkInfo.DetailedState.DISCONNECTED
|
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/ |
D | AccessPointTest.java | 531 networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTED, "", ""); 698 networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTING, "", ""); 708 newInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTED, "", ""); 724 networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTING, "", ""); 749 networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTING, "", ""); 775 networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTING, "", ""); 801 networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTED, "", ""); 838 networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTED, "", ""); 918 networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTED, "", ""); in testUpdateConfig_doesNotThrowNPE_ifListenerIsNulledWhileAwaitingExecution() 944 networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTING, "", ""); in testUpdateWithNullWifiConfiguration_doesNotThrowNPE()
|
D | WifiTrackerTest.java | 423 networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTED, "connected", "test"); in createTrackerWithScanResultsAndAccessPoint1Connected() 444 networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTING, "connecting", "test"); in switchToNetwork2() 773 networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTED, "connected", "test"); in onStartShouldSynchronouslyFetchLatestInformation() 799 networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTED, "connected", "test"); in onStartShouldDisplayConnectedAccessPointWhenThereAreNoScanResults() 949 networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTED, "connected", "test"); in onConnectedChangedCallback_shouldNotBeInvokedWhenNoStateChange() 966 NetworkInfo.DetailedState.DISCONNECTED, "disconnected", "test"); in onConnectedChangedCallback_shouldBeInvokedWhenStateChanges()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | TestUtil.java | 38 Context context, NetworkInfo.DetailedState detailedState) { in sendNetworkStateChanged()
|
/frameworks/base/tests/net/java/com/android/server/net/ |
D | NetworkStatsServiceTest.java | 81 import android.net.NetworkInfo.DetailedState; 1337 info.setDetailedState(DetailedState.CONNECTED, null, null); 1354 info.setDetailedState(DetailedState.CONNECTED, null, null); 1367 info.setDetailedState(DetailedState.CONNECTED, null, null); 1382 info.setDetailedState(DetailedState.CONNECTED, null, null);
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/ |
D | AccessPoint.java | 33 import android.net.NetworkInfo.DetailedState; 1078 public DetailedState getDetailedState() { in getDetailedState() 1645 public static String getSummary(Context context, String ssid, DetailedState state, in getSummary() 1647 if (state == DetailedState.CONNECTED) { in getSummary() 1669 if (state == DetailedState.CONNECTED) { in getSummary()
|
/frameworks/opt/net/wifi/libs/WifiTrackerLib/src/com/android/wifitrackerlib/ |
D | Utils.java | 45 import android.net.NetworkInfo.DetailedState; 572 DetailedState detailState = networkInfo.getDetailedState(); in getNetworkDetailedState()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | ClientModeImpl.java | 56 import android.net.NetworkInfo.DetailedState; 355 private DetailedState mNetworkAgentState; 775 mNetworkAgentState = DetailedState.DISCONNECTED; in ClientModeImpl() 2137 NetworkInfo.DetailedState detailedState = info.getDetailedState(); in getLogRecString() 2512 if (mNetworkAgentState == DetailedState.CONNECTED) { in updateLinkProperties() 2583 private void sendNetworkChangeBroadcast(NetworkInfo.DetailedState state) { in sendNetworkChangeBroadcast() 2772 sendNetworkChangeBroadcast(DetailedState.DISCONNECTED); in handleNetworkDisconnect() 3646 sendNetworkChangeBroadcast(DetailedState.DISCONNECTED); 3796 sendNetworkChangeBroadcast(DetailedState.DISCONNECTED); 4733 sendNetworkChangeBroadcast(DetailedState.CONNECTING); in enter() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ |
D | DataConnection.java | 1438 mNetworkInfo.getDetailedState() == NetworkInfo.DetailedState.SUSPENDED; in getNetworkCapabilities() 1779 mNetworkInfo.setDetailedState(NetworkInfo.DetailedState.SUSPENDED, null, in updateNetworkInfoSuspendState() 1786 mNetworkInfo.setDetailedState(NetworkInfo.DetailedState.SUSPENDED, null, in updateNetworkInfoSuspendState() 1791 mNetworkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTED, null, in updateNetworkInfoSuspendState() 2124 mNetworkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTED, in enter() 2241 mNetworkInfo.setDetailedState(NetworkInfo.DetailedState.DISCONNECTED, in exit()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/ |
D | ConnectivityControllerTest.java | 56 import android.net.NetworkInfo.DetailedState; 622 ni.setDetailedState(DetailedState.CONNECTED, null, null); in answerNetwork()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/p2p/ |
D | WifiP2pServiceImpl.java | 264 private NetworkInfo.DetailedState mDetailedState; 429 if (mDetailedState != NetworkInfo.DetailedState.IDLE) { in makeNetworkInfo() 479 mDetailedState = NetworkInfo.DetailedState.IDLE; in WifiP2pServiceImpl() 2658 mDetailedState = NetworkInfo.DetailedState.CONNECTED; in enter() 2955 mDetailedState = NetworkInfo.DetailedState.DISCONNECTED; in exit() 3827 mDetailedState = NetworkInfo.DetailedState.FAILED; in handleGroupCreationFailure()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/net/ |
D | NetworkPolicyManagerServiceTest.java | 108 import android.net.NetworkInfo.DetailedState; 1902 ni.setDetailedState(NetworkInfo.DetailedState.CONNECTED, null, null); in buildNetworkInfo() 1960 info.setDetailedState(DetailedState.CONNECTED, null, null); in buildWifi()
|