/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hearingaid/ |
D | HearingAidServiceTest.java | 361 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/ |
D | PhonePolicyTest.java | 211 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/ |
D | HeadsetServiceTest.java | 138 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 …]
|
D | HeadsetServiceAndStateMachineTest.java | 270 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/ |
D | A2dpServiceTest.java | 405 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/ |
D | HeadsetClientService.java | 251 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/ |
D | HidHostService.java | 111 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 …]
|
D | HidDeviceService.java | 422 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/ |
D | PbapStateMachineTest.java | 100 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/ |
D | PbapClientService.java | 167 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()
|
D | PbapClientStateMachine.java | 370 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/ |
D | HearingAidService.java | 395 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/ |
D | HeadsetService.java | 386 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/ |
D | MapClientService.java | 130 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/ |
D | A2dpService.java | 314 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/ |
D | BluetoothPeripheralHandover.java | 268 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/ |
D | A2dpSinkService.java | 165 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/ |
D | PhonePolicy.java | 292 || 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/ |
D | BluetoothPbapService.java | 420 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/ |
D | PanService.java | 252 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/ |
D | BluetoothHeadsetProxy.java | 56 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/ |
D | HidDeviceTest.java | 436 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/ |
D | AvrcpControllerService.java | 238 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/ |
D | SapService.java | 577 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/ |
D | BluetoothMapService.java | 555 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()
|