Home
last modified time | relevance | path

Searched refs:CONNECTED (Results 1 – 25 of 79) sorted by relevance

1234

/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/functional/
DConnectivityManagerMobileTest.java58 State.CONNECTED, LONG_TIMEOUT)) { in setUp()
89 ConnectivityManager.TYPE_MOBILE, State.CONNECTED, LONG_TIMEOUT)); in test3GToWifiNotification()
124 ConnectivityManager.TYPE_WIFI, State.CONNECTED, WIFI_CONNECTION_TIMEOUT)); in testConnectToWifi()
148 ConnectivityManager.TYPE_WIFI, State.CONNECTED, WIFI_CONNECTION_TIMEOUT)); in testConnectToWifWithKnownAP()
160 ConnectivityManager.TYPE_MOBILE, State.CONNECTED, LONG_TIMEOUT)); in testConnectToWifWithKnownAP()
172 ConnectivityManager.TYPE_WIFI, State.CONNECTED, WIFI_CONNECTION_TIMEOUT)); in testConnectToWifWithKnownAP()
196 ConnectivityManager.TYPE_WIFI, State.CONNECTED, WIFI_CONNECTION_TIMEOUT)); in testDisconnectWifi()
207 State.CONNECTED, LONG_TIMEOUT)); in testDisconnectWifi()
226 ConnectivityManager.TYPE_MOBILE, State.CONNECTED, LONG_TIMEOUT)); in testDataConnectionWith3GToAmTo3G()
242 ConnectivityManager.TYPE_MOBILE, State.CONNECTED, LONG_TIMEOUT)); in testDataConnectionWith3GToAmTo3G()
[all …]
/frameworks/base/tests/utils/testutils/java/com/android/internal/util/test/
DBidirectionalAsyncChannel.java38 public enum ChannelState { DISCONNECTED, HALF_CONNECTED, CONNECTED, FAILURE }; enumConstant
42 assertEquals("AsyncChannel was not fully connected", ChannelState.CONNECTED, mState); in assertConnected()
66 mState = ChannelState.CONNECTED; in connect()
85 ChannelState.CONNECTED, mState); in disconnect()
93 ChannelState.CONNECTED, mState); in sendMessage()
/frameworks/base/tests/net/java/com/android/server/
DLegacyTypeTrackerTest.kt24 import android.net.NetworkInfo.DetailedState.CONNECTED
77 verify(mMockService).sendLegacyNetworkBroadcast(mobileNai, CONNECTED, TYPE_MOBILE) in testSupl()
80 verify(mMockService).sendLegacyNetworkBroadcast(mobileNai, CONNECTED, TYPE_MOBILE_SUPL) in testSupl()
86 verify(mMockService).sendLegacyNetworkBroadcast(mobileNai, CONNECTED, TYPE_MOBILE_SUPL) in testSupl()
126 verify(mMockService).sendLegacyNetworkBroadcast(mobileNai1, CONNECTED, TYPE_MOBILE) in testBroadcastOnDisconnect()
133 verify(mMockService).sendLegacyNetworkBroadcast(mobileNai2, CONNECTED, TYPE_MOBILE) in testBroadcastOnDisconnect()
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/
DNetworkState.java143 if (mStateDepository.get(0) != State.CONNECTED) { in validateNetworkDisconnection()
159 if ((preState == State.CONNECTED) && ((curState == State.DISCONNECTING) || in validateNetworkDisconnection()
201 (curState == State.CONNECTED) || (curState == State.DISCONNECTED))) { in validateNetworkConnection()
203 } else if ((preState == State.CONNECTING) && (curState == State.CONNECTED)) { in validateNetworkConnection()
205 } else if ((preState == State.CONNECTED) && (curState == State.CONNECTED)) { in validateNetworkConnection()
DBandwidthTest.java288 State.CONNECTED, ConnectionUtil.LONG_TIMEOUT)); in setDeviceWifiAndAirplaneMode()
299 State.CONNECTED, ConnectionUtil.LONG_TIMEOUT)); in hasMobileData()
/frameworks/base/core/java/android/net/
DNetworkInfo.java76 CONNECTING, CONNECTED, SUSPENDED, DISCONNECTING, DISCONNECTED, UNKNOWN enumConstant
99 CONNECTED, enumConstant
132 stateMap.put(DetailedState.CONNECTED, State.CONNECTED); in stateMap.put() argument
309 return mState == State.CONNECTED || mState == State.CONNECTING; in isConnectedOrConnecting()
329 return mState == State.CONNECTED; in isConnected()
Dnetwork-policy-restrictions.md20 …ed while app on background (NetworkInfo's state/detailed state should be `CONNECTED` / `CONNECTED`)
/frameworks/base/services/backup/backuplib/java/com/android/server/backup/transport/
DTransportClient.java244 case State.CONNECTED: in connectAsync()
273 case State.CONNECTED: in unbind()
433 setStateLocked(State.CONNECTED, transport); in onServiceConnected()
484 case State.CONNECTED: in onBindingDied()
522 int connected = transitionThroughState(oldState, newState, State.CONNECTED); in onStateTransition()
569 case State.CONNECTED: in checkStateIntegrityLocked()
594 case State.CONNECTED: in stateToString()
636 @IntDef({State.UNUSABLE, State.IDLE, State.BOUND_AND_CONNECTING, State.CONNECTED})
643 int CONNECTED = 3; field
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiStateTracker.java33 public static final int CONNECTED = 3; field in WifiStateTracker
66 case CONNECTED: in updateState()
/frameworks/base/telephony/java/com/android/internal/telephony/
DPhoneConstantConversions.java62 case CONNECTED: in convertDataState()
82 return PhoneConstants.DataState.CONNECTED; in convertDataState()
DDctConstants.java52 CONNECTED, enumConstant
DPhoneConstants.java61 CONNECTED, enumConstant
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/stress/
DWifiStressTest.java217 State.CONNECTED, WIFI_CONNECTION_TIMEOUT)); in testWifiReconnectionAfterSleep()
253 waitForNetworkState(ConnectivityManager.TYPE_MOBILE, State.CONNECTED, in testWifiReconnectionAfterSleep()
265 assertEquals("mobile not connected", State.CONNECTED, in testWifiReconnectionAfterSleep()
277 waitForNetworkState(ConnectivityManager.TYPE_WIFI, State.CONNECTED, in testWifiReconnectionAfterSleep()
/frameworks/base/wifi/tests/src/android/net/wifi/p2p/
DWifiP2pDeviceTest.java94 device.status = WifiP2pDevice.CONNECTED; in testCopyConstructorWithUpdatedValues()
113 device.status = WifiP2pDevice.CONNECTED; in testCopyConstructorWithNullWfdInfo()
/frameworks/ex/common/java/com/android/common/
DNetworkConnectivityListener.java80 mState = State.CONNECTED; in onReceive()
112 CONNECTED, enumConstant
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/
DDcTrackerTest.java599 assertEquals(DctConstants.State.CONNECTED, mDct.getOverallState()); in verifyDataConnected()
600 assertEquals(DctConstants.State.CONNECTED, mDct.getState(PhoneConstants.APN_TYPE_DEFAULT)); in verifyDataConnected()
793 assertEquals(DctConstants.State.CONNECTED, mDct.getOverallState()); in testUserDisableData()
795 assertEquals(DctConstants.State.CONNECTED, mDct.getState(PhoneConstants.APN_TYPE_IMS)); in testUserDisableData()
860 assertEquals(DctConstants.State.CONNECTED, mDct.getState(PhoneConstants.APN_TYPE_MMS)); in testTrySetupDataMmsAllowedDataDisabled()
904 assertEquals(DctConstants.State.CONNECTED, mDct.getOverallState()); in testUserDisableRoaming()
906 assertEquals(DctConstants.State.CONNECTED, mDct.getState(PhoneConstants.APN_TYPE_IMS)); in testUserDisableRoaming()
942 assertEquals(DctConstants.State.CONNECTED, mDct.getOverallState()); in testDataCallOnUserDisableRoaming()
944 assertEquals(DctConstants.State.CONNECTED, mDct.getState(PhoneConstants.APN_TYPE_IMS)); in testDataCallOnUserDisableRoaming()
990 assertEquals(DctConstants.State.CONNECTED, mDct.getOverallState()); in testCarrierActionSetMeteredApnsEnabled()
[all …]
/frameworks/base/core/java/android/service/textclassifier/
DTextClassifierService.java106 public static final int CONNECTED = 0; field in TextClassifierService
111 CONNECTED,
217 mMainThreadHandler.post(connected == CONNECTED ? TextClassifierService.this::onConnected
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiStateTrackerTest.java60 WifiStateTracker.CONNECTED, WifiStateTracker.DISCONNECTED, in testBatteryStatsUpdated()
/frameworks/base/core/java/android/bluetooth/
DBluetoothSocket.java154 CONNECTED, enumConstant
255 as.mSocketState = SocketState.CONNECTED; in acceptSocket()
360 return mSocketState == SocketState.CONNECTED; in isConnected()
414 mSocketState = SocketState.CONNECTED; in connect()
/frameworks/base/core/java/com/android/internal/net/
DLegacyVpnInfo.java90 case CONNECTED: in stateFromNetworkInfo()
/frameworks/base/tests/net/integration/util/com/android/server/
DNetworkAgentWrapper.java208 getNetworkInfo().getDetailedState(), NetworkInfo.DetailedState.CONNECTED); in connect()
209 mNetworkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTED, null, null); in connect()
/frameworks/av/media/libstagefright/rtsp/
DARTSPConnection.cpp309 mState = CONNECTED; in onConnect()
337 if (mState == CONNECTED || mState == CONNECTING) { in onDisconnect()
401 mState = CONNECTED; in onCompleteConnection()
414 if (mState != CONNECTED) { in onSendRequest()
481 if (mState != CONNECTED) { in onReceiveResponse()
DARTSPConnection.h59 CONNECTED, enumerator
/frameworks/base/services/core/java/com/android/server/audio/
DAudioDeviceInventory.java127 ? MediaMetrics.Value.CONNECTED : MediaMetrics.Value.DISCONNECTED)
306 ? MediaMetrics.Value.CONNECTED : MediaMetrics.Value.DISCONNECTED) in onSetA2dpSinkConnectionState()
363 ? MediaMetrics.Value.CONNECTED : MediaMetrics.Value.DISCONNECTED) in onSetA2dpSourceConnectionState()
389 ? MediaMetrics.Value.CONNECTED : MediaMetrics.Value.DISCONNECTED) in onSetHearingAidConnectionState()
548 ? MediaMetrics.Value.DISCONNECTED : MediaMetrics.Value.CONNECTED); in onSetWiredDeviceConnectionState()
696 mmi.set(MediaMetrics.Property.STATE, MediaMetrics.Value.CONNECTED).record(); in handleDeviceConnection()
704 mmi.set(MediaMetrics.Property.STATE, MediaMetrics.Value.CONNECTED).record(); in handleDeviceConnection()
1093 ? MediaMetrics.Value.CONNECTED : MediaMetrics.Value.DISCONNECTED); in checkSendBecomingNoisyIntentInt()
/frameworks/opt/net/wifi/libs/WifiTrackerLib/tests/src/com/android/wifitrackerlib/
DWifiPickerTrackerTest.java435 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()
608 when(mMockNetworkInfo.getDetailedState()).thenReturn(NetworkInfo.DetailedState.CONNECTED); in testGetConnectedEntry_alreadyConnectedToPasspoint_returnsPasspointEntry()

1234