/** * Get priority of a2dp sink. * * @param device Sink * @return non-negative priority, or negative error code on error. */ public int getSinkPriority(BluetoothDevice device) { if (DBG) log("getSinkPriority(" + device + ")"); try { return mService.getSinkPriority(device); } catch (RemoteException e) { Log.e(TAG, "", e); return PRIORITY_OFF; } }