/** * Check if any A2DP sink is connected. * * @return a unmodifiable set of connected A2DP sinks, or null on error. * @hide */ public Set<BluetoothDevice> getConnectedSinks() { if (DBG) log("getConnectedSinks()"); try { return Collections.unmodifiableSet( new HashSet<BluetoothDevice>(Arrays.asList(mService.getConnectedSinks()))); } catch (RemoteException e) { Log.e(TAG, "", e); return null; } }