Home
last modified time | relevance | path

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

/packages/apps/Car/libs/connected-device-lib/tests/unit/src/com/android/car/connecteddevice/
DConnectedDeviceManagerTest.java83 private ConnectedDeviceStorage mMockStorage; field in ConnectedDeviceManagerTest
105 mConnectedDeviceManager = new ConnectedDeviceManager(mMockStorage, mMockCentralManager, in setUp()
107 verify(mMockStorage).setAssociatedDeviceCallback(callbackCaptor.capture()); in setUp()
138 when(mMockStorage.getActiveUserAssociatedDeviceIds()).thenReturn( in getActiveUserConnectedDevices_excludesDevicesNotBelongingToActiveUser()
238 when(mMockStorage.getActiveUserAssociatedDeviceIds()).thenReturn( in connectionCallback_onDeviceConnectedNotInvokedDeviceConnectedForDifferentUser()
497 when(mMockStorage.getActiveUserAssociatedDeviceIds()).thenReturn( in onAssociationCompleted_disconnectsOriginalDeviceAndReconnectsAsActiveUser()
549 when(mMockStorage.getActiveUserAssociatedDeviceIds()).thenReturn( in removeConnectedDevice_startsAdvertisingForActiveUserDeviceOnActiveUserDisconnect()
553 when(mMockStorage.getActiveUserAssociatedDevices()).thenReturn( in removeConnectedDevice_startsAdvertisingForActiveUserDeviceOnActiveUserDisconnect()
565 when(mMockStorage.getActiveUserAssociatedDeviceIds()).thenReturn( in removeConnectedDevice_startsAdvertisingForActiveUserDeviceOnLastDeviceDisconnect()
569 when(mMockStorage.getActiveUserAssociatedDevices()).thenReturn( in removeConnectedDevice_startsAdvertisingForActiveUserDeviceOnLastDeviceDisconnect()
[all …]
/packages/apps/Car/libs/connected-device-lib/tests/unit/src/com/android/car/connecteddevice/ble/
DCarBlePeripheralManagerTest.java73 @Mock private ConnectedDeviceStorage mMockStorage; field in CarBlePeripheralManagerTest
89 mCarBlePeripheralManager = new CarBlePeripheralManager(mMockPeripheralManager, mMockStorage, in setUp()
179 verify(mMockStorage).addAssociatedDeviceForActiveUser(deviceCaptor.capture()); in testAssociationSuccess()