return authorized;
}
<<<<<<< HEAD
private boolean isOtherInputDeviceConnected(String address) {
Set devices =
mBluetoothService.lookupInputDevicesMatchingStates(new int[] {
BluetoothInputDevice.STATE_CONNECTING,
BluetoothInputDevice.STATE_CONNECTED});
for (BluetoothDevice device : devices) {
if (!device.getAddress().equals(address)) return true;
}
return false;
=======
private boolean onAgentOutOfBandDataAvailable(String objectPath) {
if (!mBluetoothService.isEnabled()) return false;
String address = mBluetoothService.getAddressFromObjectPath(objectPath);
if (address == null) return false;
if (mBluetoothService.getDeviceOutOfBandData(
mAdapter.getRemoteDevice(address)) != null) {
return true;
}
return false;
>>>>>>> 0522f5e9b7dac0dc0229c9ddb07e7e5482846b1a
}
private boolean isOtherSinkInNonDisconnectingState(String address) { |