Home
last modified time | relevance | path

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

/packages/apps/Car/libs/connected-device-lib/tests/unit/src/com/android/car/connecteddevice/
DConnectedDeviceManagerTest.java86 private CarBlePeripheralManager mMockPeripheralManager; field in ConnectedDeviceManagerTest
106 mMockPeripheralManager, DEFAULT_RECONNECT_TIMEOUT); in setUp()
163 mConnectedDeviceManager.removeConnectedDevice(deviceId, mMockPeripheralManager); in getActiveUserConnectedDevices_unaffectedByOtherManagerDisconnect()
248 String deviceId = connectNewDevice(mMockPeripheralManager); in connectionCallback_onDeviceConnectedNotInvokedForDifferentBleManager()
368 mMockPeripheralManager); in deviceCallback_onSecureChannelEstablishedNotInvokedWithSecondBleManager() local
432 mMockPeripheralManager); in unregisterDeviceCallback_removesCallbackAndNotInvoked() local
492 mConnectedDeviceManager.addConnectedDevice(deviceId, mMockPeripheralManager); in onAssociationCompleted_disconnectsOriginalDeviceAndReconnectsAsActiveUser()
555 mConnectedDeviceManager.addConnectedDevice(deviceId, mMockPeripheralManager); in removeConnectedDevice_startsAdvertisingForActiveUserDeviceOnActiveUserDisconnect()
556 mConnectedDeviceManager.removeConnectedDevice(deviceId, mMockPeripheralManager); in removeConnectedDevice_startsAdvertisingForActiveUserDeviceOnActiveUserDisconnect()
557 verify(mMockPeripheralManager, timeout(1000)) in removeConnectedDevice_startsAdvertisingForActiveUserDeviceOnActiveUserDisconnect()
[all …]
/packages/apps/Car/libs/connected-device-lib/tests/unit/src/com/android/car/connecteddevice/ble/
DCarBlePeripheralManagerTest.java72 @Mock private BlePeripheralManager mMockPeripheralManager; field in CarBlePeripheralManagerTest
89 mCarBlePeripheralManager = new CarBlePeripheralManager(mMockPeripheralManager, mMockStorage, in setUp()
115 verify(mMockPeripheralManager, timeout(3000)).startAdvertising(any(), in testStartAssociationAdvertisingSuccess()
131 verify(mMockPeripheralManager, timeout(3000)) in testStartAssociationAdvertisingFailure()
148 verify(mMockPeripheralManager, timeout(3000)) in testNotifyAssociationSuccess()
206 verify(mMockPeripheralManager).startAdvertising(any(), any(), callbackCaptor.capture()); in connectToDevice_stopsAdvertisingAfterTimeout()
208 verify(mMockPeripheralManager, timeout(TimeUnit.SECONDS.toMillis(timeoutSeconds + 1))) in connectToDevice_stopsAdvertisingAfterTimeout()
217 verify(mMockPeripheralManager, timeout(3000)).registerCallback(callbackCaptor.capture()); in startAssociation()