Home
last modified time | relevance | path

Searched refs:STATE_DISCONNECTING (Results 1 – 25 of 75) sorted by relevance

123

/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hearingaid/
DHearingAidServiceTest.java28 import static android.bluetooth.BluetoothProfile.STATE_DISCONNECTING;
286 verifyConnectionStateIntent(mLeftDevice, STATE_DISCONNECTING, STATE_CONNECTED); in connectDifferentPair_whenConnected_currentIsDisconnected()
287 verifyConnectionStateIntent(mRightDevice, STATE_DISCONNECTING, STATE_CONNECTED); in connectDifferentPair_whenConnected_currentIsDisconnected()
321 verifyConnectionStateIntent(mLeftDevice, STATE_DISCONNECTING, STATE_CONNECTED); in disconnect_whenAudioRoutedToHa_audioIsPaused()
322 assertThat(mService.getConnectionState(mLeftDevice)).isEqualTo(STATE_DISCONNECTING); in disconnect_whenAudioRoutedToHa_audioIsPaused()
327 verifyConnectionStateIntent(mRightDevice, STATE_DISCONNECTING, STATE_CONNECTED); in disconnect_whenAudioRoutedToHa_audioIsPaused()
328 assertThat(mService.getConnectionState(mRightDevice)).isEqualTo(STATE_DISCONNECTING); in disconnect_whenAudioRoutedToHa_audioIsPaused()
330 generateConnectionMessageFromNative(mLeftDevice, STATE_DISCONNECTED, STATE_DISCONNECTING); in disconnect_whenAudioRoutedToHa_audioIsPaused()
331 generateConnectionMessageFromNative(mRightDevice, STATE_DISCONNECTED, STATE_DISCONNECTING); in disconnect_whenAudioRoutedToHa_audioIsPaused()
368 verifyConnectionStateIntent(mLeftDevice, STATE_DISCONNECTING, STATE_CONNECTED, false); in outgoingDisconnect_whenAudioRoutedToHa_audioIsNotPaused()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/pbapclient/
DPbapClientStateMachineTest.java22 import static android.bluetooth.BluetoothProfile.STATE_DISCONNECTING;
241 .onConnectionStateChanged(eq(STATE_CONNECTING), eq(STATE_DISCONNECTING)); in testConnecting_receivedSdpResultWithFailedStatus_transitionToDisconnecting()
243 .onConnectionStateChanged(eq(STATE_DISCONNECTING), eq(STATE_DISCONNECTED)); in testConnecting_receivedSdpResultWithFailedStatus_transitionToDisconnecting()
281 .onConnectionStateChanged(eq(STATE_CONNECTING), eq(STATE_DISCONNECTING)); in testConnecting_receivedSdpResultWithUnknownStatus_transitionToDisconnecting()
283 .onConnectionStateChanged(eq(STATE_DISCONNECTING), eq(STATE_DISCONNECTED)); in testConnecting_receivedSdpResultWithUnknownStatus_transitionToDisconnecting()
306 .onConnectionStateChanged(eq(STATE_CONNECTING), eq(STATE_DISCONNECTING)); in testConnecting_receivedConnectionTimeout_transitionToDisconnecting()
308 .onConnectionStateChanged(eq(STATE_DISCONNECTING), eq(STATE_DISCONNECTED)); in testConnecting_receivedConnectionTimeout_transitionToDisconnecting()
319 .onConnectionStateChanged(eq(STATE_CONNECTING), eq(STATE_DISCONNECTING)); in testConnecting_receivedDisconnect_transitionToDisconnecting()
321 .onConnectionStateChanged(eq(STATE_DISCONNECTING), eq(STATE_DISCONNECTED)); in testConnecting_receivedDisconnect_transitionToDisconnecting()
334 .onConnectionStateChanged(eq(STATE_CONNECTING), eq(STATE_DISCONNECTING)); in testConnecting_receivedObexDisconnection_transitionToDisconnected()
[all …]
DPbapClientObexClientTest.java22 import static android.bluetooth.BluetoothProfile.STATE_DISCONNECTING;
319 .onConnectionStateChanged(eq(STATE_CONNECTED), eq(STATE_DISCONNECTING)); in testDisconnect_obexConnected_obexDisconnects()
321 .onConnectionStateChanged(eq(STATE_DISCONNECTING), eq(STATE_DISCONNECTED)); in testDisconnect_obexConnected_obexDisconnects()
335 .onConnectionStateChanged(eq(STATE_CONNECTED), eq(STATE_DISCONNECTING)); in testDisconnect_obexDisconnecting_nothingHappens()
337 .onConnectionStateChanged(eq(STATE_DISCONNECTING), eq(STATE_DISCONNECTED)); in testDisconnect_obexDisconnecting_nothingHappens()
377 .onConnectionStateChanged(eq(STATE_CONNECTED), eq(STATE_DISCONNECTING)); in testDisconnect_whileRequestingPhonebookMetadata_obexDisconnects()
379 .onConnectionStateChanged(eq(STATE_DISCONNECTING), eq(STATE_DISCONNECTED)); in testDisconnect_whileRequestingPhonebookMetadata_obexDisconnects()
411 .onConnectionStateChanged(eq(STATE_CONNECTED), eq(STATE_DISCONNECTING)); in testDisconnect_whileRequestingPhonebook_obexDisconnects()
413 .onConnectionStateChanged(eq(STATE_DISCONNECTING), eq(STATE_DISCONNECTED)); in testDisconnect_whileRequestingPhonebook_obexDisconnects()
DPbapClientStateMachineOldTest.java20 import static android.bluetooth.BluetoothProfile.STATE_DISCONNECTING;
119 assertThat(mPbapClientStateMachine.getConnectionState()).isEqualTo(STATE_DISCONNECTING); in testStateTransitionFromConnectingToDisconnected()
DPbapClientServiceTest.java24 import static android.bluetooth.BluetoothProfile.STATE_DISCONNECTING;
241 doReturn(STATE_DISCONNECTING).when(mMockDeviceStateMachine).getConnectionState(); in onConnectionStateChanged_ConnectedToDisconnecting_eventIgnored()
242 mDeviceCallback.onConnectionStateChanged(STATE_CONNECTED, STATE_DISCONNECTING); in onConnectionStateChanged_ConnectedToDisconnecting_eventIgnored()
250 mDeviceCallback.onConnectionStateChanged(STATE_DISCONNECTING, STATE_DISCONNECTED); in onConnectionStateChanged_DisconnectingToDisconnected_deviceCleanedUp()
368 mDevice, STATE_DISCONNECTING, STATE_DISCONNECTED); in testOnHfpClientDisconnectedForConnectedDevice_callLogsCleanedUp()
378 mDevice, STATE_DISCONNECTING, STATE_DISCONNECTED); in testOnHfpClientDisconnectedForDisconnectedDevice_callLogsCleanedUp()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/vc/
DVolumeControlStateMachineTest.java25 import static android.bluetooth.BluetoothProfile.STATE_DISCONNECTING;
191 generateConnectionMessageFromNative(STATE_DISCONNECTING, STATE_CONNECTING); in timeout_whenDisconnecting_isDisconnected()
192 generateConnectionMessageFromNative(STATE_CONNECTING, STATE_DISCONNECTING); in timeout_whenDisconnecting_isDisconnected()
194 generateConnectionMessageFromNative(STATE_DISCONNECTING, STATE_CONNECTED); in timeout_whenDisconnecting_isDisconnected()
196 verifyConnectionStateIntent(STATE_DISCONNECTED, STATE_DISCONNECTING); in timeout_whenDisconnecting_isDisconnected()
212 assertThat(mStateMachine.getConnectionState()).isEqualTo(STATE_DISCONNECTING); in incomingConnect_whenDisconnecting_isConnected()
214 generateConnectionMessageFromNative(STATE_CONNECTED, STATE_DISCONNECTING); in incomingConnect_whenDisconnecting_isConnected()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hap/
DHapClientStateMachineTest.java26 import static android.bluetooth.BluetoothProfile.STATE_DISCONNECTING;
195 generateConnectionMessageFromNative(STATE_DISCONNECTING, STATE_CONNECTING); in remoteToggleDisconnect_whenConnecting_isDisconnected()
196 generateConnectionMessageFromNative(STATE_CONNECTING, STATE_DISCONNECTING); in remoteToggleDisconnect_whenConnecting_isDisconnected()
198 generateConnectionMessageFromNative(STATE_DISCONNECTING, STATE_CONNECTED); in remoteToggleDisconnect_whenConnecting_isDisconnected()
203 verifyConnectionStateIntent(STATE_DISCONNECTED, STATE_DISCONNECTING); in remoteToggleDisconnect_whenConnecting_isDisconnected()
212 generateConnectionMessageFromNative(STATE_DISCONNECTING, STATE_CONNECTED); in timeout_whenOutgoingDisConnect_isDisconnected()
217 verifyConnectionStateIntent(STATE_DISCONNECTED, STATE_DISCONNECTING); in timeout_whenOutgoingDisConnect_isDisconnected()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hearingaid/
DHearingAidStateMachine.java49 import static android.bluetooth.BluetoothProfile.STATE_DISCONNECTING;
225 case STATE_DISCONNECTING -> { in processConnectionEvent()
316 case STATE_DISCONNECTING -> { in processConnectionEvent()
336 mConnectionState = STATE_DISCONNECTING; in enter()
337 broadcastConnectionState(STATE_DISCONNECTING); in enter()
347 mLastConnectionState = STATE_DISCONNECTING; in exit()
491 case STATE_DISCONNECTING -> { in processConnectionEvent()
/packages/modules/Bluetooth/framework/java/android/bluetooth/
DBluetoothProfile.java67 int STATE_DISCONNECTING = 3; field
74 STATE_DISCONNECTING,
415 case STATE_DISCONNECTING: in getConnectionStateName()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/
DAdapterProperties.java25 import static android.bluetooth.BluetoothProfile.STATE_DISCONNECTING;
673 || state == STATE_DISCONNECTING); in validateProfileConnectionState()
680 case STATE_DISCONNECTING: in convertToAdapterState()
681 return BluetoothAdapter.STATE_DISCONNECTING; in convertToAdapterState()
696 return nextState == STATE_DISCONNECTING; in isNormalStateTransition()
697 case STATE_DISCONNECTING: in isNormalStateTransition()
727 case STATE_DISCONNECTING: in updateCountersAndCheckForConnectionStateChange()
747 case STATE_DISCONNECTING: in updateCountersAndCheckForConnectionStateChange()
1143 case BluetoothAdapter.STATE_DISCONNECTING: in dumpConnectionState()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/vc/
DVolumeControlStateMachine.java24 import static android.bluetooth.BluetoothProfile.STATE_DISCONNECTING;
293 case STATE_DISCONNECTING -> { in processConnectionEvent()
308 case "Disconnecting" -> STATE_DISCONNECTING; in getConnectionState()
324 broadcastConnectionState(STATE_DISCONNECTING, mLastConnectionState); in enter()
334 mLastConnectionState = STATE_DISCONNECTING; in exit()
487 case STATE_DISCONNECTING -> { in processConnectionEvent()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/a2dp/
DA2dpServiceTest.java25 import static android.bluetooth.BluetoothProfile.STATE_DISCONNECTING;
367 verifyConnectionStateIntent(mDevice, STATE_DISCONNECTING, STATE_CONNECTED); in testOutgoingConnectDisconnectSuccess()
368 assertThat(mA2dpService.getConnectionState(mDevice)).isEqualTo(STATE_DISCONNECTING); in testOutgoingConnectDisconnectSuccess()
378 verifyConnectionStateIntent(mDevice, STATE_DISCONNECTED, STATE_DISCONNECTING); in testOutgoingConnectDisconnectSuccess()
480 generateUnexpectedConnectionMessageFromNative(mDevice, STATE_DISCONNECTING); in testCreateStateMachineStackEvents()
602 generateConnectionMessageFromNative(mDevice, STATE_DISCONNECTING, STATE_CONNECTED); in testDeleteDisconnectedStateMachineUnbondEvents()
603 assertThat(mA2dpService.getConnectionState(mDevice)).isEqualTo(STATE_DISCONNECTING); in testDeleteDisconnectedStateMachineUnbondEvents()
611 generateConnectionMessageFromNative(mDevice, STATE_DISCONNECTED, STATE_DISCONNECTING); in testDeleteDisconnectedStateMachineUnbondEvents()
664 generateConnectionMessageFromNative(mDevice, STATE_DISCONNECTING, STATE_CONNECTED); in testDeleteStateMachineUnbondEvents()
665 assertThat(mA2dpService.getConnectionState(mDevice)).isEqualTo(STATE_DISCONNECTING); in testDeleteStateMachineUnbondEvents()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hap/
DHapClientStateMachine.java49 import static android.bluetooth.BluetoothProfile.STATE_DISCONNECTING;
333 case STATE_DISCONNECTING -> { in processConnectionEvent()
350 mConnectionState = STATE_DISCONNECTING; in enter()
357 mLastConnectionState = STATE_DISCONNECTING; in exit()
482 case STATE_DISCONNECTING -> { in processConnectionEvent()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/pan/
DPanNativeInterface.java22 import static android.bluetooth.BluetoothProfile.STATE_DISCONNECTING;
84 return STATE_DISCONNECTING; in convertHalState()
DPanService.java25 import static android.bluetooth.BluetoothProfile.STATE_DISCONNECTING;
183 int[] desiredStates = {STATE_CONNECTING, STATE_CONNECTED, STATE_DISCONNECTING}; in cleanup()
234 STATE_DISCONNECTING, in handleMessage()
482 if (prevState == STATE_DISCONNECTED && state == STATE_DISCONNECTING) { in handlePanDeviceStateChange()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/a2dpsink/
DA2dpSinkStateMachineTest.java24 import static android.bluetooth.BluetoothProfile.STATE_DISCONNECTING;
174 sendConnectionEvent(STATE_DISCONNECTING); in testIncomingDisconnectingInDisconnected()
217 sendConnectionEvent(STATE_DISCONNECTING); in testDisconnectingInConnecting()
340 sendConnectionEvent(STATE_DISCONNECTING); in testDisconnectingInConnected()
DStackEventTest.java21 import static android.bluetooth.BluetoothProfile.STATE_DISCONNECTING;
56 testConnectionStateChangedBase(STATE_DISCONNECTING); in testCreateConnectionStateChangedDisconnectingEvent()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/mapclient/
DMapClientStateMachineTest.java26 import static android.bluetooth.BluetoothProfile.STATE_DISCONNECTING;
288 verifyStateTransitionAndIntent(STATE_DISCONNECTING, STATE_DISCONNECTED); in masDisconnected_whenConnected_isDisconnected()
318 verifyStateTransitionAndIntent(STATE_CONNECTED, STATE_DISCONNECTING); in testDisconnect()
323 STATE_DISCONNECTING, STATE_DISCONNECTED); in testDisconnect()
333 verifyStateTransitionAndIntent(STATE_CONNECTED, STATE_DISCONNECTING); in testDisconnectTimeout()
337 verifyStateTransitionAndIntent(STATE_DISCONNECTING, STATE_DISCONNECTED); in testDisconnectTimeout()
738 verifyStateTransitionAndIntent(STATE_CONNECTING, STATE_DISCONNECTING); in testSdpBusyWhileConnectingAndRetryResultsReceivedAfterTimeout_resultsIgnored()
756 assertCurrentStateAfterScheduledTask(STATE_DISCONNECTING); in testSdpFailedWithNoRecordWhileConnecting_deviceDisconnecting()
766 assertCurrentStateAfterScheduledTask(STATE_DISCONNECTING); in testSdpOrganicFailure_deviceDisconnecting()
/packages/modules/Nfc/NfcNci/src/com/android/nfc/handover/
DBluetoothPeripheralHandover.java82 static final int STATE_DISCONNECTING = 6; field in BluetoothPeripheralHandover
295 mState = STATE_DISCONNECTING; in nextStepDisconnect()
325 case STATE_DISCONNECTING: in nextStepDisconnect()
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()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/a2dpsink/
DA2dpSinkStateMachine.java24 import static android.bluetooth.BluetoothProfile.STATE_DISCONNECTING;
290 case STATE_DISCONNECTING -> transitionTo(mDisconnecting); in processStackEvent()
309 onConnectionStateChanged(STATE_DISCONNECTING); in enter()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/pbapclient/
DPbapClientStateMachineOld.java49 import static android.bluetooth.BluetoothProfile.STATE_DISCONNECTING;
276 onConnectionStateChanged(mCurrentDevice, mMostRecentState, STATE_DISCONNECTING); in enter()
277 mMostRecentState = STATE_DISCONNECTING; in enter()
463 return STATE_DISCONNECTING; in getConnectionState()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/avrcpcontroller/
DAvrcpBipClient.java22 import static android.bluetooth.BluetoothProfile.STATE_DISCONNECTING;
286 setConnectionState(STATE_DISCONNECTING); in refreshObexSession()
327 setConnectionState(STATE_DISCONNECTING); in disconnect()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/le_audio/
DLeAudioStateMachine.java49 import static android.bluetooth.BluetoothProfile.STATE_DISCONNECTING;
362 mConnectionState = STATE_DISCONNECTING; in enter()
363 broadcastConnectionState(STATE_DISCONNECTING, mLastConnectionState); in enter()
373 mLastConnectionState = STATE_DISCONNECTING; in exit()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hid/
DHidDeviceServiceTest.java23 import static android.bluetooth.BluetoothProfile.STATE_DISCONNECTING;
383 verifyConnectionStateIntent(STATE_DISCONNECTING, STATE_CONNECTED); in testOutgoingConnectDisconnectSuccess()
384 assertThat(mService.getConnectionState(mDevice)).isEqualTo(STATE_DISCONNECTING); in testOutgoingConnectDisconnectSuccess()
390 verifyConnectionStateIntent(STATE_DISCONNECTED, STATE_DISCONNECTING); in testOutgoingConnectDisconnectSuccess()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/csip/
DCsipSetCoordinatorStateMachine.java24 import static android.bluetooth.BluetoothProfile.STATE_DISCONNECTING;
354 csipConnectionState(STATE_DISCONNECTING, mLastConnectionState); in enter()
364 mLastConnectionState = STATE_DISCONNECTING; in exit()
559 return STATE_DISCONNECTING; in getConnectionState()

123