diff options
| author | 2017-06-23 03:47:09 +0000 | |
|---|---|---|
| committer | 2017-06-23 03:47:09 +0000 | |
| commit | 0444f135c6c938510f9d14947a155cd3759da2e6 (patch) | |
| tree | 695d2de0303ec93e0104689a7e894cad73f08ef2 | |
| parent | 99a313e32385b60d6dfcaa32f8c717d1a9bf1ce9 (diff) | |
| parent | f71b0bedcf7f5e5c8ac0a50d72771dfb45ae9f0c (diff) | |
Merge "Bluetooth: minor documentation fix to de-confuse" am: 5a56873612 am: 3205ff1331
am: f71b0bedcf
Change-Id: I615f8f2d16d2dd17fcbd5df20378766096631eeb
| -rw-r--r-- | core/java/android/bluetooth/BluetoothAdapter.java | 15 | ||||
| -rw-r--r-- | core/java/android/bluetooth/BluetoothManager.java | 5 |
2 files changed, 9 insertions, 11 deletions
diff --git a/core/java/android/bluetooth/BluetoothAdapter.java b/core/java/android/bluetooth/BluetoothAdapter.java index 64c0f31de723..fc3a72482a79 100644 --- a/core/java/android/bluetooth/BluetoothAdapter.java +++ b/core/java/android/bluetooth/BluetoothAdapter.java @@ -70,9 +70,10 @@ import java.util.concurrent.locks.ReentrantReadWriteLock; * devices, and start a scan for Bluetooth LE devices. * * <p>To get a {@link BluetoothAdapter} representing the local Bluetooth - * adapter, when running on JELLY_BEAN_MR1 and below, call the - * static {@link #getDefaultAdapter} method; when running on JELLY_BEAN_MR2 and - * higher, call {@link BluetoothManager#getAdapter}. + * adapter, call the {@link BluetoothManager#getAdapter} function on {@link BluetoothManager}. + * On JELLY_BEAN_MR1 and below you will need to use the static {@link #getDefaultAdapter} + * method instead. + * </p><p> * Fundamentally, this is your starting point for all * Bluetooth actions. Once you have the local adapter, you can get a set of * {@link BluetoothDevice} objects representing all paired devices with @@ -81,14 +82,13 @@ import java.util.concurrent.locks.ReentrantReadWriteLock; * listen for incoming connection requests with * {@link #listenUsingRfcommWithServiceRecord(String,UUID)}; or start a scan for * Bluetooth LE devices with {@link #startLeScan(LeScanCallback callback)}. - * - * <p>This class is thread safe. - * + * </p> + * <p>This class is thread safe.</p> * <p class="note"><strong>Note:</strong> * Most methods require the {@link android.Manifest.permission#BLUETOOTH} * permission and some also require the * {@link android.Manifest.permission#BLUETOOTH_ADMIN} permission. - * + * </p> * <div class="special reference"> * <h3>Developer Guides</h3> * <p> @@ -565,6 +565,7 @@ public final class BluetoothAdapter { * <p>Currently Android only supports one Bluetooth adapter, but the API * could be extended to support more. This will always return the default * adapter. + * </p> * @return the default local adapter, or null if Bluetooth is not supported * on this hardware platform */ diff --git a/core/java/android/bluetooth/BluetoothManager.java b/core/java/android/bluetooth/BluetoothManager.java index e2fa38a9309f..bacce800620b 100644 --- a/core/java/android/bluetooth/BluetoothManager.java +++ b/core/java/android/bluetooth/BluetoothManager.java @@ -33,10 +33,7 @@ import java.util.List; * Use {@link android.content.Context#getSystemService(java.lang.String)} * with {@link Context#BLUETOOTH_SERVICE} to create an {@link BluetoothManager}, * then call {@link #getAdapter} to obtain the {@link BluetoothAdapter}. - * <p> - * Alternately, you can just call the static helper - * {@link BluetoothAdapter#getDefaultAdapter()}. - * + * </p> * <div class="special reference"> * <h3>Developer Guides</h3> * <p> |