Lines Matching refs:device

42  * <p> Android only supports one connected Bluetooth A2dp device at a time.
58 * <li> {@link BluetoothDevice#EXTRA_DEVICE} - The remote device. </li>
80 * <li> {@link BluetoothDevice#EXTRA_DEVICE} - The remote device. </li>
94 * A2DP sink device is streaming music. This state can be one of
101 * A2DP sink device is NOT streaming music. This state can be one of
192 * Initiate connection to a profile of the remote bluetooth device.
199 * device is already connected or Bluetooth is not turned on.
208 * @param device Remote Bluetooth Device
213 public boolean connect(BluetoothDevice device) {
214 if (DBG) log("connect(" + device + ")");
216 isValidDevice(device)) {
218 return mService.connect(device);
232 * Bluetooth device is not in connected state etc. When this API returns,
237 * <p> If the disconnection is initiated by a remote device, the state
240 * host (local) device the state will transition from
249 * @param device Remote Bluetooth Device
254 public boolean disconnect(BluetoothDevice device) {
255 if (DBG) log("disconnect(" + device + ")");
257 isValidDevice(device)) {
259 return mService.disconnect(device);
306 public int getConnectionState(BluetoothDevice device) {
307 if (VDBG) log("getState(" + device + ")");
309 && isValidDevice(device)) {
311 return mService.getConnectionState(device);
324 * <p> The device should already be paired.
331 * @param device Paired bluetooth device
336 public boolean setPriority(BluetoothDevice device, int priority) {
337 if (DBG) log("setPriority(" + device + ", " + priority + ")");
339 && isValidDevice(device)) {
345 return mService.setPriority(device, priority);
364 * @param device Bluetooth device
365 * @return priority of the device
368 public int getPriority(BluetoothDevice device) {
369 if (VDBG) log("getPriority(" + device + ")");
371 && isValidDevice(device)) {
373 return mService.getPriority(device);
388 * @param device BluetoothDevice device
390 public boolean isA2dpPlaying(BluetoothDevice device) {
392 && isValidDevice(device)) {
394 return mService.isA2dpPlaying(device);
405 * This function checks if the remote device is an AVCRP
410 public boolean shouldSendVolumeKeys(BluetoothDevice device) {
411 if (isEnabled() && isValidDevice(device)) {
412 ParcelUuid[] uuids = device.getUuids();
472 private boolean isValidDevice(BluetoothDevice device) {
473 if (device == null) return false;
475 if (BluetoothAdapter.checkBluetoothAddress(device.getAddress())) return true;