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 | 3b37c1ca2b58857271cc4154fea0046ed20629ef (patch) | |
| tree | 7dfef46d756634a9e8bed8b2895a6e2ea59a63b4 /framework/java/android/bluetooth/BluetoothDevice.java | |
| parent | eb0fe13e5e28efe94c08b92e3cc3e689bb72646a (diff) | |
| parent | 39977db7ff795a717d9f4de4c797b2d5cab899ca (diff) | |
Merge "Document public alternatives to greylisted APIs" am: 39977db7ff
am: 3641066567
Change-Id: Ia21d1ce57a2cbffe8b417d6f1d5535924c7ea162
Diffstat (limited to 'framework/java/android/bluetooth/BluetoothDevice.java')
| -rw-r--r-- | framework/java/android/bluetooth/BluetoothDevice.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/framework/java/android/bluetooth/BluetoothDevice.java b/framework/java/android/bluetooth/BluetoothDevice.java index 388161d763..c6160446c7 100644 --- a/framework/java/android/bluetooth/BluetoothDevice.java +++ b/framework/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"); |
