Home
last modified time | relevance | path

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

12

/frameworks/base/core/java/android/net/
DNetworkInfo.java85 public enum DetailedState { enum in NetworkInfo
119 private static final EnumMap<DetailedState, State> stateMap =
120 new EnumMap<DetailedState, State>(DetailedState.class);
123 stateMap.put(DetailedState.IDLE, State.DISCONNECTED); in stateMap.put()
124 stateMap.put(DetailedState.SCANNING, State.DISCONNECTED); in stateMap.put()
125 stateMap.put(DetailedState.CONNECTING, State.CONNECTING); in stateMap.put()
126 stateMap.put(DetailedState.AUTHENTICATING, State.CONNECTING); in stateMap.put()
127 stateMap.put(DetailedState.OBTAINING_IPADDR, State.CONNECTING); in stateMap.put()
128 stateMap.put(DetailedState.VERIFYING_POOR_LINK, State.CONNECTING); in stateMap.put()
129 stateMap.put(DetailedState.CAPTIVE_PORTAL_CHECK, State.CONNECTING); in stateMap.put()
[all …]
/frameworks/base/wifi/java/android/net/wifi/
DWifiInfo.java23 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/opt/net/ethernet/java/com/android/server/ethernet/
DEthernetNetworkFactory.java34 import android.net.NetworkInfo.DetailedState;
441 mNetworkInfo.setDetailedState(DetailedState.OBTAINING_IPADDR, null, mHwAddress); in start()
459 mNetworkInfo.setDetailedState(DetailedState.CONNECTED, null, mHwAddress); in onIpLayerStarted()
521 mNetworkInfo.setDetailedState(DetailedState.DISCONNECTED, null, mHwAddress); in stop()
549 mNetworkInfo.setDetailedState(DetailedState.IDLE, null, null); in clear()
/frameworks/base/tests/net/java/com/android/server/
DLegacyTypeTrackerTest.kt23 import android.net.NetworkInfo.DetailedState.CONNECTED
24 import android.net.NetworkInfo.DetailedState.DISCONNECTED
DConnectivityServiceTest.java141 import android.net.NetworkInfo.DetailedState;
698 mNetworkInfo.setDetailedState(DetailedState.CONNECTED, null, null); in connectWithoutInternet()
717 mNetworkInfo.getDetailedState(), DetailedState.IDLE); in connect()
765 mNetworkInfo.setDetailedState(DetailedState.SUSPENDED, null, null); in suspend()
770 mNetworkInfo.setDetailedState(DetailedState.CONNECTED, null, null); in resume()
775 mNetworkInfo.setDetailedState(DetailedState.DISCONNECTED, null, null); in disconnect()
/frameworks/base/services/core/java/com/android/server/net/
DLockdownVpnTracker.java33 import android.net.NetworkInfo.DetailedState;
147 if (vpnInfo.getDetailedState() == DetailedState.FAILED) { in handleStateChangedLocked()
250 if (info.getDetailedState() == DetailedState.FAILED) { in onVpnStateChanged()
/frameworks/base/services/core/java/com/android/server/
DTestNetworkService.java32 import android.net.NetworkInfo.DetailedState;
204 mNi.setDetailedState(DetailedState.DISCONNECTED, null, null);
238 ni.setDetailedState(DetailedState.CONNECTED, null, null);
DConnectivityService.java93 import android.net.NetworkInfo.DetailedState;
697 private void maybeLogBroadcast(NetworkAgentInfo nai, DetailedState state, int type, in maybeLogBroadcast()
724 maybeLogBroadcast(nai, DetailedState.CONNECTED, type, isDefaultNetwork); in add()
725 mService.sendLegacyNetworkBroadcast(nai, DetailedState.CONNECTED, type); in add()
744 maybeLogBroadcast(nai, DetailedState.DISCONNECTED, type, wasDefault); in remove()
745 mService.sendLegacyNetworkBroadcast(nai, DetailedState.DISCONNECTED, type); in remove()
752 maybeLogBroadcast(replacement, DetailedState.CONNECTED, type, in remove()
754 mService.sendLegacyNetworkBroadcast(replacement, DetailedState.CONNECTED, type); in remove()
770 final DetailedState state = nai.networkInfo.getDetailedState(); in update()
1179 info.setDetailedState(NetworkInfo.DetailedState.DISCONNECTED, null, null); in getFilteredNetworkState()
[all …]
/frameworks/base/services/core/java/com/android/server/connectivity/
DVpn.java59 import android.net.NetworkInfo.DetailedState;
262 protected void updateState(DetailedState detailedState, String reason) { in updateState()
766 updateState(DetailedState.IDLE, "prepare"); in prepareInternal()
972 mNetworkInfo.setDetailedState(DetailedState.CONNECTING, null, null); in agentConnect()
995 updateState(DetailedState.CONNECTED, "agentConnect"); in agentConnect()
1011 networkInfo.setDetailedState(DetailedState.DISCONNECTED, null, null); in agentDisconnect()
1019 updateState(DetailedState.DISCONNECTED, "agentDisconnect"); in agentDisconnect()
1110 updateState(DetailedState.CONNECTING, "establish"); in establish()
1602 private void updateAlwaysOnNotification(DetailedState networkState) { in updateAlwaysOnNotification()
1603 final boolean visible = (mAlwaysOn && networkState != DetailedState.CONNECTED); in updateAlwaysOnNotification()
[all …]
DTethering.java716 networkInfo.getDetailedState() == NetworkInfo.DetailedState.FAILED) { in handleConnectivityAction()
/frameworks/base/tests/net/java/com/android/server/connectivity/
DNat464XlatTest.java131 final NetworkInfo.DetailedState[] supportedDetailedStates = {
132 NetworkInfo.DetailedState.CONNECTED,
133 NetworkInfo.DetailedState.SUSPENDED,
139 for (NetworkInfo.DetailedState state : supportedDetailedStates) {
DVpnTest.java65 import android.net.NetworkInfo.DetailedState;
520 vpn.updateState(DetailedState.DISCONNECTED, TAG); in testNotificationShownForAlwaysOnApp()
530 vpn.updateState(DetailedState.CONNECTED, TAG); in testNotificationShownForAlwaysOnApp()
534 vpn.updateState(DetailedState.DISCONNECTED, TAG); in testNotificationShownForAlwaysOnApp()
DTetheringTest.java287 info.setDetailedState(NetworkInfo.DetailedState.CONNECTED, null, null); in buildMobileUpstreamState()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/
DAccessPointTest.java504 networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTED, "", "");
569 networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTED, "", "");
761 networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTING, "", "");
771 newInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTED, "", "");
787 networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTING, "", "");
812 networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTING, "", "");
838 networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTING, "", "");
864 networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTED, "", "");
901 networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTED, "", "");
981 networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTED, "", ""); in testUpdateConfig_doesNotThrowNPE_ifListenerIsNulledWhileAwaitingExecution()
[all …]
DWifiTrackerTest.java423 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/
DTestUtil.java38 Context context, NetworkInfo.DetailedState detailedState) { in sendNetworkStateChanged()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DAccessPoint.java30 import android.net.NetworkInfo.DetailedState;
950 public DetailedState getDetailedState() { in getDetailedState()
1037 if (getDetailedState() == DetailedState.CONNECTED && mIsCarrierAp) { in getSettingsSummary()
1530 public static String getSummary(Context context, String ssid, DetailedState state, in getSummary()
1532 if (state == DetailedState.CONNECTED) { in getSummary()
1554 if (state == DetailedState.CONNECTED) { in getSummary()
/frameworks/base/tests/net/java/com/android/server/net/
DNetworkStatsServiceTest.java81 import android.net.NetworkInfo.DetailedState;
1336 info.setDetailedState(DetailedState.CONNECTED, null, null); in buildWifiState()
1352 info.setDetailedState(DetailedState.CONNECTED, null, null); in buildMobile3gState()
1364 info.setDetailedState(DetailedState.CONNECTED, null, null); in buildMobile4gState()
1379 info.setDetailedState(DetailedState.CONNECTED, null, null); in buildVpnState()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DClientModeImpl.java48 import android.net.NetworkInfo.DetailedState;
2390 NetworkInfo.DetailedState detailedState = info.getDetailedState(); in getLogRecString()
2760 if (getNetworkDetailedState() == DetailedState.CONNECTED) { in updateLinkProperties()
2847 private boolean setNetworkDetailedState(NetworkInfo.DetailedState state) { in setNetworkDetailedState()
2885 private DetailedState getNetworkDetailedState() { in getNetworkDetailedState()
2992 setNetworkDetailedState(DetailedState.DISCONNECTED); in handleNetworkDisconnect()
3780 setNetworkDetailedState(DetailedState.DISCONNECTED); in setupClientMode()
3904 setNetworkDetailedState(DetailedState.DISCONNECTED); in enter()
4932 setNetworkDetailedState(DetailedState.DISCONNECTED); in enter()
4934 setNetworkDetailedState(DetailedState.CONNECTING); in enter()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
DConnectivityControllerTest.java52 import android.net.NetworkInfo.DetailedState;
547 ni.setDetailedState(DetailedState.CONNECTED, null, null); in answerNetwork()
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DNetworkPolicyManagerServiceTest.java108 import android.net.NetworkInfo.DetailedState;
1767 ni.setDetailedState(NetworkInfo.DetailedState.CONNECTED, null, null); in buildNetworkInfo()
1824 info.setDetailedState(DetailedState.CONNECTED, null, null); in buildWifi()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/
DWifiAwareDataPathStateManager.java1057 mNetworkInfo.setDetailedState(NetworkInfo.DetailedState.DISCONNECTED, null, ""); in reconfigureAgentAsDisconnected()
1525 networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTED, null, null); in configureAgentProperties()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/p2p/
DWifiP2pServiceImpl.java2559 mNetworkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTED, null, null); in enter()
2840 mNetworkInfo.setDetailedState(NetworkInfo.DetailedState.DISCONNECTED, null, null); in exit()
3684 mNetworkInfo.setDetailedState(NetworkInfo.DetailedState.FAILED, null, null); in handleGroupCreationFailure()
/frameworks/base/config/
Dpreloaded-classes2552 android.net.NetworkInfo$DetailedState
/frameworks/base/services/
Dart-profile747 …dcast(Lcom/android/server/connectivity/NetworkAgentInfo;Landroid/net/NetworkInfo$DetailedState;IZ)V
900 …adcast(Lcom/android/server/connectivity/NetworkAgentInfo;Landroid/net/NetworkInfo$DetailedState;I)V
5660 …roid/server/connectivity/Vpn;->updateAlwaysOnNotification(Landroid/net/NetworkInfo$DetailedState;)V
5662 PLcom/android/server/connectivity/Vpn;->updateState(Landroid/net/NetworkInfo$DetailedState;Ljava/la…

12