Home
last modified time | relevance | path

Searched refs:getConnectionState (Results 1 – 25 of 121) sorted by relevance

12345

/aosp12/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hearingaid/
H A DHearingAidServiceTest.java348 mService.getConnectionState(mLeftDevice)); in testOutgoingConnectTimeout()
355 mService.getConnectionState(mLeftDevice)); in testOutgoingConnectTimeout()
385 mService.getConnectionState(mLeftDevice)); in testConnectAPair_connectBothDevices()
486 mService.getConnectionState(mLeftDevice)); in testAudioManagerConnectDisconnect()
504 mService.getConnectionState(mLeftDevice)); in testAudioManagerConnectDisconnect()
536 mService.getConnectionState(mLeftDevice)); in testAudioManagerConnectDisconnect()
553 mService.getConnectionState(mLeftDevice)); in testAudioManagerConnectDisconnect()
601 mService.getConnectionState(mLeftDevice)); in testCreateStateMachineStackEvents()
608 mService.getConnectionState(mLeftDevice)); in testCreateStateMachineStackEvents()
1027 mService.getConnectionState(device)); in connectDevice()
[all …]
/aosp12/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/
H A DPhonePolicyTest.java296 when(mA2dpService.getConnectionState(bondedDevices[0])).thenReturn( in testReconnectOnPartialConnect()
512 when(mA2dpService.getConnectionState(testDevices[0])).thenReturn( in testSetConnectionPolicyMultipleDevices()
517 when(mA2dpService.getConnectionState(testDevices[1])).thenReturn( in testSetConnectionPolicyMultipleDevices()
522 when(mA2dpService.getConnectionState(testDevices[2])).thenReturn( in testSetConnectionPolicyMultipleDevices()
527 when(mA2dpService.getConnectionState(testDevices[3])).thenReturn( in testSetConnectionPolicyMultipleDevices()
543 when(mA2dpService.getConnectionState(testDevices[1])).thenReturn( in testSetConnectionPolicyMultipleDevices()
624 when(mA2dpService.getConnectionState(bondedDevices[0])).thenReturn( in testNoReconnectOnNoConnect()
676 when(mA2dpService.getConnectionState(bondedDevices[0])).thenReturn( in testNoReconnectOnNoConnect_MultiDevice()
680 when(mA2dpService.getConnectionState(bondedDevices[1])).thenReturn( in testNoReconnectOnNoConnect_MultiDevice()
730 when(mA2dpService.getConnectionState(bondedDevices[0])).thenReturn( in testReconnectOnPartialConnect_MultiDevice()
[all …]
/aosp12/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/le_audio/
H A DLeAudioServiceTest.java349 assertThat(mService.getConnectionState(mLeftDevice)) in testOutgoingConnectTimeout()
356 assertThat(mService.getConnectionState(mLeftDevice)) in testOutgoingConnectTimeout()
385 assertThat(mService.getConnectionState(mLeftDevice)) in testAudioManagerConnectDisconnect()
389 assertThat(mService.getConnectionState(mRightDevice)) in testAudioManagerConnectDisconnect()
403 assertThat(mService.getConnectionState(mLeftDevice)) in testAudioManagerConnectDisconnect()
416 assertThat(mService.getConnectionState(mRightDevice)) in testAudioManagerConnectDisconnect()
431 .isEqualTo(mService.getConnectionState(mLeftDevice)); in testAudioManagerConnectDisconnect()
448 .isEqualTo(mService.getConnectionState(mLeftDevice)); in testAudioManagerConnectDisconnect()
491 .isEqualTo(mService.getConnectionState(mLeftDevice)); in testCreateStateMachineStackEvents()
668 .isEqualTo(mService.getConnectionState(device)); in connectDevice()
[all …]
/aosp12/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/
H A DHeadsetServiceTest.java181 mHeadsetService.getConnectionState(mCurrentDevice)); in testGetHeadsetService()
248 mHeadsetService.getConnectionState(mCurrentDevice)); in testConnectDevice_connectDeviceBelowLimit()
252 mHeadsetService.getConnectionState(mCurrentDevice)); in testConnectDevice_connectDeviceBelowLimit()
285 mHeadsetService.getConnectionState(mCurrentDevice)); in testMessageFromNative_deviceConnected()
298 mHeadsetService.getConnectionState(mCurrentDevice)); in testMessageFromNative_deviceConnected()
373 mHeadsetService.getConnectionState(mCurrentDevice)); in testConnectDevice_connectDeviceAboveLimit()
386 mHeadsetService.getConnectionState(mCurrentDevice)); in testConnectDevice_connectDeviceAboveLimit()
414 mHeadsetService.getConnectionState(mCurrentDevice)); in testConnectAudio_withOneDevice()
481 mHeadsetService.getConnectionState(mCurrentDevice)); in testConnectAudio_withMultipleDevices()
683 mHeadsetService.getConnectionState(mCurrentDevice)); in testConnectAudio_deviceDisconnected()
[all …]
/aosp12/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/a2dp/
H A DA2dpServiceTest.java378 mA2dpService.getConnectionState(mTestDevice)); in testOutgoingConnectTimeout()
385 mA2dpService.getConnectionState(mTestDevice)); in testOutgoingConnectTimeout()
408 mA2dpService.getConnectionState(mTestDevice)); in testOutgoingConnectDisconnectSuccess()
420 mA2dpService.getConnectionState(mTestDevice)); in testOutgoingConnectDisconnectSuccess()
432 mA2dpService.getConnectionState(mTestDevice)); in testOutgoingConnectDisconnectSuccess()
444 mA2dpService.getConnectionState(mTestDevice)); in testOutgoingConnectDisconnectSuccess()
517 mA2dpService.getConnectionState(mTestDevice)); in testCreateStateMachineStackEvents()
524 mA2dpService.getConnectionState(mTestDevice)); in testCreateStateMachineStackEvents()
533 mA2dpService.getConnectionState(mTestDevice)); in testCreateStateMachineStackEvents()
896 mA2dpService.getConnectionState(device)); in connectDeviceWithCodecStatus()
[all …]
/aosp12/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/
H A DHeadsetClientService.java295 return service.getConnectionState(device); in getConnectionState()
585 int connectionState = sm.getConnectionState(device); in disconnect()
631 return sm.getConnectionState(device); in getConnectionState()
691 int connectionState = sm.getConnectionState(device); in startVoiceRecognition()
705 int connectionState = sm.getConnectionState(device); in stopVoiceRecognition()
767 int connectionState = sm.getConnectionState(device); in holdCall()
804 int connectionState = sm.getConnectionState(device); in acceptCall()
821 int connectionState = sm.getConnectionState(device); in rejectCall()
839 int connectionState = sm.getConnectionState(device); in terminateCall()
858 int connectionState = sm.getConnectionState(device); in enterPrivateMode()
[all …]
/aosp12/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/pbap/
H A DPbapStateMachineTest.java100 mPbapStateMachine.getConnectionState()); in testInitialState()
113 mPbapStateMachine.getConnectionState()); in testStateTransition_WaitingForAuthToFinished()
126 mPbapStateMachine.getConnectionState()); in testStateTransition_WaitingForAuthToConnected()
139 mPbapStateMachine.getConnectionState()); in testStateTransition_ConnectedToFinished()
146 mPbapStateMachine.getConnectionState()); in testStateTransition_ConnectedToFinished()
/aosp12/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/
H A DA2dpProfileTest.java106 when(mBluetoothA2dp.getConnectionState(any())).thenReturn( in isHighQualityAudioEnabled()
117 when(mBluetoothA2dp.getConnectionState(any())).thenReturn( in isHighQualityAudioEnabled()
170 when(mBluetoothA2dp.getConnectionState(any())).thenReturn( in getLabelDeviceDisconnected()
178 when(mBluetoothA2dp.getConnectionState(any())).thenReturn( in getLabelDeviceConnectedButNotHighQualityCodec()
193 when(mBluetoothA2dp.getConnectionState(any())).thenReturn( in getLabelDeviceConnectedWithHighQualityCodec()
/aosp12/packages/apps/Bluetooth/src/com/android/bluetooth/hid/
H A DHidHostService.java385 return service.getConnectionState(device); in getConnectionState()
562 public int getConnectionState(BluetoothDevice device) { in getConnectionState() method in HidHostService
575 int inputDeviceState = getConnectionState(device); in getDevicesMatchingConnectionStates()
646 int state = this.getConnectionState(device); in getProtocolMode()
659 int state = this.getConnectionState(device); in virtualUnplug()
672 int state = this.getConnectionState(device); in setProtocolMode()
687 int state = this.getConnectionState(device); in getReport()
706 int state = this.getConnectionState(device); in setReport()
725 int state = this.getConnectionState(device); in sendData()
735 int state = this.getConnectionState(device); in getIdleTime()
[all …]
/aosp12/packages/services/Telecomm/src/com/android/server/telecom/
H A DBluetoothHeadsetProxy.java43 public int getConnectionState(BluetoothDevice device) { in getConnectionState() method in BluetoothHeadsetProxy
44 return mBluetoothHeadset.getConnectionState(device); in getConnectionState()
/aosp12/packages/apps/Bluetooth/src/com/android/bluetooth/pbapclient/
H A DPbapClientService.java200 if (getConnectionState(device) == BluetoothProfile.STATE_CONNECTED) { in onReceive()
296 public int getConnectionState(BluetoothDevice device, AttributionSource source) { in getConnectionState() method in PbapClientService.BluetoothPbapClientBinder
302 return service.getConnectionState(device); in getConnectionState()
409 int currentDeviceState = stateMachineEntry.getValue().getConnectionState(); in getDevicesMatchingConnectionStates()
429 public int getConnectionState(BluetoothDevice device) { in getConnectionState() method in PbapClientService
437 return pbapClientStateMachine.getConnectionState(device); in getConnectionState()
H A DPbapClientStateMachine.java372 public int getConnectionState() { in getConnectionState() method in PbapClientStateMachine
391 clientState = getConnectionState(); in getDevicesMatchingConnectionStates()
405 public int getConnectionState(BluetoothDevice device) { in getConnectionState() method in PbapClientStateMachine
411 return getConnectionState(); in getConnectionState()
/aosp12/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
H A DBluetoothHeadsetProxy.java56 public int getConnectionState(BluetoothDevice device) { in getConnectionState() method in BluetoothHeadsetProxy
57 return mBluetoothHeadset.getConnectionState(device); in getConnectionState()
H A DHeadsetService.java396 if (stateMachine.getConnectionState()
491 public int getConnectionState(BluetoothDevice device) { in getConnectionState() method in HeadsetService.BluetoothHeadsetBinder
503 return service.getConnectionState(device); in getConnectionStateWithAttribution()
784 int connectionState = stateMachine.getConnectionState(); in connect()
828 int connectionState = stateMachine.getConnectionState(); in disconnect()
874 int connectionState = getConnectionState(device); in getDevicesMatchingConnectionStates()
886 public int getConnectionState(BluetoothDevice device) { in getConnectionState() method in HeadsetService
892 return stateMachine.getConnectionState(); in getConnectionState()
1010 int connectionState = stateMachine.getConnectionState(); in startVoiceRecognition()
1041 int connectionState = stateMachine.getConnectionState(); in stopVoiceRecognition()
[all …]
/aosp12/packages/apps/Bluetooth/src/com/android/bluetooth/hearingaid/
H A DHearingAidService.java417 connectionState = sm.getConnectionState(); in getDevicesMatchingConnectionStates()
465 public int getConnectionState(BluetoothDevice device) { in getConnectionState() method in HearingAidService
471 return sm.getConnectionState(); in getConnectionState()
565 if (getConnectionState(device) != BluetoothProfile.STATE_CONNECTED) { in setActiveDevice()
598 if (getConnectionState(device) != BluetoothProfile.STATE_CONNECTED) { in getActiveDevices()
704 (getConnectionState(mPreviousAudioDevice) == BluetoothProfile.STATE_CONNECTED); in reportActiveDevice()
764 if (sm.getConnectionState() != BluetoothProfile.STATE_DISCONNECTED) { in bondStateChanged()
917 public int getConnectionState(BluetoothDevice device, AttributionSource source) { in getConnectionState() method in HearingAidService.BluetoothHearingAidBinder
923 return service.getConnectionState(device); in getConnectionState()
/aosp12/packages/apps/Nfc/src/com/android/nfc/handover/
H A DBluetoothPeripheralHandover.java270 if (mInput.getConnectionState(mDevice) in nextStepDisconnect()
280 if (mHeadset.getConnectionState(mDevice) in nextStepDisconnect()
287 if (mA2dp.getConnectionState(mDevice) in nextStepDisconnect()
376 if (mInput.getConnectionState(mDevice) in nextStepConnect()
385 if (mHeadset.getConnectionState(mDevice) != in nextStepConnect()
396 if (mA2dp.getConnectionState(mDevice) != BluetoothProfile.STATE_CONNECTED) { in nextStepConnect()
/aosp12/packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/
H A DMapClientService.java138 int state = getConnectionState(device); in connect()
212 connectionState = getConnectionState(device); in getDevicesMatchingConnectionStates()
224 public synchronized int getConnectionState(BluetoothDevice device) { in getConnectionState() method in MapClientService
488 return service.getConnectionState(device) == BluetoothProfile.STATE_CONNECTED; in isConnected()
543 public int getConnectionState(BluetoothDevice device, AttributionSource source) { in getConnectionState() method in MapClientService.Binder
552 return service.getConnectionState(device); in getConnectionState()
/aosp12/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/
H A DBluetoothTestUtils.java972 int state = proxy.getConnectionState(device); in connectProfile()
1000 state = proxy.getConnectionState(device); in connectProfile()
1055 int state = proxy.getConnectionState(device); in disconnectProfile()
1083 state = proxy.getConnectionState(device); in disconnectProfile()
1165 int state = mPan.getConnectionState(device); in connectPanOrIncomingPanConnection()
1188 state = mPan.getConnectionState(device); in connectPanOrIncomingPanConnection()
1270 int state = mPan.getConnectionState(device); in disconnectFromRemoteOrVerifyConnectNap()
1292 state = mPan.getConnectionState(device); in disconnectFromRemoteOrVerifyConnectNap()
1440 if (mMce.getConnectionState(device) != BluetoothProfile.STATE_CONNECTED) { in mceGetUnreadMessage()
1482 if (mMce.getConnectionState(device) != BluetoothProfile.STATE_CONNECTED) { in mceSetMessageStatus()
[all …]
/aosp12/packages/apps/Bluetooth/src/com/android/bluetooth/le_audio/
H A DLeAudioService.java334 connectionState = sm.getConnectionState(); in getDevicesMatchingConnectionStates()
372 public int getConnectionState(BluetoothDevice device) { in getConnectionState() method in LeAudioService
378 return sm.getConnectionState(); in getConnectionState()
532 if (sm.getConnectionState() != BluetoothProfile.STATE_DISCONNECTED) { in bondStateChanged()
778 public int getConnectionState(BluetoothDevice device, AttributionSource source) { in getConnectionState() method in LeAudioService.BluetoothLeAudioBinder
784 return service.getConnectionState(device); in getConnectionState()
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
H A DBluetoothControllerImplTest.java95 when(mMockAdapter.getConnectionState()).thenReturn(BluetoothAdapter.STATE_DISCONNECTED); in testNoConnectionWithDevices()
160 when(mMockAdapter.getConnectionState()).thenReturn(BluetoothAdapter.STATE_CONNECTING); in testOnServiceConnected_updatesConnectionState()
181 when(mMockAdapter.getConnectionState()).thenReturn( in testOnBluetoothStateChange_updatesConnectionState()
/aosp12/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
H A DLocalBluetoothAdapter.java138 public int getConnectionState() { in getConnectionState() method in LocalBluetoothAdapter
139 return mAdapter.getConnectionState(); in getConnectionState()
/aosp12/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/
H A DA2dpService.java336 switch (sm.getConnectionState()) { in connectionAllowedCheckMaxDevices()
410 connectionState = sm.getConnectionState(); in getDevicesMatchingConnectionStates()
439 public int getConnectionState(BluetoothDevice device) { in getConnectionState() method in A2dpService
445 return sm.getConnectionState(); in getConnectionState()
466 && (getConnectionState(previousActiveDevice) in removeActiveDevice()
540 if (sm.getConnectionState() != BluetoothProfile.STATE_CONNECTED) { in setActiveDevice()
1081 if (sm.getConnectionState() != BluetoothProfile.STATE_DISCONNECTED) { in bondStateChanged()
1299 public int getConnectionState(BluetoothDevice device) { in getConnectionState() method in A2dpService.BluetoothA2dpBinder
1311 return service.getConnectionState(device); in getConnectionStateWithAttribution()
/aosp12/packages/apps/Bluetooth/src/com/android/bluetooth/a2dpsink/
H A DA2dpSinkService.java248 public int getConnectionState(BluetoothDevice device, AttributionSource source) { in getConnectionState() method in A2dpSinkService.A2dpSinkServiceBinder
254 return service.getConnectionState(device); in getConnectionState()
394 connectionState = getConnectionState(device); in getDevicesMatchingConnectionStates()
416 public int getConnectionState(BluetoothDevice device) { in getConnectionState() method in A2dpSinkService
/aosp12/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/
H A DBluetoothPbapService.java437 public int getConnectionState(BluetoothDevice device) { in getConnectionState() method in BluetoothPbapService
449 return sm.getConnectionState(); in getConnectionState()
470 if (state == mPbapStateMachineMap.get(device).getConnectionState()) { in getDevicesMatchingConnectionStates()
710 public int getConnectionState(BluetoothDevice device, AttributionSource source) { in getConnectionState() method in BluetoothPbapService.PbapBinder
719 return service.getConnectionState(device); in getConnectionState()
/aosp12/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hid/
H A DHidDeviceTest.java440 mHidDeviceService.getConnectionState(mTestDevice)); in testOutgoingConnectDisconnectSuccess()
448 mHidDeviceService.getConnectionState(mTestDevice)); in testOutgoingConnectDisconnectSuccess()
463 mHidDeviceService.getConnectionState(mTestDevice)); in testOutgoingConnectDisconnectSuccess()
471 mHidDeviceService.getConnectionState(mTestDevice)); in testOutgoingConnectDisconnectSuccess()

12345