Lines Matching refs:device
51 public void onDeviceNameUpdated(BluetoothDevice device) {
52 CachedBluetoothDevice cachedDevice = findDevice(device);
60 * if this device isn't in the cache. Use {@link #addDevice}
64 * @param device the address of the Bluetooth device
65 * @return the cached device object for this device, or null if it has
68 CachedBluetoothDevice findDevice(BluetoothDevice device) {
70 if (cachedDevice.getDevice().equals(device)) {
80 * @param device the address of the new Bluetooth device
85 BluetoothDevice device) {
87 profileManager, device);
93 * Attempts to get the name of a remote device, otherwise returns the address.
95 * @param device The remote device.
98 public String getName(BluetoothDevice device) {
99 CachedBluetoothDevice cachedDevice = findDevice(device);
104 String name = device.getAliasName();
109 return device.getAddress();
123 public synchronized void onBtClassChanged(BluetoothDevice device) {
124 CachedBluetoothDevice cachedDevice = findDevice(device);
130 public synchronized void onUuidChanged(BluetoothDevice device) {
131 CachedBluetoothDevice cachedDevice = findDevice(device);