/** * Get the state of an A2DP sink * * @param device Remote BT device. * @return State code, one of STATE_ * @hide */ public int getSinkState(BluetoothDevice device) { if (DBG) log("getSinkState(" + device + ")"); try { return mService.getSinkState(device); } catch (RemoteException e) { Log.e(TAG, "", e); return BluetoothA2dp.STATE_DISCONNECTED; } }