Home
last modified time | relevance | path

Searched refs:detailedState (Results 1 – 7 of 7) sorted by relevance

/packages/modules/Connectivity/framework/src/android/net/
DNetworkInfo.java508 public void setDetailedState(@NonNull DetailedState detailedState, @Nullable String reason, in setDetailedState() argument
511 this.mDetailedState = detailedState; in setDetailedState()
512 this.mState = stateMap.get(detailedState); in setDetailedState()
519 throw new NullPointerException("Unknown DetailedState : " + detailedState); in setDetailedState()
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivityservice/
DCSActiveNetworkInfoTest.kt65 assertEquals(BLOCKED, networkInfo.detailedState) in nc()
67 assertEquals(CONNECTED, networkInfo.detailedState) in nc()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DTestUtil.java38 Context context, NetworkInfo.DetailedState detailedState) { in sendNetworkStateChanged() argument
41 networkInfo.setDetailedState(detailedState, "", ""); in sendNetworkStateChanged()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DNetworkInfoTest.kt99 assertEquals(DetailedState.IDLE, networkInfo.detailedState) in testConstructor()
127 assertEquals(DetailedState.CONNECTED, networkInfo.detailedState) in testSetDetailedState()
DNetworkAgentTest.kt998 argThat<NetworkInfo> { it.detailedState == NetworkInfo.DetailedState.CONNECTING }, in testAgentStartsInConnecting()
/packages/modules/Connectivity/tests/cts/hostside-network-policy/app/src/com/android/cts/netpolicy/hostside/
DAbstractRestrictBackgroundNetworkTestCase.java548 final DetailedState detailedState = networkInfo.getDetailedState(); in checkForAvailabilityInNetworkCheckResult() local
568 if (expectedState != state || expectedDetailedState != detailedState) { in checkForAvailabilityInNetworkCheckResult()
570 expectedState, expectedDetailedState, state, detailedState)); in checkForAvailabilityInNetworkCheckResult()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DClientModeImpl.java2344 NetworkInfo.DetailedState detailedState = info.getDetailedState(); in getLogRecString() local
2348 if (detailedState != null) { in getLogRecString()
2349 sb.append("/").append(detailedState); in getLogRecString()
3054 private int convertDetailedStateToNetworkStateChangedCode(DetailedState detailedState) { in convertDetailedStateToNetworkStateChangedCode() argument
3055 switch (detailedState) { in convertDetailedStateToNetworkStateChangedCode()