Home
last modified time | relevance | path

Searched refs:MAX_HEADSET_CONNECTIONS (Results 1 – 2 of 2) sorted by relevance

/aosp12/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/
H A DHeadsetServiceAndStateMachineTest.java87 private static final int MAX_HEADSET_CONNECTIONS = 5; field in HeadsetServiceAndStateMachineTest
167 doReturn(MAX_HEADSET_CONNECTIONS).when(mAdapterService).getMaxConnectedAudioDevices(); in setUp()
427 for (int i = 0; i < MAX_HEADSET_CONNECTIONS; ++i) { in testVirtualCall_normalStartStop()
439 BluetoothDevice activeDevice = connectedDevices.get(MAX_HEADSET_CONNECTIONS / 2); in testVirtualCall_normalStartStop()
467 for (int i = 0; i < MAX_HEADSET_CONNECTIONS; ++i) { in testVirtualCall_preemptedByTelecomCall()
479 BluetoothDevice activeDevice = connectedDevices.get(MAX_HEADSET_CONNECTIONS / 2); in testVirtualCall_preemptedByTelecomCall()
510 for (int i = 0; i < MAX_HEADSET_CONNECTIONS; ++i) { in testVirtualCall_rejectedWhenThereIsTelecomCall()
522 BluetoothDevice activeDevice = connectedDevices.get(MAX_HEADSET_CONNECTIONS / 2); in testVirtualCall_rejectedWhenThereIsTelecomCall()
541 for (int i = 0; i < MAX_HEADSET_CONNECTIONS; ++i) { in testDialingOutCall_NormalDialingOut()
623 for (int i = 0; i < MAX_HEADSET_CONNECTIONS; ++i) { in testDialingOutCall_DialingOutPreemptVirtualCall()
[all …]
H A DHeadsetServiceTest.java67 private static final int MAX_HEADSET_CONNECTIONS = 5; field in HeadsetServiceTest
103 doReturn(MAX_HEADSET_CONNECTIONS).when(mAdapterService).getMaxConnectedAudioDevices(); in setUp()
349 for (int i = 0; i < MAX_HEADSET_CONNECTIONS; ++i) { in testConnectDevice_connectDeviceAboveLimit()
378 mCurrentDevice = TestUtils.getTestDevice(mAdapter, MAX_HEADSET_CONNECTIONS); in testConnectDevice_connectDeviceAboveLimit()
381 verify(mObjectsFactory, times(MAX_HEADSET_CONNECTIONS + 1)).makeStateMachine( in testConnectDevice_connectDeviceAboveLimit()
453 for (int i = 0; i < MAX_HEADSET_CONNECTIONS; ++i) { in testConnectAudio_withMultipleDevices()
529 for (int i = 0; i < MAX_HEADSET_CONNECTIONS; ++i) { in testConnectAudio_connectTwoAudioChannelsShouldFail()
563 if (MAX_HEADSET_CONNECTIONS >= 2) { in testConnectAudio_connectTwoAudioChannelsShouldFail()
605 for (int i = 0; i < MAX_HEADSET_CONNECTIONS; ++i) { in testConnectAudio_firstConnectedAudioDevice()
808 for (int i = 0; i < MAX_HEADSET_CONNECTIONS; ++i) { in testPhoneStateChange_multipleDevicesSaveState()