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/BluetoothProfile.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/BluetoothProfile.java')
| -rw-r--r-- | core/java/android/bluetooth/BluetoothProfile.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/java/android/bluetooth/BluetoothProfile.java b/core/java/android/bluetooth/BluetoothProfile.java index eecb073..cbce22c 100644 --- a/core/java/android/bluetooth/BluetoothProfile.java +++ b/core/java/android/bluetooth/BluetoothProfile.java @@ -17,6 +17,9 @@ package android.bluetooth; +import android.Manifest; +import android.annotation.RequiresPermission; + import java.util.List; /** @@ -163,6 +166,7 @@ public interface BluetoothProfile { * * @return List of devices. The list will be empty on error. */ + @RequiresPermission(Manifest.permission.BLUETOOTH) public List<BluetoothDevice> getConnectedDevices(); /** @@ -179,6 +183,7 @@ public interface BluetoothProfile { * {@link #STATE_DISCONNECTED}, {@link #STATE_DISCONNECTING}, * @return List of devices. The list will be empty on error. */ + @RequiresPermission(Manifest.permission.BLUETOOTH) public List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states); /** @@ -191,6 +196,7 @@ public interface BluetoothProfile { * {@link #STATE_CONNECTED}, {@link #STATE_CONNECTING}, * {@link #STATE_DISCONNECTED}, {@link #STATE_DISCONNECTING} */ + @RequiresPermission(Manifest.permission.BLUETOOTH) public int getConnectionState(BluetoothDevice device); /** |
