Home
last modified time | relevance | path

Searched refs:otherDevice (Results 1 – 4 of 4) sorted by relevance

/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/bluetooth/
DBluetoothDevicePreferenceTest.java199 CachedBluetoothDevice otherDevice = mock(CachedBluetoothDevice.class); in compareTo_sameType_usesDeviceCompareTo() local
201 otherDevice); in compareTo_sameType_usesDeviceCompareTo()
202 when(mCachedDevice.compareTo(otherDevice)).thenReturn(1); in compareTo_sameType_usesDeviceCompareTo()
203 when(otherDevice.compareTo(mCachedDevice)).thenReturn(-1); in compareTo_sameType_usesDeviceCompareTo()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/a2dp/
DA2dpServiceTest.java764 BluetoothDevice otherDevice = mAdapter.getRemoteDevice("05:04:03:02:01:00"); in testSetSilenceMode() local
766 connectDevice(otherDevice); in testSetSilenceMode()
786 Assert.assertTrue(mA2dpService.setSilenceMode(otherDevice, true)); in testSetSilenceMode()
787 verify(mA2dpNativeInterface).setSilenceDevice(otherDevice, true); in testSetSilenceMode()
791 Assert.assertTrue(mA2dpService.setSilenceMode(otherDevice, false)); in testSetSilenceMode()
792 verify(mA2dpNativeInterface).setSilenceDevice(otherDevice, false); in testSetSilenceMode()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/
DHeadsetServiceTest.java853 BluetoothDevice otherDevice = TestUtils.getTestDevice(mAdapter, 1); in testSetSilenceMode() local
868 Assert.assertTrue(mHeadsetService.setSilenceMode(otherDevice, true)); in testSetSilenceMode()
872 Assert.assertTrue(mHeadsetService.setSilenceMode(otherDevice, false)); in testSetSilenceMode()
/packages/apps/Car/libs/connected-device-lib/tests/unit/src/com/android/car/connecteddevice/
DConnectedDeviceManagerTest.java505 ConnectedDevice otherDevice = connectedDevices.get(1); in registerDeviceCallback_doesNotSendMissedMessageForDifferentDevice() local
508 mConnectedDeviceManager.onMessageReceived(otherDevice.getDeviceId(), message); in registerDeviceCallback_doesNotSendMissedMessageForDifferentDevice()