Home
last modified time | relevance | path

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

/packages/apps/Car/libs/connected-device-lib/tests/unit/src/com/android/car/connecteddevice/
DConnectedDeviceManagerTest.java221 ArgumentCaptor<ConnectedDevice> deviceCaptor = in connectionCallback_onDeviceConnectedInvokedForNewlyConnectedDevice() local
223 verify(connectionCallback).onDeviceConnected(deviceCaptor.capture()); in connectionCallback_onDeviceConnectedInvokedForNewlyConnectedDevice()
224 ConnectedDevice connectedDevice = deviceCaptor.getValue(); in connectionCallback_onDeviceConnectedInvokedForNewlyConnectedDevice()
266 ArgumentCaptor<ConnectedDevice> deviceCaptor = in connectionCallback_onDeviceDisconnectedInvokedForActiveUserDevice() local
268 verify(connectionCallback).onDeviceDisconnected(deviceCaptor.capture()); in connectionCallback_onDeviceDisconnectedInvokedForActiveUserDevice()
269 assertThat(deviceCaptor.getValue().getDeviceId()).isEqualTo(deviceId); in connectionCallback_onDeviceDisconnectedInvokedForActiveUserDevice()
/packages/apps/Car/libs/connected-device-lib/tests/unit/src/com/android/car/connecteddevice/ble/
DCarBlePeripheralManagerTest.java177 ArgumentCaptor<AssociatedDevice> deviceCaptor = in testAssociationSuccess() local
179 verify(mMockStorage).addAssociatedDeviceForActiveUser(deviceCaptor.capture()); in testAssociationSuccess()
180 AssociatedDevice device = deviceCaptor.getValue(); in testAssociationSuccess()