Lines Matching refs:device
52 public void onDeviceNameUpdated(BluetoothDevice device) {
53 CachedBluetoothDevice cachedDevice = findDevice(device);
61 * if this device isn't in the cache. Use {@link #addDevice}
65 * @param device the address of the Bluetooth device
66 * @return the cached device object for this device, or null if it has
69 CachedBluetoothDevice findDevice(BluetoothDevice device) {
71 if (cachedDevice.getDevice().equals(device)) {
81 * @param device the address of the new Bluetooth device
86 BluetoothDevice device) {
88 profileManager, device);
94 * Attempts to get the name of a remote device, otherwise returns the address.
96 * @param device The remote device.
99 public String getName(BluetoothDevice device) {
100 CachedBluetoothDevice cachedDevice = findDevice(device);
105 String name = device.getAliasName();
110 return device.getAddress();
124 public synchronized void onBtClassChanged(BluetoothDevice device) {
125 CachedBluetoothDevice cachedDevice = findDevice(device);
131 public synchronized void onUuidChanged(BluetoothDevice device) {
132 CachedBluetoothDevice cachedDevice = findDevice(device);
149 // when BT is enabled next time, device connection status shall be retrieved