diff options
| author | Andrei-Valentin Onea <andreionea@google.com> | 2019-06-19 07:21:29 -0700 |
|---|---|---|
| committer | android-build-merger <android-build-merger@google.com> | 2019-06-19 07:21:29 -0700 |
| commit | 882defd836fed6be43a25fb135c1727a8bc13252 (patch) | |
| tree | e6da7b4a265076df5c37cbe853758246c465b56a /core/java/android/bluetooth/BluetoothDevice.java | |
| parent | 23b3ebfd246a657b453af014d4e73bff0ae7c278 (diff) | |
| parent | 36410665678330bdf69d28c526f86cb285fce15d (diff) | |
Merge "Document public alternatives to greylisted APIs" am: 3647eb620b
am: 3641066567
Change-Id: Ia21d1ce57a2cbffe8b417d6f1d5535924c7ea162
Diffstat (limited to 'core/java/android/bluetooth/BluetoothDevice.java')
| -rw-r--r-- | core/java/android/bluetooth/BluetoothDevice.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/core/java/android/bluetooth/BluetoothDevice.java b/core/java/android/bluetooth/BluetoothDevice.java index 388161d76308..c6160446c798 100644 --- a/core/java/android/bluetooth/BluetoothDevice.java +++ b/core/java/android/bluetooth/BluetoothDevice.java @@ -1051,7 +1051,7 @@ public final class BluetoothDevice implements Parcelable { * @return the Bluetooth alias, or null if no alias or there was a problem * @hide */ - @UnsupportedAppUsage + @UnsupportedAppUsage(publicAlternatives = "Use {@link #getName()} instead.") public String getAlias() { final IBluetooth service = sService; if (service == null) { @@ -1100,7 +1100,7 @@ public final class BluetoothDevice implements Parcelable { * @see #getAlias() * @see #getName() */ - @UnsupportedAppUsage + @UnsupportedAppUsage(publicAlternatives = "Use {@link #getName()} instead.") public String getAliasName() { String name = getAlias(); if (name == null) { @@ -1975,7 +1975,8 @@ public final class BluetoothDevice implements Parcelable { * permissions. * @hide */ - @UnsupportedAppUsage + @UnsupportedAppUsage(publicAlternatives = "Use " + + "{@link #createInsecureRfcommSocketToServiceRecord} instead.") public BluetoothSocket createInsecureRfcommSocket(int port) throws IOException { if (!isBluetoothEnabled()) { Log.e(TAG, "Bluetooth is not enabled"); |
