Home
last modified time | relevance | path

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

123456

/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hearingaid/
DHearingAidServiceTest.java360 int connectionState = mServiceBinder.getConnectionState(mLeftDevice, null); in testOutgoingConnectTimeout()
368 assertThat(mService.getConnectionState(mLeftDevice)) in testOutgoingConnectTimeout()
397 assertThat(mService.getConnectionState(mLeftDevice)) in testConnectAPair_connectBothDevices()
403 assertThat(mService.getConnectionState(mRightDevice)) in testConnectAPair_connectBothDevices()
477 assertThat(mService.getConnectionState(mSingleDevice)) in testConnectAnotherPair_disconnectCurrentPair()
507 assertThat(mService.getConnectionState(mLeftDevice)) in testAudioManagerConnectDisconnect()
513 assertThat(mService.getConnectionState(mRightDevice)) in testAudioManagerConnectDisconnect()
527 assertThat(mService.getConnectionState(mLeftDevice)) in testAudioManagerConnectDisconnect()
540 assertThat(mService.getConnectionState(mRightDevice)) in testAudioManagerConnectDisconnect()
561 assertThat(mService.getConnectionState(mRightDevice)) in testAudioManagerConnectDisconnect()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hfp/
DHeadsetServiceTest.java160 .getConnectionState(); in setUp()
197 mHeadsetService.getConnectionState(mCurrentDevice)); in testGetHeadsetService()
292 when(mStateMachines.get(mCurrentDevice).getConnectionState()) in testConnectDevice_connectDeviceBelowLimit()
296 mHeadsetService.getConnectionState(mCurrentDevice)); in testConnectDevice_connectDeviceBelowLimit()
297 when(mStateMachines.get(mCurrentDevice).getConnectionState()) in testConnectDevice_connectDeviceBelowLimit()
301 mHeadsetService.getConnectionState(mCurrentDevice)); in testConnectDevice_connectDeviceBelowLimit()
338 when(mStateMachines.get(mCurrentDevice).getConnectionState()) in testMessageFromNative_deviceConnected()
342 mHeadsetService.getConnectionState(mCurrentDevice)); in testMessageFromNative_deviceConnected()
354 when(mStateMachines.get(mCurrentDevice).getConnectionState()) in testMessageFromNative_deviceConnected()
358 mHeadsetService.getConnectionState(mCurrentDevice)); in testMessageFromNative_deviceConnected()
[all …]
DBluetoothHeadsetBinderTest.java78 public void getConnectionState() { in getConnectionState() method in BluetoothHeadsetBinderTest
79 mBinder.getConnectionState(mTestDevice, mAttributionSource); in getConnectionState()
80 verify(mService).getConnectionState(mTestDevice); in getConnectionState()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/csip/
DCsipSetCoordinatorStateMachineTest.java113 Assert.assertEquals(STATE_DISCONNECTED, mStateMachine.getConnectionState()); in testDefaultDisconnectedState()
295 Assert.assertEquals(STATE_DISCONNECTED, mStateMachine.getConnectionState()); in testProcessDisconnectMessage_onDisconnectedState()
303 Assert.assertEquals(STATE_DISCONNECTED, mStateMachine.getConnectionState()); in testProcessConnectMessage_onDisconnectedState()
308 Assert.assertEquals(STATE_DISCONNECTED, mStateMachine.getConnectionState()); in testProcessConnectMessage_onDisconnectedState()
324 Assert.assertEquals(STATE_DISCONNECTED, mStateMachine.getConnectionState()); in testStackEvent_withoutStateChange_onDisconnectedState()
332 Assert.assertEquals(STATE_DISCONNECTED, mStateMachine.getConnectionState()); in testStackEvent_withoutStateChange_onDisconnectedState()
340 Assert.assertEquals(STATE_DISCONNECTED, mStateMachine.getConnectionState()); in testStackEvent_withoutStateChange_onDisconnectedState()
350 Assert.assertEquals(STATE_DISCONNECTED, mStateMachine.getConnectionState()); in testStackEvent_withoutStateChange_onDisconnectedState()
359 Assert.assertEquals(STATE_DISCONNECTED, mStateMachine.getConnectionState()); in testStackEvent_withoutStateChange_onDisconnectedState()
367 Assert.assertEquals(STATE_DISCONNECTED, mStateMachine.getConnectionState()); in testStackEvent_withoutStateChange_onDisconnectedState()
[all …]
DBluetoothCsisBinderTest.java81 public void getConnectionState() { in getConnectionState() method in BluetoothCsisBinderTest
82 mBinder.getConnectionState(mTestDevice, mAttributionSource); in getConnectionState()
83 verify(mService).getConnectionState(mTestDevice); in getConnectionState()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/a2dp/
DA2dpServiceTest.java326 assertThat(mA2dpService.getConnectionState(sTestDevice)) in testOutgoingConnectTimeout()
338 assertThat(mA2dpService.getConnectionState(sTestDevice)) in testOutgoingConnectTimeout()
362 assertThat(mA2dpService.getConnectionState(sTestDevice)) in testOutgoingConnectDisconnectSuccess()
375 assertThat(mA2dpService.getConnectionState(sTestDevice)) in testOutgoingConnectDisconnectSuccess()
390 assertThat(mA2dpService.getConnectionState(sTestDevice)) in testOutgoingConnectDisconnectSuccess()
405 assertThat(mA2dpService.getConnectionState(sTestDevice)) in testOutgoingConnectDisconnectSuccess()
436 assertThat(mA2dpService.getConnectionState(testDevice)) in testMaxConnectDevices()
450 assertThat(mA2dpService.getConnectionState(testDevice)) in testMaxConnectDevices()
481 assertThat(mA2dpService.getConnectionState(sTestDevice)) in testCreateStateMachineStackEvents()
490 assertThat(mA2dpService.getConnectionState(sTestDevice)) in testCreateStateMachineStackEvents()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hfpclient/
DHeadsetClientService.java347 public int getConnectionState(BluetoothDevice device, AttributionSource source) { in getConnectionState() method in HeadsetClientService.BluetoothHeadsetClientBinder
353 return service.getConnectionState(device); in getConnectionState()
647 int connectionState = sm.getConnectionState(device); in disconnect()
665 if (sm != null && sm.getConnectionState(bd) == BluetoothProfile.STATE_CONNECTED) { in getConnectedDevices()
679 if (sm != null && sm.getConnectionState(bd) == state) { in getDevicesMatchingConnectionStates()
697 public int getConnectionState(BluetoothDevice device) { in getConnectionState() method in HeadsetClientService
700 return sm.getConnectionState(device); in getConnectionState()
755 int connectionState = sm.getConnectionState(device); in startVoiceRecognition()
769 int connectionState = sm.getConnectionState(device); in stopVoiceRecognition()
910 int connectionState = sm.getConnectionState(device); in holdCall()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/btservice/
DPhonePolicyTest.java811 when(mHeadsetService.getConnectionState(connectionOrder.get(1))) in testDisconnectNoAutoConnect()
825 when(mHeadsetService.getConnectionState(connectionOrder.get(1))) in testDisconnectNoAutoConnect()
856 when(mA2dpService.getConnectionState(connectionOrder.get(1))) in testDisconnectNoAutoConnect()
902 when(mA2dpService.getConnectionState(bondedDevices[0])) in testReconnectOnPartialConnect()
906 when(mAdapterService.getConnectionState(bondedDevices[0])) in testReconnectOnPartialConnect()
949 when(mA2dpService.getConnectionState(bondedDevices[0])) in testConnectOtherProfileWhileDeviceIsDisconnected()
954 when(mAdapterService.getConnectionState(bondedDevices[0])) in testConnectOtherProfileWhileDeviceIsDisconnected()
982 when(mAdapterService.getConnectionState(testDevice)) in testReconnectOnPartialConnect_PreviousPartialFail()
1004 when(mA2dpService.getConnectionState(connectionOrder.get(0))) in testReconnectOnPartialConnect_PreviousPartialFail()
1228 when(mAdapterService.getConnectionState(testDevice)) in testAutoConnectMultipleDevices()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/pbap/
DPbapStateMachineTest.java103 BluetoothProfile.STATE_CONNECTING, mPbapStateMachine.getConnectionState()); in testInitialState()
115 BluetoothProfile.STATE_DISCONNECTED, mPbapStateMachine.getConnectionState()); in testStateTransition_WaitingForAuthToFinished()
127 BluetoothProfile.STATE_CONNECTED, mPbapStateMachine.getConnectionState()); in testStateTransition_WaitingForAuthToConnected()
139 BluetoothProfile.STATE_CONNECTED, mPbapStateMachine.getConnectionState()); in testStateTransition_ConnectedToFinished()
147 BluetoothProfile.STATE_DISCONNECTED, mPbapStateMachine.getConnectionState()); in testStateTransition_ConnectedToFinished()
/packages/modules/Bluetooth/android/pandora/server/src/
DA2dp.kt85 if (bluetoothA2dp.getConnectionState(device) != BluetoothA2dp.STATE_CONNECTED) { in openSource()
123 if (bluetoothA2dp.getConnectionState(device) != BluetoothA2dp.STATE_CONNECTED) { in waitSource()
160 if (bluetoothA2dp.getConnectionState(device) != BluetoothA2dp.STATE_CONNECTED) { in start()
187 if (bluetoothA2dp.getConnectionState(device) != BluetoothA2dp.STATE_CONNECTED) { in suspend()
215 if (bluetoothA2dp.getConnectionState(device) != BluetoothA2dp.STATE_CONNECTED) { in isSuspended()
230 if (bluetoothA2dp.getConnectionState(device) != BluetoothA2dp.STATE_CONNECTED) { in close()
307 if (bluetoothA2dp.getConnectionState(device) != BluetoothA2dp.STATE_CONNECTED) { in getAudioEncoding()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/pbapclient/
DPbapClientStateMachineTest.java101 assertThat(mPbapClientStateMachine.getConnectionState()) in testDefaultConnectingState()
111 assertThat(mPbapClientStateMachine.getConnectionState()) in testStateTransitionFromConnectingToDisconnected()
118 assertThat(mPbapClientStateMachine.getConnectionState()) in testStateTransitionFromConnectingToDisconnected()
128 assertThat(mPbapClientStateMachine.getConnectionState()) in testStateTransitionFromConnectingToDisconnected()
DPbapClientServiceTest.java210 assertThat(mService.getConnectionState(mRemoteDevice)) in testGetConnectionState_whenNotConnected()
229 when(sm.getConnectionState()).thenReturn(connectionState); in getConnectedDevices()
285 binder.getConnectionState(mRemoteDevice, null); in binder_getConnectionState_callsServiceMethod()
287 verify(mockService).getConnectionState(mRemoteDevice); in binder_getConnectionState_callsServiceMethod()
327 when(sm.getConnectionState(mRemoteDevice)).thenReturn(connectionState); in broadcastReceiver_withActionAclDisconnectedLeTransport_doesNotCallDisconnect()
340 when(sm.getConnectionState(mRemoteDevice)).thenReturn(connectionState); in broadcastReceiver_withActionAclDisconnectedBrEdrTransport_callsDisconnect()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/vc/
DVolumeControlServiceTest.java427 BluetoothProfile.STATE_CONNECTING, mService.getConnectionState(mDevice)); in testOutgoingConnectTimeout()
436 int state = mServiceBinder.getConnectionState(mDevice, mAttributionSource); in testOutgoingConnectTimeout()
457 BluetoothProfile.STATE_CONNECTING, mService.getConnectionState(mDevice)); in testCreateStateMachineStackEvents()
464 BluetoothProfile.STATE_DISCONNECTED, mService.getConnectionState(mDevice)); in testCreateStateMachineStackEvents()
472 Assert.assertEquals(BluetoothProfile.STATE_CONNECTED, mService.getConnectionState(mDevice)); in testCreateStateMachineStackEvents()
479 BluetoothProfile.STATE_DISCONNECTED, mService.getConnectionState(mDevice)); in testCreateStateMachineStackEvents()
488 BluetoothProfile.STATE_DISCONNECTED, mService.getConnectionState(mDevice)); in testCreateStateMachineStackEvents()
494 BluetoothProfile.STATE_DISCONNECTED, mService.getConnectionState(mDevice)); in testCreateStateMachineStackEvents()
515 BluetoothProfile.STATE_CONNECTING, mService.getConnectionState(mDevice)); in testDeleteStateMachineDisconnectEvents()
522 BluetoothProfile.STATE_DISCONNECTED, mService.getConnectionState(mDevice)); in testDeleteStateMachineDisconnectEvents()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/le_audio/
DLeAudioServiceTest.java555 assertThat(mService.getConnectionState(mLeftDevice)) in testOutgoingConnectTimeout()
564 assertThat(mService.getConnectionState(mLeftDevice)) in testOutgoingConnectTimeout()
638 assertThat(mService.getConnectionState(mLeftDevice)) in testAudioManagerConnectDisconnect()
645 assertThat(mService.getConnectionState(mRightDevice)) in testAudioManagerConnectDisconnect()
662 assertThat(mService.getConnectionState(mLeftDevice)) in testAudioManagerConnectDisconnect()
678 assertThat(mService.getConnectionState(mRightDevice)) in testAudioManagerConnectDisconnect()
696 .isEqualTo(mService.getConnectionState(mLeftDevice)); in testAudioManagerConnectDisconnect()
703 .isEqualTo(mService.getConnectionState(mRightDevice)); in testAudioManagerConnectDisconnect()
719 .isEqualTo(mService.getConnectionState(mLeftDevice)); in testAudioManagerConnectDisconnect()
735 .isEqualTo(mService.getConnectionState(mRightDevice)); in testAudioManagerConnectDisconnect()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/map/
DBluetoothMapServiceBinderTest.java79 mBinder.getConnectionState(mRemoteDevice, null); in getConnectionState_callsServiceMethod()
81 verify(mService).getConnectionState(mRemoteDevice); in getConnectionState_callsServiceMethod()
110 verify(mService).getConnectionState(mRemoteDevice); in isConnected_callsServiceStaticMethod()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/bass_client/
DBleBroadcastAssistantBinderTest.java72 public void getConnectionState() { in getConnectionState() method in BleBroadcastAssistantBinderTest
74 mBinder.getConnectionState(device); in getConnectionState()
75 verify(mService).getConnectionState(device); in getConnectionState()
77 doThrow(new RuntimeException()).when(mService).getConnectionState(device); in getConnectionState()
78 assertThat(mBinder.getConnectionState(device)).isEqualTo(STATE_DISCONNECTED); in getConnectionState()
81 assertThat(mBinder.getConnectionState(device)).isEqualTo(STATE_DISCONNECTED); in getConnectionState()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/bas/
DBatteryServiceBinderTest.java90 public void getConnectionState() { in getConnectionState() method in BatteryServiceBinderTest
94 mBinder.getConnectionState(device, source); in getConnectionState()
95 verify(mService).getConnectionState(device); in getConnectionState()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/a2dpsink/
DA2dpSinkServiceTest.java126 assertThat(mService.getConnectionState(device)) in setupDeviceConnection()
136 assertThat(mService.getConnectionState(device)).isEqualTo(BluetoothProfile.STATE_CONNECTED); in setupDeviceConnection()
174 assertThat(mService.getConnectionState(mDevice1)) in testConnectPolicyForbiddenDevice()
212 assertThat(mService.getConnectionState(mDevice1)) in testDisconnect()
287 assertThat(mService.getConnectionState(mDevice1)) in testOnAudioConfigChanged_withUnknownDevice_eventDropped()
432 assertThat(mService.getConnectionState(mDevice1)) in testSetConnectionPolicyDeviceForbiddenWhileConnected()
DA2dpSinkServiceBinderTest.java90 public void getConnectionState() { in getConnectionState() method in A2dpSinkServiceBinderTest
94 mBinder.getConnectionState(device, source); in getConnectionState()
95 verify(mService).getConnectionState(device); in getConnectionState()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/bas/
DBatteryService.java319 connectionState = sm.getConnectionState(); in getDevicesMatchingConnectionStates()
350 public int getConnectionState(BluetoothDevice device) { in getConnectionState() method in BatteryService
357 return sm.getConnectionState(); in getConnectionState()
455 if (sm.getConnectionState() != BluetoothProfile.STATE_DISCONNECTED) { in bondStateChanged()
554 public int getConnectionState(BluetoothDevice device, AttributionSource source) { in getConnectionState() method in BatteryService.BluetoothBatteryBinder
560 return service.getConnectionState(device); in getConnectionState()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/
DPhonePolicy.java1011 if (mAdapterService.getConnectionState(device) in processConnectOtherProfiles()
1037 && (hsService.getConnectionState(device) in processConnectOtherProfiles()
1048 && (a2dpService.getConnectionState(device) in processConnectOtherProfiles()
1062 && (panService.getConnectionState(device) in processConnectOtherProfiles()
1073 && (leAudioService.getConnectionState(device) in processConnectOtherProfiles()
1084 && (csipSetCooridnatorService.getConnectionState(device) in processConnectOtherProfiles()
1095 && (volumeControlService.getConnectionState(device) in processConnectOtherProfiles()
1106 && (batteryService.getConnectionState(device) in processConnectOtherProfiles()
1115 && (hidHostService.getConnectionState(device) in processConnectOtherProfiles()
1126 && (bcService.getConnectionState(device) in processConnectOtherProfiles()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/pbapclient/
DPbapClientService.java347 if (getConnectionState(device) == BluetoothProfile.STATE_CONNECTED) { in handleAclDisconnected()
440 public int getConnectionState(BluetoothDevice device, AttributionSource source) { in getConnectionState() method in PbapClientService.BluetoothPbapClientBinder
446 return service.getConnectionState(device); in getConnectionState()
549 int currentDeviceState = stateMachineEntry.getValue().getConnectionState(); in getDevicesMatchingConnectionStates()
590 public int getConnectionState(BluetoothDevice device) { in getConnectionState() method in PbapClientService
598 return pbapClientStateMachine.getConnectionState(device); in getConnectionState()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hearingaid/
DHearingAidService.java414 connectionState = sm.getConnectionState(); in getDevicesMatchingConnectionStates()
462 public int getConnectionState(BluetoothDevice device) { in getConnectionState() method in HearingAidService
468 return sm.getConnectionState(); in getConnectionState()
602 if (getConnectionState(device) != BluetoothProfile.STATE_CONNECTED) { in setActiveDevice()
632 if (getConnectionState(device) != BluetoothProfile.STATE_CONNECTED) { in getActiveDevices()
785 && getConnectionState(mActiveDevice) == BluetoothProfile.STATE_CONNECTED) { in reportActiveDevice()
852 if (sm.getConnectionState() != BluetoothProfile.STATE_DISCONNECTED) { in bondStateChanged()
1009 public int getConnectionState(BluetoothDevice device, AttributionSource source) { in getConnectionState() method in HearingAidService.BluetoothHearingAidBinder
1015 return service.getConnectionState(device); in getConnectionState()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hid/
DBluetoothHidDeviceBinderTest.java160 public void getConnectionState() { in getConnectionState() method in BluetoothHidDeviceBinderTest
161 mBinder.getConnectionState(mTestDevice, mAttributionSource); in getConnectionState()
162 verify(mService).getConnectionState(mTestDevice); in getConnectionState()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hfp/
DBluetoothHeadsetProxy.java65 public int getConnectionState(BluetoothDevice device) { in getConnectionState() method in BluetoothHeadsetProxy
66 return mBluetoothHeadset.getConnectionState(device); in getConnectionState()

123456