Home
last modified time | relevance | path

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

/packages/apps/Car/libs/connected-device-lib/src/com/android/car/connecteddevice/
DConnectedDeviceManager.java299 AssociatedDevice userDevice = userDevices.get(0); in connectToActiveUserDeviceInternal() local
300 if (!userDevice.isConnectionEnabled()) { in connectToActiveUserDeviceInternal()
301 logd(TAG, "Connection is disabled on device " + userDevice + "."); in connectToActiveUserDeviceInternal()
304 if (mConnectedDevices.containsKey(userDevice.getDeviceId())) { in connectToActiveUserDeviceInternal()
311 mPeripheralManager.connectToDevice(UUID.fromString(userDevice.getDeviceId()), in connectToActiveUserDeviceInternal()
/packages/apps/Car/libs/connected-device-lib/tests/unit/src/com/android/car/connecteddevice/
DConnectedDeviceManagerTest.java567 AssociatedDevice userDevice = new AssociatedDevice(userDeviceId, TEST_DEVICE_ADDRESS, in removeConnectedDevice_startsAdvertisingForActiveUserDeviceOnLastDeviceDisconnect() local
570 Collections.singletonList(userDevice)); in removeConnectedDevice_startsAdvertisingForActiveUserDeviceOnLastDeviceDisconnect()
583 AssociatedDevice userDevice = new AssociatedDevice(userDeviceId, TEST_DEVICE_ADDRESS, in removeConnectedDevice__doesNotAdvertiseForNonActiveUserDeviceNotLastDevice() local
586 Collections.singletonList(userDevice)); in removeConnectedDevice__doesNotAdvertiseForNonActiveUserDeviceNotLastDevice()