/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hearingaid/ |
D | HearingAidServiceTest.java | 367 mServiceBinder.getConnectionState(mLeftDevice, null, recv); in testOutgoingConnectTimeout() 377 mService.getConnectionState(mLeftDevice)); in testOutgoingConnectTimeout() 407 mService.getConnectionState(mLeftDevice)); in testConnectAPair_connectBothDevices() 411 mService.getConnectionState(mRightDevice)); in testConnectAPair_connectBothDevices() 483 mService.getConnectionState(mSingleDevice)); in testConnectAnotherPair_disconnectCurrentPair() 514 mService.getConnectionState(mLeftDevice)); in testAudioManagerConnectDisconnect() 518 mService.getConnectionState(mRightDevice)); in testAudioManagerConnectDisconnect() 532 mService.getConnectionState(mLeftDevice)); in testAudioManagerConnectDisconnect() 545 mService.getConnectionState(mRightDevice)); in testAudioManagerConnectDisconnect() 568 mService.getConnectionState(mLeftDevice)); in testAudioManagerConnectDisconnect() [all …]
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/btservice/ |
D | PhonePolicyTest.java | 220 when(mHeadsetService.getConnectionState(connectionOrder.get(1))).thenReturn( in testDisconnectNoAutoConnect() 237 when(mHeadsetService.getConnectionState(connectionOrder.get(1))).thenReturn( in testDisconnectNoAutoConnect() 266 when(mA2dpService.getConnectionState(connectionOrder.get(1))).thenReturn( in testDisconnectNoAutoConnect() 308 when(mA2dpService.getConnectionState(bondedDevices[0])).thenReturn( in testReconnectOnPartialConnect() 349 when(mA2dpService.getConnectionState(connectionOrder.get(0))).thenReturn( in testReconnectOnPartialConnect_PreviousPartialFail() 439 when(mA2dpService.getConnectionState(a2dpNotConnectedDevice1)).thenReturn( in testAutoConnectMultipleDevices() 441 when(mA2dpService.getConnectionState(a2dpNotConnectedDevice2)).thenReturn( in testAutoConnectMultipleDevices() 522 when(mHeadsetService.getConnectionState(testDevices[0])).thenReturn( in testSetConnectionPolicyMultipleDevices() 524 when(mA2dpService.getConnectionState(testDevices[0])).thenReturn( in testSetConnectionPolicyMultipleDevices() 527 when(mHeadsetService.getConnectionState(testDevices[1])).thenReturn( in testSetConnectionPolicyMultipleDevices() [all …]
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hfp/ |
D | HeadsetServiceTest.java | 141 doReturn(BluetoothProfile.STATE_DISCONNECTED).when(stateMachine).getConnectionState(); in setUp() 183 mHeadsetService.getConnectionState(mCurrentDevice)); in testGetHeadsetService() 247 when(mStateMachines.get(mCurrentDevice).getConnectionState()).thenReturn( in testConnectDevice_connectDeviceBelowLimit() 250 mHeadsetService.getConnectionState(mCurrentDevice)); in testConnectDevice_connectDeviceBelowLimit() 251 when(mStateMachines.get(mCurrentDevice).getConnectionState()).thenReturn( in testConnectDevice_connectDeviceBelowLimit() 254 mHeadsetService.getConnectionState(mCurrentDevice)); in testConnectDevice_connectDeviceBelowLimit() 284 when(mStateMachines.get(mCurrentDevice).getConnectionState()).thenReturn( in testMessageFromNative_deviceConnected() 287 mHeadsetService.getConnectionState(mCurrentDevice)); in testMessageFromNative_deviceConnected() 297 when(mStateMachines.get(mCurrentDevice).getConnectionState()).thenReturn( in testMessageFromNative_deviceConnected() 300 mHeadsetService.getConnectionState(mCurrentDevice)); in testMessageFromNative_deviceConnected() [all …]
|
D | BluetoothHeadsetBinderTest.java | 108 public void getConnectionState() { in getConnectionState() method in BluetoothHeadsetBinderTest 109 mBinder.getConnectionState(mTestDevice); in getConnectionState() 110 verify(mService).getConnectionState(mTestDevice); in getConnectionState() 117 verify(mService).getConnectionState(mTestDevice); in getConnectionStateWithAttribution()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/csip/ |
D | CsipSetCoordinatorStateMachineTest.java | 111 STATE_DISCONNECTED, mStateMachine.getConnectionState()); in testDefaultDisconnectedState() 286 Assert.assertEquals(STATE_DISCONNECTED, mStateMachine.getConnectionState()); in testProcessDisconnectMessage_onDisconnectedState() 294 Assert.assertEquals(STATE_DISCONNECTED, mStateMachine.getConnectionState()); in testProcessConnectMessage_onDisconnectedState() 299 Assert.assertEquals(STATE_DISCONNECTED, mStateMachine.getConnectionState()); in testProcessConnectMessage_onDisconnectedState() 315 Assert.assertEquals(STATE_DISCONNECTED, mStateMachine.getConnectionState()); in testStackEvent_withoutStateChange_onDisconnectedState() 322 Assert.assertEquals(STATE_DISCONNECTED, mStateMachine.getConnectionState()); in testStackEvent_withoutStateChange_onDisconnectedState() 329 Assert.assertEquals(STATE_DISCONNECTED, mStateMachine.getConnectionState()); in testStackEvent_withoutStateChange_onDisconnectedState() 338 Assert.assertEquals(STATE_DISCONNECTED, mStateMachine.getConnectionState()); in testStackEvent_withoutStateChange_onDisconnectedState() 346 Assert.assertEquals(STATE_DISCONNECTED, mStateMachine.getConnectionState()); in testStackEvent_withoutStateChange_onDisconnectedState() 353 Assert.assertEquals(STATE_DISCONNECTED, mStateMachine.getConnectionState()); in testStackEvent_withoutStateChange_onDisconnectedState() [all …]
|
D | BluetoothCsisBinderTest.java | 83 public void getConnectionState() { in getConnectionState() method in BluetoothCsisBinderTest 84 mBinder.getConnectionState(mTestDevice, mAttributionSource, in getConnectionState() 86 verify(mService).getConnectionState(mTestDevice); in getConnectionState()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/a2dp/ |
D | A2dpServiceTest.java | 376 mA2dpService.getConnectionState(mTestDevice)); in testOutgoingConnectTimeout() 383 mA2dpService.getConnectionState(mTestDevice)); in testOutgoingConnectTimeout() 406 mA2dpService.getConnectionState(mTestDevice)); in testOutgoingConnectDisconnectSuccess() 418 mA2dpService.getConnectionState(mTestDevice)); in testOutgoingConnectDisconnectSuccess() 430 mA2dpService.getConnectionState(mTestDevice)); in testOutgoingConnectDisconnectSuccess() 442 mA2dpService.getConnectionState(mTestDevice)); in testOutgoingConnectDisconnectSuccess() 472 mA2dpService.getConnectionState(testDevice)); in testMaxConnectDevices() 484 mA2dpService.getConnectionState(testDevice)); in testMaxConnectDevices() 515 mA2dpService.getConnectionState(mTestDevice)); in testCreateStateMachineStackEvents() 522 mA2dpService.getConnectionState(mTestDevice)); in testCreateStateMachineStackEvents() [all …]
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/le_audio/ |
D | LeAudioServiceTest.java | 491 assertThat(mService.getConnectionState(mLeftDevice)) in testOutgoingConnectTimeout() 498 assertThat(mService.getConnectionState(mLeftDevice)) in testOutgoingConnectTimeout() 544 assertThat(mService.getConnectionState(mLeftDevice)) in testAudioManagerConnectDisconnect() 548 assertThat(mService.getConnectionState(mRightDevice)) in testAudioManagerConnectDisconnect() 562 assertThat(mService.getConnectionState(mLeftDevice)) in testAudioManagerConnectDisconnect() 575 assertThat(mService.getConnectionState(mRightDevice)) in testAudioManagerConnectDisconnect() 590 .isEqualTo(mService.getConnectionState(mLeftDevice)); in testAudioManagerConnectDisconnect() 594 .isEqualTo(mService.getConnectionState(mRightDevice)); in testAudioManagerConnectDisconnect() 607 .isEqualTo(mService.getConnectionState(mLeftDevice)); in testAudioManagerConnectDisconnect() 620 .isEqualTo(mService.getConnectionState(mRightDevice)); in testAudioManagerConnectDisconnect() [all …]
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hfpclient/ |
D | HeadsetClientService.java | 353 public void getConnectionState(BluetoothDevice device, AttributionSource source, in getConnectionState() method in HeadsetClientService.BluetoothHeadsetClientBinder 359 defaultValue = service.getConnectionState(device); in getConnectionState() 760 int connectionState = sm.getConnectionState(device); in disconnect() 778 if (sm != null && sm.getConnectionState(bd) == BluetoothProfile.STATE_CONNECTED) { in getConnectedDevices() 792 if (sm != null && sm.getConnectionState(bd) == state) { in getDevicesMatchingConnectionStates() 810 public int getConnectionState(BluetoothDevice device) { in getConnectionState() method in HeadsetClientService 813 return sm.getConnectionState(device); in getConnectionState() 874 int connectionState = sm.getConnectionState(device); in startVoiceRecognition() 888 int connectionState = sm.getConnectionState(device); in stopVoiceRecognition() 1017 int connectionState = sm.getConnectionState(device); in holdCall() [all …]
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/vc/ |
D | VolumeControlServiceTest.java | 430 mService.getConnectionState(mDevice)); in testOutgoingConnectTimeout() 439 mServiceBinder.getConnectionState(mDevice, mAttributionSource, recv); in testOutgoingConnectTimeout() 463 mService.getConnectionState(mDevice)); in testCreateStateMachineStackEvents() 470 mService.getConnectionState(mDevice)); in testCreateStateMachineStackEvents() 479 mService.getConnectionState(mDevice)); in testCreateStateMachineStackEvents() 486 mService.getConnectionState(mDevice)); in testCreateStateMachineStackEvents() 496 mService.getConnectionState(mDevice)); in testCreateStateMachineStackEvents() 504 mService.getConnectionState(mDevice)); in testCreateStateMachineStackEvents() 526 mService.getConnectionState(mDevice)); in testDeleteStateMachineDisconnectEvents() 533 mService.getConnectionState(mDevice)); in testDeleteStateMachineDisconnectEvents() [all …]
|
/packages/modules/Bluetooth/android/app/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/modules/Bluetooth/android/pandora/server/src/com/android/pandora/ |
D | A2dp.kt | 86 if (bluetoothA2dp.getConnectionState(device) != BluetoothA2dp.STATE_CONNECTED) { in openSource() 125 if (bluetoothA2dp.getConnectionState(device) != BluetoothA2dp.STATE_CONNECTED) { in waitSource() 158 if (bluetoothA2dp.getConnectionState(device) != BluetoothA2dp.STATE_CONNECTED) { in start() 183 if (bluetoothA2dp.getConnectionState(device) != BluetoothA2dp.STATE_CONNECTED) { in suspend() 213 if (bluetoothA2dp.getConnectionState(device) != BluetoothA2dp.STATE_CONNECTED) { in isSuspended() 228 if (bluetoothA2dp.getConnectionState(device) != BluetoothA2dp.STATE_CONNECTED) { in close() 302 if (bluetoothA2dp.getConnectionState(device) != BluetoothA2dp.STATE_CONNECTED) { in getAudioEncoding()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hid/ |
D | HidHostService.java | 132 int inputDeviceState = getConnectionState(device); in cleanup() 388 public void getConnectionState(BluetoothDevice device, AttributionSource source, in getConnectionState() method in HidHostService.BluetoothHidHostBinder 394 defaultValue = service.getConnectionState(device); in getConnectionState() 590 if (getConnectionState(device) != BluetoothHidHost.STATE_DISCONNECTED) { in connect() 626 public int getConnectionState(BluetoothDevice device) { in getConnectionState() method in HidHostService 639 int inputDeviceState = getConnectionState(device); in getDevicesMatchingConnectionStates() 710 int state = this.getConnectionState(device); in getProtocolMode() 723 int state = this.getConnectionState(device); in virtualUnplug() 736 int state = this.getConnectionState(device); in setProtocolMode() 751 int state = this.getConnectionState(device); in getReport() [all …]
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/bass_client/ |
D | BleBroadcastAssistantBinderTest.java | 69 public void getConnectionState() { in getConnectionState() method in BleBroadcastAssistantBinderTest 71 mBinder.getConnectionState(device); in getConnectionState() 72 verify(mService).getConnectionState(device); in getConnectionState() 74 doThrow(new RuntimeException()).when(mService).getConnectionState(device); in getConnectionState() 75 assertThat(mBinder.getConnectionState(device)).isEqualTo(STATE_DISCONNECTED); in getConnectionState() 78 assertThat(mBinder.getConnectionState(device)).isEqualTo(STATE_DISCONNECTED); in getConnectionState()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/ |
D | PhonePolicy.java | 483 && (hsService.getConnectionState(device) in processActiveDeviceChanged() 493 && (a2dpService.getConnectionState(device) in processActiveDeviceChanged() 689 && (hsService.getConnectionState(device) in processConnectOtherProfiles() 699 && (a2dpService.getConnectionState(device) in processConnectOtherProfiles() 712 && (panService.getConnectionState(device) in processConnectOtherProfiles() 722 && (leAudioService.getConnectionState(device) in processConnectOtherProfiles() 732 && (csipSetCooridnatorService.getConnectionState(device) in processConnectOtherProfiles() 742 && (volumeControlService.getConnectionState(device) in processConnectOtherProfiles() 752 && (batteryService.getConnectionState(device) in processConnectOtherProfiles() 761 && (hidHostService.getConnectionState(device) in processConnectOtherProfiles()
|
D | AdapterService.java | 1067 return mHidDeviceService.getConnectionState(device) in isSupported() 1074 return mMapService.getConnectionState(device) == BluetoothProfile.STATE_CONNECTED; in isSupported() 1077 return mPbapService.getConnectionState(device) == BluetoothProfile.STATE_CONNECTED; in isSupported() 2192 return service.mAdapterProperties.getConnectionState(); in getAdapterConnectionState() 2392 public int getConnectionState(BluetoothDevice device) { in getConnectionState() method in AdapterService.AdapterServiceBinder 2417 return service.getConnectionState(device); in getConnectionStateWithAttribution() 4237 int getConnectionState(BluetoothDevice device) { in getConnectionState() method in AdapterService 4531 if (mA2dpService != null && (mA2dpService.getConnectionState(device) in disconnectAllEnabledProfiles() 4533 || mA2dpService.getConnectionState(device) in disconnectAllEnabledProfiles() 4538 if (mA2dpSinkService != null && (mA2dpSinkService.getConnectionState(device) in disconnectAllEnabledProfiles() [all …]
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/map/ |
D | BluetoothMapServiceBinderTest.java | 79 mBinder.getConnectionState(mRemoteDevice, null, SynchronousResultReceiver.get()); in getConnectionState_callsServiceMethod() 81 verify(mService).getConnectionState(mRemoteDevice); in getConnectionState_callsServiceMethod() 111 verify(mService).getConnectionState(mRemoteDevice); in isConnected_callsServiceStaticMethod()
|
/packages/modules/Connectivity/nearby/tests/robotests/src/com/android/libraries/testing/deviceshadower/shadows/bluetooth/ |
D | ShadowBluetoothA2dp.java | 65 if (getConnectionState(device) == BluetoothProfile.STATE_CONNECTED) { in getConnectedDevices() 73 public int getConnectionState(BluetoothDevice device) { in getConnectionState() method in ShadowBluetoothA2dp 100 int previousState = getConnectionState(device); in setConnectionState()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/bas/ |
D | BatteryService.java | 336 connectionState = sm.getConnectionState(); in getDevicesMatchingConnectionStates() 369 public int getConnectionState(BluetoothDevice device) { in getConnectionState() method in BatteryService 377 return sm.getConnectionState(); in getConnectionState() 495 if (sm.getConnectionState() != BluetoothProfile.STATE_DISCONNECTED) { in handleBondStateChanged() 614 public void getConnectionState(BluetoothDevice device, AttributionSource source, in getConnectionState() method in BatteryService.BluetoothBatteryBinder 620 result = service.getConnectionState(device); in getConnectionState()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/bas/ |
D | BatteryServiceBinderTest.java | 96 public void getConnectionState() { in getConnectionState() method in BatteryServiceBinderTest 102 mBinder.getConnectionState(device, source, recv); in getConnectionState() 103 verify(mService).getConnectionState(device); in getConnectionState()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/pbapclient/ |
D | PbapClientServiceTest.java | 203 assertThat(mService.getConnectionState(mRemoteDevice)) in testGetConnectionState_whenNotConnected() 222 when(sm.getConnectionState()).thenReturn(connectionState); in getConnectedDevices() 278 binder.getConnectionState(mRemoteDevice, null, SynchronousResultReceiver.get()); in binder_getConnectionState_callsServiceMethod() 280 verify(mockService).getConnectionState(mRemoteDevice); in binder_getConnectionState_callsServiceMethod() 321 when(sm.getConnectionState(mRemoteDevice)).thenReturn(connectionState); in broadcastReceiver_withActionAclDisconnected_callsDisconnect()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/a2dpsink/ |
D | A2dpSinkServiceTest.java | 118 assertThat(mService.getConnectionState(device)).isEqualTo( in setupDeviceConnection() 123 assertThat(mService.getConnectionState(device)).isEqualTo( in setupDeviceConnection() 192 assertThat(mService.getConnectionState(mDevice1)).isEqualTo( in testConnectPolicyForbiddenDevice() 236 assertThat(mService.getConnectionState(mDevice1)).isEqualTo( in testDisconnect() 442 assertThat(mService.getConnectionState(mDevice1)).isEqualTo( in testSetConnectionPolicyDeviceForbiddenWhileConnected()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hearingaid/ |
D | HearingAidService.java | 449 connectionState = sm.getConnectionState(); in getDevicesMatchingConnectionStates() 497 public int getConnectionState(BluetoothDevice device) { in getConnectionState() method in HearingAidService 503 return sm.getConnectionState(); in getConnectionState() 606 if (getConnectionState(device) != BluetoothProfile.STATE_CONNECTED) { in setActiveDevice() 639 if (getConnectionState(device) != BluetoothProfile.STATE_CONNECTED) { in getActiveDevices() 777 && (getConnectionState(mPreviousAudioDevice) != BluetoothProfile.STATE_CONNECTED); in reportActiveDevice() 835 if (sm.getConnectionState() != BluetoothProfile.STATE_DISCONNECTED) { in bondStateChanged() 1015 public void getConnectionState(BluetoothDevice device, AttributionSource source, in getConnectionState() method in HearingAidService.BluetoothHearingAidBinder 1021 state = service.getConnectionState(device); in getConnectionState()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/pbapclient/ |
D | PbapClientService.java | 295 if (getConnectionState(device) == BluetoothProfile.STATE_CONNECTED) { in onReceive() 415 public void getConnectionState(BluetoothDevice device, AttributionSource source, in getConnectionState() method in PbapClientService.BluetoothPbapClientBinder 421 defaultValue = service.getConnectionState(device); in getConnectionState() 543 int currentDeviceState = stateMachineEntry.getValue().getConnectionState(); in getDevicesMatchingConnectionStates() 563 public int getConnectionState(BluetoothDevice device) { in getConnectionState() method in PbapClientService 571 return pbapClientStateMachine.getConnectionState(device); in getConnectionState()
|
/packages/apps/Nfc/src/com/android/nfc/handover/ |
D | BluetoothPeripheralHandover.java | 271 if (mInput.getConnectionState(mDevice) in nextStepDisconnect() 281 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() 397 if (mA2dp.getConnectionState(mDevice) != BluetoothProfile.STATE_CONNECTED) { in nextStepConnect()
|