Home
last modified time | relevance | path

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

12345

/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/a2dpsink/
DA2dpSinkStateMachineTest.java112 assertThat(mStateMachine.getState()).isEqualTo(BluetoothProfile.STATE_CONNECTING); in testConnectInDisconnected()
144 sendConnectionEvent(BluetoothProfile.STATE_CONNECTING); in testAllowedIncomingConnectionInDisconnected()
146 assertThat(mStateMachine.getState()).isEqualTo(BluetoothProfile.STATE_CONNECTING); in testAllowedIncomingConnectionInDisconnected()
154 sendConnectionEvent(BluetoothProfile.STATE_CONNECTING); in testForbiddenIncomingConnectionInDisconnected()
164 sendConnectionEvent(BluetoothProfile.STATE_CONNECTING); in testUnknownIncomingConnectionInDisconnected()
166 assertThat(mStateMachine.getState()).isEqualTo(BluetoothProfile.STATE_CONNECTING); in testUnknownIncomingConnectionInDisconnected()
191 sendConnectionEvent(BluetoothProfile.STATE_CONNECTING); in testIncomingConnectingInDisconnected()
210 assertThat(mStateMachine.getState()).isEqualTo(BluetoothProfile.STATE_CONNECTING); in testConnectedInConnecting()
219 assertThat(mStateMachine.getState()).isEqualTo(BluetoothProfile.STATE_CONNECTING); in testConnectingInConnecting()
220 sendConnectionEvent(BluetoothProfile.STATE_CONNECTING); in testConnectingInConnecting()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hearingaid/
DHearingAidServiceTest.java362 verifyConnectionStateIntent(TIMEOUT_MS, mLeftDevice, BluetoothProfile.STATE_CONNECTING, in testOutgoingConnectTimeout()
370 Assert.assertEquals(BluetoothProfile.STATE_CONNECTING, connectionState); in testOutgoingConnectTimeout()
375 BluetoothProfile.STATE_CONNECTING); in testOutgoingConnectTimeout()
404 verifyConnectionStateIntent(TIMEOUT_MS, mLeftDevice, BluetoothProfile.STATE_CONNECTING, in testConnectAPair_connectBothDevices()
406 Assert.assertEquals(BluetoothProfile.STATE_CONNECTING, in testConnectAPair_connectBothDevices()
408 verifyConnectionStateIntent(TIMEOUT_MS, mRightDevice, BluetoothProfile.STATE_CONNECTING, in testConnectAPair_connectBothDevices()
410 Assert.assertEquals(BluetoothProfile.STATE_CONNECTING, in testConnectAPair_connectBothDevices()
438 verifyConnectionStateIntent(TIMEOUT_MS, mLeftDevice, BluetoothProfile.STATE_CONNECTING, in testConnectAnotherPair_disconnectCurrentPair()
440 verifyConnectionStateIntent(TIMEOUT_MS, mRightDevice, BluetoothProfile.STATE_CONNECTING, in testConnectAnotherPair_disconnectCurrentPair()
458 BluetoothProfile.STATE_CONNECTING); in testConnectAnotherPair_disconnectCurrentPair()
[all …]
DHearingAidStateMachineTest.java150 Assert.assertEquals(BluetoothProfile.STATE_CONNECTING, in testIncomingPriorityAccept()
194 Assert.assertEquals(BluetoothProfile.STATE_CONNECTING, in testOutgoingTimeout()
239 Assert.assertEquals(BluetoothProfile.STATE_CONNECTING, in testIncomingTimeout()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/a2dp/
DA2dpServiceTest.java373 verifyConnectionStateIntent(TIMEOUT_MS, mTestDevice, BluetoothProfile.STATE_CONNECTING, in testOutgoingConnectTimeout()
375 Assert.assertEquals(BluetoothProfile.STATE_CONNECTING, in testOutgoingConnectTimeout()
381 BluetoothProfile.STATE_CONNECTING); in testOutgoingConnectTimeout()
403 verifyConnectionStateIntent(TIMEOUT_MS, mTestDevice, BluetoothProfile.STATE_CONNECTING, in testOutgoingConnectDisconnectSuccess()
405 Assert.assertEquals(BluetoothProfile.STATE_CONNECTING, in testOutgoingConnectDisconnectSuccess()
416 BluetoothProfile.STATE_CONNECTING); in testOutgoingConnectDisconnectSuccess()
469 verifyConnectionStateIntent(TIMEOUT_MS, testDevice, BluetoothProfile.STATE_CONNECTING, in testMaxConnectDevices()
471 Assert.assertEquals(BluetoothProfile.STATE_CONNECTING, in testMaxConnectDevices()
482 BluetoothProfile.STATE_CONNECTING); in testMaxConnectDevices()
512 generateConnectionMessageFromNative(mTestDevice, BluetoothProfile.STATE_CONNECTING, in testCreateStateMachineStackEvents()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/le_audio/
DLeAudioServiceTest.java489 verifyConnectionStateIntent(TIMEOUT_MS, mLeftDevice, BluetoothProfile.STATE_CONNECTING, in testOutgoingConnectTimeout()
492 .isEqualTo(BluetoothProfile.STATE_CONNECTING); in testOutgoingConnectTimeout()
497 BluetoothProfile.STATE_CONNECTING); in testOutgoingConnectTimeout()
542 verifyConnectionStateIntent(TIMEOUT_MS, mLeftDevice, BluetoothProfile.STATE_CONNECTING, in testAudioManagerConnectDisconnect()
545 .isEqualTo(BluetoothProfile.STATE_CONNECTING); in testAudioManagerConnectDisconnect()
546 verifyConnectionStateIntent(TIMEOUT_MS, mRightDevice, BluetoothProfile.STATE_CONNECTING, in testAudioManagerConnectDisconnect()
549 .isEqualTo(BluetoothProfile.STATE_CONNECTING); in testAudioManagerConnectDisconnect()
561 BluetoothProfile.STATE_CONNECTING); in testAudioManagerConnectDisconnect()
574 BluetoothProfile.STATE_CONNECTING); in testAudioManagerConnectDisconnect()
650 generateConnectionMessageFromNative(mLeftDevice, BluetoothProfile.STATE_CONNECTING, in testCreateStateMachineStackEvents()
[all …]
DLeAudioStateMachineTest.java153 assertThat(BluetoothProfile.STATE_CONNECTING).isEqualTo( in testIncomingPriorityAccept()
196 assertThat(BluetoothProfile.STATE_CONNECTING).isEqualTo( in testOutgoingTimeout()
239 assertThat(BluetoothProfile.STATE_CONNECTING).isEqualTo( in testIncomingTimeout()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/vc/
DVolumeControlServiceTest.java378 verifyConnectionStateIntent(TIMEOUT_MS, mDevice, BluetoothProfile.STATE_CONNECTING, in testOutgoingConnectDisconnectExistingVolumeControlUuid()
389 BluetoothProfile.STATE_CONNECTING); in testOutgoingConnectDisconnectExistingVolumeControlUuid()
427 verifyConnectionStateIntent(TIMEOUT_MS, mDevice, BluetoothProfile.STATE_CONNECTING, in testOutgoingConnectTimeout()
429 Assert.assertEquals(BluetoothProfile.STATE_CONNECTING, in testOutgoingConnectTimeout()
435 BluetoothProfile.STATE_CONNECTING); in testOutgoingConnectTimeout()
460 generateConnectionMessageFromNative(mDevice, BluetoothProfile.STATE_CONNECTING, in testCreateStateMachineStackEvents()
462 Assert.assertEquals(BluetoothProfile.STATE_CONNECTING, in testCreateStateMachineStackEvents()
468 BluetoothProfile.STATE_CONNECTING); in testCreateStateMachineStackEvents()
523 generateConnectionMessageFromNative(mDevice, BluetoothProfile.STATE_CONNECTING, in testDeleteStateMachineDisconnectEvents()
525 Assert.assertEquals(BluetoothProfile.STATE_CONNECTING, in testDeleteStateMachineDisconnectEvents()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hfp/
DHeadsetServiceTest.java248 BluetoothProfile.STATE_CONNECTING); in testConnectDevice_connectDeviceBelowLimit()
249 Assert.assertEquals(BluetoothProfile.STATE_CONNECTING, in testConnectDevice_connectDeviceBelowLimit()
366 BluetoothProfile.STATE_CONNECTING); in testConnectDevice_connectDeviceAboveLimit()
474 BluetoothProfile.STATE_CONNECTING); in testConnectAudio_withMultipleDevices()
476 BluetoothProfile.STATE_DISCONNECTED, BluetoothProfile.STATE_CONNECTING); in testConnectAudio_withMultipleDevices()
489 BluetoothProfile.STATE_CONNECTING, BluetoothProfile.STATE_CONNECTED); in testConnectAudio_withMultipleDevices()
555 BluetoothProfile.STATE_CONNECTING); in testConnectAudio_connectTwoAudioChannelsShouldFail()
557 BluetoothProfile.STATE_DISCONNECTED, BluetoothProfile.STATE_CONNECTING); in testConnectAudio_connectTwoAudioChannelsShouldFail()
568 BluetoothProfile.STATE_CONNECTING, BluetoothProfile.STATE_CONNECTED); in testConnectAudio_connectTwoAudioChannelsShouldFail()
637 BluetoothProfile.STATE_CONNECTING); in testConnectAudio_firstConnectedAudioDevice()
[all …]
DHeadsetServiceAndStateMachineTest.java288 BluetoothProfile.STATE_CONNECTING, BluetoothProfile.STATE_DISCONNECTED); in testConnectFromApi()
290 Assert.assertEquals(BluetoothProfile.STATE_CONNECTING, in testConnectFromApi()
294 new int[]{BluetoothProfile.STATE_CONNECTING})); in testConnectFromApi()
304 BluetoothProfile.STATE_CONNECTED, BluetoothProfile.STATE_CONNECTING); in testConnectFromApi()
331 BluetoothProfile.STATE_CONNECTING, BluetoothProfile.STATE_DISCONNECTED); in testUnbondDevice_disconnectBeforeUnbond()
342 BluetoothProfile.STATE_DISCONNECTED, BluetoothProfile.STATE_CONNECTING); in testUnbondDevice_disconnectBeforeUnbond()
375 BluetoothProfile.STATE_CONNECTING, BluetoothProfile.STATE_DISCONNECTED); in testUnbondDevice_disconnectAfterUnbond()
385 BluetoothProfile.STATE_CONNECTED, BluetoothProfile.STATE_CONNECTING); in testUnbondDevice_disconnectAfterUnbond()
1174 BluetoothProfile.STATE_CONNECTING, BluetoothProfile.STATE_DISCONNECTED); in connectTestDevice()
1175 Assert.assertEquals(BluetoothProfile.STATE_CONNECTING, in connectTestDevice()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/
DAdapterProperties.java715 if (state == BluetoothProfile.STATE_CONNECTING) { in sendConnectionStateChange()
773 || state == BluetoothProfile.STATE_CONNECTING in validateProfileConnectionState()
786 case BluetoothProfile.STATE_CONNECTING: in convertToAdapterState()
787 return BluetoothAdapter.STATE_CONNECTING; in convertToAdapterState()
796 return nextState == BluetoothProfile.STATE_CONNECTING; in isNormalStateTransition()
800 case BluetoothProfile.STATE_CONNECTING: in isNormalStateTransition()
810 case BluetoothProfile.STATE_CONNECTING: in updateCountersAndCheckForConnectionStateChange()
842 case BluetoothProfile.STATE_CONNECTING: in updateCountersAndCheckForConnectionStateChange()
890 newState == BluetoothProfile.STATE_CONNECTING in updateProfileConnectionState()
899 || currHashState == BluetoothProfile.STATE_CONNECTING) { in updateProfileConnectionState()
[all …]
/packages/apps/Nfc/src/com/android/nfc/handover/
DBluetoothPeripheralHandover.java74 static final int STATE_CONNECTING = 5; field in BluetoothPeripheralHandover
373 mState = STATE_CONNECTING; in nextStepConnect()
420 case STATE_CONNECTING: in nextStepConnect()
500 (mState == STATE_CONNECTING || mState == STATE_DISCONNECTING)) { in handleIntent()
514 (mState == STATE_CONNECTING || mState == STATE_DISCONNECTING)) { in handleIntent()
528 (mState == STATE_CONNECTING || mState == STATE_DISCONNECTING)) { in handleIntent()
633 } else if (mState == STATE_CONNECTING) {
656 } else if (mState == STATE_CONNECTING) {
/packages/modules/Bluetooth/framework/java/android/bluetooth/
DBluetoothProfile.java62 int STATE_CONNECTING = 1; field
71 STATE_CONNECTING,
427 case STATE_CONNECTING: in getConnectionStateName()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/avrcpcontroller/
DAvrcpBipClientTest.java111 mClient.setConnectionState(BluetoothProfile.STATE_CONNECTING); in setConnectionState()
113 assertThat(mClient.getState()).isEqualTo(BluetoothProfile.STATE_CONNECTING); in setConnectionState()
121 mClient.setConnectionState(BluetoothProfile.STATE_CONNECTING); in getConnectionState()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/
DBluetoothA2dpConnector.java94 BluetoothA2dp.EXTRA_PREVIOUS_STATE, BluetoothA2dp.STATE_CONNECTING);
96 BluetoothA2dp.EXTRA_STATE, BluetoothA2dp.STATE_CONNECTING);
102 if (previousState == BluetoothA2dp.STATE_CONNECTING) {
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/bas/
DBatteryStateMachineTest.java177 eq(BluetoothProfile.STATE_CONNECTING)); in testSuccessfullyConnected()
188 eq(BluetoothProfile.STATE_CONNECTING), in testSuccessfullyConnected()
272 eq(BluetoothProfile.STATE_CONNECTING)); in testConnectGattTimeout()
279 eq(BluetoothProfile.STATE_CONNECTING), in testConnectGattTimeout()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/csip/
DCsipSetCoordinatorStateMachineTest.java21 import static android.bluetooth.BluetoothProfile.STATE_CONNECTING;
163 Assert.assertEquals(STATE_CONNECTING, in testIncomingPolicyAccept()
204 Assert.assertEquals(STATE_CONNECTING, in testOutgoingTimeout()
244 Assert.assertEquals(STATE_CONNECTING, in testIncomingTimeout()
407 Assert.assertEquals(STATE_CONNECTING, mStateMachine.getConnectionState()); in testStackEvent_withoutStateChange_onConnectingState()
414 Assert.assertEquals(STATE_CONNECTING, mStateMachine.getConnectionState()); in testStackEvent_withoutStateChange_onConnectingState()
421 Assert.assertEquals(STATE_CONNECTING, mStateMachine.getConnectionState()); in testStackEvent_withoutStateChange_onConnectingState()
/packages/apps/Car/Radio/src/com/android/car/radio/widget/
DPlayPauseButton.java84 case PlaybackState.STATE_CONNECTING: in onClick()
115 case PlaybackState.STATE_CONNECTING: in onCreateDrawableState()
/packages/apps/Car/Radio/src/com/android/car/radio/service/
DRadioAppServiceWrapper.java57 public static final int STATE_CONNECTING = 1; field in RadioAppServiceWrapper
78 STATE_CONNECTING,
97 mConnectionState.postValue(STATE_CONNECTING);
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/avrcpcontroller/
DAvrcpBipClient.java256 setConnectionState(BluetoothProfile.STATE_CONNECTING); in connect()
299 setConnectionState(BluetoothProfile.STATE_CONNECTING); in refreshObexSession()
439 case BluetoothProfile.STATE_CONNECTING: in getStateName()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hap/
DHapClientStateMachine.java144 case BluetoothProfile.STATE_CONNECTING: in profileStateToString()
333 mConnectionState = BluetoothProfile.STATE_CONNECTING; in enter()
334 broadcastConnectionState(BluetoothProfile.STATE_CONNECTING, mLastConnectionState); in enter()
341 mLastConnectionState = BluetoothProfile.STATE_CONNECTING; in exit()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hearingaid/
DHearingAidStateMachine.java247 mConnectionState = BluetoothProfile.STATE_CONNECTING; in enter()
248 broadcastConnectionState(BluetoothProfile.STATE_CONNECTING, mLastConnectionState); in enter()
255 mLastConnectionState = BluetoothProfile.STATE_CONNECTING; in exit()
552 case BluetoothProfile.STATE_CONNECTING: in profileStateToString()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/bas/
DBatteryStateMachine.java154 case BluetoothProfile.STATE_CONNECTING: in profileStateToString()
195 return BluetoothProfile.STATE_CONNECTING; in getConnectionState()
337 dispatchConnectionStateChanged(mLastConnectionState, BluetoothProfile.STATE_CONNECTING); in enter()
344 mLastConnectionState = BluetoothProfile.STATE_CONNECTING; in exit()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/vc/
DVolumeControlStateMachine.java224 broadcastConnectionState(BluetoothProfile.STATE_CONNECTING, mLastConnectionState); in enter()
231 mLastConnectionState = BluetoothProfile.STATE_CONNECTING; in exit()
310 return BluetoothProfile.STATE_CONNECTING; in getConnectionState()
538 case BluetoothProfile.STATE_CONNECTING: in profileStateToString()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/le_audio/
DLeAudioStateMachine.java246 mConnectionState = BluetoothProfile.STATE_CONNECTING; in enter()
247 broadcastConnectionState(BluetoothProfile.STATE_CONNECTING, mLastConnectionState); in enter()
254 mLastConnectionState = BluetoothProfile.STATE_CONNECTING; in exit()
547 case BluetoothProfile.STATE_CONNECTING: in profileStateToString()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/csip/
DCsipSetCoordinatorStateMachine.java233 csipConnectionState(BluetoothProfile.STATE_CONNECTING, mLastConnectionState); in enter()
240 mLastConnectionState = BluetoothProfile.STATE_CONNECTING; in exit()
504 return BluetoothProfile.STATE_CONNECTING; in getConnectionState()
550 case BluetoothProfile.STATE_CONNECTING: in profileStateToString()

12345