diff options
author | Hyundo Moon <hdmoon@google.com> | 2021-12-16 02:41:54 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2021-12-16 02:41:54 +0000 |
commit | 6fa6a3032893df6fa7b01d44c7e15c4163f57746 (patch) | |
tree | f08322257511c111cb4fc31bc0a6f19f94ef3b36 /framework/java | |
parent | a669547f55542de35102dce89896b72d23e313e0 (diff) | |
parent | f5b1a6ca9ab53d9ee0879c8640a37e5f2571ff41 (diff) |
Merge "BluetoothGatt: Deprecate unsupported methods" am: d66cd673ea am: 2984d48fd2 am: 9b0b7ff1a5 am: f5b1a6ca9a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1899033
Change-Id: I3a5b621e533ff2443d7c7bc2016dcf0b2d4c8110
Diffstat (limited to 'framework/java')
-rw-r--r-- | framework/java/android/bluetooth/BluetoothGatt.java | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/framework/java/android/bluetooth/BluetoothGatt.java b/framework/java/android/bluetooth/BluetoothGatt.java index 4e7c01ad2d..fe8d1ba80e 100644 --- a/framework/java/android/bluetooth/BluetoothGatt.java +++ b/framework/java/android/bluetooth/BluetoothGatt.java @@ -1806,32 +1806,33 @@ public final class BluetoothGatt implements BluetoothProfile { } /** - * Not supported - please use {@link BluetoothManager#getConnectedDevices(int)} + * @deprecated Not supported - please use {@link BluetoothManager#getConnectedDevices(int)} * with {@link BluetoothProfile#GATT} as argument - * * @throws UnsupportedOperationException */ @Override @RequiresNoPermission + @Deprecated public int getConnectionState(BluetoothDevice device) { throw new UnsupportedOperationException("Use BluetoothManager#getConnectionState instead."); } /** - * Not supported - please use {@link BluetoothManager#getConnectedDevices(int)} + * @deprecated Not supported - please use {@link BluetoothManager#getConnectedDevices(int)} * with {@link BluetoothProfile#GATT} as argument * * @throws UnsupportedOperationException */ @Override @RequiresNoPermission + @Deprecated public List<BluetoothDevice> getConnectedDevices() { throw new UnsupportedOperationException( "Use BluetoothManager#getConnectedDevices instead."); } /** - * Not supported - please use + * @deprecated Not supported - please use * {@link BluetoothManager#getDevicesMatchingConnectionStates(int, int[])} * with {@link BluetoothProfile#GATT} as first argument * @@ -1839,6 +1840,7 @@ public final class BluetoothGatt implements BluetoothProfile { */ @Override @RequiresNoPermission + @Deprecated public List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { throw new UnsupportedOperationException( "Use BluetoothManager#getDevicesMatchingConnectionStates instead."); |