Lines Matching refs:device
54 * <li> {@link BluetoothDevice#EXTRA_DEVICE} - The remote device. </li>
55 * <li> {@link #EXTRA_LOCAL_ROLE} - Which local role the remote device is
74 * The local role of the PAN profile that the remote device is bound to.
80 * The local device is acting as a Network Access Point.
85 * The local device is acting as a PAN User.
147 * Initiate connection to a profile of the remote bluetooth device.
150 * device is already connected or Bluetooth is not turned on.
159 * @param device Remote Bluetooth Device
164 public boolean connect(BluetoothDevice device) {
165 if (DBG) log("connect(" + device + ")");
167 isValidDevice(device)) {
169 return mService.connectPanDevice(device);
183 * Bluetooth device is not in connected state etc. When this API returns,
188 * <p> If the disconnection is initiated by a remote device, the state
191 * host (local) device the state will transition from
200 * @param device Remote Bluetooth Device
205 public boolean disconnect(BluetoothDevice device) {
206 if (DBG) log("disconnect(" + device + ")");
208 isValidDevice(device)) {
210 return mService.disconnectPanDevice(device);
257 public int getConnectionState(BluetoothDevice device) {
258 if (DBG) log("getState(" + device + ")");
260 && isValidDevice(device)) {
262 return mService.getPanDeviceConnectionState(device);
296 private boolean isValidDevice(BluetoothDevice device) {
297 if (device == null) return false;
299 if (BluetoothAdapter.checkBluetoothAddress(device.getAddress())) return true;