Lines Matching refs:device

54      *   <li> {@link BluetoothDevice#EXTRA_DEVICE} - The remote device. </li>
126 * Initiate connection to a profile of the remote bluetooth device.
131 * device is already connected or Bluetooth is not turned on.
140 * @param device Remote Bluetooth Device
145 public boolean connect(BluetoothDevice device) {
146 if (DBG) log("connect(" + device + ")");
148 isValidDevice(device)) {
150 return mService.connectInputDevice(device);
164 * Bluetooth device is not in connected state etc. When this API returns,
169 * <p> If the disconnection is initiated by a remote device, the state
172 * host (local) device the state will transition from
181 * @param device Remote Bluetooth Device
186 public boolean disconnect(BluetoothDevice device) {
187 if (DBG) log("disconnect(" + device + ")");
189 isValidDevice(device)) {
191 return mService.disconnectInputDevice(device);
238 public int getConnectionState(BluetoothDevice device) {
239 if (DBG) log("getState(" + device + ")");
241 && isValidDevice(device)) {
243 return mService.getInputDeviceConnectionState(device);
256 * <p> The device should already be paired.
263 * @param device Paired bluetooth device
268 public boolean setPriority(BluetoothDevice device, int priority) {
269 if (DBG) log("setPriority(" + device + ", " + priority + ")");
271 && isValidDevice(device)) {
277 return mService.setInputDevicePriority(device, priority);
296 * @param device Bluetooth device
297 * @return priority of the device
300 public int getPriority(BluetoothDevice device) {
301 if (DBG) log("getPriority(" + device + ")");
303 && isValidDevice(device)) {
305 return mService.getInputDevicePriority(device);
320 private boolean isValidDevice(BluetoothDevice device) {
321 if (device == null) return false;
323 if (BluetoothAdapter.checkBluetoothAddress(device.getAddress())) return true;