Home
last modified time | relevance | path

Searched refs:STATE_CONNECTING (Results 1 – 25 of 122) sorted by relevance

12345

/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hearingaid/
DHearingAidServiceTest.java26 import static android.bluetooth.BluetoothProfile.STATE_CONNECTING;
247 verifyConnectionStateIntent(mLeftDevice, STATE_CONNECTING, STATE_DISCONNECTED); in outgoingConnect_whenTimeOut_isDisconnected()
248 assertThat(mService.getConnectionState(mLeftDevice)).isEqualTo(STATE_CONNECTING); in outgoingConnect_whenTimeOut_isDisconnected()
253 verifyConnectionStateIntent(mLeftDevice, STATE_DISCONNECTED, STATE_CONNECTING); in outgoingConnect_whenTimeOut_isDisconnected()
264 verifyConnectionStateIntent(mLeftDevice, STATE_CONNECTING, STATE_DISCONNECTED); in connectLeft_whenInAPair_connectBothDevices()
265 assertThat(mService.getConnectionState(mLeftDevice)).isEqualTo(STATE_CONNECTING); in connectLeft_whenInAPair_connectBothDevices()
266 verifyConnectionStateIntent(mRightDevice, STATE_CONNECTING, STATE_DISCONNECTED); in connectLeft_whenInAPair_connectBothDevices()
267 assertThat(mService.getConnectionState(mRightDevice)).isEqualTo(STATE_CONNECTING); in connectLeft_whenInAPair_connectBothDevices()
277 verifyConnectionStateIntent(mLeftDevice, STATE_CONNECTING, STATE_DISCONNECTED); in connectDifferentPair_whenConnected_currentIsDisconnected()
278 verifyConnectionStateIntent(mRightDevice, STATE_CONNECTING, STATE_DISCONNECTED); in connectDifferentPair_whenConnected_currentIsDisconnected()
[all …]
DHearingAidStateMachineTest.java22 import static android.bluetooth.BluetoothProfile.STATE_CONNECTING;
119 connStCh.valueInt1 = STATE_CONNECTING; in incomingConnect_whenOkToConnect_isConnected()
124 hasExtra(EXTRA_STATE, STATE_CONNECTING)); in incomingConnect_whenOkToConnect_isConnected()
148 hasExtra(EXTRA_STATE, STATE_CONNECTING)); in outgoingConnect_whenTimeOut_isDisconnectedAndInAcceptList()
169 connStCh.valueInt1 = STATE_CONNECTING; in incomingConnect_whenTimeOut_isDisconnectedAndInAcceptList()
174 hasExtra(EXTRA_STATE, STATE_CONNECTING)); in incomingConnect_whenTimeOut_isDisconnectedAndInAcceptList()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/vc/
DVolumeControlStateMachineTest.java23 import static android.bluetooth.BluetoothProfile.STATE_CONNECTING;
121 generateConnectionMessageFromNative(STATE_CONNECTING, STATE_DISCONNECTED); in incomingConnect_whenOkToConnect_isConnected()
125 generateConnectionMessageFromNative(STATE_CONNECTED, STATE_CONNECTING); in incomingConnect_whenOkToConnect_isConnected()
133 verifyConnectionStateIntent(STATE_CONNECTING, STATE_DISCONNECTED); in outgoingConnect_whenTimeOut_isDisconnectedAndInAcceptList()
140 verifyConnectionStateIntent(STATE_DISCONNECTED, STATE_CONNECTING); in outgoingConnect_whenTimeOut_isDisconnectedAndInAcceptList()
149 generateConnectionMessageFromNative(STATE_CONNECTING, STATE_DISCONNECTED); in incomingConnect_whenTimeOut_isDisconnectedAndInAcceptList()
156 verifyConnectionStateIntent(STATE_DISCONNECTED, STATE_CONNECTING); in incomingConnect_whenTimeOut_isDisconnectedAndInAcceptList()
173 verifyConnectionStateIntent(STATE_CONNECTING, STATE_DISCONNECTED); in disconnect_whenConnecting_isDisconnectedWithBroadcast()
175 verifyConnectionStateIntent(STATE_DISCONNECTED, STATE_CONNECTING); in disconnect_whenConnecting_isDisconnectedWithBroadcast()
181 generateConnectionMessageFromNative(STATE_CONNECTING, STATE_DISCONNECTED); in disconnect_whenIncomingConnecting_isDisconnectedWithBroadcast()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hap/
DHapClientStateMachineTest.java24 import static android.bluetooth.BluetoothProfile.STATE_CONNECTING;
114 generateConnectionMessageFromNative(STATE_CONNECTING, STATE_DISCONNECTED); in incomingConnect_whenOkToConnect_isConnected()
118 generateConnectionMessageFromNative(STATE_CONNECTED, STATE_CONNECTING); in incomingConnect_whenOkToConnect_isConnected()
126 verifyConnectionStateIntent(STATE_CONNECTING, STATE_DISCONNECTED); in outgoingConnect_whenTimeOut_isDisconnectedAndInAcceptList()
133 verifyConnectionStateIntent(STATE_DISCONNECTED, STATE_CONNECTING); in outgoingConnect_whenTimeOut_isDisconnectedAndInAcceptList()
140 generateConnectionMessageFromNative(STATE_CONNECTING, STATE_DISCONNECTED); in incomingConnect_whenTimeOut_isDisconnectedAndInAcceptList()
147 verifyConnectionStateIntent(STATE_DISCONNECTED, STATE_CONNECTING); in incomingConnect_whenTimeOut_isDisconnectedAndInAcceptList()
163 verifyConnectionStateIntent(STATE_CONNECTING, STATE_DISCONNECTED); in timeout_whenOutgoingConnect_isDisconnected()
170 verifyConnectionStateIntent(STATE_DISCONNECTED, STATE_CONNECTING); in timeout_whenOutgoingConnect_isDisconnected()
178 verifyConnectionStateIntent(STATE_CONNECTING, STATE_DISCONNECTED); in disconnect_whenConnecting_isDisconnected()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/pbapclient/
DPbapClientStateMachineTest.java20 import static android.bluetooth.BluetoothProfile.STATE_CONNECTING;
185 assertThat(mPbapClientStateMachine.getConnectionState()).isEqualTo(STATE_CONNECTING); in testDisconnected_receivedConnect_connectionStateChangesToConnecting()
187 .onConnectionStateChanged(eq(STATE_DISCONNECTED), eq(STATE_CONNECTING)); in testDisconnected_receivedConnect_connectionStateChangesToConnecting()
241 .onConnectionStateChanged(eq(STATE_CONNECTING), eq(STATE_DISCONNECTING)); in testConnecting_receivedSdpResultWithFailedStatus_transitionToDisconnecting()
259 assertThat(mPbapClientStateMachine.getConnectionState()).isEqualTo(STATE_CONNECTING); in testConnecting_receivedSdpResultWithBusyStatus_sdpRetried()
281 .onConnectionStateChanged(eq(STATE_CONNECTING), eq(STATE_DISCONNECTING)); in testConnecting_receivedSdpResultWithUnknownStatus_transitionToDisconnecting()
290 setAndNotifyObexClientStatus(STATE_DISCONNECTED, STATE_CONNECTING); in testConnecting_receivedObexConnection_transitionToConnected()
291 setAndNotifyObexClientStatus(STATE_CONNECTING, STATE_CONNECTED); in testConnecting_receivedObexConnection_transitionToConnected()
296 .onConnectionStateChanged(eq(STATE_CONNECTING), eq(STATE_CONNECTED)); in testConnecting_receivedObexConnection_transitionToConnected()
306 .onConnectionStateChanged(eq(STATE_CONNECTING), eq(STATE_DISCONNECTING)); in testConnecting_receivedConnectionTimeout_transitionToDisconnecting()
[all …]
DPbapClientStateMachineOldTest.java18 import static android.bluetooth.BluetoothProfile.STATE_CONNECTING;
104 assertThat(mPbapClientStateMachine.getConnectionState()).isEqualTo(STATE_CONNECTING); in testDefaultConnectingState()
113 assertThat(mPbapClientStateMachine.getConnectionState()).isEqualTo(STATE_CONNECTING); in testStateTransitionFromConnectingToDisconnected()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/a2dpsink/
DA2dpSinkStateMachineTest.java22 import static android.bluetooth.BluetoothProfile.STATE_CONNECTING;
113 assertThat(mStateMachine.getState()).isEqualTo(STATE_CONNECTING); in testConnectInDisconnected()
140 sendConnectionEvent(STATE_CONNECTING); in testAllowedIncomingConnectionInDisconnected()
141 assertThat(mStateMachine.getState()).isEqualTo(STATE_CONNECTING); in testAllowedIncomingConnectionInDisconnected()
149 sendConnectionEvent(STATE_CONNECTING); in testForbiddenIncomingConnectionInDisconnected()
158 sendConnectionEvent(STATE_CONNECTING); in testUnknownIncomingConnectionInDisconnected()
159 assertThat(mStateMachine.getState()).isEqualTo(STATE_CONNECTING); in testUnknownIncomingConnectionInDisconnected()
181 sendConnectionEvent(STATE_CONNECTING); in testIncomingConnectingInDisconnected()
209 sendConnectionEvent(STATE_CONNECTING); in testConnectingInConnecting()
210 assertThat(mStateMachine.getState()).isEqualTo(STATE_CONNECTING); in testConnectingInConnecting()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/a2dp/
DA2dpServiceTest.java23 import static android.bluetooth.BluetoothProfile.STATE_CONNECTING;
317 verifyConnectionStateIntent(mDevice, STATE_CONNECTING, STATE_DISCONNECTED); in testOutgoingConnectTimeout()
318 assertThat(mA2dpService.getConnectionState(mDevice)).isEqualTo(STATE_CONNECTING); in testOutgoingConnectTimeout()
325 verifyConnectionStateIntent(mDevice, STATE_DISCONNECTED, STATE_CONNECTING); in testOutgoingConnectTimeout()
345 verifyConnectionStateIntent(mDevice, STATE_CONNECTING, STATE_DISCONNECTED); in testOutgoingConnectDisconnectSuccess()
346 assertThat(mA2dpService.getConnectionState(mDevice)).isEqualTo(STATE_CONNECTING); in testOutgoingConnectDisconnectSuccess()
356 verifyConnectionStateIntent(mDevice, STATE_CONNECTED, STATE_CONNECTING); in testOutgoingConnectDisconnectSuccess()
405 verifyConnectionStateIntent(testDevice, STATE_CONNECTING, STATE_DISCONNECTED); in testMaxConnectDevices()
406 assertThat(mA2dpService.getConnectionState(testDevice)).isEqualTo(STATE_CONNECTING); in testMaxConnectDevices()
415 verifyConnectionStateIntent(testDevice, STATE_CONNECTED, STATE_CONNECTING); in testMaxConnectDevices()
[all …]
DA2dpStateMachineTest.java23 import static android.bluetooth.BluetoothProfile.STATE_CONNECTING;
163 generateConnectionMessageFromNative(STATE_CONNECTING, STATE_DISCONNECTED); in incomingConnect_whenOkToConnect_isConnected()
166 generateConnectionMessageFromNative(STATE_CONNECTED, STATE_CONNECTING); in incomingConnect_whenOkToConnect_isConnected()
178 verifyConnectionStateIntent(STATE_CONNECTING, STATE_DISCONNECTED); in outgoingConnect_whenTimeOut_isDisconnectedAndInAcceptList()
184 verifyConnectionStateIntent(STATE_DISCONNECTED, STATE_CONNECTING); in outgoingConnect_whenTimeOut_isDisconnectedAndInAcceptList()
191 generateConnectionMessageFromNative(STATE_CONNECTING, STATE_DISCONNECTED); in incomingConnect_whenTimeOut_isDisconnectedAndInAcceptList()
197 verifyConnectionStateIntent(STATE_DISCONNECTED, STATE_CONNECTING); in incomingConnect_whenTimeOut_isDisconnectedAndInAcceptList()
338 verifyConnectionStateIntent(STATE_CONNECTING, STATE_DISCONNECTED); in connectEventNeglectedWhileInConnectingState()
345 verifyConnectionStateIntent(STATE_DISCONNECTED, STATE_CONNECTING); in connectEventNeglectedWhileInConnectingState()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/bas/
DBatteryStateMachineTest.java21 import static android.bluetooth.BluetoothProfile.STATE_CONNECTING;
109 .handleConnectionStateChanged(any(), eq(STATE_DISCONNECTED), eq(STATE_CONNECTING)); in connect_successCase_isConnected()
116 .handleConnectionStateChanged(any(), eq(STATE_CONNECTING), eq(STATE_CONNECTED)); in connect_successCase_isConnected()
126 .handleConnectionStateChanged(any(), eq(STATE_DISCONNECTED), eq(STATE_CONNECTING)); in disconnect_whenConnecting_isDisconnected()
131 .handleConnectionStateChanged(any(), eq(STATE_CONNECTING), eq(STATE_DISCONNECTED)); in disconnect_whenConnecting_isDisconnected()
237 .handleConnectionStateChanged(any(), eq(STATE_DISCONNECTED), eq(STATE_CONNECTING)); in testDisconnectResetBatteryLevel()
245 .handleConnectionStateChanged(any(), eq(STATE_CONNECTING), eq(STATE_CONNECTED)); in testDisconnectResetBatteryLevel()
/packages/modules/Telephony/services/QualifiedNetworksService/src/com/android/telephony/qns/
DDataConnectionStatusTracker.java41 static final int STATE_CONNECTING = 1; field in DataConnectionStatusTracker
48 STATE_CONNECTING,
129 return mState == STATE_CONNECTING || mState == STATE_HANDOVER; in isConnectionInProgress()
185 if (mState == STATE_CONNECTING) { in onDataConnectionStateChanged()
197 mState = STATE_CONNECTING; in onDataConnectionStateChanged()
206 if (mState == STATE_CONNECTING || mState == STATE_INACTIVE) { in onDataConnectionStateChanged()
290 case STATE_CONNECTING: in stateToString()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/le_audio/
DLeAudioStateMachineTest.java21 import static android.bluetooth.BluetoothProfile.STATE_CONNECTING;
150 .notifyConnectionStateChanged(any(), eq(STATE_CONNECTING), anyInt()); in testIncomingPriorityAccept()
166 .notifyConnectionStateChanged(any(), eq(STATE_CONNECTING), anyInt()); in testIncomingPriorityAccept()
186 .notifyConnectionStateChanged(any(), eq(STATE_CONNECTING), anyInt()); in testOutgoingTimeout()
217 .notifyConnectionStateChanged(any(), eq(STATE_CONNECTING), anyInt()); in testIncomingTimeout()
247 .notifyConnectionStateChanged(any(), eq(STATE_CONNECTING), eq(STATE_DISCONNECTED)); in connectEventNeglectedWhileInConnectingState()
257 .notifyConnectionStateChanged(any(), eq(STATE_DISCONNECTED), eq(STATE_CONNECTING)); in connectEventNeglectedWhileInConnectingState()
/packages/modules/Telephony/services/QualifiedNetworksService/tests/src/com/android/telephony/qns/
DDataConnectionStatusTrackerTest.java33 import static com.android.telephony.qns.DataConnectionStatusTracker.STATE_CONNECTING;
171 STATE_CONNECTING, TRANSPORT_TYPE_WWAN, EVENT_DATA_CONNECTION_STARTED); in testOnCellular()
212 STATE_CONNECTING, TRANSPORT_TYPE_WWAN, EVENT_DATA_CONNECTION_STARTED); in testCellularConnectingToDisconnect()
241 STATE_CONNECTING, TRANSPORT_TYPE_WLAN, EVENT_DATA_CONNECTION_STARTED); in testOnIwlan()
283 STATE_CONNECTING, TRANSPORT_TYPE_WLAN, EVENT_DATA_CONNECTION_STARTED); in testIwlanConnectingToDisconnect()
313 STATE_CONNECTING, TRANSPORT_TYPE_WWAN, EVENT_DATA_CONNECTION_STARTED); in testOnCellularHandover()
367 STATE_CONNECTING, TRANSPORT_TYPE_WWAN, EVENT_DATA_CONNECTION_STARTED); in testHandoverOnNonSrcTransportType()
406 STATE_CONNECTING, TRANSPORT_TYPE_WWAN, EVENT_DATA_CONNECTION_STARTED); in testOnCellularHandoverSuspended()
460 STATE_CONNECTING, TRANSPORT_TYPE_WWAN, EVENT_DATA_CONNECTION_STARTED); in testOnCellularHandoverFail()
556 STATE_CONNECTING, TRANSPORT_TYPE_WLAN, EVENT_DATA_CONNECTION_STARTED); in testOnIwlanWithApnSetting()
[all …]
/packages/modules/Nfc/NfcNci/tests/unit/src/com/android/nfc/handover/
DBluetoothPeripheralHandoverTest.java29 import static com.android.nfc.handover.BluetoothPeripheralHandover.STATE_CONNECTING;
247 BluetoothProfile.STATE_CONNECTING); in testNextStepConnect_STATE_BONDING_RETRY_CONNECT_WAIT_TIME_MS()
248 when(mockA2dp.getConnectionState(mockDevice)).thenReturn(BluetoothProfile.STATE_CONNECTING); in testNextStepConnect_STATE_BONDING_RETRY_CONNECT_WAIT_TIME_MS()
253 assertEquals(STATE_CONNECTING, bluetoothPeripheralHandover.mState); in testNextStepConnect_STATE_BONDING_RETRY_CONNECT_WAIT_TIME_MS()
267 BluetoothProfile.STATE_CONNECTING); in testNextStepConnect_STATE_BONDING_mRetryCount_Zero()
268 when(mockA2dp.getConnectionState(mockDevice)).thenReturn(BluetoothProfile.STATE_CONNECTING); in testNextStepConnect_STATE_BONDING_mRetryCount_Zero()
274 assertEquals(STATE_CONNECTING, bluetoothPeripheralHandover.mState); in testNextStepConnect_STATE_BONDING_mRetryCount_Zero()
282 BluetoothProfile.STATE_CONNECTING); in testNextStepConnect_STATE_BONDING_TRANSPORT_LE_STATE_CONNECTING()
287 assertEquals(STATE_CONNECTING, bluetoothPeripheralHandover.mState); in testNextStepConnect_STATE_BONDING_TRANSPORT_LE_STATE_CONNECTING()
313 BluetoothProfile.STATE_CONNECTING); in testNextStepConnect_STATE_BONDING_notTRANSPORT_LE_HeadsetNotAvailable()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/
DAdapterProperties.java23 import static android.bluetooth.BluetoothProfile.STATE_CONNECTING;
671 || state == STATE_CONNECTING in validateProfileConnectionState()
684 case STATE_CONNECTING: in convertToAdapterState()
685 return BluetoothAdapter.STATE_CONNECTING; in convertToAdapterState()
694 return nextState == STATE_CONNECTING; in isNormalStateTransition()
698 case STATE_CONNECTING: in isNormalStateTransition()
707 case STATE_CONNECTING: in updateCountersAndCheckForConnectionStateChange()
739 case STATE_CONNECTING: in updateCountersAndCheckForConnectionStateChange()
787 || (newState == STATE_CONNECTING && currHashState != STATE_CONNECTED)) { in updateProfileConnectionState()
794 if (currHashState == STATE_CONNECTED || currHashState == STATE_CONNECTING) { in updateProfileConnectionState()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hfp/
DHeadsetServiceTest.java23 import static android.bluetooth.BluetoothProfile.STATE_CONNECTING;
290 when(mStateMachines.get(mCurrentDevice).getConnectionState()).thenReturn(STATE_CONNECTING); in testConnectDevice_connectDeviceBelowLimit()
291 assertThat(mHeadsetService.getConnectionState(mCurrentDevice)).isEqualTo(STATE_CONNECTING); in testConnectDevice_connectDeviceBelowLimit()
426 .thenReturn(STATE_CONNECTING); in testConnectDevice_connectDeviceAboveLimit()
550 .thenReturn(STATE_CONNECTING); in testConnectAudio_withMultipleDevices()
552 mCurrentDevice, STATE_DISCONNECTED, STATE_CONNECTING); in testConnectAudio_withMultipleDevices()
565 mCurrentDevice, STATE_CONNECTING, STATE_CONNECTED); in testConnectAudio_withMultipleDevices()
642 .thenReturn(STATE_CONNECTING); in testConnectAudio_connectTwoAudioChannelsShouldFail()
644 mCurrentDevice, STATE_DISCONNECTED, STATE_CONNECTING); in testConnectAudio_connectTwoAudioChannelsShouldFail()
655 mCurrentDevice, STATE_CONNECTING, STATE_CONNECTED); in testConnectAudio_connectTwoAudioChannelsShouldFail()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/mapclient/
DMapClientStateMachineTest.java24 import static android.bluetooth.BluetoothProfile.STATE_CONNECTING;
225 STATE_DISCONNECTED, STATE_CONNECTING); in setUp()
261 assertThat(mStateMachine.getState()).isEqualTo(STATE_CONNECTING); in testDefaultConnectingState()
273 verifyStateTransitionAndIntent(STATE_CONNECTING, STATE_DISCONNECTED); in testStateTransitionFromConnectingToDisconnected()
280 verifyStateTransitionAndIntent(STATE_CONNECTING, STATE_CONNECTED); in masConnected_whenConnecting_isConnected()
713 assertCurrentStateAfterScheduledTask(STATE_CONNECTING); in testSdpBusyWhileConnecting_sdpRetried()
723 verifyStateTransitionAndIntent(STATE_CONNECTING, STATE_CONNECTED); in testSdpBusyWhileConnecting_sdpRetried()
728 assertCurrentStateAfterScheduledTask(STATE_CONNECTING); in testSdpBusyWhileConnectingAndRetryResultsReceivedAfterTimeout_resultsIgnored()
738 verifyStateTransitionAndIntent(STATE_CONNECTING, STATE_DISCONNECTING); in testSdpBusyWhileConnectingAndRetryResultsReceivedAfterTimeout_resultsIgnored()
750 assertCurrentStateAfterScheduledTask(STATE_CONNECTING); in testSdpFailedWithNoRecordWhileConnecting_deviceDisconnecting()
[all …]
/packages/services/Car/tests/MultiDisplayTest/src/com/google/android/car/multidisplaytest/occupantconnection/
DSenderFragment.java48 private static final int STATE_CONNECTING = 1; field in SenderFragment
119 if (mConnectionState == STATE_CONNECTING) { in onCreateView()
131 mConnectionState = STATE_CONNECTING; in onCreateView()
142 if (mConnectionState != STATE_CONNECTING) { in onCreateView()
249 if (mConnectionState == STATE_CONNECTING) { in onDestroy()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/avrcpcontroller/
DAvrcpBipClientTest.java19 import static android.bluetooth.BluetoothProfile.STATE_CONNECTING;
101 mClient.setConnectionState(STATE_CONNECTING); in setConnectionState()
103 assertThat(mClient.getState()).isEqualTo(STATE_CONNECTING); in setConnectionState()
/packages/modules/Bluetooth/framework/java/android/bluetooth/
DBluetoothProfile.java61 int STATE_CONNECTING = 1; field
72 STATE_CONNECTING,
411 case STATE_CONNECTING: in getConnectionStateName()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hearingaid/
DHearingAidStateMachine.java47 import static android.bluetooth.BluetoothProfile.STATE_CONNECTING;
204 case STATE_CONNECTING -> { in processConnectionEvent()
244 mConnectionState = STATE_CONNECTING; in enter()
245 broadcastConnectionState(STATE_CONNECTING); in enter()
255 mLastConnectionState = STATE_CONNECTING; in exit()
408 case STATE_CONNECTING -> { in processConnectionEvent()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/vc/
DVolumeControlStateMachine.java22 import static android.bluetooth.BluetoothProfile.STATE_CONNECTING;
176 case STATE_CONNECTING -> { in processConnectionEvent()
219 broadcastConnectionState(STATE_CONNECTING, mLastConnectionState); in enter()
229 mLastConnectionState = STATE_CONNECTING; in exit()
306 case "Connecting" -> STATE_CONNECTING; in getConnectionState()
398 case STATE_CONNECTING -> { in processConnectionEvent()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/csip/
DCsipSetCoordinatorServiceTest.java30 import static android.bluetooth.BluetoothProfile.STATE_CONNECTING;
275 verifyConnectionStateIntent(STATE_CONNECTING, STATE_DISCONNECTED); in outgoingConnect_whenTimeOut_isDisconnected()
280 verifyConnectionStateIntent(STATE_DISCONNECTED, STATE_CONNECTING); in outgoingConnect_whenTimeOut_isDisconnected()
340 mService.connectionStateChanged(mDevice, STATE_CONNECTING, STATE_CONNECTED); in nativeCallback_afterGroupConnected_generateIntent()
370 mService.connectionStateChanged(mDevice, STATE_CONNECTING, STATE_CONNECTED); in testStackEventSetMemberAvailableBeforeGroupConnected()
394 mService.connectionStateChanged(mDevice, STATE_CONNECTING, STATE_CONNECTED); in testDisableCsipAfterConnectingIfLeAudioDisabled()
413 mService.connectionStateChanged(mDevice2, STATE_CONNECTING, STATE_CONNECTED); in testDisableCsipAfterConnectingIfLeAudioDisabled()
/packages/modules/Nfc/NfcNci/src/com/android/nfc/handover/
DBluetoothPeripheralHandover.java81 static final int STATE_CONNECTING = 5; field in BluetoothPeripheralHandover
409 mState = STATE_CONNECTING; in nextStepConnect()
458 case STATE_CONNECTING: in nextStepConnect()
538 (mState == STATE_CONNECTING || mState == STATE_DISCONNECTING)) { in handleIntent()
552 (mState == STATE_CONNECTING || mState == STATE_DISCONNECTING)) { in handleIntent()
566 (mState == STATE_CONNECTING || mState == STATE_DISCONNECTING)) { in handleIntent()
674 } else if (mState == STATE_CONNECTING) {
697 } else if (mState == STATE_CONNECTING) {
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hfpclient/
DHeadsetClientService.java22 import static android.bluetooth.BluetoothProfile.STATE_CONNECTING;
339 if (connectionState != STATE_CONNECTED && connectionState != STATE_CONNECTING) { in disconnect()
600 if (connectionState != STATE_CONNECTED && connectionState != STATE_CONNECTING) { in holdCall()
654 if (connectionState != STATE_CONNECTED && connectionState != STATE_CONNECTING) { in rejectCall()
671 if (connectionState != STATE_CONNECTED && connectionState != STATE_CONNECTING) { in terminateCall()
689 if (connectionState != STATE_CONNECTED && connectionState != STATE_CONNECTING) { in enterPrivateMode()
707 if (connectionState != STATE_CONNECTED && connectionState != STATE_CONNECTING) { in dial()
743 if (connectionState != STATE_CONNECTED && connectionState != STATE_CONNECTING) { in sendDTMF()
778 if (connectionState != STATE_CONNECTED && connectionState != STATE_CONNECTING) { in explicitCallTransfer()

12345