Lines Matching refs:device

41  * <p> Android only supports one connected Bluetooth A2dp device at a time.
56 * <li> {@link BluetoothDevice#EXTRA_DEVICE} - The remote device. </li>
78 * <li> {@link BluetoothDevice#EXTRA_DEVICE} - The remote device. </li>
92 * A2DP sink device is streaming music. This state can be one of
99 * A2DP sink device is NOT streaming music. This state can be one of
137 * Initiate connection to a profile of the remote bluetooth device.
144 * device is already connected or Bluetooth is not turned on.
153 * @param device Remote Bluetooth Device
158 public boolean connect(BluetoothDevice device) {
159 if (DBG) log("connect(" + device + ")");
161 isValidDevice(device)) {
163 return mService.connect(device);
177 * Bluetooth device is not in connected state etc. When this API returns,
182 * <p> If the disconnection is initiated by a remote device, the state
185 * host (local) device the state will transition from
194 * @param device Remote Bluetooth Device
199 public boolean disconnect(BluetoothDevice device) {
200 if (DBG) log("disconnect(" + device + ")");
202 isValidDevice(device)) {
204 return mService.disconnect(device);
251 public int getConnectionState(BluetoothDevice device) {
252 if (DBG) log("getState(" + device + ")");
254 && isValidDevice(device)) {
256 return mService.getConnectionState(device);
269 * <p> The device should already be paired.
276 * @param device Paired bluetooth device
281 public boolean setPriority(BluetoothDevice device, int priority) {
282 if (DBG) log("setPriority(" + device + ", " + priority + ")");
284 && isValidDevice(device)) {
290 return mService.setPriority(device, priority);
309 * @param device Bluetooth device
310 * @return priority of the device
313 public int getPriority(BluetoothDevice device) {
314 if (DBG) log("getPriority(" + device + ")");
316 && isValidDevice(device)) {
318 return mService.getPriority(device);
333 * @param device BluetoothDevice device
335 public boolean isA2dpPlaying(BluetoothDevice device) {
337 && isValidDevice(device)) {
339 return mService.isA2dpPlaying(device);
353 * device is not in connected state etc. When this API returns,
356 * state of the A2DP device from this intent.
361 * @param device Remote A2DP sink
366 public boolean suspendSink(BluetoothDevice device) {
368 && isValidDevice(device)) {
370 return mService.suspendSink(device);
384 * device is not in suspended state etc. When this API returns,
387 * state of the A2DP device from this intent.
391 * @param device Remote A2DP sink
396 public boolean resumeSink(BluetoothDevice device) {
398 && isValidDevice(device)) {
400 return mService.resumeSink(device);
411 * This function checks if the remote device is an AVCRP
416 public boolean shouldSendVolumeKeys(BluetoothDevice device) {
417 if (isEnabled() && isValidDevice(device)) {
418 ParcelUuid[] uuids = device.getUuids();
432 * @param device Sink
437 public boolean allowIncomingConnect(BluetoothDevice device, boolean value) {
438 if (DBG) log("allowIncomingConnect(" + device + ":" + value + ")");
440 return mService.allowIncomingConnect(device, value);
477 private boolean isValidDevice(BluetoothDevice device) {
478 if (device == null) return false;
480 if (BluetoothAdapter.checkBluetoothAddress(device.getAddress())) return true;