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.getConnectionPolicy(testDevice)).thenReturn( in testAutoConnectMultipleDevices()
399 when(mA2dpService.getConnectionPolicy(testDevice)).thenReturn( in testAutoConnectMultipleDevices()
404 hsConnectedDevices.add(testDevice); in testAutoConnectMultipleDevices()
407 a2dpConnectedDevices.add(testDevice); in testAutoConnectMultipleDevices()
460 BluetoothDevice testDevice = TestUtils.getTestDevice(mAdapter, i); in testSetConnectionPolicyMultipleDevices() local
461 testDevices[i] = testDevice; in testSetConnectionPolicyMultipleDevices()
466 hsConnectedDevices.add(testDevice); in testSetConnectionPolicyMultipleDevices()
467 a2dpConnectedDevices.add(testDevice); in testSetConnectionPolicyMultipleDevices()
[all …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/a2dp/
DA2dpServiceTest.java464 BluetoothDevice testDevice = TestUtils.getTestDevice(mAdapter, i); in testMaxConnectDevices() local
465 testDevices[i] = testDevice; in testMaxConnectDevices()
466 when(mDatabaseManager.getProfileConnectionPolicy(testDevice, BluetoothProfile.A2DP)) in testMaxConnectDevices()
469 Assert.assertTrue("Connect failed", mA2dpService.connect(testDevice)); in testMaxConnectDevices()
471 verifyConnectionStateIntent(TIMEOUT_MS, testDevice, BluetoothProfile.STATE_CONNECTING, in testMaxConnectDevices()
474 mA2dpService.getConnectionState(testDevice)); in testMaxConnectDevices()
478 connCompletedEvent.device = testDevice; in testMaxConnectDevices()
483 verifyConnectionStateIntent(TIMEOUT_MS, testDevice, BluetoothProfile.STATE_CONNECTED, in testMaxConnectDevices()
486 mA2dpService.getConnectionState(testDevice)); in testMaxConnectDevices()
488 Assert.assertTrue(mA2dpService.getConnectedDevices().contains(testDevice)); in testMaxConnectDevices()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/
DTestUtils.java195 BluetoothDevice testDevice = in getTestDevice() local
197 Assert.assertNotNull(testDevice); in getTestDevice()
198 return testDevice; in getTestDevice()