Home
last modified time | relevance | path

Searched refs:getTestDevice (Results 1 – 12 of 12) sorted by relevance

/aosp12/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/
H A DHeadsetPhoneStateTest.java110 BluetoothDevice device1 = TestUtils.getTestDevice(mAdapter, 1); in testListenForPhoneState_NoneResultsNoListen()
121 BluetoothDevice device1 = TestUtils.getTestDevice(mAdapter, 1); in testListenForPhoneState_ServiceOnly()
134 BluetoothDevice device1 = TestUtils.getTestDevice(mAdapter, 1); in testListenForPhoneState_ServiceAndSignalStrength()
147 BluetoothDevice device1 = TestUtils.getTestDevice(mAdapter, 1); in testListenForPhoneState_ServiceAndSignalStrengthUpdateTurnOffSignalStrengh()
162 BluetoothDevice device1 = TestUtils.getTestDevice(mAdapter, 1); in testListenForPhoneState_ServiceAndSignalStrengthUpdateTurnOffAll()
178 BluetoothDevice device1 = TestUtils.getTestDevice(mAdapter, 1); in testListenForPhoneState_MultiDevice_AllUpAllDown()
179 BluetoothDevice device2 = TestUtils.getTestDevice(mAdapter, 2); in testListenForPhoneState_MultiDevice_AllUpAllDown()
202 BluetoothDevice device1 = TestUtils.getTestDevice(mAdapter, 1); in testListenForPhoneState_MultiDevice_PartialUpPartialDown()
203 BluetoothDevice device2 = TestUtils.getTestDevice(mAdapter, 2); in testListenForPhoneState_MultiDevice_PartialUpPartialDown()
H A DHeadsetServiceAndStateMachineTest.java268 BluetoothDevice device = TestUtils.getTestDevice(mAdapter, 0); in testGetHeadsetService()
281 BluetoothDevice device = TestUtils.getTestDevice(mAdapter, 0); in testConnectFromApi()
324 BluetoothDevice device = TestUtils.getTestDevice(mAdapter, 0); in testUnbondDevice_disconnectBeforeUnbond()
367 BluetoothDevice device = TestUtils.getTestDevice(mAdapter, 0); in testUnbondDevice_disconnectAfterUnbond()
684 BluetoothDevice device = TestUtils.getTestDevice(mAdapter, 0); in testVoiceRecognition_SingleHfInitiatedSuccess()
707 BluetoothDevice device = TestUtils.getTestDevice(mAdapter, 0); in testVoiceRecognition_SingleHfStopSuccess()
741 BluetoothDevice device = TestUtils.getTestDevice(mAdapter, 0); in testVoiceRecognition_SingleHfInitiatedFailedToActivate()
773 BluetoothDevice device = TestUtils.getTestDevice(mAdapter, 0); in testVoiceRecognition_SingleHfInitiatedTimeout()
805 BluetoothDevice device = TestUtils.getTestDevice(mAdapter, 0); in testVoiceRecognition_SingleAgInitiatedSuccess()
829 BluetoothDevice device = TestUtils.getTestDevice(mAdapter, 0); in testVoiceRecognition_SingleAgInitiatedSuccessNullInput()
[all …]
H A DHeadsetServiceTest.java179 mCurrentDevice = TestUtils.getTestDevice(mAdapter, 0); in testGetHeadsetService()
191 mCurrentDevice = TestUtils.getTestDevice(mAdapter, 0); in testOkToAcceptConnection()
237 mCurrentDevice = TestUtils.getTestDevice(mAdapter, 0); in testConnectDevice_connectDeviceBelowLimit()
270 mCurrentDevice = TestUtils.getTestDevice(mAdapter, 0); in testMessageFromNative_deviceConnected()
308 mCurrentDevice = TestUtils.getTestDevice(mAdapter, 0); in testMessageFromNative_deviceConnectingUnknown()
326 mCurrentDevice = TestUtils.getTestDevice(mAdapter, 0); in testMessageFromNative_deviceDisconnectedUnknown()
401 mCurrentDevice = TestUtils.getTestDevice(mAdapter, 0); in testConnectAudio_withOneDevice()
655 mCurrentDevice = TestUtils.getTestDevice(mAdapter, 0); in testConnectAudio_deviceNeverConnected()
668 mCurrentDevice = TestUtils.getTestDevice(mAdapter, 0); in testConnectAudio_deviceDisconnected()
728 mCurrentDevice = TestUtils.getTestDevice(mAdapter, 0); in testPhoneStateChange_oneDeviceSaveState()
[all …]
/aosp12/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/
H A DPhonePolicyTest.java19 import static com.android.bluetooth.TestUtils.getTestDevice;
187 connectionOrder.add(getTestDevice(mAdapter, 0)); in testDisconnectNoAutoConnect()
188 connectionOrder.add(getTestDevice(mAdapter, 1)); in testDisconnectNoAutoConnect()
189 connectionOrder.add(getTestDevice(mAdapter, 2)); in testDisconnectNoAutoConnect()
190 connectionOrder.add(getTestDevice(mAdapter, 3)); in testDisconnectNoAutoConnect()
277 bondedDevices[0] = getTestDevice(mAdapter, 0); in testReconnectOnPartialConnect()
607 bondedDevices[0] = getTestDevice(mAdapter, 0); in testNoReconnectOnNoConnect()
652 bondedDevices[0] = getTestDevice(mAdapter, 0); in testNoReconnectOnNoConnect_MultiDevice()
653 bondedDevices[1] = getTestDevice(mAdapter, 1); in testNoReconnectOnNoConnect_MultiDevice()
707 bondedDevices[0] = getTestDevice(mAdapter, 0); in testReconnectOnPartialConnect_MultiDevice()
[all …]
H A DAdapterServiceTest.java571 BluetoothDevice device = TestUtils.getTestDevice(BluetoothAdapter.getDefaultAdapter(), 0); in testObfuscateBluetoothAddress_BluetoothDisabled()
589 BluetoothDevice device = TestUtils.getTestDevice(BluetoothAdapter.getDefaultAdapter(), 0); in testObfuscateBluetoothAddress_BluetoothEnabled()
604 BluetoothDevice device = TestUtils.getTestDevice(BluetoothAdapter.getDefaultAdapter(), 0); in testObfuscateBluetoothAddress_PersistentBetweenToggle()
638 BluetoothDevice device = TestUtils.getTestDevice(BluetoothAdapter.getDefaultAdapter(), 0); in testObfuscateBluetoothAddress_PersistentBetweenAdapterServiceInitialization()
674 BluetoothDevice device = TestUtils.getTestDevice(BluetoothAdapter.getDefaultAdapter(), 0); in testObfuscateBluetoothAddress_FactoryReset()
708 BluetoothDevice device = TestUtils.getTestDevice(BluetoothAdapter.getDefaultAdapter(), 0); in testObfuscateBluetoothAddress_FactoryResetAndReloadNativeLayer()
782 BluetoothDevice device = TestUtils.getTestDevice(BluetoothAdapter.getDefaultAdapter(), 0); in testGetMetricId_BluetoothDisabled()
796 BluetoothDevice device = TestUtils.getTestDevice(BluetoothAdapter.getDefaultAdapter(), 0); in testGetMetricId_BluetoothEnabled()
807 BluetoothDevice device = TestUtils.getTestDevice(BluetoothAdapter.getDefaultAdapter(), 0); in testGetMetricId_PersistentBetweenToggle()
832 BluetoothDevice device = TestUtils.getTestDevice(BluetoothAdapter.getDefaultAdapter(), 0); in testgetMetricId_PersistentBetweenAdapterServiceInitialization()
H A DActiveDeviceManagerTest.java93 mA2dpDevice = TestUtils.getTestDevice(mAdapter, 0); in setUp()
94 mHeadsetDevice = TestUtils.getTestDevice(mAdapter, 1); in setUp()
95 mA2dpHeadsetDevice = TestUtils.getTestDevice(mAdapter, 2); in setUp()
96 mHearingAidDevice = TestUtils.getTestDevice(mAdapter, 3); in setUp()
/aosp12/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/pan/
H A DPanServiceTest.java96 BluetoothDevice device = TestUtils.getTestDevice(mAdapter, 0); in testGuestUserConnect()
/aosp12/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hid/
H A DHidHostServiceTest.java75 mTestDevice = TestUtils.getTestDevice(mAdapter, 0); in setUp()
/aosp12/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/le_audio/
H A DLeAudioServiceTest.java108 mLeftDevice = TestUtils.getTestDevice(mAdapter, 0); in setUp()
109 mRightDevice = TestUtils.getTestDevice(mAdapter, 1); in setUp()
110 mSingleDevice = TestUtils.getTestDevice(mAdapter, 2); in setUp()
/aosp12/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/
H A DTestUtils.java192 public static BluetoothDevice getTestDevice(BluetoothAdapter bluetoothAdapter, int id) { in getTestDevice() method in TestUtils
/aosp12/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hearingaid/
H A DHearingAidServiceTest.java113 mLeftDevice = TestUtils.getTestDevice(mAdapter, 0); in setUp()
114 mRightDevice = TestUtils.getTestDevice(mAdapter, 1); in setUp()
115 mSingleDevice = TestUtils.getTestDevice(mAdapter, 2); in setUp()
/aosp12/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/a2dp/
H A DA2dpServiceTest.java464 BluetoothDevice testDevice = TestUtils.getTestDevice(mAdapter, i); in testMaxConnectDevices()
492 extraTestDevice = TestUtils.getTestDevice(mAdapter, MAX_CONNECTED_AUDIO_DEVICES); in testMaxConnectDevices()