Home
last modified time | relevance | path

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

12

/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DNetworkInfo_DetailedStateTest.java20 import android.net.NetworkInfo.DetailedState;
26 assertEquals(DetailedState.AUTHENTICATING, DetailedState.valueOf("AUTHENTICATING")); in testValueOf()
27 assertEquals(DetailedState.CONNECTED, DetailedState.valueOf("CONNECTED")); in testValueOf()
28 assertEquals(DetailedState.CONNECTING, DetailedState.valueOf("CONNECTING")); in testValueOf()
29 assertEquals(DetailedState.DISCONNECTED, DetailedState.valueOf("DISCONNECTED")); in testValueOf()
30 assertEquals(DetailedState.DISCONNECTING, DetailedState.valueOf("DISCONNECTING")); in testValueOf()
31 assertEquals(DetailedState.FAILED, DetailedState.valueOf("FAILED")); in testValueOf()
32 assertEquals(DetailedState.IDLE, DetailedState.valueOf("IDLE")); in testValueOf()
33 assertEquals(DetailedState.OBTAINING_IPADDR, DetailedState.valueOf("OBTAINING_IPADDR")); in testValueOf()
34 assertEquals(DetailedState.SCANNING, DetailedState.valueOf("SCANNING")); in testValueOf()
[all …]
DNetworkInfoTest.kt22 import android.net.NetworkInfo.DetailedState
84 assertTrue(DetailedState.SCANNING == netInfo.getDetailedState() || in assertNetworkInfo()
85 DetailedState.CONNECTING == netInfo.getDetailedState() || in assertNetworkInfo()
86 DetailedState.AUTHENTICATING == netInfo.getDetailedState() || in assertNetworkInfo()
87 DetailedState.CONNECTED == netInfo.getDetailedState()) in assertNetworkInfo()
99 assertEquals(DetailedState.IDLE, networkInfo.detailedState) in testConstructor()
126 networkInfo.setDetailedState(DetailedState.CONNECTED, reason, extraReason) in testSetDetailedState()
127 assertEquals(DetailedState.CONNECTED, networkInfo.detailedState) in testSetDetailedState()
133 val constructor = DetailedState::class.java.declaredConstructors.first { in testSetDetailedState()
137 val incorrectDetailedState = constructor.newInstance("any", 200) as DetailedState in testSetDetailedState()
[all …]
DConnectivityManagerTest.java157 import android.net.NetworkInfo.DetailedState;
526 DetailedState ds = ni.getDetailedState(); in testGetNetworkInfo()
528 DetailedState.FAILED.ordinal() >= ds.ordinal() in testGetNetworkInfo()
529 && ds.ordinal() >= DetailedState.IDLE.ordinal()); in testGetNetworkInfo()
2599 assertEquals(DetailedState.CONNECTED, info.getDetailedState());
2615 assertEquals(DetailedState.CONNECTING, info.getDetailedState());
/packages/modules/Connectivity/framework/src/android/net/
DNetworkInfo.java88 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 …]
DNetworkAgent.java499 ni.setDetailedState(NetworkInfo.DetailedState.CONNECTING, null /* reason */, in getLegacyNetworkInfo()
1000 mNetworkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTED, null /* reason */, in markConnected()
1013 mNetworkInfo.setDetailedState(NetworkInfo.DetailedState.DISCONNECTED, null /* reason */, in unregister()
/packages/modules/Wifi/framework/java/android/net/wifi/
DWifiInfo.java37 import android.net.NetworkInfo.DetailedState;
89 private static final EnumMap<SupplicantState, DetailedState> stateMap =
90 new EnumMap<SupplicantState, DetailedState>(SupplicantState.class);
102 stateMap.put(SupplicantState.DISCONNECTED, DetailedState.DISCONNECTED); in stateMap.put()
103 stateMap.put(SupplicantState.INTERFACE_DISABLED, DetailedState.DISCONNECTED); in stateMap.put()
104 stateMap.put(SupplicantState.INACTIVE, DetailedState.IDLE); in stateMap.put()
105 stateMap.put(SupplicantState.SCANNING, DetailedState.SCANNING); in stateMap.put()
106 stateMap.put(SupplicantState.AUTHENTICATING, DetailedState.CONNECTING); in stateMap.put()
107 stateMap.put(SupplicantState.ASSOCIATING, DetailedState.CONNECTING); in stateMap.put()
108 stateMap.put(SupplicantState.ASSOCIATED, DetailedState.CONNECTING); in stateMap.put()
[all …]
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivityservice/
DCSActiveNetworkInfoTest.kt25 import android.net.NetworkInfo.DetailedState.BLOCKED
26 import android.net.NetworkInfo.DetailedState.CONNECTED
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DNat464XlatTest.java118 mNai.networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTED, "", "");
122 mNai.networkInfo.setDetailedState(NetworkInfo.DetailedState.DISCONNECTED, "", "");
175 final NetworkInfo.DetailedState[] supportedDetailedStates = {
176 NetworkInfo.DetailedState.CONNECTED,
177 NetworkInfo.DetailedState.SUSPENDED,
183 for (NetworkInfo.DetailedState state : supportedDetailedStates) {
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DConnectivityServiceTest.java315 import android.net.NetworkInfo.DetailedState;
1016 ExpectedBroadcast b = expectConnectivityAction(TYPE_WIFI, DetailedState.CONNECTED); in testWaitForIdle()
1036 ExpectedBroadcast b = expectConnectivityAction(TYPE_WIFI, DetailedState.CONNECTED); in verifyThatNotWaitingForIdleCausesRaceConditions()
2627 private ExpectedBroadcast expectConnectivityAction(int type, NetworkInfo.DetailedState state) {
2655 final DetailedState state = ni.getDetailedState();
2656 if (state == DetailedState.CONNECTED && ni.getExtraInfo() == null) return false;
2660 if (state == DetailedState.CONNECTING && ni.getExtraInfo() != null) return false;
2674 ExpectedBroadcast b = expectConnectivityAction(TYPE_MOBILE, DetailedState.CONNECTED);
2694 b = expectConnectivityAction(TYPE_MOBILE, DetailedState.DISCONNECTED);
2707 ExpectedBroadcast b = expectConnectivityAction(TYPE_MOBILE, DetailedState.CONNECTED);
[all …]
DLegacyTypeTrackerTest.kt45 import android.net.NetworkInfo.DetailedState.CONNECTED
46 import android.net.NetworkInfo.DetailedState.DISCONNECTED
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DTestConnectivityManager.java299 NetworkInfo.DetailedState state = connected in sendConnectivityAction()
300 ? NetworkInfo.DetailedState.CONNECTED in sendConnectivityAction()
301 : NetworkInfo.DetailedState.DISCONNECTED; in sendConnectivityAction()
/packages/modules/Connectivity/framework/api/
Dcurrent.txt377 method @Deprecated @NonNull public android.net.NetworkInfo.DetailedState getDetailedState();
390 …method @Deprecated public void setDetailedState(@NonNull android.net.NetworkInfo.DetailedState, @N…
395 @Deprecated public enum NetworkInfo.DetailedState {
396 …enum_constant @Deprecated public static final android.net.NetworkInfo.DetailedState AUTHENTICATING;
397 enum_constant @Deprecated public static final android.net.NetworkInfo.DetailedState BLOCKED;
398 …enum_constant @Deprecated public static final android.net.NetworkInfo.DetailedState CAPTIVE_PORTAL…
399 enum_constant @Deprecated public static final android.net.NetworkInfo.DetailedState CONNECTED;
400 enum_constant @Deprecated public static final android.net.NetworkInfo.DetailedState CONNECTING;
401 … enum_constant @Deprecated public static final android.net.NetworkInfo.DetailedState DISCONNECTED;
402 … enum_constant @Deprecated public static final android.net.NetworkInfo.DetailedState DISCONNECTING;
[all …]
/packages/modules/Connectivity/tests/cts/hostside-network-policy/app/src/com/android/cts/netpolicy/hostside/
DAbstractRestrictBackgroundNetworkTestCase.java56 import android.net.NetworkInfo.DetailedState;
548 final DetailedState detailedState = networkInfo.getDetailedState(); in checkForAvailabilityInNetworkCheckResult()
555 final DetailedState expectedDetailedState; in checkForAvailabilityInNetworkCheckResult()
558 expectedDetailedState = DetailedState.CONNECTED; in checkForAvailabilityInNetworkCheckResult()
561 expectedDetailedState = DetailedState.BLOCKED; in checkForAvailabilityInNetworkCheckResult()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DClientModeManagerBroadcastQueue.java123 mContext, NetworkInfo.DetailedState.DISCONNECTED, mVerboseLoggingEnabled); in fakeDisconnectionBroadcasts()
DClientModeImpl.java63 import android.net.NetworkInfo.DetailedState;
337 private DetailedState mNetworkAgentState;
777 mNetworkAgentState = DetailedState.DISCONNECTED; in ClientModeImpl()
2344 NetworkInfo.DetailedState detailedState = info.getDetailedState(); in getLogRecString()
2910 if (mNetworkAgentState == DetailedState.CONNECTED) { in updateLinkProperties()
3007 private void sendNetworkChangeBroadcast(NetworkInfo.DetailedState state) { in sendNetworkChangeBroadcast()
3054 private int convertDetailedStateToNetworkStateChangedCode(DetailedState detailedState) { in convertDetailedStateToNetworkStateChangedCode()
3084 final DetailedState networkAgentState = mNetworkAgentState; in sendNetworkChangeBroadcastWithCurrentState()
3104 Context context, DetailedState networkAgentState, boolean verboseLoggingEnabled) { in sendNetworkChangeBroadcast()
3127 private static NetworkInfo makeNetworkInfo(DetailedState networkAgentState) { in makeNetworkInfo()
[all …]
DInterfaceConflictManager.java116 if (mNetworkInfo.getDetailedState() == NetworkInfo.DetailedState.CONNECTED) { in InterfaceConflictManager()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DTestUtil.java38 Context context, NetworkInfo.DetailedState detailedState) { in sendNetworkStateChanged()
DInterfaceConflictManagerTest.java484 info.setDetailedState(NetworkInfo.DetailedState.DISCONNECTED, null, null); in testP2pInterfaceRemovalIsAutoApprovedWhenP2pIsDisconnected()
523 info.setDetailedState(NetworkInfo.DetailedState.CONNECTED, null, null); in testP2pInterfaceRemovalNeedUserApprovalWhenP2pIsConnected()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/common/
DUtilsTest.java441 connected ? NetworkInfo.DetailedState.CONNECTED in setCurrentNetworkMock()
442 : NetworkInfo.DetailedState.DISCONNECTED, in setCurrentNetworkMock()
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
DFakeSystemFacade.java18 import android.net.NetworkInfo.DetailedState;
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
DShadowWifiManager.java92 NetworkInfo.DetailedState.CONNECTED, in connect()
/packages/modules/Connectivity/service/src/com/android/server/
DConnectivityService.java209 import android.net.NetworkInfo.DetailedState;
1219 private void maybeLogBroadcast(NetworkAgentInfo nai, DetailedState state, int type, in maybeLogBroadcast()
1244 final DetailedState state = DetailedState.CONNECTED; in maybeSendLegacyLockdownBroadcast()
1269 final DetailedState state = mService.getLegacyLockdownState(DetailedState.CONNECTED); in add()
1275 if (type == TYPE_VPN && state == DetailedState.CONNECTED) { in add()
1295 maybeLogBroadcast(nai, DetailedState.DISCONNECTED, type, wasDefault); in remove()
1296 mService.sendLegacyNetworkBroadcast(nai, DetailedState.DISCONNECTED, type); in remove()
1303 maybeLogBroadcast(replacement, DetailedState.CONNECTED, type, in remove()
1305 mService.sendLegacyNetworkBroadcast(replacement, DetailedState.CONNECTED, type); in remove()
1320 final DetailedState state = nai.networkInfo.getDetailedState(); in update()
[all …]
/packages/apps/Settings/src/com/android/settings/wifi/
DWifiEnabler.java186 private void handleStateChanged(@SuppressWarnings("unused") NetworkInfo.DetailedState state) { in handleStateChanged()
DWifiConfigController.java26 import android.net.NetworkInfo.DetailedState;
399 final DetailedState state = mAccessPoint.getDetailedState(); in initWifiConfigController()
402 if ((state == null || state == DetailedState.DISCONNECTED) && signalLevel != null) { in initWifiConfigController()
/packages/modules/Wifi/service/java/com/android/server/wifi/p2p/
DWifiP2pServiceImpl.java405 private NetworkInfo.DetailedState mDetailedState;
647 if (mDetailedState != NetworkInfo.DetailedState.IDLE) { in makeNetworkInfo()
710 mDetailedState = NetworkInfo.DetailedState.IDLE; in WifiP2pServiceImpl()
3563 mDetailedState = NetworkInfo.DetailedState.IDLE; in enterImpl()
4101 mDetailedState = NetworkInfo.DetailedState.CONNECTING; in enterImpl()
4278 mDetailedState = NetworkInfo.DetailedState.DISCONNECTED; in processMessageImpl()
4999 mDetailedState = NetworkInfo.DetailedState.CONNECTED; in enterImpl()
5495 mDetailedState = NetworkInfo.DetailedState.DISCONNECTED; in exitImpl()
6965 mDetailedState = NetworkInfo.DetailedState.FAILED; in handleGroupCreationFailure()

12