diff options
| author | Tor Norbye <tnorbye@google.com> | 2015-05-15 14:21:12 +0000 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-05-15 14:21:16 +0000 |
| commit | f02fd46d34624b4549565be777deff8328bbdc05 (patch) | |
| tree | 6a69f6598d8275436cfe9bc8389e9ed54a0a05bd /core/java/android/bluetooth/BluetoothA2dp.java | |
| parent | b1f1293355a1837d95095d28891f9218bdcf2bdd (diff) | |
| parent | 2d49752ee050ab7f1cd848933f6c62a73707e2d9 (diff) | |
| download | frameworks_base-f02fd46d34624b4549565be777deff8328bbdc05.zip frameworks_base-f02fd46d34624b4549565be777deff8328bbdc05.tar.gz frameworks_base-f02fd46d34624b4549565be777deff8328bbdc05.tar.bz2 | |
Merge "Add bluetooth permission annotations" into mnc-dev
Diffstat (limited to 'core/java/android/bluetooth/BluetoothA2dp.java')
| -rw-r--r-- | core/java/android/bluetooth/BluetoothA2dp.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/java/android/bluetooth/BluetoothA2dp.java b/core/java/android/bluetooth/BluetoothA2dp.java index 767f59e..f66b5ff 100644 --- a/core/java/android/bluetooth/BluetoothA2dp.java +++ b/core/java/android/bluetooth/BluetoothA2dp.java @@ -16,6 +16,8 @@ package android.bluetooth; +import android.Manifest; +import android.annotation.RequiresPermission; import android.annotation.SdkConstant; import android.annotation.SdkConstant.SdkConstantType; import android.content.ComponentName; @@ -380,6 +382,7 @@ public final class BluetoothA2dp implements BluetoothProfile { * @return priority of the device * @hide */ + @RequiresPermission(Manifest.permission.BLUETOOTH) public int getPriority(BluetoothDevice device) { if (VDBG) log("getPriority(" + device + ")"); if (mService != null && isEnabled() |
