Home
last modified time | relevance | path

Searched refs:testDevice (Results 1 – 3 of 3) sorted by relevance

/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/
DPhonePolicyTest.java392 BluetoothDevice testDevice = TestUtils.getTestDevice(mAdapter, i); in testAutoConnectMultipleDevices() local
393 testDevices[i] = testDevice; in testAutoConnectMultipleDevices()
397 when(mHeadsetService.getPriority(testDevice)).thenReturn( in testAutoConnectMultipleDevices()
399 when(mA2dpService.getPriority(testDevice)).thenReturn( in testAutoConnectMultipleDevices()
404 hsConnectedDevices.add(testDevice); in testAutoConnectMultipleDevices()
407 a2dpConnectedDevices.add(testDevice); in testAutoConnectMultipleDevices()
460 BluetoothDevice testDevice = TestUtils.getTestDevice(mAdapter, i); in testSetPriorityMultipleDevices() local
461 testDevices[i] = testDevice; in testSetPriorityMultipleDevices()
466 hsConnectedDevices.add(testDevice); in testSetPriorityMultipleDevices()
467 a2dpConnectedDevices.add(testDevice); in testSetPriorityMultipleDevices()
[all …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/a2dp/
DA2dpServiceTest.java492 BluetoothDevice testDevice = TestUtils.getTestDevice(mAdapter, i); in testMaxConnectDevices() local
493 testDevices[i] = testDevice; in testMaxConnectDevices()
495 when(mDatabaseManager.getProfilePriority(testDevice, BluetoothProfile.A2DP)) in testMaxConnectDevices()
498 Assert.assertTrue("Connect failed", mA2dpService.connect(testDevice)); in testMaxConnectDevices()
500 verifyConnectionStateIntent(TIMEOUT_MS, testDevice, BluetoothProfile.STATE_CONNECTING, in testMaxConnectDevices()
503 mA2dpService.getConnectionState(testDevice)); in testMaxConnectDevices()
507 connCompletedEvent.device = testDevice; in testMaxConnectDevices()
512 verifyConnectionStateIntent(TIMEOUT_MS, testDevice, BluetoothProfile.STATE_CONNECTED, in testMaxConnectDevices()
515 mA2dpService.getConnectionState(testDevice)); in testMaxConnectDevices()
517 Assert.assertTrue(mA2dpService.getConnectedDevices().contains(testDevice)); in testMaxConnectDevices()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/
DTestUtils.java194 BluetoothDevice testDevice = in getTestDevice() local
196 Assert.assertNotNull(testDevice); in getTestDevice()
197 return testDevice; in getTestDevice()