Home
last modified time | relevance | path

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

/packages/apps/Car/libs/connected-device-lib/tests/unit/src/com/android/car/connecteddevice/storage/
DConnectedDeviceStorageTest.java66 AssociatedDevice addedDevice = addRandomAssociatedDevice(mActiveUserId); in getAssociatedDeviceIdsForUser_includesNewlyAddedDevice() local
69 assertThat(associatedDevices).containsExactly(addedDevice.getDeviceId()); in getAssociatedDeviceIdsForUser_includesNewlyAddedDevice()
82 AssociatedDevice addedDevice = addRandomAssociatedDevice(mActiveUserId); in getAssociatedDeviceIdsForUser_excludesRemovedDevice() local
83 mConnectedDeviceStorage.removeAssociatedDevice(mActiveUserId, addedDevice.getDeviceId()); in getAssociatedDeviceIdsForUser_excludesRemovedDevice()
91 AssociatedDevice addedDevice = addRandomAssociatedDevice(mActiveUserId); in getAssociatedDevicesForUser_includesNewlyAddedDevice() local
94 assertThat(associatedDevices).containsExactly(addedDevice); in getAssociatedDevicesForUser_includesNewlyAddedDevice()
107 AssociatedDevice addedDevice = addRandomAssociatedDevice(mActiveUserId); in getAssociatedDevicesForUser_excludesRemovedDevice() local
108 mConnectedDeviceStorage.removeAssociatedDevice(mActiveUserId, addedDevice.getDeviceId()); in getAssociatedDevicesForUser_excludesRemovedDevice()
/packages/apps/Car/CompanionDeviceSupport/src/com/android/car/companiondevicesupport/feature/trust/ui/
DTrustedDeviceActivity.java393 AssociatedDevice addedDevice = mModel.getAssociatedDevice().getValue(); in showEnrollmentSuccessToast() local
394 if (addedDevice == null) { in showEnrollmentSuccessToast()
398 if (!addedDevice.getDeviceId().equals(device.getDeviceId())) { in showEnrollmentSuccessToast()
403 addedDevice.getDeviceName()); in showEnrollmentSuccessToast()