diff options
| author | Jaikumar Ganesh <jaikumar@google.com> | 2011-08-23 12:21:55 -0700 |
|---|---|---|
| committer | Jaikumar Ganesh <jaikumar@google.com> | 2011-08-23 12:21:55 -0700 |
| commit | 9354790fa199a316eba1a2e52b789a3ebe28726b (patch) | |
| tree | ccd65b1ff694818a02cf78539240bb1088fdf7cb /core/java/android/bluetooth | |
| parent | f9838d0bb961d5464a92819107747237ea1d923c (diff) | |
| download | frameworks_base-9354790fa199a316eba1a2e52b789a3ebe28726b.zip frameworks_base-9354790fa199a316eba1a2e52b789a3ebe28726b.tar.gz frameworks_base-9354790fa199a316eba1a2e52b789a3ebe28726b.tar.bz2 | |
Make profile connection state API public.
Change-Id: I1f2810d4e820142435f7bbda051c98ec3e3cf3eb
Diffstat (limited to 'core/java/android/bluetooth')
| -rw-r--r-- | core/java/android/bluetooth/BluetoothAdapter.java | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/core/java/android/bluetooth/BluetoothAdapter.java b/core/java/android/bluetooth/BluetoothAdapter.java index 264db19..2236928 100644 --- a/core/java/android/bluetooth/BluetoothAdapter.java +++ b/core/java/android/bluetooth/BluetoothAdapter.java @@ -777,23 +777,24 @@ public final class BluetoothAdapter { * Get the current connection state of a profile. * This function can be used to check whether the local Bluetooth adapter * is connected to any remote device for a specific profile. - * Profile can be one of {@link BluetoothProfile.HEADSET}, - * {@link BluetoothProfile.A2DP}. + * Profile can be one of {@link BluetoothProfile#HEADSET}, + * {@link BluetoothProfile#A2DP}. * * <p>Requires {@link android.Manifest.permission#BLUETOOTH}. * * <p> Return value can be one of - * {@link * BluetoothProfile.STATE_DISCONNECTED}, - * {@link * BluetoothProfile.STATE_CONNECTING}, - * {@link * BluetoothProfile.STATE_CONNECTED}, - * {@link * BluetoothProfile.STATE_DISCONNECTING} - * @hide + * {@link BluetoothProfile#STATE_DISCONNECTED}, + * {@link BluetoothProfile#STATE_CONNECTING}, + * {@link BluetoothProfile#STATE_CONNECTED}, + * {@link BluetoothProfile#STATE_DISCONNECTING} */ public int getProfileConnectionState(int profile) { if (getState() != STATE_ON) return BluetoothProfile.STATE_DISCONNECTED; try { return mService.getProfileConnectionState(profile); - } catch (RemoteException e) {Log.e(TAG, "getProfileConnectionState:", e);} + } catch (RemoteException e) { + Log.e(TAG, "getProfileConnectionState:", e); + } return BluetoothProfile.STATE_DISCONNECTED; } |
