/** * Allow or disallow incoming connection * * @param device Sink * @param value True / False * @return Success or Failure of the binder call. */ public boolean allowIncomingConnect(BluetoothDevice device, boolean value) { if (DBG) log("allowIncomingConnect(" + device + ":" + value + ")"); try { return mService.allowIncomingConnect(device, value); } catch (RemoteException e) { Log.e(TAG, "", e); return false; } }