/frameworks/base/core/java/android/net/ |
D | NetworkInfo.java | 88 public enum DetailedState { enum in NetworkInfo 122 private static final EnumMap<DetailedState, State> stateMap = 123 new EnumMap<DetailedState, State>(DetailedState.class); 126 stateMap.put(DetailedState.IDLE, State.DISCONNECTED); in stateMap.put() 127 stateMap.put(DetailedState.SCANNING, State.DISCONNECTED); in stateMap.put() 128 stateMap.put(DetailedState.CONNECTING, State.CONNECTING); in stateMap.put() 129 stateMap.put(DetailedState.AUTHENTICATING, State.CONNECTING); in stateMap.put() 130 stateMap.put(DetailedState.OBTAINING_IPADDR, State.CONNECTING); in stateMap.put() 131 stateMap.put(DetailedState.VERIFYING_POOR_LINK, State.CONNECTING); in stateMap.put() 132 stateMap.put(DetailedState.CAPTIVE_PORTAL_CHECK, State.CONNECTING); in stateMap.put() [all …]
|
D | NetworkAgent.java | 662 mNetworkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTED, null /* reason */, in markConnected() 678 mNetworkInfo.setDetailedState(NetworkInfo.DetailedState.DISCONNECTED, null /* reason */, in unregister()
|
/frameworks/base/wifi/java/android/net/wifi/ |
D | WifiInfo.java | 23 import android.net.NetworkInfo.DetailedState; 47 private static final EnumMap<SupplicantState, DetailedState> stateMap = 48 new EnumMap<SupplicantState, DetailedState>(SupplicantState.class); 60 stateMap.put(SupplicantState.DISCONNECTED, DetailedState.DISCONNECTED); in stateMap.put() 61 stateMap.put(SupplicantState.INTERFACE_DISABLED, DetailedState.DISCONNECTED); in stateMap.put() 62 stateMap.put(SupplicantState.INACTIVE, DetailedState.IDLE); in stateMap.put() 63 stateMap.put(SupplicantState.SCANNING, DetailedState.SCANNING); in stateMap.put() 64 stateMap.put(SupplicantState.AUTHENTICATING, DetailedState.CONNECTING); in stateMap.put() 65 stateMap.put(SupplicantState.ASSOCIATING, DetailedState.CONNECTING); in stateMap.put() 66 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/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 | 29 import android.net.NetworkInfo.DetailedState.CONNECTED 30 import android.net.NetworkInfo.DetailedState.DISCONNECTED
|
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/ |
D | AccessPointTest.java | 505 networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTED, "", ""); 570 networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTED, "", ""); 762 networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTING, "", ""); 772 newInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTED, "", ""); 788 networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTING, "", ""); 813 networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTING, "", ""); 839 networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTING, "", ""); 865 networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTED, "", ""); 902 networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTED, "", ""); 982 networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTED, "", ""); in testUpdateConfig_doesNotThrowNPE_ifListenerIsNulledWhileAwaitingExecution() [all …]
|
D | WifiTrackerTest.java | 423 networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTED, "connected", "test"); in createTrackerWithScanResultsAndAccessPoint1Connected() 444 networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTING, "connecting", "test"); in switchToNetwork2() 774 networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTED, "connected", "test"); in onStartShouldSynchronouslyFetchLatestInformation() 800 networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTED, "connected", "test"); in onStartShouldDisplayConnectedAccessPointWhenThereAreNoScanResults() 950 networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTED, "connected", "test"); in onConnectedChangedCallback_shouldNotBeInvokedWhenNoStateChange() 967 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/packages/SettingsLib/src/com/android/settingslib/wifi/ |
D | AccessPoint.java | 30 import android.net.NetworkInfo.DetailedState; 1058 public DetailedState getDetailedState() { in getDetailedState() 1145 if (getDetailedState() == DetailedState.CONNECTED && mIsCarrierAp) { in getSettingsSummary() 1607 public static String getSummary(Context context, String ssid, DetailedState state, in getSummary() 1609 if (state == DetailedState.CONNECTED) { in getSummary() 1631 if (state == DetailedState.CONNECTED) { in getSummary()
|
/frameworks/base/tests/net/java/com/android/server/net/ |
D | NetworkStatsServiceTest.java | 84 import android.net.NetworkInfo.DetailedState; 1450 info.setDetailedState(DetailedState.CONNECTED, null, null); 1467 info.setDetailedState(DetailedState.CONNECTED, null, null); 1480 info.setDetailedState(DetailedState.CONNECTED, null, null); 1495 info.setDetailedState(DetailedState.CONNECTED, null, null);
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | ClientModeImpl.java | 51 import android.net.NetworkInfo.DetailedState; 336 private DetailedState mNetworkAgentState; 805 mNetworkAgentState = DetailedState.DISCONNECTED; in ClientModeImpl() 2411 NetworkInfo.DetailedState detailedState = info.getDetailedState(); in getLogRecString() 2781 if (mNetworkAgentState == DetailedState.CONNECTED) { in updateLinkProperties() 2858 private void sendNetworkChangeBroadcast(NetworkInfo.DetailedState state) { in sendNetworkChangeBroadcast() 3009 sendNetworkChangeBroadcast(DetailedState.DISCONNECTED); in handleNetworkDisconnect() 3808 sendNetworkChangeBroadcast(DetailedState.DISCONNECTED); in setupClientMode() 3935 sendNetworkChangeBroadcast(DetailedState.DISCONNECTED); in enter() 4964 sendNetworkChangeBroadcast(DetailedState.CONNECTING); in enter() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ |
D | DataConnection.java | 1456 mNetworkInfo.getDetailedState() == NetworkInfo.DetailedState.SUSPENDED; in getNetworkCapabilities() 1797 mNetworkInfo.setDetailedState(NetworkInfo.DetailedState.SUSPENDED, null, in updateNetworkInfoSuspendState() 1804 mNetworkInfo.setDetailedState(NetworkInfo.DetailedState.SUSPENDED, null, in updateNetworkInfoSuspendState() 1809 mNetworkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTED, null, in updateNetworkInfoSuspendState() 2142 mNetworkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTED, in enter() 2259 mNetworkInfo.setDetailedState(NetworkInfo.DetailedState.DISCONNECTED, in exit()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/ |
D | ConnectivityControllerTest.java | 52 import android.net.NetworkInfo.DetailedState; 547 ni.setDetailedState(DetailedState.CONNECTED, null, null); in answerNetwork()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/p2p/ |
D | WifiP2pServiceImpl.java | 250 private NetworkInfo.DetailedState mDetailedState; 419 if (mDetailedState != NetworkInfo.DetailedState.IDLE) { in makeNetworkInfo() 468 mDetailedState = NetworkInfo.DetailedState.IDLE; in WifiP2pServiceImpl() 2577 mDetailedState = NetworkInfo.DetailedState.CONNECTED; in enter() 2858 mDetailedState = NetworkInfo.DetailedState.DISCONNECTED; in exit() 3719 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; 1825 ni.setDetailedState(NetworkInfo.DetailedState.CONNECTED, null, null); in buildNetworkInfo() 1883 info.setDetailedState(DetailedState.CONNECTED, null, null); in buildWifi()
|
/frameworks/base/packages/Tethering/src/com/android/networkstack/tethering/ |
D | Tethering.java | 943 || networkInfo.getDetailedState() == NetworkInfo.DetailedState.FAILED) { in handleConnectivityAction()
|
/frameworks/opt/setupwizard/tools/docs/ |
D | android-22.txt | 17141 method public android.net.NetworkInfo.DetailedState getDetailedState(); 17157 public static final class NetworkInfo.DetailedState extends java.lang.Enum { 17158 method public static android.net.NetworkInfo.DetailedState valueOf(java.lang.String); 17159 method public static final android.net.NetworkInfo.DetailedState[] values(); 17160 enum_constant public static final android.net.NetworkInfo.DetailedState AUTHENTICATING; 17161 enum_constant public static final android.net.NetworkInfo.DetailedState BLOCKED; 17162 enum_constant public static final android.net.NetworkInfo.DetailedState CAPTIVE_PORTAL_CHECK; 17163 enum_constant public static final android.net.NetworkInfo.DetailedState CONNECTED; 17164 enum_constant public static final android.net.NetworkInfo.DetailedState CONNECTING; 17165 enum_constant public static final android.net.NetworkInfo.DetailedState DISCONNECTED; [all …]
|
/frameworks/base/non-updatable-api/ |
D | current.txt | 29066 method @Deprecated @NonNull public android.net.NetworkInfo.DetailedState getDetailedState(); 29079 …method @Deprecated public void setDetailedState(@NonNull android.net.NetworkInfo.DetailedState, @N… 29084 @Deprecated public enum NetworkInfo.DetailedState { 29085 …enum_constant @Deprecated public static final android.net.NetworkInfo.DetailedState AUTHENTICATING; 29086 enum_constant @Deprecated public static final android.net.NetworkInfo.DetailedState BLOCKED; 29087 …enum_constant @Deprecated public static final android.net.NetworkInfo.DetailedState CAPTIVE_PORTAL… 29088 enum_constant @Deprecated public static final android.net.NetworkInfo.DetailedState CONNECTED; 29089 enum_constant @Deprecated public static final android.net.NetworkInfo.DetailedState CONNECTING; 29090 … enum_constant @Deprecated public static final android.net.NetworkInfo.DetailedState DISCONNECTED; 29091 … enum_constant @Deprecated public static final android.net.NetworkInfo.DetailedState DISCONNECTING; [all …]
|
/frameworks/base/api/ |
D | current.txt | 29196 method @Deprecated @NonNull public android.net.NetworkInfo.DetailedState getDetailedState(); 29209 …method @Deprecated public void setDetailedState(@NonNull android.net.NetworkInfo.DetailedState, @N… 29214 @Deprecated public enum NetworkInfo.DetailedState { 29215 …enum_constant @Deprecated public static final android.net.NetworkInfo.DetailedState AUTHENTICATING; 29216 enum_constant @Deprecated public static final android.net.NetworkInfo.DetailedState BLOCKED; 29217 …enum_constant @Deprecated public static final android.net.NetworkInfo.DetailedState CAPTIVE_PORTAL… 29218 enum_constant @Deprecated public static final android.net.NetworkInfo.DetailedState CONNECTED; 29219 enum_constant @Deprecated public static final android.net.NetworkInfo.DetailedState CONNECTING; 29220 … enum_constant @Deprecated public static final android.net.NetworkInfo.DetailedState DISCONNECTED; 29221 … enum_constant @Deprecated public static final android.net.NetworkInfo.DetailedState DISCONNECTING; [all …]
|