Home
last modified time | relevance | path

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

12

/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hearingaid/
DHearingAidServiceTest.java361 mService.getConnectionState(mLeftDevice)); in testOutgoingConnectTimeout()
368 mService.getConnectionState(mLeftDevice)); in testOutgoingConnectTimeout()
396 mService.getConnectionState(mLeftDevice)); in testConnectAPair_connectBothDevices()
400 mService.getConnectionState(mRightDevice)); in testConnectAPair_connectBothDevices()
464 mService.getConnectionState(mSingleDevice)); in testConnectAnotherPair_disconnectCurrentPair()
493 mService.getConnectionState(mLeftDevice)); in testAudioManagerConnectDisconnect()
497 mService.getConnectionState(mRightDevice)); in testAudioManagerConnectDisconnect()
511 mService.getConnectionState(mLeftDevice)); in testAudioManagerConnectDisconnect()
524 mService.getConnectionState(mRightDevice)); in testAudioManagerConnectDisconnect()
543 mService.getConnectionState(mLeftDevice)); in testAudioManagerConnectDisconnect()
[all …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/
DPhonePolicyTest.java211 when(mHeadsetService.getConnectionState(bondedDevices[1])).thenReturn( in testDisconnectNoAutoConnect()
230 when(mHeadsetService.getConnectionState(bondedDevices[1])).thenReturn( in testDisconnectNoAutoConnect()
247 when(mA2dpService.getConnectionState(bondedDevices[1])).thenReturn( in testDisconnectNoAutoConnect()
287 when(mA2dpService.getConnectionState(bondedDevices[0])).thenReturn( in testReconnectOnPartialConnect()
328 when(mA2dpService.getConnectionState(bondedDevices[0])).thenReturn( in testReconnectOnPartialConnect_PreviousPartialFail()
418 when(mA2dpService.getConnectionState(a2dpNotConnectedDevice1)).thenReturn( in testAutoConnectMultipleDevices()
420 when(mA2dpService.getConnectionState(a2dpNotConnectedDevice2)).thenReturn( in testAutoConnectMultipleDevices()
498 when(mHeadsetService.getConnectionState(testDevices[0])).thenReturn( in testSetPriorityMultipleDevices()
500 when(mA2dpService.getConnectionState(testDevices[0])).thenReturn( in testSetPriorityMultipleDevices()
503 when(mHeadsetService.getConnectionState(testDevices[1])).thenReturn( in testSetPriorityMultipleDevices()
[all …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/
DHeadsetServiceTest.java138 doReturn(BluetoothProfile.STATE_DISCONNECTED).when(stateMachine).getConnectionState(); in setUp()
183 mHeadsetService.getConnectionState(mCurrentDevice)); in testGetHeadsetService()
255 when(mStateMachines.get(mCurrentDevice).getConnectionState()).thenReturn( in testConnectDevice_connectDeviceBelowLimit()
258 mHeadsetService.getConnectionState(mCurrentDevice)); in testConnectDevice_connectDeviceBelowLimit()
259 when(mStateMachines.get(mCurrentDevice).getConnectionState()).thenReturn( in testConnectDevice_connectDeviceBelowLimit()
262 mHeadsetService.getConnectionState(mCurrentDevice)); in testConnectDevice_connectDeviceBelowLimit()
292 when(mStateMachines.get(mCurrentDevice).getConnectionState()).thenReturn( in testMessageFromNative_deviceConnected()
295 mHeadsetService.getConnectionState(mCurrentDevice)); in testMessageFromNative_deviceConnected()
305 when(mStateMachines.get(mCurrentDevice).getConnectionState()).thenReturn( in testMessageFromNative_deviceConnected()
308 mHeadsetService.getConnectionState(mCurrentDevice)); in testMessageFromNative_deviceConnected()
[all …]
DHeadsetServiceAndStateMachineTest.java270 mHeadsetService.getConnectionState(device)); in testGetHeadsetService()
297 mHeadsetService.getConnectionState(device)); in testConnectFromApi()
312 mHeadsetService.getConnectionState(device)); in testConnectFromApi()
395 mHeadsetService.getConnectionState(device)); in testUnbondDevice_disconnectAfterUnbond()
1175 mHeadsetService.getConnectionState(device)); in connectTestDevice()
1190 mHeadsetService.getConnectionState(device)); in connectTestDevice()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/a2dp/
DA2dpServiceTest.java405 mA2dpService.getConnectionState(mTestDevice)); in testOutgoingConnectTimeout()
412 mA2dpService.getConnectionState(mTestDevice)); in testOutgoingConnectTimeout()
436 mA2dpService.getConnectionState(mTestDevice)); in testOutgoingConnectDisconnectSuccess()
448 mA2dpService.getConnectionState(mTestDevice)); in testOutgoingConnectDisconnectSuccess()
460 mA2dpService.getConnectionState(mTestDevice)); in testOutgoingConnectDisconnectSuccess()
472 mA2dpService.getConnectionState(mTestDevice)); in testOutgoingConnectDisconnectSuccess()
503 mA2dpService.getConnectionState(testDevice)); in testMaxConnectDevices()
515 mA2dpService.getConnectionState(testDevice)); in testMaxConnectDevices()
548 mA2dpService.getConnectionState(mTestDevice)); in testCreateStateMachineStackEvents()
555 mA2dpService.getConnectionState(mTestDevice)); in testCreateStateMachineStackEvents()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/
DHeadsetClientService.java251 public int getConnectionState(BluetoothDevice device) { in getConnectionState() method in HeadsetClientService.BluetoothHeadsetClientBinder
256 return service.getConnectionState(device); in getConnectionState()
493 int connectionState = sm.getConnectionState(device); in disconnect()
509 if (sm != null && sm.getConnectionState(bd) == BluetoothProfile.STATE_CONNECTED) { in getConnectedDevices()
522 if (sm != null && sm.getConnectionState(bd) == state) { in getDevicesMatchingConnectionStates()
530 private synchronized int getConnectionState(BluetoothDevice device) { in getConnectionState() method in HeadsetClientService
534 return sm.getConnectionState(device); in getConnectionState()
562 int connectionState = sm.getConnectionState(device); in startVoiceRecognition()
577 int connectionState = sm.getConnectionState(device); in stopVoiceRecognition()
636 int connectionState = sm.getConnectionState(device); in holdCall()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/hid/
DHidHostService.java111 int inputDeviceState = getConnectionState(device); in cleanup()
353 public int getConnectionState(BluetoothDevice device) { in getConnectionState() method in HidHostService.BluetoothHidHostBinder
358 return service.getConnectionState(device); in getConnectionState()
474 if (getConnectionState(device) != BluetoothHidHost.STATE_DISCONNECTED) { in connect()
496 int getConnectionState(BluetoothDevice device) { in getConnectionState() method in HidHostService
510 int inputDeviceState = getConnectionState(device); in getDevicesMatchingConnectionStates()
549 int state = this.getConnectionState(device); in getProtocolMode()
565 int state = this.getConnectionState(device); in virtualUnplug()
579 int state = this.getConnectionState(device); in setProtocolMode()
595 int state = this.getConnectionState(device); in getReport()
[all …]
DHidDeviceService.java422 public int getConnectionState(BluetoothDevice device) { in getConnectionState() method in HidDeviceService.BluetoothHidDeviceBinder
432 return service.getConnectionState(device); in getConnectionState()
704 int getConnectionState(BluetoothDevice device) { in getConnectionState() method in HidDeviceService
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/pbap/
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()
/packages/apps/Bluetooth/src/com/android/bluetooth/pbapclient/
DPbapClientService.java167 if (getConnectionState(device) == BluetoothProfile.STATE_CONNECTED) { in onReceive()
247 public int getConnectionState(BluetoothDevice device) { in getConnectionState() method in PbapClientService.BluetoothPbapClientBinder
252 return service.getConnectionState(device); in getConnectionState()
348 int currentDeviceState = stateMachineEntry.getValue().getConnectionState(); in getDevicesMatchingConnectionStates()
359 int getConnectionState(BluetoothDevice device) { in getConnectionState() method in PbapClientService
368 return pbapClientStateMachine.getConnectionState(device); in getConnectionState()
DPbapClientStateMachine.java370 public int getConnectionState() { in getConnectionState() method in PbapClientStateMachine
389 clientState = getConnectionState(); in getDevicesMatchingConnectionStates()
403 public int getConnectionState(BluetoothDevice device) { in getConnectionState() method in PbapClientStateMachine
409 return getConnectionState(); in getConnectionState()
/packages/apps/Bluetooth/src/com/android/bluetooth/hearingaid/
DHearingAidService.java395 connectionState = sm.getConnectionState(); in getDevicesMatchingConnectionStates()
434 int getConnectionState(BluetoothDevice device) { in getConnectionState() method in HearingAidService
441 return sm.getConnectionState(); in getConnectionState()
501 if (getConnectionState(device) != BluetoothProfile.STATE_CONNECTED) { in setActiveDevice()
543 if (getConnectionState(device) != BluetoothProfile.STATE_CONNECTED) { in getActiveDevices()
648 (getConnectionState(mPreviousAudioDevice) == BluetoothProfile.STATE_CONNECTED); in reportActiveDevice()
708 if (sm.getConnectionState() != BluetoothProfile.STATE_DISCONNECTED) { in bondStateChanged()
858 public int getConnectionState(BluetoothDevice device) { in getConnectionState() method in HearingAidService.BluetoothHearingAidBinder
863 return service.getConnectionState(device); in getConnectionState()
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
DHeadsetService.java386 if (stateMachine.getConnectionState()
470 public int getConnectionState(BluetoothDevice device) { in getConnectionState() method in HeadsetService.BluetoothHeadsetBinder
475 return service.getConnectionState(device); in getConnectionState()
702 int connectionState = stateMachine.getConnectionState(); in connect()
741 int connectionState = stateMachine.getConnectionState(); in disconnect()
758 if (stateMachine.getConnectionState() == BluetoothProfile.STATE_CONNECTED) { in getConnectedDevices()
789 int connectionState = getConnectionState(device); in getDevicesMatchingConnectionStates()
801 public int getConnectionState(BluetoothDevice device) { in getConnectionState() method in HeadsetService
808 return stateMachine.getConnectionState(); in getConnectionState()
885 int connectionState = stateMachine.getConnectionState(); in startVoiceRecognition()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/
DMapClientService.java130 int state = getConnectionState(device); in connect()
201 connectionState = getConnectionState(device); in getDevicesMatchingConnectionStates()
213 public synchronized int getConnectionState(BluetoothDevice device) { in getConnectionState() method in MapClientService
423 return service.getConnectionState(device) == BluetoothProfile.STATE_CONNECTED; in isConnected()
475 public int getConnectionState(BluetoothDevice device) { in getConnectionState() method in MapClientService.Binder
483 return service.getConnectionState(device); in getConnectionState()
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/
DA2dpService.java314 switch (sm.getConnectionState()) { in connectionAllowedCheckMaxDevices()
390 connectionState = sm.getConnectionState(); in getDevicesMatchingConnectionStates()
419 public int getConnectionState(BluetoothDevice device) { in getConnectionState() method in A2dpService
426 return sm.getConnectionState(); in getConnectionState()
457 && (getConnectionState(previousActiveDevice) in removeActiveDevice()
539 if (sm.getConnectionState() != BluetoothProfile.STATE_CONNECTED) { in setActiveDevice()
993 if (sm.getConnectionState() != BluetoothProfile.STATE_DISCONNECTED) { in bondStateChanged()
1194 public int getConnectionState(BluetoothDevice device) { in getConnectionState() method in A2dpService.BluetoothA2dpBinder
1199 return service.getConnectionState(device); in getConnectionState()
/packages/apps/Nfc/src/com/android/nfc/handover/
DBluetoothPeripheralHandover.java268 if (mInput.getConnectionState(mDevice) in nextStepDisconnect()
278 if (mHeadset.getConnectionState(mDevice) in nextStepDisconnect()
285 if (mA2dp.getConnectionState(mDevice) in nextStepDisconnect()
374 if (mInput.getConnectionState(mDevice) in nextStepConnect()
383 if (mHeadset.getConnectionState(mDevice) != in nextStepConnect()
394 if (mA2dp.getConnectionState(mDevice) != BluetoothProfile.STATE_CONNECTED) { in nextStepConnect()
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dpsink/
DA2dpSinkService.java165 public int getConnectionState(BluetoothDevice device) { in getConnectionState() method in A2dpSinkService.A2dpSinkServiceBinder
170 return service.getConnectionState(device); in getConnectionState()
295 connectionState = getConnectionState(device); in getDevicesMatchingConnectionStates()
308 synchronized int getConnectionState(BluetoothDevice device) { in getConnectionState() method in A2dpSinkService
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DPhonePolicy.java292 || hsService.getConnectionState(device) in processProfileStateChanged()
296 || a2dpService.getConnectionState(device) in processProfileStateChanged()
466 >= BluetoothProfile.PRIORITY_ON) && (hsService.getConnectionState(device) in processConnectOtherProfiles()
475 >= BluetoothProfile.PRIORITY_ON) && (a2dpService.getConnectionState(device) in processConnectOtherProfiles()
487 >= BluetoothProfile.PRIORITY_ON) && (panService.getConnectionState(device) in processConnectOtherProfiles()
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/
DBluetoothPbapService.java420 int getConnectionState(BluetoothDevice device) { in getConnectionState() method in BluetoothPbapService
431 return sm.getConnectionState(); in getConnectionState()
454 if (state == mPbapStateMachineMap.get(device).getConnectionState()) { in getDevicesMatchingConnectionStates()
636 public int getConnectionState(BluetoothDevice device) { in getConnectionState() method in BluetoothPbapService.PbapBinder
644 return service.getConnectionState(device); in getConnectionState()
/packages/apps/Bluetooth/src/com/android/bluetooth/pan/
DPanService.java252 public int getConnectionState(BluetoothDevice device) { in getConnectionState() method in PanService.BluetoothPanBinder
257 return service.getConnectionState(device); in getConnectionState()
322 if (getConnectionState(device) != BluetoothProfile.STATE_DISCONNECTED) { in connect()
338 public int getConnectionState(BluetoothDevice device) { in getConnectionState() method in PanService
430 int panDeviceState = getConnectionState(device); in getDevicesMatchingConnectionStates()
/packages/services/Telecomm/src/com/android/server/telecom/
DBluetoothHeadsetProxy.java56 public int getConnectionState(BluetoothDevice device) { in getConnectionState() method in BluetoothHeadsetProxy
57 return mBluetoothHeadset.getConnectionState(device); in getConnectionState()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hid/
DHidDeviceTest.java436 mHidDeviceService.getConnectionState(mTestDevice)); in testOutgoingConnectDisconnectSuccess()
444 mHidDeviceService.getConnectionState(mTestDevice)); in testOutgoingConnectDisconnectSuccess()
459 mHidDeviceService.getConnectionState(mTestDevice)); in testOutgoingConnectDisconnectSuccess()
467 mHidDeviceService.getConnectionState(mTestDevice)); in testOutgoingConnectDisconnectSuccess()
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/
DAvrcpControllerService.java238 public int getConnectionState(BluetoothDevice device) { in getConnectionState() method in AvrcpControllerService.AvrcpControllerServiceBinder
243 return service.getConnectionState(device); in getConnectionState()
672 connectionState = getConnectionState(device); in getDevicesMatchingConnectionStates()
685 synchronized int getConnectionState(BluetoothDevice device) { in getConnectionState() method in AvrcpControllerService
/packages/apps/Bluetooth/src/com/android/bluetooth/sap/
DSapService.java577 connectionState = getConnectionState(device); in getDevicesMatchingConnectionStates()
588 public int getConnectionState(BluetoothDevice device) { in getConnectionState() method in SapService
970 public int getConnectionState(BluetoothDevice device) { in getConnectionState() method in SapService.SapBinder
976 return service.getConnectionState(device); in getConnectionState()
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapService.java555 int connectionState = getConnectionState(device); in getDevicesMatchingConnectionStates()
566 int getConnectionState(BluetoothDevice device) { in getConnectionState() method in BluetoothMapService
1249 public int getConnectionState(BluetoothDevice device) { in getConnectionState() method in BluetoothMapService.BluetoothMapBinder
1257 return service.getConnectionState(device); in getConnectionState()

12